|
|
@ -80,8 +80,10 @@ |
|
|
|
fontFamily: scope.row.FONT, |
|
|
|
width: getScreenSize(form.devicePixel, 'width') + 'px', |
|
|
|
height: getScreenSize(form.devicePixel, 'height') + 'px', |
|
|
|
lineHeight:getScreenSize(form.devicePixel, 'height') + 'px', |
|
|
|
textAlign: getTextAlign(scope.row.formatStyle), |
|
|
|
'lineHeight':'1', |
|
|
|
'display': 'flex', |
|
|
|
'align-items': 'center', |
|
|
|
'justify-content': getTextAlign(scope.row.formatStyle), |
|
|
|
}"> |
|
|
|
<span :style="{ |
|
|
|
/*left: getCoordinate( |
|
|
@ -155,8 +157,9 @@ |
|
|
|
<div :style="{ |
|
|
|
width: getScreenSize(itm.screenSize, 'width') + 'px', |
|
|
|
height: getScreenSize(itm.screenSize, 'height') + 'px', |
|
|
|
lineHeight:getScreenSize(itm.screenSize, 'height') + 'px', |
|
|
|
textAlign: getTextAlign(itm.tcontents[0].formatStyle), |
|
|
|
'display': 'flex', |
|
|
|
'align-items': 'center', |
|
|
|
'justify-content': getTextAlign(itm.tcontents[0].formatStyle), |
|
|
|
position: 'relative', |
|
|
|
|
|
|
|
}" style="background: black; position: relative;overflow: hidden;"> |
|
|
@ -383,7 +386,6 @@ export default { |
|
|
|
devicePixel: '768*64', |
|
|
|
label: '门架板768*64', |
|
|
|
list: [ |
|
|
|
|
|
|
|
{ |
|
|
|
searchValue: null, |
|
|
|
createBy: null, |
|
|
@ -445,7 +447,8 @@ export default { |
|
|
|
lAlarmHandleStr: null, |
|
|
|
eqDirection: null, |
|
|
|
iotDeviceType: null |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
searchValue: null, |
|
|
|
createBy: null, |
|
|
|
createTime: null, |
|
|
@ -506,7 +509,8 @@ export default { |
|
|
|
lAlarmHandleStr: null, |
|
|
|
eqDirection: null, |
|
|
|
iotDeviceType: null |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
searchValue: null, |
|
|
|
createBy: null, |
|
|
|
createTime: null, |
|
|
@ -567,7 +571,8 @@ export default { |
|
|
|
lAlarmHandleStr: null, |
|
|
|
eqDirection: null, |
|
|
|
iotDeviceType: null |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
searchValue: null, |
|
|
|
createBy: null, |
|
|
|
createTime: null, |
|
|
@ -628,7 +633,8 @@ export default { |
|
|
|
lAlarmHandleStr: null, |
|
|
|
eqDirection: null, |
|
|
|
iotDeviceType: null |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
searchValue: null, |
|
|
|
createBy: null, |
|
|
|
createTime: null, |
|
|
@ -689,7 +695,7 @@ export default { |
|
|
|
lAlarmHandleStr: null, |
|
|
|
eqDirection: null, |
|
|
|
iotDeviceType: null |
|
|
|
}, |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
@ -974,7 +980,7 @@ export default { |
|
|
|
category: item.category, //所属类别 |
|
|
|
ID: this.contentList.length, |
|
|
|
format: item.tcontents[0].contentList, |
|
|
|
formatStyle : item.tcontents[0].formatStyle, |
|
|
|
formatStyle: item.tcontents[0].formatStyle |
|
|
|
} |
|
|
|
this.contentList.push(list) |
|
|
|
this.toggleIndex++ |
|
|
@ -1130,7 +1136,8 @@ export default { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
let loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: 'Loading', |
|
|
@ -1161,7 +1168,6 @@ export default { |
|
|
|
obj.CONTENT = obj.CONTENT.replaceAll('=', '\\=') |
|
|
|
obj.CONTENT = obj.CONTENT.replaceAll('\n', '\\\\n') |
|
|
|
|
|
|
|
|
|
|
|
// obj.CONTENT = obj.CONTENT.replaceAll('=','\=') |
|
|
|
obj.width = devicePixel[0] |
|
|
|
obj.height = devicePixel[1] |
|
|
@ -1174,35 +1180,40 @@ export default { |
|
|
|
} |
|
|
|
console.log(newArr, 'newArr') |
|
|
|
|
|
|
|
|
|
|
|
invokedFunction(objAll.deviceIds,11,{size : '65535',fileName:'play010.lst'}).then(res =>{ |
|
|
|
invokedFunction(objAll.deviceIds, 11, { size: '65535', fileName: 'play010.lst' }) |
|
|
|
.then(res => { |
|
|
|
debugger |
|
|
|
console.log('发布消息,校验文件名-------------------------------------') |
|
|
|
console.log(res) |
|
|
|
if (res.data.result == '01') { |
|
|
|
invokedFunction(objAll.deviceIds,13,{parameters:newArr}).then(res =>{ |
|
|
|
invokedFunction(objAll.deviceIds, 13, { parameters: newArr }) |
|
|
|
.then(res => { |
|
|
|
debugger |
|
|
|
console.log('发布消息,发送文件内容-----------------------------') |
|
|
|
console.log(res) |
|
|
|
if (res.data.result == '01') { |
|
|
|
invokedFunction(objAll.deviceIds,'1B',{fileId:'10'}).then(res =>{ |
|
|
|
invokedFunction(objAll.deviceIds, '1B', { fileId: '10' }) |
|
|
|
.then(res => { |
|
|
|
debugger |
|
|
|
console.log('发布消息,播放文件-----------------------------') |
|
|
|
console.log(res) |
|
|
|
}).catch(()=>{ |
|
|
|
this.$modal.msgWarning("发布失败,请重试"); |
|
|
|
}) |
|
|
|
|
|
|
|
.catch(() => { |
|
|
|
this.$modal.msgWarning('发布失败,请重试') |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch(()=>{ |
|
|
|
this.$modal.msgWarning("发布失败,请重试"); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$modal.msgWarning('发布失败,请重试') |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch(()=>{ |
|
|
|
this.$modal.msgWarning("发布失败,请重试"); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$modal.msgWarning('发布失败,请重试') |
|
|
|
}) |
|
|
|
loading.close() |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: 'info', |
|
|
|
message: '已取消发布情报板' |
|
|
@ -1336,7 +1347,7 @@ export default { |
|
|
|
})*/ |
|
|
|
await getDeviceRealtimeProperty(deviceId, '3A', { async: false }) |
|
|
|
.then(res => { |
|
|
|
if ("3A" in res.data){ |
|
|
|
if ('3A' in res.data) { |
|
|
|
console.log('回读消息------------------------') |
|
|
|
console.log(res.data) |
|
|
|
debugger |
|
|
@ -1348,13 +1359,13 @@ export default { |
|
|
|
item.ID = i |
|
|
|
item.FONT = item.font |
|
|
|
item.STAY = item.playbackDuration |
|
|
|
item.ACTION = item.screenEntryMethod |
|
|
|
item.COORDINATE = this.covering(item.xCoordinate) + this.covering(item.yCoordinate) |
|
|
|
item.screenSize = item.displayAreaWidth + '*' + item.displayAreaHeight |
|
|
|
item.CONTENT = item.textContent.replaceAll('\\,', ',') |
|
|
|
item.CONTENT = item.CONTENT.replaceAll('\\=', '=') |
|
|
|
item.CONTENT = item.CONTENT.replaceAll('\\\\n', '\n') |
|
|
|
|
|
|
|
|
|
|
|
item.formatStyle = item.verticalAlignment |
|
|
|
this.contentList.push(item) |
|
|
|
|
|
|
@ -1367,13 +1378,12 @@ export default { |
|
|
|
this.submitButton = false |
|
|
|
}) |
|
|
|
.catch(e => { |
|
|
|
this.$modal.msgWarning("回读失败,请重试"); |
|
|
|
this.$modal.msgWarning('回读失败,请重试') |
|
|
|
this.loading = false |
|
|
|
this.submitButton = false |
|
|
|
}) |
|
|
|
this.deviceId = deviceId |
|
|
|
|
|
|
|
|
|
|
|
// 根据情报板id获取分辨率 |
|
|
|
/*getBoardInfo(deviceId).then(res => { |
|
|
|
console.log(res, 'getBoardInfo') |
|
|
@ -1387,7 +1397,6 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
covering(value) { |
|
|
|
|
|
|
|
if (value.length < 3) { |
|
|
|
value = '0' + value |
|
|
|
return this.covering(value) |
|
|
|