认证清单添加带入相关人员
This commit is contained in:
@@ -134,7 +134,13 @@
|
||||
<a-icon type="profile"/>
|
||||
{{ $t('CertificationDirectory') }}
|
||||
</div>
|
||||
|
||||
<!-- 带入相关人员-->
|
||||
<div @click="bringInRelevantPersonnelClick"
|
||||
v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2"
|
||||
class="operator-text">
|
||||
<a-icon type="user"/>
|
||||
{{ $t('bringInRelevantPersonnel') }}
|
||||
</div>
|
||||
<!-- 修改配置-->
|
||||
<div @click="BatchSettingClick($t('changeSetting'))" v-if="roleSwitchingCode == 20 || roleSwitchingCode == 21"
|
||||
class="operator-text">
|
||||
@@ -2274,7 +2280,32 @@
|
||||
} else {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}
|
||||
}
|
||||
},
|
||||
bringInRelevantPersonnelClick(){
|
||||
let _this = this
|
||||
// if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
this.$confirm({
|
||||
content: _this.$t('confirmBringInRelevantPersonnel'),
|
||||
onOk() {
|
||||
// let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||
postAction('/project/projectCertificationInventoryEO/matchRelevantPeople', {
|
||||
// ids: selectedRowKeys.join(','),
|
||||
projectLibraryId: _this.$route.query.id
|
||||
}).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.selectedRowKeys = []
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
// } else {
|
||||
// this.$message.warning(this.$t('selectLeastOne'))
|
||||
// }
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user