tangning 10 mesiacov pred
rodič
commit
ad8e044c9f

+ 3 - 3
src/views/lanUser/detailsModal.vue

@@ -52,7 +52,7 @@
             span: 20,
           },
           componentProps: {
-            maxLength: 50,
+            maxLength: 100,
             required: true,
           },
         },
@@ -73,7 +73,7 @@
           },
           required: true,
           componentProps: {
-            maxLength: 18,
+            maxLength: 100,
           },
         },
         {
@@ -182,7 +182,7 @@
         resetFields();
       }
       function handleCopy(key) {
-        let url = window.location.origin + '?key=' + key;
+        let url = window.location.origin + window.location.pathname + '?key=' + key;
         const { isSuccessRef } = useCopyToClipboard(url);
         isSuccessRef && createMessage.success('复制成功');
       }

+ 20 - 7
src/views/lanUser/list.vue

@@ -114,37 +114,46 @@
         {
           title: t('routes.staff.userName'),
           dataIndex: 'name',
+          ellipsis: true,
           width: 120,
         },
         {
           title: '人员编号',
-          dataIndex: 'userName',
+          dataIndex: 'ryNo',
+          ellipsis: true,
           width: 150,
         },
         {
           title: '人员ID',
           dataIndex: 'ryId',
-          fixed: 'left',
-          width: 60,
+          ellipsis: true,
+          width: 100,
         },
         {
           title: '手机',
+          ellipsis: true,
           dataIndex: 'phone',
-          width: 160,
+          width: 100,
         },
         {
           title: '身份证',
-          dataIndex: 'carId',
-          width: 100,
+          ellipsis: true,
+          dataIndex: 'idCard',
+          width: 160,
+          customRender: ({ record }) => {
+            return IdNumber(record.idCard);
+          }
         },
         {
           title: '部门',
-          dataIndex: 'sysUserName',
+          ellipsis: true,
+          dataIndex: 'platformName',
           width: 80,
         },
         {
           title: '注册时间',
           dataIndex: 'createTime',
+          ellipsis: true,
           slots: { customRender: 'createTime' },
           width: 130,
         },
@@ -305,6 +314,10 @@
           },
         });
       }
+      function IdNumber(num){
+        if (!num) return "";
+        return num.replace(/(?<=\d{3})\d{12}(?=\d{2})/,"************")
+      }
       return {
         registerTable,
         registerDetail,

+ 1 - 2
src/views/lanUser/platformList.vue

@@ -18,13 +18,12 @@
         <TableAction
           :actions="[
             {
-              color: 'warning',
               ifShow: getCheckPerm('platformList-disable') && record.status === 0,
               label: '禁用',
+              color: 'error',
               onClick: handleOpenModal.bind(null, record),
             },
             {
-              color: 'warning',
               label: '启用',
               ifShow: getCheckPerm('platformList-enable') && record.status != 0,
               onClick: handEnable.bind(null, record.id),

+ 2 - 2
src/views/productOperation/cameraScene.vue

@@ -6,7 +6,7 @@
         <div class="codelist">
           <div class="codediv">
             <QrCode
-              :value="qrCodeUrl.ios"
+              :value="qrCodeUrl.android"
               class="enter-x flex justify-center xl:justify-start"
               :width="128"
             />
@@ -17,7 +17,7 @@
           </div>
           <div class="codediv">
             <QrCode
-              :value="qrCodeUrl.android"
+              :value="qrCodeUrl.ios"
               class="enter-x flex justify-center xl:justify-start"
               :width="128"
             />