|
@@ -248,7 +248,7 @@
|
|
|
<a-select v-model:value="formEdit.cgq" @change="changeCgq" style="width: 260px; margin-right: 10px">
|
|
|
<a-select-option v-for="file in cgqList" :key="file.label" :value="file.value">{{ file.label }}</a-select-option>
|
|
|
</a-select>
|
|
|
- <a-button type="success" @click="getMonitor">读取</a-button>
|
|
|
+ <a-button type="success" @click="getDeviceList">读取</a-button>
|
|
|
</a-form-item>
|
|
|
<a-form-item label="RS485_MODBUS地址:">
|
|
|
<a-input v-model:value="formEdit.rs485modbusdz" placeholder="请输入" style="width: 260px; margin-right: 10px" />
|
|
@@ -472,20 +472,20 @@ let stationId = ref('');
|
|
|
const scroll = reactive({
|
|
|
y: 680,
|
|
|
});
|
|
|
-//读取分站设备下拉选项数据
|
|
|
-let timer: null | NodeJS.Timeout = null;
|
|
|
-function getMonitor(flag = false) {
|
|
|
- timer = setTimeout(
|
|
|
- async () => {
|
|
|
- await getDeviceList();
|
|
|
- // if (timer) {
|
|
|
- // timer = null;
|
|
|
- // }
|
|
|
- getMonitor();
|
|
|
- },
|
|
|
- flag ? 0 : 3000
|
|
|
- );
|
|
|
-}
|
|
|
+// //读取分站设备下拉选项数据
|
|
|
+// let timer: null | NodeJS.Timeout = null;
|
|
|
+// function getMonitor(flag = false) {
|
|
|
+// timer = setTimeout(
|
|
|
+// async () => {
|
|
|
+// await getDeviceList();
|
|
|
+// // if (timer) {
|
|
|
+// // timer = null;
|
|
|
+// // }
|
|
|
+// getMonitor();
|
|
|
+// },
|
|
|
+// flag ? 0 : 3000
|
|
|
+// );
|
|
|
+// }
|
|
|
let timer1: null | NodeJS.Timeout = null;
|
|
|
function getMonitor1(flag = false) {
|
|
|
timer1 = setTimeout(
|