From d1c07b572795b3d0a03dc542a26e6a1cfd1339bb Mon Sep 17 00:00:00 2001
From: super_liu <396572590@qq.com>
Date: Wed, 23 Mar 2022 17:32:08 +0800
Subject: [PATCH] feat: There is no way the, bug #51959
---
.../components/EnterpriseStandardDatabase.vue | 45 +++++++++++++++----
1 file changed, 37 insertions(+), 8 deletions(-)
diff --git a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue
index b25b5b55e..d1acf22a1 100644
--- a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue
+++ b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue
@@ -571,10 +571,17 @@
+ :disabled="formdisableflag" placeholder="选择起草部门">
+ 手动查找
+
@@ -585,7 +592,7 @@
class="add-form-item"
>
起草人
-
+
@@ -3532,9 +3539,20 @@ export default {
// $('#deptBtn').click()
$('#deptBtn2').click()
},
- choiceQCR(type, title, id) {
- this.nodeList = []
- this.nodeList.push(id)
+ choiceQCR(type, title, nameId) {
+ this.nodeList2 = []
+ if (nameId) {
+ let nameId1 = nameId.split(',')
+ let idList = []
+ nameId1.forEach(item => {
+ let a, b
+ a = item.substring(item.indexOf('(') +1)
+ b = a.substring(0, a.lastIndexOf(')'))
+ idList.push(b)
+ })
+ idList = idList.join(',')
+ this.nodeList2.push(idList)
+ }
this.userType = type
this.drawerTitle = title
this.modalShowRoleFlag = true
@@ -3565,7 +3583,9 @@ export default {
},
choiceQCDW(type, title, id) {
this.nodeListZRBM = []
- this.nodeListZRBM.push(id)
+ if(this.sarBussionessStandEO.QCDWID && this.sarBussionessStandEO.QCDWID.length > 0){
+ this.nodeListZRBM = this.sarBussionessStandEO.QCDWID.split(',')
+ }
this.drawerTitle = title
this.modalshowflagZRBM = true
},
@@ -3586,7 +3606,16 @@ export default {
this.sarBussionessSearch.QCDW = nameList
}
this.$set(this.sarBussionessStandEO, 'QCDWId', idList)
- this.$set(this.sarBussionessStandEO, 'QCDW', nameList)
+ let tNameList = (this.sarBussionessStandEO.QCDW === null || this.sarBussionessStandEO.QCDW === '') ? nameList : this.sarBussionessStandEO.QCDW+','+nameList
+ const arr=new Set()
+ let permission = tNameList.split(",");
+ permission.forEach((item, index) => {
+ arr.add(item)
+ })
+
+ let nameNew=Array.from(arr).join(',')
+ this.$set(this.sarBussionessStandEO, 'QCDW', nameNew)
+
if (this.sarBussionessStandEO.QCRBUSS) {
this.$refs.sarBussionessStandForm.validateField('QCDW')
}