mirror of https://gitee.com/xiaonuobase/snowy
parent
3f6e44001a
commit
e070bc01bd
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue