|  | @ -234,6 +234,7 @@ import { getUserDeptId } from '@/api/system/user' | 
			
		
	
		
		
			
				
					|  |  | import { listTunnels, devicessize, information, getBoardInfo, getBoardEditInfo, getIotBoardList, getBoardContentData, deviceControl } from '@/api/information/api.js' |  |  | import { listTunnels, devicessize, information, getBoardInfo, getBoardEditInfo, getIotBoardList, getBoardContentData, deviceControl } from '@/api/information/api.js' | 
			
		
	
		
		
			
				
					|  |  | import { uploadBoardEditInfo, getAllVmsTemplate, addTemplate, addTemplateContent, getBoardContent, deleteTemplate, splicingBoard } from '@/api/board/template' |  |  | import { uploadBoardEditInfo, getAllVmsTemplate, addTemplate, addTemplateContent, getBoardContent, deleteTemplate, splicingBoard } from '@/api/board/template' | 
			
		
	
		
		
			
				
					|  |  | import { invokedFunction, getDeviceRealtimeProperty } from '@/api/device/device' |  |  | import { invokedFunction, getDeviceRealtimeProperty } from '@/api/device/device' | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import { getBoardList } from '@/api/board/board' | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | // 对象深拷贝 |  |  | // 对象深拷贝 | 
			
		
	
		
		
			
				
					|  |  | export const deepClone = data => { |  |  | export const deepClone = data => { | 
			
		
	
	
		
		
			
				
					|  | @ -332,6 +333,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |   created() { |  |  |   created() { | 
			
		
	
		
		
			
				
					|  |  |     this.getInfoMode() |  |  |     this.getInfoMode() | 
			
		
	
		
		
			
				
					|  |  |     this.changeDirection() |  |  |     this.changeDirection() | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     this.getBoardPixel() | 
			
		
	
		
		
			
				
					|  |  |   }, |  |  |   }, | 
			
		
	
		
		
			
				
					|  |  |   mounted() { |  |  |   mounted() { | 
			
		
	
		
		
			
				
					|  |  |     // this.rowDrop(); |  |  |     // this.rowDrop(); | 
			
		
	
	
		
		
			
				
					|  | @ -339,6 +341,19 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |   }, |  |  |   }, | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |   methods: { |  |  |   methods: { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     // 获取信息模板字典表 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     getBoardPixel() { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       this.iotBoardList = [] | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       this.getDicts('iot_board_pixel').then(res => { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         res.data.forEach(item =>{ | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           this.iotBoardList.push({ | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             devicePixel: item.dictValue, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             label: item.dictLabel, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             list: [] | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           }) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         }) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       }) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  |     // 获取信息模板字典表 |  |  |     // 获取信息模板字典表 | 
			
		
	
		
		
			
				
					|  |  |     getInfoMode() { |  |  |     getInfoMode() { | 
			
		
	
		
		
			
				
					|  |  |       this.getDicts('iot_template_category').then(res => { |  |  |       this.getDicts('iot_template_category').then(res => { | 
			
		
	
	
		
		
			
				
					|  | @ -381,7 +396,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |       this.checkAll = false |  |  |       this.checkAll = false | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |       //TODO 测试数据 需删除走接口 |  |  |       //TODO 测试数据 需删除走接口 | 
			
		
	
		
		
			
				
					
					|  |  |       let testData = [ |  |  |    /*   let testData = [ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
		
		
			
				
					|  |  |           devicePixel: '768*64', |  |  |           devicePixel: '768*64', | 
			
		
	
		
		
			
				
					|  |  |           label: '门架板768*64', |  |  |           label: '门架板768*64', | 
			
		
	
	
		
		
			
				
					|  | @ -702,7 +717,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |           devicePixel: '480*48', |  |  |           devicePixel: '480*48', | 
			
		
	
		
		
			
				
					|  |  |           label: '雨棚480*48', |  |  |           label: '雨棚480*48', | 
			
		
	
		
		
			
				
					|  |  |           list: [ |  |  |           list: [ | 
			
		
	
		
		
			
				
					
					|  |  |             /*{ |  |  |             /!*{ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |               searchValue: null, |  |  |               searchValue: null, | 
			
		
	
		
		
			
				
					|  |  |               createBy: null, |  |  |               createBy: null, | 
			
		
	
		
		
			
				
					|  |  |               createTime: null, |  |  |               createTime: null, | 
			
		
	
	
		
		
			
				
					|  | @ -763,14 +778,14 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |               lAlarmHandleStr: null, |  |  |               lAlarmHandleStr: null, | 
			
		
	
		
		
			
				
					|  |  |               eqDirection: null, |  |  |               eqDirection: null, | 
			
		
	
		
		
			
				
					|  |  |               iotDeviceType: null |  |  |               iotDeviceType: null | 
			
		
	
		
		
			
				
					
					|  |  |             }*/ |  |  |             }*!/ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |           ] |  |  |           ] | 
			
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
		
		
			
				
					|  |  |           devicePixel: '192*160', |  |  |           devicePixel: '192*160', | 
			
		
	
		
		
			
				
					|  |  |           label: ' 悬臂192*160', |  |  |           label: ' 悬臂192*160', | 
			
		
	
		
		
			
				
					|  |  |           list: [ |  |  |           list: [ | 
			
		
	
		
		
			
				
					
					|  |  |             /*{ |  |  |             /!*{ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |               searchValue: null, |  |  |               searchValue: null, | 
			
		
	
		
		
			
				
					|  |  |               createBy: null, |  |  |               createBy: null, | 
			
		
	
		
		
			
				
					|  |  |               createTime: null, |  |  |               createTime: null, | 
			
		
	
	
		
		
			
				
					|  | @ -831,7 +846,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |               lAlarmHandleStr: null, |  |  |               lAlarmHandleStr: null, | 
			
		
	
		
		
			
				
					|  |  |               eqDirection: null, |  |  |               eqDirection: null, | 
			
		
	
		
		
			
				
					|  |  |               iotDeviceType: null |  |  |               iotDeviceType: null | 
			
		
	
		
		
			
				
					
					|  |  |             }*/ |  |  |             }*!/ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |           ] |  |  |           ] | 
			
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
	
		
		
			
				
					|  | @ -910,25 +925,30 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |       } else { |  |  |       } else { | 
			
		
	
		
		
			
				
					|  |  |         this.getInfoMode() |  |  |         this.getInfoMode() | 
			
		
	
		
		
			
				
					|  |  |       } |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |       this.$forceUpdate() |  |  |       this.$forceUpdate()*/ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |       // TODO 接口 |  |  |       // TODO 接口 | 
			
		
	
		
		
			
				
					
					|  |  |       /*let param = { |  |  |       let param = { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           eqDirection: this.form.eqDirection, |  |  |         direction: this.form.eqDirection, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           tunnelId: this.form.tunnel, |  |  |       }; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           manageAgencyId: this.form.deptId, |  |  |       getBoardList(param).then((res) => { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         }; |  |  |         console.log(res, "查询情报板设备列表"); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         getIotBoardList(param).then((res) => { |  |  |         if (res.length > 0) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           console.log(res, "查询情报板设备列表"); |  |  |           this.iotBoardList.forEach(item => { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           this.iotBoardList = res.data; |  |  |             item.list = [] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           if (res.data.length > 0) { |  |  |             res.forEach(board =>{ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             this.iotBoardActive = res.data[0].devicePixel; |  |  |               if (item.devicePixel == board.sceenSize){ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             this.handleChange(res.data[0].devicePixel); |  |  |                 item.list.push(board) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           } else { |  |  |               } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             this.getInfoMode(); |  |  |             }) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           } |  |  |           }) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           this.$forceUpdate(); |  |  |           this.iotBoardActive = this.iotBoardList[0].devicePixel; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         });*/ |  |  |           this.handleChange(this.iotBoardList[0].devicePixel); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |         } else { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           this.getInfoMode(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         this.$forceUpdate(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       }); | 
			
		
	
		
		
			
				
					|  |  |     }, |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     // 板子分辨率换算 |  |  |     // 板子分辨率换算 | 
			
		
	
	
		
		
			
				
					|  | @ -1182,19 +1202,16 @@ export default { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |           invokedFunction(objAll.deviceIds, 11, { size: '65535', fileName: 'play010.lst' }) |  |  |           invokedFunction(objAll.deviceIds, 11, { size: '65535', fileName: 'play010.lst' }) | 
			
		
	
		
		
			
				
					|  |  |             .then(res => { |  |  |             .then(res => { | 
			
		
	
		
		
			
				
					|  |  |               debugger |  |  |  | 
			
		
	
		
		
			
				
					|  |  |               console.log('发布消息,校验文件名-------------------------------------') |  |  |               console.log('发布消息,校验文件名-------------------------------------') | 
			
		
	
		
		
			
				
					|  |  |               console.log(res) |  |  |               console.log(res) | 
			
		
	
		
		
			
				
					|  |  |               if (res.data.result == '01') { |  |  |               if (res.data.result == '01') { | 
			
		
	
		
		
			
				
					|  |  |                 invokedFunction(objAll.deviceIds, 13, { parameters: newArr }) |  |  |                 invokedFunction(objAll.deviceIds, 13, { parameters: newArr }) | 
			
		
	
		
		
			
				
					|  |  |                   .then(res => { |  |  |                   .then(res => { | 
			
		
	
		
		
			
				
					|  |  |                     debugger |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                     console.log('发布消息,发送文件内容-----------------------------') |  |  |                     console.log('发布消息,发送文件内容-----------------------------') | 
			
		
	
		
		
			
				
					|  |  |                     console.log(res) |  |  |                     console.log(res) | 
			
		
	
		
		
			
				
					|  |  |                     if (res.data.result == '01') { |  |  |                     if (res.data.result == '01') { | 
			
		
	
		
		
			
				
					|  |  |                       invokedFunction(objAll.deviceIds, '1B', { fileId: '10' }) |  |  |                       invokedFunction(objAll.deviceIds, '1B', { fileId: '10' }) | 
			
		
	
		
		
			
				
					|  |  |                         .then(res => { |  |  |                         .then(res => { | 
			
		
	
		
		
			
				
					|  |  |                           debugger |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                           console.log('发布消息,播放文件-----------------------------') |  |  |                           console.log('发布消息,播放文件-----------------------------') | 
			
		
	
		
		
			
				
					|  |  |                           console.log(res) |  |  |                           console.log(res) | 
			
		
	
		
		
			
				
					|  |  |                         }) |  |  |                         }) | 
			
		
	
	
		
		
			
				
					|  | @ -1350,7 +1367,6 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |           if ('3A' in res.data) { |  |  |           if ('3A' in res.data) { | 
			
		
	
		
		
			
				
					|  |  |             console.log('回读消息------------------------') |  |  |             console.log('回读消息------------------------') | 
			
		
	
		
		
			
				
					|  |  |             console.log(res.data) |  |  |             console.log(res.data) | 
			
		
	
		
		
			
				
					|  |  |             debugger |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             var contents = res.data['3A'].content |  |  |             var contents = res.data['3A'].content | 
			
		
	
		
		
			
				
					|  |  |             for (let i = 0; i < contents.length; i++) { |  |  |             for (let i = 0; i < contents.length; i++) { | 
			
		
	
		
		
			
				
					|  |  |               let item = contents[i] |  |  |               let item = contents[i] | 
			
		
	
	
		
		
			
				
					|  | 
 |