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