Commit d17b5900 authored by renjintao's avatar renjintao

task

parent f39a37ab
...@@ -42,7 +42,8 @@ export default { ...@@ -42,7 +42,8 @@ export default {
disable: { disable: {
type: Boolean, type: Boolean,
default: false default: false
} },
}, },
data() { data() {
return { return {
......
...@@ -234,8 +234,8 @@ export default { ...@@ -234,8 +234,8 @@ export default {
icon: "ios-play", icon: "ios-play",
type: "icon", type: "icon",
title: params.row.status == 0 ? "开始" : params.row.status == 2 ? "继续" : '', title: params.row.status == 0 ? "开始" : params.row.status == 2 ? "继续" : '',
color: "#19be6b", // color: "#19be6b",
disable: (params.row.status == 0 || params.row.status == 2) ? false : true //disable: (params.row.status == 0 || params.row.status == 2) ? false : true
}, },
on: { on: {
click: () => this.updatepart(params.row.id, 1) click: () => this.updatepart(params.row.id, 1)
...@@ -246,8 +246,8 @@ export default { ...@@ -246,8 +246,8 @@ export default {
icon: "ios-pause", icon: "ios-pause",
type: "icon", type: "icon",
title: "暂停", title: "暂停",
color: "#19be6b", //color: "#19be6b",
disable: params.row.status == 1 ? false : true //disable: params.row.status == 1 ? false : true
}, },
on: { on: {
click: () => this.updatepart(params.row.id, 2) click: () => this.updatepart(params.row.id, 2)
...@@ -258,8 +258,8 @@ export default { ...@@ -258,8 +258,8 @@ export default {
icon: "md-checkbox-outline", icon: "md-checkbox-outline",
type: "icon", type: "icon",
title: "完成", title: "完成",
color: "#19be6b", //color: "#19be6b",
disable: (params.row.status != 0 && params.row.status != 3) ? false : true //disable: (params.row.status != 0 && params.row.status != 3) ? false : true
}, },
on: { on: {
click: () => this.updatepart(params.row.id, 3) click: () => this.updatepart(params.row.id, 3)
...@@ -270,8 +270,8 @@ export default { ...@@ -270,8 +270,8 @@ export default {
icon: "md-add", icon: "md-add",
type: "icon", type: "icon",
title: "新增记录", title: "新增记录",
color: "#19be6b", //color: "#19be6b",
disable: (params.row.status != 3 && params.row.status != 4) ? false : true // disable: (params.row.status != 3 && params.row.status != 4) ? false : true
}, },
on: { on: {
click: () => this.addRecord(params.row.id) click: () => this.addRecord(params.row.id)
...@@ -282,8 +282,8 @@ export default { ...@@ -282,8 +282,8 @@ export default {
icon: "ios-create-outline", icon: "ios-create-outline",
type: "icon", type: "icon",
title: "修改", title: "修改",
color: "#2b85e4", // color: "#2b85e4",
disable: (params.row.status == 0 || params.row.status == 2) ? false : true //disable: (params.row.status == 0 || params.row.status == 2) ? false : true
}, },
on: { on: {
click: () => this.edit(params.row.id) click: () => this.edit(params.row.id)
...@@ -295,8 +295,8 @@ export default { ...@@ -295,8 +295,8 @@ export default {
type: "icon", type: "icon",
title: "删除", title: "删除",
oprate: 'delete', oprate: 'delete',
color: "#ed4014", //color: "#ed4014",
disable: (params.row.status == 0 || params.row.status == 3) ? false : true // disable: (params.row.status == 0 || params.row.status == 3) ? false : true
}, },
on: { on: {
click: () => this.remove(params.row.id) click: () => this.remove(params.row.id)
......
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