|
@@ -2,7 +2,7 @@
|
2
|
2
|
* @Author: ysh
|
3
|
3
|
* @Date: 2024-06-21 18:51:51
|
4
|
4
|
* @LastEditors: Please set LastEditors
|
5
|
|
- * @LastEditTime: 2024-07-30 15:37:00
|
|
5
|
+ * @LastEditTime: 2024-08-01 17:00:21
|
6
|
6
|
-->
|
7
|
7
|
<template>
|
8
|
8
|
<div>
|
|
@@ -33,7 +33,7 @@
|
33
|
33
|
<el-button @click="getList" type="primary">搜索</el-button>
|
34
|
34
|
</el-form-item>
|
35
|
35
|
</el-form>
|
36
|
|
- <el-table ref="chooseDevice" :data="list" @selection-change="handleSelectionChange" :row-key="getRowKeys"
|
|
36
|
+ <el-table ref="chooseDeviceRef" :data="list" @selection-change="handleSelectionChange" :row-key="getRowKeys"
|
37
|
37
|
@current-change="handleCurrentChange" @row-dblclick="confirmChooseBySingle" :highlight-current-row="!multiple">
|
38
|
38
|
<el-table-column type="selection" width="50" align="center" :reserve-selection="true" v-if="multiple" />
|
39
|
39
|
<el-table-column label="设备状态" align="center" prop="status">
|
|
@@ -122,7 +122,6 @@ export default {
|
122
|
122
|
this.list = response.rows;
|
123
|
123
|
this.total = response.total;
|
124
|
124
|
this.loading = false;
|
125
|
|
- this.clearChoose();
|
126
|
125
|
});
|
127
|
126
|
},
|
128
|
127
|
getNameList() {
|
|
@@ -152,9 +151,9 @@ export default {
|
152
|
151
|
},
|
153
|
152
|
clearChoose() {
|
154
|
153
|
if (this.multiple)
|
155
|
|
- this.$refs.chooseDevice.clearSelection();
|
|
154
|
+ this.$refs.chooseDeviceRef.clearSelection();
|
156
|
155
|
else {
|
157
|
|
- this.chooseDevice = {}
|
|
156
|
+ this.chooseList = {}
|
158
|
157
|
}
|
159
|
158
|
},
|
160
|
159
|
statusTypeText(row) {
|