[update] 外来标准新增编辑管理员的限制去掉
This commit is contained in:
@@ -312,12 +312,6 @@ export default {
|
|||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
importExcelUrl () {
|
importExcelUrl () {
|
||||||
return `${window._CONFIG.domianURL}/${this.url.importExcelUrl}`
|
return `${window._CONFIG.domianURL}/${this.url.importExcelUrl}`
|
||||||
},
|
|
||||||
// 当前用户是否管理员
|
|
||||||
isAdmin () {
|
|
||||||
const adminRoleList = window._CONFIG.adminRoleCode.split(',')
|
|
||||||
const userRoleList = this.userInfo.roleCode.split(',')
|
|
||||||
return userRoleList.some(tt => adminRoleList.includes(tt))
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -660,36 +654,13 @@ export default {
|
|||||||
modalLoading.destroy()
|
modalLoading.destroy()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
// 新增
|
||||||
* 新增-非管理员用户跳转流程发起页面,不能修改操作类型
|
|
||||||
*/
|
|
||||||
handleAdd () {
|
handleAdd () {
|
||||||
if (!this.isAdmin) {
|
|
||||||
this.$router.push({
|
|
||||||
path: '/workCenter/StandardEntryOrChangeProcess',
|
|
||||||
query: {
|
|
||||||
source: StandardSource.Foreign.value, // 外来标准
|
|
||||||
operateType: OperationType.ENTRY.value // 入库
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.$refs.modalForm.add()
|
this.$refs.modalForm.add()
|
||||||
this.$refs.modalForm.title = this.$t('newlyAdded')
|
this.$refs.modalForm.title = this.$t('newlyAdded')
|
||||||
this.$refs.modalForm.disableSubmit = false
|
this.$refs.modalForm.disableSubmit = false
|
||||||
},
|
},
|
||||||
handleEdit (record) {
|
handleEdit (record) {
|
||||||
if (!this.isAdmin) {
|
|
||||||
this.$router.push({
|
|
||||||
path: '/workCenter/StandardEntryOrChangeProcess',
|
|
||||||
query: {
|
|
||||||
source: StandardSource.Foreign.value, // 外来标准
|
|
||||||
operateType: OperationType.CHANGE.value, // 变更
|
|
||||||
standardId: record.id // 标准id
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.$refs.modalForm.edit(record)
|
this.$refs.modalForm.edit(record)
|
||||||
this.$refs.modalForm.title = this.$t('edit')
|
this.$refs.modalForm.title = this.$t('edit')
|
||||||
this.$refs.modalForm.disableSubmit = false
|
this.$refs.modalForm.disableSubmit = false
|
||||||
|
|||||||
Reference in New Issue
Block a user