tangning 10 mesiacov pred
rodič
commit
1c46b8efa6

+ 8 - 2
src/views/lanUser/detailsModal.vue

@@ -106,6 +106,12 @@
           label: 'id',
           show: false,
         },
+        {
+          field: 'status',
+          component: 'Input',
+          label: 'status',
+          show: false,
+        },
       ];
       const title = ref('创建平台');
       const { createMessage, createConfirm } = useMessage();
@@ -123,7 +129,7 @@
       });
       function onDataReceive(data) {
         // 方式1;
-        title.value = data.id ? '修改平台' : '启用平台';
+        title.value = data.status == 1 ? '启用平台' : data.id ? '修改平台' : '创建平台';
         // preventAutoFill.value = false
         setTimeout(() => {
           console.log('useModalInner', data);
@@ -166,7 +172,7 @@
         createConfirm({
           iconType: 'warning',
           okText: '复制',
-          title: () => h('span', data.id ? '修改成功' : '平台创建成功'),
+          title: () => h('span', data.status == 1 ? '平台启用成功' : data.id ? '修改成功' : '平台创建成功'),
           content: () =>
             h('div', {}, [
               h('div', null, `平台名称:${res.platformName}`),

+ 26 - 2
src/views/lanUser/list.vue

@@ -130,7 +130,7 @@
           width: 100,
         },
         {
-          title: '手机',
+          title: '手机号码',
           ellipsis: true,
           dataIndex: 'phone',
           width: 100,
@@ -195,7 +195,7 @@
       ];
 
       const searchForm: Partial<FormProps> = {
-        labelWidth: 100,
+        labelWidth: 80,
         schemas: [
           {
             field: 'nickName',
@@ -221,6 +221,30 @@
               xxl: 6,
             },
           },
+          {
+            field: 'idCard',
+            label: '身份证',
+            component: 'Input',
+            componentProps: {
+              maxLength: 15,
+            },
+            colProps: {
+              xl: 6,
+              xxl: 6,
+            },
+          },
+          {
+            field: 'phone',
+            label: '手机号码',
+            component: 'Input',
+            componentProps: {
+              maxLength: 15,
+            },
+            colProps: {
+              xl: 6,
+              xxl: 6,
+            },
+          },
         ],
       };
 

+ 19 - 19
src/views/lanUser/platformList.vue

@@ -26,7 +26,7 @@
             {
               label: '启用',
               ifShow: getCheckPerm('platformList-enable') && record.status != 0,
-              onClick: handEnable.bind(null, record.id),
+              onClick: handleEdit.bind(null, record.id),
             },
             {
               label: '编辑',
@@ -135,11 +135,11 @@
           dataIndex: 'name',
           width: 100,
         },
-        {
-          title: '平台管理员手机号码',
-          dataIndex: 'phone',
-          width: 150,
-        },
+        // {
+        //   title: '平台管理员手机号码',
+        //   dataIndex: 'phone',
+        //   width: 150,
+        // },
         {
           title: '添加时间',
           dataIndex: 'createTime',
@@ -210,19 +210,19 @@
               xxl: 6,
             },
           },
-          {
-            field: 'phone',
-            label: '平台管理员手机号码',
-            labelWidth: 140,
-            component: 'Input',
-            componentProps: {
-              maxLength: 15,
-            },
-            colProps: {
-              xl: 6,
-              xxl: 6,
-            },
-          },
+          // {
+          //   field: 'phone',
+          //   label: '平台管理员手机号码',
+          //   labelWidth: 140,
+          //   component: 'Input',
+          //   componentProps: {
+          //     maxLength: 15,
+          //   },
+          //   colProps: {
+          //     xl: 6,
+          //     xxl: 6,
+          //   },
+          // },
         ],
       };
 

+ 1 - 1
src/views/lanUser/setpaswordModal.vue

@@ -145,7 +145,7 @@
           onOk: async () => {
             await disable(param);
             context && context.emit('ok');
-            createMessage.success(t('common.optSuccess'));
+            createMessage.success('平台已禁用');
             resetFields();
             closeModal();
           },