修改vue代码生成模板

This commit is contained in:
izory 2021-09-22 15:46:06 +08:00
parent 37174398c3
commit 44ab0f2141

View File

@ -107,6 +107,7 @@ export default {
// this.getDicts("sys_normal_disable").then((response) => { // this.getDicts("sys_normal_disable").then((response) => {
// this.statusOptions = response.data; // this.statusOptions = response.data;
// }); // });
{MountedMethod}
}, },
methods: { methods: {
// 查询数据 // 查询数据
@ -166,10 +167,11 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
del{ModelTypeName}(row.{primaryKey}).then((res) => { const ${primaryKey}s = row.${primaryKey} || this.ids;
this.msgSuccess("删除成功"); del{ModelTypeName}(${primaryKey}s).then((res) => {
this.handleQuery(); this.msgSuccess("删除成功");
}); this.handleQuery();
});
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -184,7 +186,6 @@ export default {
}); });
}, },
beforeFileUpload(file) { }, beforeFileUpload(file) { },
//文件上传成功方法
{vueJsMethod} {vueJsMethod}
/** 提交按钮 */ /** 提交按钮 */
submitForm: function () { submitForm: function () {