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

字典查询附带备注字段

liyanbo 3 недель назад
Родитель
Сommit
086e9df83c
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 1
      src/store/modules/dict.ts
  2. 1 0
      src/utils/dict.ts

+ 2 - 1
src/store/modules/dict.ts

@@ -59,7 +59,8 @@ export const useDictStore = defineStore('dict', {
             value: dictData.value,
             value: dictData.value,
             label: dictData.label,
             label: dictData.label,
             colorType: dictData.colorType,
             colorType: dictData.colorType,
-            cssClass: dictData.cssClass
+            cssClass: dictData.cssClass,
+            remark: dictData.remark
           })
           })
         })
         })
         this.dictMap = dictDataMap
         this.dictMap = dictDataMap

+ 1 - 0
src/utils/dict.ts

@@ -18,6 +18,7 @@ export interface DictDataType {
   value: string | number | boolean
   value: string | number | boolean
   colorType: ElementPlusInfoType | ''
   colorType: ElementPlusInfoType | ''
   cssClass: string
   cssClass: string
+  remark?: string
 }
 }
 
 
 export interface NumberDictDataType extends DictDataType {
 export interface NumberDictDataType extends DictDataType {