zhengnaiwen_citu 4 月之前
父节点
当前提交
a2f31753b7
共有 1 个文件被更改,包括 17 次插入20 次删除
  1. 17 20
      src/views/system/dictionaries/index.vue

+ 17 - 20
src/views/system/dictionaries/index.vue

@@ -13,9 +13,7 @@
       <!-- <template #card-tools>
         <m-button type="orange" icon="el-icon-plus" @click="onAdd">新增</m-button>
       </template> -->
-      <template #dictCode="{ row }">
-        <el-tag>{{ row.dictCode === 'systemCode' ? '系统级' : '用户级'}}</el-tag>
-      </template>
+
       <template #actions="{ row }">
         <!-- <m-button type="primary" text @click="onEdit(row)">编辑</m-button> -->
         <m-button type="primary" text @click="onEdit(row)">字典配置</m-button>
@@ -40,12 +38,10 @@ export default {
   data () {
     return {
       searchValues: {
-        dictTitle: null,
-        dictCode: 'systemCode'
+        dictTitle: null
       },
       headers: [
         { label: '名称', prop: 'dictTitle' },
-        { label: '类型', prop: 'dictCode', align: 'center' },
         { label: '标识', prop: 'dictValue', align: 'center' },
         { label: '创建时间', prop: 'createDate' },
         { label: '操作', prop: 'actions', fixed: 'right', width: 300 }
@@ -70,20 +66,20 @@ export default {
           options: {
             placeholder: '请输入名称'
           }
-        },
-        {
-          label: '类型',
-          prop: 'dictCode',
-          type: 'select',
-          options: {
-            placeholder: '请输入名称',
-            clearable: false,
-            items: [
-              { label: '系统级', value: 'systemCode' },
-              { label: '用户级', value: 'userCode' }
-            ]
-          }
         }
+        // {
+        //   label: '类型',
+        //   prop: 'dictCode',
+        //   type: 'select',
+        //   options: {
+        //     placeholder: '请输入名称',
+        //     clearable: false,
+        //     items: [
+        //       { label: '系统级', value: 'systemCode' },
+        //       { label: '用户级', value: 'userCode' }
+        //     ]
+        //   }
+        // }
       ]
     }
   },
@@ -99,7 +95,8 @@ export default {
             ...this.pageInfo,
             orders: this.orders
           },
-          ...this.searchValues
+          ...this.searchValues,
+          dictCode: 'systemCode'
         })
         this.items = data.records
         this.total = data.total