| | |
| | | size="small" |
| | | @click="detail(row)" |
| | | >详情</Button> |
| | | <Button |
| | | v-if=" row.distributeStatus === 'WAIT'" |
| | | type="info" |
| | | size="small" |
| | | @click="push(row)" |
| | | >发放</Button> |
| | | </div> |
| | | </template> |
| | | </Table> |
| | |
| | | <script> |
| | | import { |
| | | getPage, |
| | | queryExport |
| | | queryExport, |
| | | pushById |
| | | } from '@/api/prize-record.js' |
| | | |
| | | export default { |
| | |
| | | this.init(); |
| | | }, |
| | | methods: { |
| | | push(row){ |
| | | this.loading = true; |
| | | pushById(row.id).then(res =>{ |
| | | this.loading = false; |
| | | if (res.code === 200){ |
| | | this.$Message.success(res.data) |
| | | }else { |
| | | this.$Message.error(res.data) |
| | | } |
| | | }) |
| | | }, |
| | | formatDate(date, format = 'YYYY-MM-DD HH:mm:ss') { |
| | | if (!date) return ''; |
| | | |