| | |
| | | this.showEdit = false |
| | | this.showFooter = true |
| | | this.isValidateClick = false |
| | | } else if (this.editConfig.infomation.status === 4) { |
| | | } else if ( |
| | | this.editConfig.title === "查看" && |
| | | (this.editConfig.infomation.status !== 4 || this.editConfig.infomation.status !== "完成") |
| | | ) { |
| | | this.showButton = true |
| | | this.showEdit = false |
| | | this.isDelClick = true |
| | | this.showFooter = false |
| | | this.isValidateClick = true |
| | | } else if (this.editConfig.infomation.status === 4 || this.editConfig.infomation.status === "完成") { |
| | | this.showButton = true |
| | | this.showEdit = false |
| | | this.isDelClick = true |
| | |
| | | this.showFooter = false |
| | | this.isValidateClick = false |
| | | } else { |
| | | // 就绪--- |
| | | this.showButton = true |
| | | this.showEdit = true |
| | | this.showFooter = false |
| | |
| | | this.list[0].status = "active" |
| | | } else { |
| | | this.list.map((item) => { |
| | | if (item.value === this.editConfig.infomation.status) { |
| | | console.log(item, this.editConfig.infomation.status, "打印信息") |
| | | if (item.value === this.editConfig.infomation.status || item.label === this.editConfig.infomation.status) { |
| | | item.status = "active" |
| | | } else { |
| | | item.status = "todo" |
| | |
| | | }, |
| | | // 操作列表 |
| | | setTableForm() { |
| | | if (this.editConfig.title !== "新建") { |
| | | if ( |
| | | this.editConfig.title !== "新建" && |
| | | this.editConfig.infomation.details && |
| | | this.editConfig.infomation.details.length > 0 |
| | | ) { |
| | | const list = this.editConfig.infomation.details.map((item) => { |
| | | return { |
| | | ...item, |