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