浏览代码

fix(bugs): 添加员工搜索和场景状态

tangning 3 年之前
父节点
当前提交
b96628e8da
共有 3 个文件被更改,包括 27 次插入0 次删除
  1. 5 0
      src/locales/lang/zh-CN/routes/scenes.ts
  2. 10 0
      src/views/scenes/list.vue
  3. 12 0
      src/views/staff/list.vue

+ 5 - 0
src/locales/lang/zh-CN/routes/scenes.ts

@@ -44,4 +44,9 @@ export default {
     3: '民宿',
     9: '全部',
   },
+  status: '状态',
+  statusText: {
+    1: '正常',
+    0: '封存',
+  },
 };

+ 10 - 0
src/views/scenes/list.vue

@@ -151,6 +151,16 @@
           },
         },
         {
+          title: t('routes.scenes.status'),
+          dataIndex: 'payStatus',
+          width: 180,
+          customRender: ({ record }) => {
+            const enable = record.payStatus == 1;
+            const text = enable ? t('routes.scenes.statusText.1') : t('routes.scenes.statusText.0');
+            return text;
+          },
+        },
+        {
           title: t('routes.scenes.num'),
           dataIndex: 'num',
           width: 180,

+ 12 - 0
src/views/staff/list.vue

@@ -165,6 +165,18 @@
         schemas: [
           {
             field: 'staffName',
+            label: t('routes.staff.userName'),
+            component: 'Input',
+            componentProps: {
+              maxLength: 15,
+            },
+            colProps: {
+              xl: 5,
+              xxl: 5,
+            },
+          },
+          {
+            field: 'staffPhone',
             label: t('routes.corporation.phone'),
             component: 'Input',
             componentProps: {