zhangjie 1 year ago
parent
commit
37207492b3

+ 12 - 0
src/assets/icons/icon-disable.svg

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>icon-禁用</title>
+    <g id="系统管理" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="30.01-系统管理-设备配置" transform="translate(-721, -25)">
+            <g id="icon-禁用" transform="translate(720, 24)">
+                <rect id="minus-circle-(Background)" opacity="0" x="0" y="0" width="16" height="16"></rect>
+                <path d="M11.5,8.5 L11.5,7.5 L4.5,7.5 L4.5,8.5 L11.5,8.5 Z M8,15 C4.13400674,15 1,11.8659935 1,8 C1,4.13400674 4.13400674,1 8,1 C11.8659935,1 15,4.13400674 15,8 C15,11.8659935 11.8659935,15 8,15 Z M8,14 C4.68629146,14 2,11.3137083 2,8 C2,4.68629146 4.68629146,2 8,2 C11.3137083,2 14,4.68629146 14,8 C14,11.3137083 11.3137083,14 8,14 Z" id="minus-circle" fill="#262626"></path>
+            </g>
+        </g>
+    </g>
+</svg>

+ 13 - 0
src/assets/icons/icon-enable.svg

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>icon-启用</title>
+    <g id="系统管理" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="30.01-系统管理-设备配置" transform="translate(-593, -25)">
+            <g id="play-circle" transform="translate(592, 24)">
+                <rect id="play-circle-(Background)" opacity="0" x="0" y="0" width="16" height="16"></rect>
+                <rect id="矩形" opacity="0" x="0" y="0" width="16" height="16"></rect>
+                <path d="M11.5499983,8.25978661 L6.44999886,11.2042818 C6.24999857,11.3197517 6,11.1754141 6,10.9444742 L6,5.05550098 C6,4.82456088 6.24999809,4.68022323 6.44999838,4.79569292 L11.5499973,7.74017096 C11.7499971,7.85564089 11.7499981,8.1443162 11.5499983,8.25978661 Z M10,7.99998093 L7,9.73203659 L7,6.2679348 L10,7.99998093 Z M15,8 C15,11.8659954 11.8659916,15 8,15 C4.13400483,15 1,11.8659916 1,8 C1,4.13400459 4.13400912,1 8,1 C11.8659954,1 15,4.13400888 15,8 Z M14,8 C14,11.3137102 11.3137064,14 8,14 C4.68628979,14 2,11.3137074 2,8 C2,4.68629003 4.6862936,2 8,2 C11.3137102,2 14,4.68629384 14,8 Z" id="Union" fill-opacity="0.9" fill="#262626"></path>
+            </g>
+        </g>
+    </g>
+</svg>

+ 5 - 5
src/views/system/config-manage/device-manage/index.vue

@@ -16,25 +16,25 @@
           批量作废
         </t-button>
         <t-button
-          v-if="perm.BUTTON_BatchEnable"
+          v-if="perm.BUTTON_enable"
           variant="outline"
           :disabled="!selectedRowKeys.length"
           @click="handleEnable(selectedRowKeys, true)"
         >
-          <template #icon><svg-icon name="delete" color="#262626" /></template>
+          <template #icon><svg-icon name="enable" color="#262626" /></template>
           批量启用
         </t-button>
         <t-button
-          v-if="perm.BUTTON_BatchUnEnable"
+          v-if="perm.BUTTON_disable"
           variant="outline"
           :disabled="!selectedRowKeys.length"
           @click="handleEnable(selectedRowKeys, false)"
         >
-          <template #icon><svg-icon name="delete" color="#262626" /></template>
+          <template #icon><svg-icon name="disable" color="#262626" /></template>
           批量禁用
         </t-button>
         <upload-button
-          v-if="perm.BUTTON_BatchImport"
+          v-if="perm.BUTTON_import"
           upload-url="/api/sys/device/import"
         >
           <t-button variant="outline">