| | |
| | | // } |
| | | // } |
| | | // }) |
| | | var DoubleTrayBtn = this.buttons.find(x => x.value == "InitializationElevator"); |
| | | if (DoubleTrayBtn != null) { |
| | | DoubleTrayBtn.onClick = () => { |
| | | this.$confirm('ç¡®å®è¦åå§åæåæºåï¼', 'æä½ç¡®è®¤', { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' // è¦åç±»åï¼æ¾ç¤ºé»è²å¾æ |
| | | }).then(() => { |
| | | this.http.post(`/api/Task/elevator`).then((x) => { |
| | | console.log(x) |
| | | console.log(x.status) |
| | | if (x.status) { |
| | | this.$Message.success('æå.'); |
| | | this.refresh(); |
| | | } else { |
| | | return this.$error(x.message); |
| | | } |
| | | }); |
| | | }).catch(() => { |
| | | // ç¨æ·ç¹å»"åæ¶"åæ§è¡çé»è¾ï¼éå¸¸æ¯æç¤ºåæ¶æä½ï¼ |
| | | this.$message.info('已忶æä½'); |
| | | }) |
| | | } |
| | | } |
| | | |
| | | |
| | | //æ¡æ¶åå§åé
ç½®åï¼ |
| | | let TaskHandCompleteBtn=this.buttons.find(x=>x.value=='TaskHandComplete'); |
| | | if(TaskHandCompleteBtn){ |
| | | TaskHandCompleteBtn.onClick=function(){ |
| | | let TaskHandCompleteBtn = this.buttons.find(x => x.value == 'TaskHandComplete'); |
| | | if (TaskHandCompleteBtn) { |
| | | TaskHandCompleteBtn.onClick = function () { |
| | | let row = this.$refs.table.getSelected() //è·åéä¸çè¡ |
| | | if (row <= 0) { |
| | | //å¦ææ²¡æéä¸è¡ |