|
@@ -80,7 +80,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { create, edit, list } from "@/api/device/function";
|
|
|
-import { callBack } from "@/utils/DialogUtil";
|
|
|
+import { dialogCallBack } from "@/utils/DialogUtil";
|
|
|
export default {
|
|
|
dicts: ["sys_normal_disable"],
|
|
|
data() {
|
|
@@ -188,7 +188,7 @@ export default {
|
|
|
// 删除
|
|
|
getDelete(row) {
|
|
|
var that = this;
|
|
|
- callBack(that, function () {
|
|
|
+ dialogCallBack(that, function () {
|
|
|
that
|
|
|
.$confirm(`是否删除${row.name}?`, "提示", {
|
|
|
confirmButtonText: "确定",
|
|
@@ -206,27 +206,6 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
-
|
|
|
- // this.$alert(`删除后数据不可恢复,请谨慎进行该操作!`, "温馨提示", {
|
|
|
- // confirmButtonText: "确定",
|
|
|
- // }).then(() => {
|
|
|
- // setTimeout(() => {
|
|
|
- // this.$confirm(`是否删除${row.name}?`, "提示", {
|
|
|
- // confirmButtonText: "确定",
|
|
|
- // cancelButtonText: "取消",
|
|
|
- // type: "warning",
|
|
|
- // }).then(() => {
|
|
|
- // this.form = row;
|
|
|
- // this.form.isDelete = 1;
|
|
|
- // edit(this.form).then((res) => {
|
|
|
- // if (res.code === 0) {
|
|
|
- // this.$message.success("已删除!");
|
|
|
- // this.getList();
|
|
|
- // }
|
|
|
- // });
|
|
|
- // });
|
|
|
- // }, 300);
|
|
|
- // });
|
|
|
},
|
|
|
},
|
|
|
};
|