zhuliu 2 年 前
コミット
c0cf2c9ec4

+ 1 - 1
RMS-FrontEnd/src/views/report/FTO/FTOPage/components/ContrasrProduct.vue

@@ -285,7 +285,7 @@ export default {
     this.taskId = this.$s.getSession('params').taskId
     this.type = this.$s.getSession('params').type
     this.reportType = this.$s.getSession('params').reportType
-    this.reportStatus = this.$s.getSession('params').reportStatus
+    this.reportStatus = this.$s.getSession('params').reportStatus?this.$s.getSession('params').reportStatus:''
 
     this.reportId = this.$s.getSession('params').reportId
     console.log(this.$s.getSession('params'));

+ 1 - 1
RMS-FrontEnd/src/views/report/components/personnelList.vue

@@ -146,7 +146,7 @@ export default {
       this.getList()
     },
     handleClose2(){
-      this.allCheck = this.checkS
+      this.allCheck = this.checkS?JSON.parse(JSON.stringify(this.checkS)):[]
       this.check = []
       this.$emit('checked', this.allCheck)
       this.queryParams.name = ''

+ 19 - 17
RMS-FrontEnd/src/views/report/components/sendCollaboration.vue

@@ -235,26 +235,28 @@ export default {
     },
     submit() {
       // 遍历checked数组,拼接名字邮箱
-      if (this.sign == 0) {//判断是协同人
-        this.queryParams.personEmail = ''
-        this.queryParams.handlePersonId = this.checked[0].id
-        this.clientForm.handlePersonIds = this.checked[0].name + "<" + this.checked[0].email + ">"
-      } else {
-        for (var i = 0; i < this.checked.length; i++) {
-          var a = this.checked[i].name + "<" + this.checked[i].email + ">"
-          console.log(a);
-          if (this.clientForm.syneryCCLists.indexOf(a) == -1) {
-            this.clientForm.syneryCCLists.push(a)
-            this.queryParams.syneryCCList.push({
-              ccId: this.checked[i].id,
-              ccEmail: this.checked[i].email,
-              ccName: this.checked[i].name
-            })
+      if(this.checked.length>0){
+        if (this.sign == 0) {//判断是协同人
+          this.queryParams.personEmail = ''
+          this.queryParams.handlePersonId = this.checked[0].id
+          this.clientForm.handlePersonIds = this.checked[0].name + "<" + this.checked[0].email + ">"
+        } else {
+          for (var i = 0; i < this.checked.length; i++) {
+            var a = this.checked[i].name + "<" + this.checked[i].email + ">"
+            console.log(a);
+            if (this.clientForm.syneryCCLists.indexOf(a) == -1) {
+              this.clientForm.syneryCCLists.push(a)
+              this.queryParams.syneryCCList.push({
+                ccId: this.checked[i].id,
+                ccEmail: this.checked[i].email,
+                ccName: this.checked[i].name
+              })
+            }
           }
-        }
 
+        }
       }
-
+      
       this.userInformation = false
     },
     //点击icon打开人员信息弹出框