pull/139/head
孙萌 2024-04-02 15:15:13 +08:00
parent 15c8fc8a90
commit d60d3b2521
1 changed files with 11 additions and 6 deletions

View File

@ -141,14 +141,13 @@ export default {
'active'(newVal, oldVal) {
this.getSensorType()
},
'$store.state.equipmentIndex'(newVal, oldVal) {
this.dataInit();
},
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -409,6 +408,12 @@ return num
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.api.getReadControlSensorChannel(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {