gjy 3 vuotta sitten
vanhempi
commit
d73441641b
1 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. 8 1
      pages/grain_pulse/enter.vue

+ 8 - 1
pages/grain_pulse/enter.vue

@@ -269,9 +269,16 @@
 				this.deptList.licenseAddress = res
 			},
 			singleClick(item) {
-				if (this.mainBusinessType.indexOf(item) == -1) {
+				if (this.mainBusinessType.indexOf(item.name) == -1) {
 					this.mainBusinessType.push(item.name)
 					item.checked = true
+				}else{
+					for (var i = 0; i < this.mainBusinessType.length; i++) {
+						if(this.mainBusinessType[i]==item.name){
+							this.mainBusinessType.splice(i,1)
+						}
+					}
+					item.checked = false
 				}
 			},
 			filterFileType(index, lists) {