Browse Source

样式优化

gzb
wangzhonglu 9 months ago
parent
commit
5675c1f450

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

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
 .no_auth {
383
 .no_auth {
373
   cursor: not-allowed !important;
384
   cursor: not-allowed !important;

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

353
                 >
353
                 >
354
               </template>
354
               </template>
355
               <template slot-scope="{ row }" slot="violationHandling">
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
                   :value="
369
                   :value="
358
                     strategyInfo.padViolatesInfo &&
370
                     strategyInfo.padViolatesInfo &&
359
                     strategyInfo.padViolatesInfo[row.violateType] &&
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
               </template>
378
               </template>
367
             </Table>
379
             </Table>
368
           </div>
380
           </div>

Loading…
Cancel
Save