[update] 认证工程师权限

This commit is contained in:
zhaomeijing
2022-05-23 10:57:09 +08:00
parent 9ea905f783
commit e22fae8f07
@@ -354,9 +354,12 @@ export default {
}, },
// 冻结配置 // 冻结配置
freezeConfiguration() { freezeConfiguration() {
if(this.homo) {
// 认证工程师 任意状态 都有此权限
this.areaVisibleFreeze = true this.areaVisibleFreeze = true
// 获取冻结配置数据 // 获取冻结配置数据
this.getFreeze() this.getFreeze()
}
}, },
// 冻结配置提交 // 冻结配置提交
handleSubmitFreeze() { handleSubmitFreeze() {
@@ -429,9 +432,6 @@ export default {
}, },
// 下发收集 // 下发收集
distributionAndCollection() { distributionAndCollection() {
// 先判断是否有权限 认证工程师 待发起收集
let permissionmoAndinitiated = this.permissionmoAndinitiated()
if(permissionmoAndinitiated) {
let _array = [] let _array = []
this.selectedRowKeysValue.forEach((item, index) => { this.selectedRowKeysValue.forEach((item, index) => {
_array.push(item.id) _array.push(item.id)
@@ -468,18 +468,22 @@ export default {
.catch( (error) =>{ .catch( (error) =>{
console.log(error); console.log(error);
}); });
}
}, },
// 添加 // 添加
handleAdd() { handleAdd() {
// 先判断是否有权限 认证工程师 待发起收集 if(this.homo) {
let permissionmoAndinitiated = this.permissionmoAndinitiated() // 认证工程师 任意状态 都有此权限
if(permissionmoAndinitiated) {
this.areaVisible = true this.areaVisible = true
} }
}, },
// 提交 // 提交
handleSubmit() { handleSubmit() {
// 先判断提交权限
if(this.homo) {
// 认证工程师 任意状态 都无此权限
this.$message.warning(this.$t('operatethisbutton'))
} else {
// 提交数据
let postDate = [] let postDate = []
this.selectedRowKeysValue.forEach((item, index) => { this.selectedRowKeysValue.forEach((item, index) => {
let postDateobj = {} let postDateobj = {}
@@ -505,6 +509,7 @@ export default {
} }
}) })
} }
}
}, },
// 退回 // 退回
returnData() { returnData() {
@@ -584,7 +589,12 @@ export default {
}, },
// 分配填写人 // 分配填写人
assignedBy() { assignedBy() {
if(this.homo) {
// 认证工程师 任意状态 都无此权限
this.$message.warning(this.$t('operatethisbutton'))
} else {
this.areaVisibleAssignedby = true this.areaVisibleAssignedby = true
}
}, },
// 分配填写人确定后弹框关闭 // 分配填写人确定后弹框关闭
areaVisibleAssignedbyflag(val) { areaVisibleAssignedbyflag(val) {
@@ -592,7 +602,12 @@ export default {
}, },
// 截止时间 // 截止时间
TaskCutOffTime() { TaskCutOffTime() {
if(this.homo) {
// 认证工程师 任意状态 都无此权限
this.$message.warning(this.$t('operatethisbutton'))
} else {
this.areaVisibleTaskCutOffTime = true this.areaVisibleTaskCutOffTime = true
}
}, },
// 截至时间确定弹框关闭 // 截至时间确定弹框关闭
areaVisibleTaskCutOffTimeflag(val) { areaVisibleTaskCutOffTimeflag(val) {
@@ -601,7 +616,12 @@ export default {
}, },
//引用参数 //引用参数
referenceparameter() { referenceparameter() {
if(this.homo) {
// 认证工程师 任意状态 都无此权限
this.$message.warning(this.$t('operatethisbutton'))
} else {
this.areaVisiblereferenceparameter = true this.areaVisiblereferenceparameter = true
}
}, },
handleModule() { handleModule() {
@@ -617,9 +637,6 @@ export default {
this.$refs.CollectionTabel.getTableListReset() this.$refs.CollectionTabel.getTableListReset()
}, },
handleDel(){ handleDel(){
// 先判断是否有权限 认证工程师 待发起收集
let permissionmoAndinitiated = this.permissionmoAndinitiated()
if(permissionmoAndinitiated) {
let param={ let param={
ids: this.selectedRowKeysArray ids: this.selectedRowKeysArray
} }
@@ -662,7 +679,6 @@ export default {
} else { } else {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}
}, },
pageOnChange() { pageOnChange() {