Commit ea1b0bdb authored by renjintao's avatar renjintao

op task

parent 43dd63ed
......@@ -81,17 +81,18 @@ export default {
},
methods: {
handler() {
if (this.oprate == "delete" || this.oprate == "remove") {
this.$Modal.confirm({
title: this.title,
content: "<p>" + this.msg + "</p>",
onOk: () => {
this.$emit("click", event);
}
});
} else {
this.$emit("click", event);
if (this.disable == 0) {
if (this.oprate == "delete" || this.oprate == "remove") {
this.$Modal.confirm({
title: this.title,
content: "<p>" + this.msg + "</p>",
onOk: () => {
this.$emit("click", event);
}
});
} else {
this.$emit("click", event);
}
}
}
},
......
......@@ -275,6 +275,7 @@ export default {
type: "icon",
oprate: "edit",
title: params.row.status == 0 ? "开始" : params.row.status == 2 ? "继续" : '',
disable: params.row.status
//disable: (params.row.status == 0 || params.row.status == 2) ? false : true
},
on: {
......@@ -310,6 +311,7 @@ export default {
type: "icon",
oprate: "add",
title: "新增记录",
disable: params.row.status == 1 ? 0 : 1
// disable: (params.row.status != 3 && params.row.status != 4) ? false : true
},
on: {
......@@ -322,6 +324,7 @@ export default {
type: "icon",
oprate: "edit",
title: "修改",
disable: params.row.status
//disable: (params.row.status == 0 || params.row.status == 2) ? false : true
},
on: {
......@@ -334,6 +337,7 @@ export default {
type: "icon",
title: "删除",
oprate: 'delete',
disable: params.row.status
// disable: (params.row.status == 0 || params.row.status == 3) ? false : true
},
on: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment