Bladeren bron

消息列表搜索优化

gzb
guozhongbo 8 maanden geleden
bovenliggende
commit
f4ec5721bc
2 gewijzigde bestanden met toevoegingen van 18 en 13 verwijderingen
  1. 1
    2
      src/views/dope/dope.vue
  2. 17
    11
      src/views/schoolSection/strategy/personalStrategy.vue

+ 1
- 2
src/views/dope/dope.vue Bestand weergeven

@@ -134,7 +134,6 @@ export default {
134 134
       }
135 135
     },
136 136
     showReadChange() {
137
-      this.searchForm.showRead = this.searchForm.showRead ? 1 : 0;
138 137
       this.searchList();
139 138
     },
140 139
     // 搜索
@@ -160,7 +159,7 @@ export default {
160 159
         name: this.searchForm.name,
161 160
         page: this.searchForm.page,
162 161
         size: this.searchForm.size,
163
-        showRead: this.searchForm.showRead
162
+        showRead: this.searchForm.showRead ? 1 : 0
164 163
       }).then((res) => {
165 164
         if (res.code === 0) {
166 165
           this.searchForm.list = res.obj.data;

+ 17
- 11
src/views/schoolSection/strategy/personalStrategy.vue Bestand weergeven

@@ -64,6 +64,7 @@
64 64
               <Checkbox
65 65
                 v-if="strategyInfo.model != 'see'"
66 66
                 v-model="strategyInfo.hastime"
67
+                @on-change="HandleIsShowChange(strategyInfo.hastime, 1)"
67 68
                 >启用</Checkbox
68 69
               >
69 70
             </div>
@@ -109,6 +110,7 @@
109 110
               <Checkbox
110 111
                 v-if="strategyInfo.model != 'see'"
111 112
                 v-model="strategyInfo.hasapp"
113
+                @on-change="HandleIsShowChange(strategyInfo.hastime, 2)"
112 114
                 >启用</Checkbox
113 115
               >
114 116
             </div>
@@ -144,6 +146,7 @@
144 146
               <Checkbox
145 147
                 v-if="strategyInfo.model != 'see'"
146 148
                 v-model="strategyInfo.hasdevice"
149
+                @on-change="HandleIsShowChange(strategyInfo.hastime, 3)"
147 150
                 >启用</Checkbox
148 151
               >
149 152
             </div>
@@ -259,24 +262,27 @@
259 262
             </template>
260 263
             <template slot-scope="{ row }" slot="noticed">
261 264
               <Checkbox
262
-                  :disabled="strategyInfo.model === 'see'"
263
-                  class="checked"
264
-                  v-model="row.noticed"
265
-                  @on-change="headleStrategy(row, 'noticed')"
266
-              >通知管理员</Checkbox
265
+                :disabled="strategyInfo.model === 'see'"
266
+                class="checked"
267
+                v-model="row.noticed"
268
+                @on-change="headleStrategy(row, 'noticed')"
269
+                >通知管理员</Checkbox
267 270
               >
268 271
             </template>
269 272
             <template slot-scope="{ row }" slot="violationHandling">
270 273
               <RadioGroup
271
-                  v-model="row.handleMethod"
272
-                  @on-change="headleStrategy(row, 'handleMethod')"
274
+                v-model="row.handleMethod"
275
+                @on-change="headleStrategy(row, 'handleMethod')"
273 276
               >
274 277
                 <Radio
275
-                    style="margin-right: 20px"
276
-                    :disabled="strategyInfo.model === 'see'"
277
-                    label="锁定"
278
+                  style="margin-right: 20px"
279
+                  :disabled="strategyInfo.model === 'see'"
280
+                  label="锁定"
281
+                ></Radio>
282
+                <Radio
283
+                  :disabled="strategyInfo.model === 'see'"
284
+                  label="恢复出厂设置"
278 285
                 ></Radio>
279
-                <Radio   :disabled="strategyInfo.model === 'see'" label="恢复出厂设置"></Radio>
280 286
               </RadioGroup>
281 287
             </template>
282 288
           </Table>

Laden…
Annuleren
Opslaan