Browse Source

Merge commit '497a3b9697ae32bbee55f6378a286ad61ed8aa81' into gzb

gzb
guozhongbo 8 months ago
parent
commit
1770c8e2a7
2 changed files with 16 additions and 2 deletions
  1. 3
    0
      src/assets/less/common.less
  2. 13
    2
      src/views/schoolSection/networkManage/whitelist.vue

+ 3
- 0
src/assets/less/common.less View File

359
 // 多选框禁用时选中颜色修改
359
 // 多选框禁用时选中颜色修改
360
 .ivu-checkbox-indeterminate.ivu-checkbox-disabled,
360
 .ivu-checkbox-indeterminate.ivu-checkbox-disabled,
361
 .ivu-checkbox-disabled {
361
 .ivu-checkbox-disabled {
362
+  & + span {
363
+    color: #798cb5;
364
+  }
362
   &.ivu-checkbox-checked .ivu-checkbox-inner,
365
   &.ivu-checkbox-checked .ivu-checkbox-inner,
363
   .ivu-checkbox-inner {
366
   .ivu-checkbox-inner {
364
     background-color: #d2dbf3;
367
     background-color: #d2dbf3;

+ 13
- 2
src/views/schoolSection/networkManage/whitelist.vue View File

31
           <div class="action_list">
31
           <div class="action_list">
32
             <div @click="toView(row)" v-if="row.whiteType !== 2">查看</div>
32
             <div @click="toView(row)" v-if="row.whiteType !== 2">查看</div>
33
             <div @click="toEdit(row)" v-if="row.whiteType !== 2">编辑</div>
33
             <div @click="toEdit(row)" v-if="row.whiteType !== 2">编辑</div>
34
-            <div class="action_del" @click="toDel(row)">
35
-              {{ row.whiteType === 2 ? "移除" : "删除" }}
34
+            <div
35
+              class="action_del"
36
+              v-if="row.whiteType === 2 && row.rtype === 3"
37
+              @click="toDel(row)"
38
+            >
39
+              移除
40
+            </div>
41
+            <div
42
+              class="action_del"
43
+              v-else-if="row.whiteType !== 2"
44
+              @click="toDel(row)"
45
+            >
46
+              删除
36
             </div>
47
             </div>
37
           </div>
48
           </div>
38
         </template>
49
         </template>

Loading…
Cancel
Save