feat:冻结、开卡代码生成
This commit is contained in:
1 parent
c0fa9492f0
commit
b823e6f4ec
15 files changed
+694
-41
No files matched your search
@@ -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 }));
|
||||
|
||||
Reference in new issue
Block a user