mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
v3.8.0 新增通用方法简化模态/缓存使用
This commit is contained in:
parent
38ac5270d6
commit
b72aa7b268
@ -347,7 +347,7 @@ export default {
|
|||||||
// 修改的提交
|
// 修改的提交
|
||||||
if (this.form.${primaryColumn.javaField} != null) {
|
if (this.form.${primaryColumn.javaField} != null) {
|
||||||
update${simpleClassName}(this.form).then(response => {
|
update${simpleClassName}(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.#[[$modal]]#.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
@ -355,7 +355,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// 添加的提交
|
// 添加的提交
|
||||||
create${simpleClassName}(this.form).then(response => {
|
create${simpleClassName}(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.#[[$modal]]#.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
@ -364,11 +364,11 @@ export default {
|
|||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const ${primaryColumn.javaField} = row.${primaryColumn.javaField};
|
const ${primaryColumn.javaField} = row.${primaryColumn.javaField};
|
||||||
this.$model.confirm('是否确认删除${table.classComment}编号为"' + ${primaryColumn.javaField} + '"的数据项?').then(function() {
|
this.#[[$modal]]#.confirm('是否确认删除${table.classComment}编号为"' + ${primaryColumn.javaField} + '"的数据项?').then(function() {
|
||||||
return delete${simpleClassName}(${primaryColumn.javaField});
|
return delete${simpleClassName}(${primaryColumn.javaField});
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.#[[$modal]]#.msgSuccess("删除成功");
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
@ -386,7 +386,7 @@ export default {
|
|||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
// 执行导出
|
// 执行导出
|
||||||
this.$model.confirm('是否确认导出所有${table.classComment}数据项?').then(() => {
|
this.#[[$modal]]#.confirm('是否确认导出所有${table.classComment}数据项?').then(() => {
|
||||||
this.exportLoading = true;
|
this.exportLoading = true;
|
||||||
return export${simpleClassName}Excel(params);
|
return export${simpleClassName}Excel(params);
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
|
Loading…
Reference in New Issue
Block a user