代码生成,支持设置前端的模版

This commit is contained in:
YunaiV
2023-04-13 00:21:32 +08:00
parent ebbf47f509
commit f3c6249600
5 changed files with 41 additions and 25 deletions

View File

@ -115,11 +115,12 @@ const colorTypeOptions = readonly([
])
/** 打开弹窗 */
const open = async (type: string, id?: number) => {
const open = async (type: string, id?: number, dictType?: string) => {
dialogVisible.value = true
dialogTitle.value = t('action.' + type)
formType.value = type
resetForm()
formData.value.dictType = dictType
// 修改时,设置数据
if (id) {
formLoading.value = true