| | |
| | | v-for="(item, idx) in list" |
| | | :key="'list_' + idx" |
| | | @itemclick="details" |
| | | @receiveOrder="updateLink" |
| | | :data="item" |
| | | ></list-card> |
| | | <el-empty :image-size="200" v-if="!list.length"></el-empty> |
| | |
| | | import ListCard from "./components/listCard.vue"; |
| | | |
| | | import { |
| | | getList |
| | | getList, |
| | | updateLink |
| | | } from './js/api'; |
| | | |
| | | export default { |
| | |
| | | }).catch((err) => { |
| | | console.error(err); |
| | | }); |
| | | }, |
| | | |
| | | // 接单 |
| | | updateLink (o) { |
| | | let param = { |
| | | dealType: 0, |
| | | // TODO 当前用户的Id |
| | | dealUserId: 1023, |
| | | id: o.linkList[0].id |
| | | }; |
| | | updateLink(param).then((res) => { |
| | | res = res.data; |
| | | this.$message({ |
| | | type: res.data ? 'success' : 'warning', |
| | | message: res.msg |
| | | }); |
| | | this.getList(); |
| | | }); |
| | | } |
| | | |
| | | }, |