Просмотр исходного кода

优化用户列表和搜索组件,新增标准代码字段支持

yusheng 9 месяцев назад
Родитель
Сommit
950fceaef7

+ 6 - 0
src/views/inspectionClassify/components/user-list.vue

@@ -209,6 +209,12 @@
             align: 'center',
             minWidth: 120
           },
+          {
+            prop: 'standardCode',
+            label: '标准代码',
+            align: 'center',
+            minWidth: 110
+          },
 
           {
             label: '状态',

+ 44 - 38
src/views/inspectionClassify/components/user-search.vue

@@ -8,51 +8,57 @@
     data() {
       return {
         // 表格列配置
-        seekList:[
-            {
-              label: '参数名称:',
-              value: 'inspectionName',
-              type: 'input',
-              placeholder: '请输入'
-            },
+        seekList: [
+          {
+            label: '参数名称:',
+            value: 'inspectionName',
+            type: 'input',
+            placeholder: '请输入'
+          },
 
-            {
-              label: '状态:',
-              value: 'status',
-              type: 'select',
-              placeholder: '请选择',
-              planList: [
-                {
-                  value: 0,
-                  label: '停用'
-                },
-                {
-                  value: 1,
-                  label: '启用'
-                }
-              ]
-            },
-            {
-              label: '标准类型:',
-              value: 'qualityStandardType',
-              type: 'DictSelection',
-              dictName: '质检标准类型',
-              placeholder: '请选择'
-            },
-            {
-              label: '标准名称:',
-              value: 'qualityStandardName',
-              type: 'input',
-              placeholder: '请输入'
-            }
-          ]
+          {
+            label: '状态:',
+            value: 'status',
+            type: 'select',
+            placeholder: '请选择',
+            planList: [
+              {
+                value: 0,
+                label: '停用'
+              },
+              {
+                value: 1,
+                label: '启用'
+              }
+            ]
+          },
+          {
+            label: '标准类型:',
+            value: 'qualityStandardType',
+            type: 'DictSelection',
+            dictName: '质检标准类型',
+            placeholder: '请选择'
+          },
+          {
+            label: '标准名称:',
+            value: 'qualityStandardName',
+            type: 'input',
+            placeholder: '请输入'
+          },
+          {
+            label: '标准代码:',
+            value: 'standardCode',
+            type: 'input',
+            placeholder: '请输入'
+          }
+        ]
       };
     },
     computed: {},
     methods: {
       /* 搜索 */
       search(e) {
-        this.$emit('search', {...e});
+        this.$emit('search', { ...e });
       }
     }
   };

+ 1 - 1
src/views/inspectionProject/components/user-search.vue

@@ -50,7 +50,7 @@
             }))
           },
           {
-            label: '标代码:',
+            label: '标代码:',
             value: 'standardCode',
             type: 'input',
             placeholder: '请输入'