【更新】更改新增编辑表单时错误的写法(代码生成模板) #I7CH2V #I6SVT3 #I6KOVG

pull/125/head v2.2.12
小诺 1 year ago committed by 俞宝山
parent 3f6e44001a
commit e070bc01bd

@ -19,7 +19,7 @@ export default {
}, },
// 提交${functionName}表单 edit为true时为编辑默认为新增 // 提交${functionName}表单 edit为true时为编辑默认为新增
${classNameFirstLower}SubmitForm(data, edit = false) { ${classNameFirstLower}SubmitForm(data, edit = false) {
return request(edit ? 'add' : 'edit', data) return request(edit ? 'edit' : 'add', data)
}, },
// 删除${functionName} // 删除${functionName}
${classNameFirstLower}Delete(data) { ${classNameFirstLower}Delete(data) {

@ -157,7 +157,7 @@
${classNameFirstLower}Api ${classNameFirstLower}Api
<% for(var i = 0; i < configList.~size; i++) { %> <% for(var i = 0; i < configList.~size; i++) { %>
<% if(configList[i].needTableId) { %> <% if(configList[i].needTableId) { %>
.${classNameFirstLower}SubmitForm(formDataParam, !formDataParam.${configList[i].fieldNameCamelCase}) .${classNameFirstLower}SubmitForm(formDataParam, formDataParam.${configList[i].fieldNameCamelCase})
<% } %> <% } %>
<% } %> <% } %>
.then(() => { .then(() => {

Loading…
Cancel
Save