修改禅道已知bug
This commit is contained in:
@@ -840,14 +840,16 @@
|
||||
},
|
||||
|
||||
mounted() {
|
||||
if (this.$route.query.studioEngineer == this.userInfo().id) {
|
||||
this.JLoading = true
|
||||
// if (this.$route.query.studioEngineer == this.userInfo().id) {
|
||||
this.JLoading = true
|
||||
// this.getAndUserId()
|
||||
this.getRoleByUserId(() => {
|
||||
this.getAndUserId()
|
||||
this.getRoleByUserId()
|
||||
} else {
|
||||
this.isDisplay = false
|
||||
}
|
||||
this.getList()
|
||||
})
|
||||
// } else {
|
||||
// this.isDisplay = false
|
||||
// }
|
||||
|
||||
},
|
||||
computed: {
|
||||
columnsFile() {
|
||||
@@ -890,13 +892,14 @@
|
||||
disabledDate(current) {
|
||||
return current && current < moment().subtract(1, 'day')
|
||||
},
|
||||
getRoleByUserId() {
|
||||
getRoleByUserId(callback) {
|
||||
getAction('/project/projectLawsInventoryEO/getRoleByUserId', { projectLibraryId: this.$route.query.id }).then((res) => {
|
||||
if (res.success) {
|
||||
this.roleSwitchingList = res.result || []
|
||||
} else {
|
||||
this.roleSwitchingList = []
|
||||
}
|
||||
callback && callback()
|
||||
})
|
||||
},
|
||||
getAndUserId() {
|
||||
@@ -909,16 +912,25 @@
|
||||
this.isDisplay = true
|
||||
this.formInlineRoleSwitching.roleSwitchingCode = res.result.roleCode
|
||||
this.AndUserId = res.result.id
|
||||
if (this.formInlineRoleSwitching.roleSwitchingCode) {
|
||||
if (!(this.roleSwitchingList.some(val => val.roleCode == this.formInlineRoleSwitching.roleSwitchingCode))) {
|
||||
this.formInlineRoleSwitching.roleSwitchingCode = this.roleSwitchingList[0] ? this.roleSwitchingList[0].roleCode : ''
|
||||
}
|
||||
} else {
|
||||
this.formInlineRoleSwitching.roleSwitchingCode = this.roleSwitchingList[0] ? this.roleSwitchingList[0].roleCode : ''
|
||||
}
|
||||
this.isRoleSwitching = true
|
||||
if (this.formInlineRoleSwitching.roleSwitchingCode == '0') {
|
||||
this.isDisplay = true
|
||||
} else {
|
||||
this.isDisplay = false
|
||||
if (this.formInlineRoleSwitching.roleSwitchingCode == '11' || this.formInlineRoleSwitching.roleSwitchingCode == '12') {
|
||||
if (this.formInlineRoleSwitching.roleSwitchingCode == '11' || this.formInlineRoleSwitching.roleSwitchingCode == '12' ||
|
||||
this.formInlineRoleSwitching.roleSwitchingCode == '') {
|
||||
this.isRoleSwitching = false
|
||||
}
|
||||
}
|
||||
this.JLoading = false
|
||||
this.getList()
|
||||
// this.JLoading = false
|
||||
} else {
|
||||
this.JLoading = false
|
||||
}
|
||||
@@ -1246,7 +1258,9 @@
|
||||
if (res.success) {
|
||||
this.dataSource = res.result
|
||||
this.loading = false
|
||||
this.JLoading = false
|
||||
} else {
|
||||
this.JLoading = false
|
||||
this.loading = false
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user