| | |
| | | this.$success("æå"); |
| | | }) |
| | | }, |
| | | async boundOrder(rows) { |
| | | this.boxOptions.title = 'æ§è¡è®¢å'; |
| | | this.currentAction = this.const.EDIT; |
| | | if (rows) { |
| | | if (!(rows instanceof Array)) { |
| | | rows = [rows]; |
| | | } |
| | | } else { |
| | | rows = this.$refs.table.getSelected(); |
| | | } |
| | | if (rows.length == 0) { |
| | | return this.$error('è¯·éæ©è¦ç¼è¾çè¡!'); |
| | | } |
| | | if (rows.length != 1) { |
| | | return this.$error('åªè½éæ©ä¸è¡æ°æ®è¿è¡ç¼è¾!'); |
| | | } |
| | | //è®°å½å½åç¼è¾çè¡ |
| | | this.currentRow = rows[0]; |
| | | let w = this.currentRow.id; |
| | | axios |
| | | .post("api/Task/ExecuteOrder/?k=" + w, { |
| | | rows: 100 |
| | | }) |
| | | .then(x => { |
| | | if(x==null||x==""){ |
| | | this.$success("æå"); |
| | | }else{ |
| | | this.$message(x.data); |
| | | console.log(x.data+"///"); |
| | | } |
| | | }); |
| | | }, |
| | | async add() { |
| | | this.boxOptions.title = this.table.cnName + '(æ°å»º)'; |
| | | //æ°å»º |