Переглянути джерело

字典查询附带备注字段

liyanbo 3 тижнів тому
батько
коміт
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,
             label: dictData.label,
             colorType: dictData.colorType,
-            cssClass: dictData.cssClass
+            cssClass: dictData.cssClass,
+            remark: dictData.remark
           })
         })
         this.dictMap = dictDataMap

+ 1 - 0
src/utils/dict.ts

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