From ac2d51c87cc77895e33561ea124d65338997d188 Mon Sep 17 00:00:00 2001
From: ZQN <364596817@qq.com>
Date: 星期三, 04 九月 2024 15:13:30 +0800
Subject: [PATCH] 状态修改

---
 policy/policyApply/policyApply.vue |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/policy/policyApply/policyApply.vue b/policy/policyApply/policyApply.vue
index 69b4c6d..7358cad 100644
--- a/policy/policyApply/policyApply.vue
+++ b/policy/policyApply/policyApply.vue
@@ -315,6 +315,11 @@
 			},
 			setCompany(e) {
 				this.form.companyName = e
+				this.form.companyCode = ''
+				this.form.companyId	 = ''	
+				this.form.companyPhone = ''
+				this.form.companyUser = ''
+				this.form.companyAddress = ''
 			},
 			confirmTime(e) {
 				this.form.planTime = e.year + '-' + e.month+ '-' + + e.day + ' ' + e.hour + ":" + "00:00"
@@ -341,8 +346,20 @@
 				this.$refs.perpage.open(this.list)
 			},
 			selectValue(value) {
-				this.form.peers = value
-			
+				value.forEach(val => {
+					this.form.peers.push(val)
+				});
+				this.form.peers = this.uniqueArrJson(this.form.peers,'peerId')
+			},
+			uniqueArrJson(arr,key) {
+			  var newobj = {},newArr = [];
+			  for(var i=0;i<arr.length;i++){
+			      var item = arr[i];
+			    if(!newobj[item[key]]){
+			          newobj[item[key]] = newArr.push(item);
+			    }
+			  }
+			  return newArr;
 			}
 		}
 	}

--
Gitblit v1.9.1