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