|
@@ -684,18 +684,26 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
dCET(id) {
|
|
|
- let params = {
|
|
|
- id: id,
|
|
|
- };
|
|
|
- this.ajax
|
|
|
- .get(this.$store.state.api + "deleteCourseET", params)
|
|
|
- .then((res) => {
|
|
|
- this.$message.success("删除成功!");
|
|
|
- this.getSource();
|
|
|
+ this.$confirm("确定删除此模板吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let params = {
|
|
|
+ id: id,
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "deleteCourseET", params)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message.success("删除成功!");
|
|
|
+ this.getSource();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
})
|
|
|
- .catch((err) => {
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
openAddDia(fid) {
|
|
|
this.addTypefId = fid;
|