bug修复:体检管理->体检名单:删除添加提示语是否删除
This commit is contained in:
+16
-9
@@ -79,7 +79,7 @@ layout("/layouts/platform.html"){
|
|||||||
|
|
||||||
<el-table-column align="center" header-align="center" type="index"
|
<el-table-column align="center" header-align="center" type="index"
|
||||||
:index="indexMethod" label="序号"
|
:index="indexMethod" label="序号"
|
||||||
<!-- width="80px"></el-table-column>-->
|
width="80px"></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
@@ -323,14 +323,21 @@ layout("/layouts/platform.html"){
|
|||||||
this.importLoading = false
|
this.importLoading = false
|
||||||
this.doSearch()
|
this.doSearch()
|
||||||
},
|
},
|
||||||
async doDelete(id) {
|
doDelete(id) {
|
||||||
const resp = await this.$axios.post(loc() + '/doDelete', {id});
|
this.$confirm("您确定要删除吗?", "提示", {
|
||||||
if (resp.code === 0) {
|
confirmButtonText: "确定",
|
||||||
this.notifySuccess(resp.msg);
|
cancelButtonText: "取消",
|
||||||
this.doSearch();
|
type: "info"
|
||||||
} else {
|
}).then(async () => {
|
||||||
this.notifyError(resp.msg);
|
const resp = await this.$axios.post(loc() + '/doDelete', {id});
|
||||||
}
|
if (resp.code === 0) {
|
||||||
|
this.notifySuccess(resp.msg);
|
||||||
|
this.doSearch();
|
||||||
|
} else {
|
||||||
|
this.notifyError(resp.msg);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user