修改禅道已知bug

This commit is contained in:
qq787203167
2022-06-16 22:07:59 +08:00
parent f2345c8b46
commit e7efeab938
@@ -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
}
})