update 同步ruoyi适配改动

This commit is contained in:
疯狂的狮子li
2021-09-23 19:04:09 +08:00
parent 03b31652a2
commit 071c4c1412
4 changed files with 24 additions and 46 deletions

View File

@ -324,7 +324,7 @@ export default {
this.buttonLoading = true;
if (this.form.id != null) {
updateDemo(this.form).then(response => {
this.msgSuccess("修改成功");
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
}).finally(() => {
@ -332,7 +332,7 @@ export default {
});
} else {
addDemo(this.form).then(response => {
this.msgSuccess("新增成功");
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
}).finally(() => {
@ -345,18 +345,16 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除测试单表编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.$modal.confirm('是否确认删除测试单表编号为"' + ids + '"的数据项').then(() => {
this.loading = true;
return delDemo(ids);
}).then(() => {
this.loading = false;
this.getList();
this.msgSuccess("删除成功");
})
this.$modal.msgSuccess("删除成功");
}).finally(() => {
this.loading = false;
});
},
/** 导出按钮操作 */
handleExport() {

View File

@ -255,7 +255,7 @@ export default {
this.buttonLoading = true;
if (this.form.id != null) {
updateTree(this.form).then(response => {
this.msgSuccess("修改成功");
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
}).finally(() => {
@ -263,7 +263,7 @@ export default {
});
} else {
addTree(this.form).then(response => {
this.msgSuccess("新增成功");
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
}).finally(() => {
@ -275,18 +275,16 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
this.$confirm('是否确认删除测试树表编号为"' + row.id + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.$modal.confirm('是否确认删除测试树表编号为"' + row.id + '"的数据项').then(() => {
this.loading = true;
return delTree(row.id);
}).then(() => {
this.loading = false;
this.getList();
this.msgSuccess("删除成功");
})
this.$modal.msgSuccess("删除成功");
}).finally(() => {
this.loading = false;
});
}
}
};