Browse Source

样式优化

gzb
wangzhonglu 9 months ago
parent
commit
5675c1f450
2 changed files with 28 additions and 5 deletions
  1. 11
    0
      src/assets/less/common.less
  2. 17
    5
      src/views/schoolSection/deviceManage/deviceManage.vue

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

@@ -368,6 +368,17 @@ fieldset[disabled] .ivu-input,
368 368
     }
369 369
   }
370 370
 }
371
+// 单选框禁用时选中颜色修改
372
+.ivu-radio-disabled {
373
+  .ivu-radio-inner {
374
+    background-color: #d2dbf3;
375
+    border-color: #98aae1;
376
+    &:after {
377
+      background-color: #253a70;
378
+      border-color: #253a70;
379
+    }
380
+  }
381
+}
371 382
 // 没有权限禁止操作
372 383
 .no_auth {
373 384
   cursor: not-allowed !important;

+ 17
- 5
src/views/schoolSection/deviceManage/deviceManage.vue View File

@@ -353,16 +353,28 @@
353 353
                 >
354 354
               </template>
355 355
               <template slot-scope="{ row }" slot="violationHandling">
356
-                <CheckboxGroup
356
+                <Radio
357
+                  :disabled="true"
358
+                  :value="
359
+                    strategyInfo.padViolatesInfo &&
360
+                    strategyInfo.padViolatesInfo[row.violateType] &&
361
+                    strategyInfo.padViolatesInfo[
362
+                      row.violateType
363
+                    ].handleMethod.includes('锁定')
364
+                  "
365
+                  >锁定</Radio
366
+                >
367
+                <Radio
368
+                  :disabled="true"
357 369
                   :value="
358 370
                     strategyInfo.padViolatesInfo &&
359 371
                     strategyInfo.padViolatesInfo[row.violateType] &&
360
-                    strategyInfo.padViolatesInfo[row.violateType].handleMethod
372
+                    strategyInfo.padViolatesInfo[
373
+                      row.violateType
374
+                    ].handleMethod.includes('恢复出厂设置')
361 375
                   "
376
+                  >恢复出厂设置</Radio
362 377
                 >
363
-                  <Checkbox :disabled="true" label="锁定"></Checkbox>
364
-                  <Checkbox :disabled="true" label="恢复出厂设置"></Checkbox>
365
-                </CheckboxGroup>
366 378
               </template>
367 379
             </Table>
368 380
           </div>

Loading…
Cancel
Save