| | |
| | | Bt.onClick = function () { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) return this.$error("è¯·éæ©æ°æ®!"); |
| | | const allIds = rows.map(item => item.id); |
| | | if(rows.length>1) return this.$error("åªè½éæ©ä¸æ¡æ°æ®!"); |
| | | // const allIds = rows.map(item => item.id); |
| | | const id=rows[0].id |
| | | |
| | | // è¿éæ·»å ä½ çä¸å¡é»è¾ |
| | | this.http.post("api/YourApi", allIds).then((x) => { |
| | | this.http.post(`/api/CabinOrder/FinishInOrder?key${id}`).then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('æä½æå'); |
| | | this.refresh(); |