| 
					
				 | 
			
			
				@@ -87,7 +87,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <div class="lixian_class" v-if="alarmCategory == 1"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <el-form-item slot="row" class="tip-info" label="测点" prop="measuringCode"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <el-select v-model="measuringCode" placeholder="请选择测点" clearable @change="measureSelect"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                <el-option v-for="item in measureOptions" :key="item.id" :value="item.identifier" :label="item.name"></el-option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    v-for="item in measureOptions" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    :key="item.id" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    :value="item.identifier" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    :label="item.name" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                ></el-option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             </el-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <el-table class="avg_table" :data="data.rules" stripe="true"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -392,7 +397,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { id: 7, name: '周六', checked: false }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { id: 1, name: '周日', checked: false } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            checkFlag: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            checkFlag: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            firstiotDeviceId: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            firstiotProductId: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     computed: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -668,12 +675,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         getQueryInfo(id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (this.params && this.params.todo == 'edit') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.$http.get(`/sc-community/system/alarmType/findAlarmTypeById?id=${id}`).then(({ data }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.data = Object.assign(this.data, data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.data.productId = [null, null, data.productId + '']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     this.getDeviceOptions(data.productId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     this.getMeasurePointOptions(data.productId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.data = Object.assign(this.data, data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.data.productId = [null, null, data.productId + '']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     this.measuringCode = this.data.rules[0].measuringCode ? this.data.rules[0].measuringCode : ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    this.getOperator(this.data.attributeId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.getOperator(data.attributeId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     this.setDaysAndTimes(data.days, data.times); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -803,6 +810,27 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .catch(() => {}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    watch: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'data.productId'(e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            debugger; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (this.firstiotProductId && !!e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let lat = _.last(e); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.data.productId = e; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.getDeviceOptions(lat); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.getMeasurePointOptions(lat); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let rec = this.getCascaderObj(lat, this.productOptions); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.data.iotProductId = rec.iotId || ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.firstiotProductId = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        deviceOptions(e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (this.firstiotDeviceId && !!this.data.deviceId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let item = _.find(this.deviceOptions, (it) => it.id == this.data.deviceId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.$set(this.data, 'iotDeviceId', item.iotDeviceId || ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.firstiotDeviceId = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     created() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.copyoperatorOptions = operatorOptions.slice(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.alarmCategory = this.params.alarmCategory; 
			 |