tangning před 2 roky
rodič
revize
683cf614ca

+ 6 - 6
src/views/account/overview/AddDownModal.vue

@@ -48,12 +48,12 @@
       const { createMessage, createConfirm } = useMessage();
       const schemas: FormSchema[] = [
         ...Addschemas,
-        {
-          field: 'id',
-          component: 'Input',
-          show: false,
-          label: 'id',
-        },
+        // {
+        //   field: 'id',
+        //   component: 'Input',
+        //   show: false,
+        //   label: 'id',
+        // },
         {
           field: 'count',
           component: 'InputNumber',

+ 5 - 3
src/views/empower/camera.vue

@@ -6,9 +6,9 @@
           >授权</a-button
         >
       </template>
-      <template #copy="{ record }">
-        <a @click="handleCopy(record.authorizeKey)">
-          {{ record.authorizeKey }}
+      <template #copy="{ text }">
+        <a @click="handleCopy(text)">
+          {{ text }}
         </a>
       </template>
       <template #action="{ record }">
@@ -109,12 +109,14 @@
         {
           title: '设备UUID',
           ellipsis: true,
+          slots: { customRender: 'copy' },
           dataIndex: 'machineUuid',
           width: 120,
         },
         {
           title: '设备名称',
           ellipsis: true,
+          slots: { customRender: 'copy' },
           dataIndex: 'machineName',
           width: 120,
         },