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