Browse Source

消息列表搜索优化

gzb
guozhongbo 8 months ago
parent
commit
f4ec5721bc
2 changed files with 18 additions and 13 deletions
  1. 1
    2
      src/views/dope/dope.vue
  2. 17
    11
      src/views/schoolSection/strategy/personalStrategy.vue

+ 1
- 2
src/views/dope/dope.vue View File

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

+ 17
- 11
src/views/schoolSection/strategy/personalStrategy.vue View File

64
               <Checkbox
64
               <Checkbox
65
                 v-if="strategyInfo.model != 'see'"
65
                 v-if="strategyInfo.model != 'see'"
66
                 v-model="strategyInfo.hastime"
66
                 v-model="strategyInfo.hastime"
67
+                @on-change="HandleIsShowChange(strategyInfo.hastime, 1)"
67
                 >启用</Checkbox
68
                 >启用</Checkbox
68
               >
69
               >
69
             </div>
70
             </div>
109
               <Checkbox
110
               <Checkbox
110
                 v-if="strategyInfo.model != 'see'"
111
                 v-if="strategyInfo.model != 'see'"
111
                 v-model="strategyInfo.hasapp"
112
                 v-model="strategyInfo.hasapp"
113
+                @on-change="HandleIsShowChange(strategyInfo.hastime, 2)"
112
                 >启用</Checkbox
114
                 >启用</Checkbox
113
               >
115
               >
114
             </div>
116
             </div>
144
               <Checkbox
146
               <Checkbox
145
                 v-if="strategyInfo.model != 'see'"
147
                 v-if="strategyInfo.model != 'see'"
146
                 v-model="strategyInfo.hasdevice"
148
                 v-model="strategyInfo.hasdevice"
149
+                @on-change="HandleIsShowChange(strategyInfo.hastime, 3)"
147
                 >启用</Checkbox
150
                 >启用</Checkbox
148
               >
151
               >
149
             </div>
152
             </div>
259
             </template>
262
             </template>
260
             <template slot-scope="{ row }" slot="noticed">
263
             <template slot-scope="{ row }" slot="noticed">
261
               <Checkbox
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
             </template>
271
             </template>
269
             <template slot-scope="{ row }" slot="violationHandling">
272
             <template slot-scope="{ row }" slot="violationHandling">
270
               <RadioGroup
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
                 <Radio
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
                 ></Radio>
285
                 ></Radio>
279
-                <Radio   :disabled="strategyInfo.model === 'see'" label="恢复出厂设置"></Radio>
280
               </RadioGroup>
286
               </RadioGroup>
281
             </template>
287
             </template>
282
           </Table>
288
           </Table>

Loading…
Cancel
Save