Browse Source

学校-疑似托管设备优化

gzb
wangzhonglu 9 months ago
parent
commit
407cc6e20e
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      src/views/schoolSection/deviceManage/outControlDevice.vue

+ 12
- 2
src/views/schoolSection/deviceManage/outControlDevice.vue View File

@@ -5,8 +5,8 @@
5 5
         <Select
6 6
           v-model="searchForm.doEvent"
7 7
           style="margin-right: 10px; width: 120px"
8
-          placeholder="事件"
9
-          @on-change="searchList()"
8
+          placeholder="选择事件"
9
+          @on-change="doEventChange()"
10 10
         >
11 11
           <!-- 1Token变化 2一周未通信 3安装可疑应用 -->
12 12
           <Option :value="1">Token变化</Option>
@@ -143,6 +143,16 @@ export default {
143 143
     }
144 144
   },
145 145
   methods: {
146
+    doEventChange() {
147
+      if (this.searchForm.doEvent === 1) {
148
+        this.columns[this.columns.length - 1].title = "Token更新时间";
149
+      } else if (this.searchForm.doEvent === 2) {
150
+        this.columns[this.columns.length - 1].title = "最后在线时间";
151
+      } else if (this.searchForm.doEvent === 3) {
152
+        this.columns[this.columns.length - 1].title = "上报时间";
153
+      }
154
+      this.searchList();
155
+    },
146 156
     // 搜索
147 157
     searchList() {
148 158
       this.searchForm.page = 1;

Loading…
Cancel
Save