Эх сурвалжийг харах

读取字典,加了两个字段, 状态和备注

yukai 2 жил өмнө
parent
commit
66f94a2b6f

+ 1 - 1
src/api/common/dict/data.ts

@@ -20,7 +20,7 @@ export function useDict(...args: string[]): ToRefs<any> {
   args.forEach((d: string) => {
     res.value[d] = [];
     getDicts(d).then(resp => {
-      res.value[d] = (resp.list || []).map((p: any) => ({ label: p.dictLabel, value: p.dictValue, isDefault: p.isDefault }))
+      res.value[d] = (resp.list || []).map((p: any) => ({ label: p.dictLabel, value: p.dictValue, isDefault: p.isDefault,status:p.status,remark:p.remark }))
     })
   })
   return toRefs(res.value);