|  |  | @ -4,8 +4,7 @@ | 
			
		
	
		
			
				
					|  |  |  |             <ElForm :model="formData" inline :rules="rules" ref="ruleForm"> | 
			
		
	
		
			
				
					|  |  |  |                 <div class="first"> | 
			
		
	
		
			
				
					|  |  |  |                     <el-radio-group v-model="planName"> | 
			
		
	
		
			
				
					|  |  |  |                         <el-radio-button label="名称1"></el-radio-button> | 
			
		
	
		
			
				
					|  |  |  |                         <el-radio-button label="名称2"></el-radio-button> | 
			
		
	
		
			
				
					|  |  |  |                         <el-radio-button v-for="item in info" :key="item.id" :label="item.planName"></el-radio-button> | 
			
		
	
		
			
				
					|  |  |  |                     </el-radio-group> | 
			
		
	
		
			
				
					|  |  |  |                 </div> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -68,9 +67,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     props: { | 
			
		
	
		
			
				
					|  |  |  |         visible: Boolean, | 
			
		
	
		
			
				
					|  |  |  |         detail: { | 
			
		
	
		
			
				
					|  |  |  |             type: Object, | 
			
		
	
		
			
				
					|  |  |  |             default: () => { } | 
			
		
	
		
			
				
					|  |  |  |         info: { | 
			
		
	
		
			
				
					|  |  |  |             type: Array, | 
			
		
	
		
			
				
					|  |  |  |             default: () => [] | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     data() { | 
			
		
	
	
		
			
				
					|  |  | @ -95,6 +94,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |                 qbb: '' | 
			
		
	
		
			
				
					|  |  |  |             }], | 
			
		
	
		
			
				
					|  |  |  |             planName: '', | 
			
		
	
		
			
				
					|  |  |  |             dcExecuteAction: [], | 
			
		
	
		
			
				
					|  |  |  |             deviceData: [], | 
			
		
	
		
			
				
					|  |  |  |             eventOptions: [ | 
			
		
	
		
			
				
					|  |  |  |                 { | 
			
		
	
	
		
			
				
					|  |  | @ -198,6 +198,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         modelVisible: { | 
			
		
	
		
			
				
					|  |  |  |             get() { | 
			
		
	
		
			
				
					|  |  |  |                 if (this.visible) { | 
			
		
	
		
			
				
					|  |  |  |                     this.planName = this.info[0]?.planName || ''; | 
			
		
	
		
			
				
					|  |  |  |                     this.dcExecuteAction = this.info[0]?.dcExecuteAction || []; | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |                 return this.visible; | 
			
		
	
		
			
				
					|  |  |  |             }, | 
			
		
	
	
		
			
				
					|  |  | @ -207,15 +209,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     methods: { | 
			
		
	
		
			
				
					|  |  |  |         initData(id = 1) { | 
			
		
	
		
			
				
					|  |  |  |             request({ | 
			
		
	
		
			
				
					|  |  |  |                 url: `/business/plans/list/${id}`, | 
			
		
	
		
			
				
					|  |  |  |                 method: "get", | 
			
		
	
		
			
				
					|  |  |  |             }).then((result) => { | 
			
		
	
		
			
				
					|  |  |  |                 if (result.code != 200) return Message.error(result?.msg); | 
			
		
	
		
			
				
					|  |  |  |                 let data = result.data; | 
			
		
	
		
			
				
					|  |  |  |                 let dcExecuteAction = result.data.dcExecuteAction; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         initData(data) { | 
			
		
	
		
			
				
					|  |  |  |             this.planId = data.id; | 
			
		
	
		
			
				
					|  |  |  |                 this.formData = { | 
			
		
	
		
			
				
					|  |  |  |                     eventCategory: data.eventCategory, | 
			
		
	
	
		
			
				
					|  |  | @ -236,11 +230,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |             }).catch((err) => { | 
			
		
	
		
			
				
					|  |  |  |                 console.log(err) | 
			
		
	
		
			
				
					|  |  |  |                 Message.error("查询事件预案列表失败", err); | 
			
		
	
		
			
				
					|  |  |  |             }) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |         async loadData() { | 
			
		
	
		
			
				
					|  |  |  |             if (this.deviceData.length <= 0) { | 
			
		
	
	
		
			
				
					|  |  | 
 |