汪钰 3 سال پیش
والد
کامیت
4df15e97d0
2فایلهای تغییر یافته به همراه15 افزوده شده و 5 حذف شده
  1. 14 5
      src/views/system/dictionary/components/dict-data.vue
  2. 1 0
      src/views/system/dictionary/components/dict-edit.vue

+ 14 - 5
src/views/system/dictionary/components/dict-data.vue

@@ -37,6 +37,9 @@
         </dict-data-search>
       </template> -->
       <!-- 操作列 -->
+      <template v-slot:appType="{ row }">
+        {{ types[row.appType] }}
+      </template>
       <template v-slot:action="{ row }">
         <el-link
           type="primary"
@@ -97,12 +100,13 @@
           {
             prop: 'code',
             label: '字典编码',
+            align: 'center',
             showOverflowTooltip: true
           },
           {
             prop: 'name',
             label: '字典名称',
-
+            align: 'center',
             showOverflowTooltip: true
           },
           // {
@@ -114,20 +118,21 @@
           // },
           {
             prop: 'appType',
+            align: 'center',
             label: '应用类型',
-
-            showOverflowTooltip: true
+            showOverflowTooltip: true,
+            slot: 'appType'
           },
           {
             prop: 'remark',
             label: '描述',
-
+            align: 'center',
             showOverflowTooltip: true
           },
           {
             prop: 'updateTime',
             label: '上次更新时间',
-
+            align: 'center',
             showOverflowTooltip: true,
             minWidth: 110,
             formatter: (_row, _column, cellValue) => {
@@ -144,6 +149,10 @@
             showOverflowTooltip: true
           }
         ],
+        types: {
+          1: '业务字典',
+          2: '数据字典'
+        },
         // 表格选中数据
         selection: [],
         // 当前编辑数据

+ 1 - 0
src/views/system/dictionary/components/dict-edit.vue

@@ -38,6 +38,7 @@
           <el-form-item label="字典值:" prop="code">
             <el-input
               clearable
+              :disabled="isUpdate"
               :maxlength="20"
               v-model="form.code"
               placeholder="请输入字典值"