|
|
@ -335,13 +335,13 @@ export default { |
|
|
|
// } |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.____resetForm(); |
|
|
|
Promise.all([ |
|
|
|
this.____initDirection(), |
|
|
|
this.____getBoardPixel(), |
|
|
|
this.____getTemplateCategory(), |
|
|
|
this.____getAllTemplate(), |
|
|
|
]).then((res) => { |
|
|
|
this.____resetForm(); |
|
|
|
this.____getIotBoard(); |
|
|
|
}); |
|
|
|
}, |
|
|
@ -421,7 +421,6 @@ export default { |
|
|
|
____initDirection() { |
|
|
|
return this.getDicts("iot_board_direction").then((res) => { |
|
|
|
this.boardDirectionList = res.data; |
|
|
|
this.form.selectedDirection = res.data[0].dictValue; |
|
|
|
}); |
|
|
|
}, |
|
|
|
//改变方向 |
|
|
@ -434,15 +433,15 @@ export default { |
|
|
|
}, |
|
|
|
____resetForm() { |
|
|
|
this.form = { |
|
|
|
selectedDirection: "", |
|
|
|
selectedDirection: this.boardDirectionList[0].dictValue, |
|
|
|
status: ["0", "1"], |
|
|
|
stakeFrom: initSearch.startStakeMark, |
|
|
|
stakeTo: initSearch.endStakeMark |
|
|
|
stakeFrom: [+initSearch.startStakeMark[0], +initSearch.startStakeMark[1]], |
|
|
|
stakeTo: [+initSearch.endStakeMark[0], +initSearch.endStakeMark[1]], |
|
|
|
} |
|
|
|
}, |
|
|
|
____onResetSearchDevice() { |
|
|
|
this.____resetForm(); |
|
|
|
this.____initDirection(); |
|
|
|
// this.____initDirection(); |
|
|
|
this.____getIotBoard(); |
|
|
|
}, |
|
|
|
// 情报板设备 折叠面板 |
|
|
@ -493,7 +492,7 @@ export default { |
|
|
|
if (!this.selectedSize) { |
|
|
|
this.selectedSize = item.otherConfig.screenSize; |
|
|
|
} |
|
|
|
console.log(item, item.otherConfig.screenSize) |
|
|
|
// console.log(item, item.otherConfig.screenSize) |
|
|
|
// if (!this.selectedDevices.deviceName) { |
|
|
|
// this.selectedDevices = item; |
|
|
|
// } |
|
|
|