法规清单修改操作人

This commit is contained in:
范强强
2023-04-14 10:29:03 +08:00
parent 51835d7dbf
commit 4f9cf7c244
4 changed files with 63 additions and 17 deletions
@@ -119,7 +119,7 @@
</div>
<!-- 修改操作人-->
<div class="operator-text" v-if="this.roleSwitchingCode == '1'"
@click="modifyOperatorClick">
@click="modifyOperatorClick('法规')">
<a-icon type="export" :rotate="-90"/>
{{ $t('modifyOperator') }}
</div>
@@ -198,7 +198,7 @@
{{ $t('compliancereport') }}
</div>
<!-- 修改操作人-->
<div class="operator-text-title" @click="modifyOperatorClick">
<div class="operator-text-title" @click="modifyOperatorClick('studio')">
<a-icon type="export" :rotate="-90"/>
{{ $t('modifyOperator') }}
</div>
@@ -1467,7 +1467,7 @@
},
methods: {
...mapGetters(['userInfo']),
modifyOperatorClick() {
modifyOperatorClick(name) {
if (this.selectedRowKeys.length == 0) {
this.$message.warning(this.$t('selectLeastOne'))
} else if (this.selectedRowKeys.length > 1) {
@@ -1491,8 +1491,15 @@
|| contentList[0].designFlowStatus == 'Results to be submitted') {
isDesignFlow = true
}
if (name == '法规') {
if (contentList[0].regulationOwnerId == this.userInfo().id) {
} else {
this.$message.warning(this.$t('pleaseSelectRegulatoryCurrentLogin'))
return
}
}
if (isDesignFlow || isVerifyFlow) {
this.$refs.modifyOperatorRef.getData(contentList[0],isDesignFlow, isVerifyFlow)
this.$refs.modifyOperatorRef.getData(contentList[0], isDesignFlow, isVerifyFlow)
} else {
this.$message.warning(this.$t('onlyDesignComplianceConfirmationSelected'))
}
@@ -1721,7 +1728,32 @@
batSettingClick() {
let code = this.roleSwitchingCode
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)), code)
let content = []
for (let i = 0; i < this.dataSource.length; i++) {
for (let j = 0; j < this.selectedRowKeys.length; j++) {
if (this.dataSource[i].id == this.selectedRowKeys[j]) {
content.push(this.dataSource[i])
}
}
}
let isTrue = false
for (let i = 0; i < content.length; i++) {
if (!content[i].dutyTerritory_dictText) {
isTrue = true
break
}
for (let j = 1; j < content.length; j++) {
if (content[i].dutyTerritory_dictText != content[j].dutyTerritory_dictText) {
isTrue = true
break
}
}
}
if (!isTrue){
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)), code,content[0])
}else{
this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)), code)
}
} else {
this.$message.warning(this.$t('selectLeastOne'))
}