mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2026-03-22 10:47:16 +08:00
【更新】更改新增编辑表单时错误的写法(代码生成模板) #I7CH2V #I6SVT3 #I6KOVG
This commit is contained in:
@@ -19,7 +19,7 @@ export default {
|
||||
},
|
||||
// 提交${functionName}表单 edit为true时为编辑,默认为新增
|
||||
${classNameFirstLower}SubmitForm(data, edit = false) {
|
||||
return request(edit ? 'add' : 'edit', data)
|
||||
return request(edit ? 'edit' : 'add', data)
|
||||
},
|
||||
// 删除${functionName}
|
||||
${classNameFirstLower}Delete(data) {
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
${classNameFirstLower}Api
|
||||
<% for(var i = 0; i < configList.~size; i++) { %>
|
||||
<% if(configList[i].needTableId) { %>
|
||||
.${classNameFirstLower}SubmitForm(formDataParam, !formDataParam.${configList[i].fieldNameCamelCase})
|
||||
.${classNameFirstLower}SubmitForm(formDataParam, formDataParam.${configList[i].fieldNameCamelCase})
|
||||
<% } %>
|
||||
<% } %>
|
||||
.then(() => {
|
||||
|
||||
Reference in New Issue
Block a user