feat:冻结、开卡代码生成

This commit is contained in:
dzc committed 2024-12-31 19:05:47 +08:00
1 parent c0fa9492f0
commit b823e6f4ec
15 files changed
+694 -41

No files matched your search

+4 -1
View File
@@ -34,7 +34,10 @@ watch(selectId, (newVal, oldValue) => {
async function getDictOptions() {
if (!props.dictCode) return []
const dicts = dict().getDict(props.dictCode)
if (dicts) return dicts
if (dicts) {
state.dictList = dicts
return
}
const res = await getDicts(props.dictCode)
if (!res) return []
state.dictList = res.data.map((p: any) => ({ label: p.label, value: p.value, elTagType: p.listClass, elTagClass: p.cssClass }));