代码生成器模板

This commit is contained in:
Jason 2022-08-17 10:07:24 +08:00
parent c77bc5b679
commit 2d61524315
3 changed files with 3 additions and 2 deletions

View File

@ -105,6 +105,7 @@
#elseif($column.htmlType=="datetime")
<el-form-item label="${column.columnComment}" prop="${column.javaField}">
<el-date-picker
class="flex-1 !flex"
v-model="formData.${column.javaField}"
type="date"
clearable

View File

@ -199,7 +199,7 @@ const handleEdit = async (data: any) => {
const handleDelete = async (${primaryKey}: number) => {
await feedback.confirm('确定要删除?')
await ${moduleName}Delete({ ${primaryKey} })
await ${moduleName}Delete({ id: ${primaryKey} })
getLists()
}

View File

@ -190,7 +190,7 @@ const handleEdit = async (data: any) => {
}
const handleDelete = async (${primaryKey}: number[]) => {
await ${moduleName}Delete({ ${primaryKey} })
await ${moduleName}Delete({ ids: ${primaryKey} })
feedback.msgSuccess('删除成功')
getLists()
}