diff --git a/src/api/sylive/groups-win/index.js b/src/api/sylive/groups-win/index.js new file mode 100644 index 0000000..178610f --- /dev/null +++ b/src/api/sylive/groups-win/index.js @@ -0,0 +1,43 @@ +import request from '@/utils/request'; + +/** + * 查询订单列表 + * @param params 查询条件 + */ +export async function listGroupsWin(params) { + const res = await request.get('/sylive/groupsWin/', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 导出订单 + * @param params 查询条件 + */ +export async function exportGroupsWin(params) { + const res = await request.get('/sylive/groupsWin/export', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 中奖类型 + * @param params 查询条件 + */ +export async function getGroupsWinType(params) { + const res = await request.get('/sylive/groupsWin/win_type', { + params + }); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/views/sylive/activity/index.vue b/src/views/sylive/activity/index.vue index ac6f37d..e7a9ef3 100644 --- a/src/views/sylive/activity/index.vue +++ b/src/views/sylive/activity/index.vue @@ -63,22 +63,21 @@ - - 订单 - - - 链接 - + dropMore(command, row)"> + + 更多 + + + + + 订单列表 + + 中奖名单 + + 活动链接 + + + dropClick(command, row)"> 修改 @@ -292,6 +291,24 @@ } this.$router.replace(url); }, + /* 打开更多页 */ + dropMore(command, row) { + let url = ''; + if (command === 'order') { + if (row.groups == 1) { + url = '/sylive/groups-order?id=' + row.activityId; + } else { + url = '/sylive/order?id=' + row.activityId; + } + this.$router.replace(url); + } else if (command === 'win') { + url = '/sylive/groups-win?id=' + row.activityId; + this.$router.replace(url); + } else if (command === 'code') { + this.current = row; + this.showCode = true; + } + }, /* 查询机构 */ organizationQuery() { listOrganizationParent({ parentId: 0 }) @@ -313,21 +330,6 @@ reload(where) { this.$refs.table.reload({ page: 1, where: where }); }, - /* 打开二维码弹窗 */ - openCode(row) { - this.current = row; - this.showCode = true; - }, - /* 打开活动订单页 */ - openOrder(activityId, groups) { - let to = ''; - if (groups == 1) { - to = '/sylive/groups-order?id=' + activityId; - } else { - to = '/sylive/order?id=' + activityId; - } - this.$router.replace(to); - }, /* 删除 */ remove(row) { const loading = this.$loading({ lock: true }); diff --git a/src/views/sylive/groups-win/components/gro-win-search.vue b/src/views/sylive/groups-win/components/gro-win-search.vue new file mode 100644 index 0000000..fda94d3 --- /dev/null +++ b/src/views/sylive/groups-win/components/gro-win-search.vue @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + 重置 + + + + + + + diff --git a/src/views/sylive/groups-win/index.vue b/src/views/sylive/groups-win/index.vue new file mode 100644 index 0000000..f5b78cc --- /dev/null +++ b/src/views/sylive/groups-win/index.vue @@ -0,0 +1,242 @@ + + + + + + + + + + + 导出 + + + + + + + +