| | |
| | | onInit() { |
| | | // this.$Notice.success({ title: this.detailOptions.cnName + ',æ¥è¯¢ç»æ', desc: 'è¿åç对象ï¼' + JSON.stringify(data) }); |
| | | |
| | | var forceCompleteTaskButton = this.buttons.find((x) => x.value == "TaskCompleted"); |
| | | if (forceCompleteTaskButton) { |
| | | forceCompleteTaskButton.onClick = () => { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0 || rows.length > 1) return this.$error("è¯·éæ©ä¸è¡æ°æ®"); |
| | | this.http |
| | | .post("/api/Task/ForceCompleteTask?taskNum=" + rows[0].TaskNum, {}, true) |
| | | .then((x) => { |
| | | if (!x.status) return this.$message.error(x.message); |
| | | this.options = x.data; |
| | | console.log(this.options); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | var previousButton = this.buttons.find((x) => x.value == "Previous"); |
| | | if (previousButton) previousButton.hidden = true; |
| | | var nextButton = this.buttons.find((x) => x.value == "Next"); |