feature:自动化代码增加数据源配置功能

This commit is contained in:
pixelmaxQM
2024-04-27 21:48:24 +08:00
parent d9a43ea1d6
commit ff8344d671
4 changed files with 8 additions and 2 deletions
@@ -164,6 +164,7 @@ const elFormRef = ref()
dataSource.value = res.data
}
}
getDataSourceFunc()
{{- end }}
// 初始化方法
@@ -109,6 +109,7 @@
<template #default="scope">
{{"{{"}} filterDataSource(dataSource.{{.FieldJson}},scope.row.{{.FieldJson}}) {{"}}"}}
</template>
</el-table-column>
{{- else if .DictType}}
<el-table-column {{- if .Sort}} sortable{{- end}} align="left" label="{{.FieldDesc}}" prop="{{.FieldJson}}" width="120">
<template #default="scope">
@@ -369,6 +370,7 @@ const formData = ref({
dataSource.value = res.data
}
}
getDataSourceFunc()
{{- end }}