From 2c84b6bc43e9380e03b2498f5f4946b138610935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=B5=E5=AE=AA=E7=91=9E?= <9198107+min-xianrui@user.noreply.gitee.com> Date: Sat, 16 Nov 2024 20:22:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B4=BB=E5=8A=A8=E9=A2=84?= =?UTF-8?q?=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/activity.js | 62 +++++ src/router/modules/marketing.js | 14 + src/views/dashboard/components/gridMenu.vue | 18 +- .../activityList/activity-add-and-update.vue | 233 +++++++++++++++++ .../marketing/activity/activityList/index.vue | 246 ++++++++++++++++++ src/views/store/index.vue | 16 +- src/views/user/list/edit.vue | 10 +- 7 files changed, 581 insertions(+), 18 deletions(-) create mode 100644 src/api/activity.js create mode 100644 src/views/marketing/activity/activityList/activity-add-and-update.vue create mode 100644 src/views/marketing/activity/activityList/index.vue diff --git a/src/api/activity.js b/src/api/activity.js new file mode 100644 index 0000000..bb395c3 --- /dev/null +++ b/src/api/activity.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' +/** + * 新增EbActivity + * @param pram + */ +export function activityCreateApi(data) { + return request({ + url: 'admin/activity/save', + method: 'POST', + data + }) +} + +/** + * ebactivity更新 + * @param pram + */ +export function ebactivityUpdateApi(data) { + return request({ + url: `admin/activity/update?id=${data.id}`, + method: 'POST', + data + }) +} + +/** + * ebactivity详情 + * @param pram + */ +export function ebactivityDetailInfoApi(data) { + return request({ + url: `admin/activity/info`, + method: 'GET', + params:data + }) +} + +/** + * ebactivity删除 + * @param data + */ +export function activityDeleteApi(data) { + return request({ + url: `/admin/activity/delete`, + method: 'get', + params:data + }) +} + + +/** + * ebactivity列表 + * @param pram + */ +export function activityListApi(params) { + return request({ + url: 'admin/activity/list', + method: 'GET', + params + }) +} + diff --git a/src/router/modules/marketing.js b/src/router/modules/marketing.js index c3f401f..d1bed42 100644 --- a/src/router/modules/marketing.js +++ b/src/router/modules/marketing.js @@ -172,6 +172,20 @@ const marketingRouter = { ] }, + { + path: 'activity', + component: () => import('@/views/marketing/activity/activityList/index'), + name: 'activity', + meta: { title: '活动', icon: '' }, + children: [ + { + path: 'activityList', + component: () => import('@/views/marketing/activity/activityList/index'), + name: 'activityList', + meta: { title: '活动管理', icon: '' } + }, + ] + }, ] } diff --git a/src/views/dashboard/components/gridMenu.vue b/src/views/dashboard/components/gridMenu.vue index f62706e..4f1c8f1 100644 --- a/src/views/dashboard/components/gridMenu.vue +++ b/src/views/dashboard/components/gridMenu.vue @@ -33,14 +33,14 @@ - - - - - 短信配置 - - - + + + + + + + + @@ -69,7 +69,7 @@ diff --git a/src/views/marketing/activity/activityList/index.vue b/src/views/marketing/activity/activityList/index.vue new file mode 100644 index 0000000..734e0bb --- /dev/null +++ b/src/views/marketing/activity/activityList/index.vue @@ -0,0 +1,246 @@ + + + + + + + + 查询 + 新增活动 + + + + + + + + + + + + + + + + + 活动预约 + 采茶预约 + 其他预约 + 类型错误 + + + + + + + + + + + + + + + + + + + + + + + + + {{scope.row.beginTime}} - {{scope.row.endTime}} + + + + + + + + + + + + + + + + + + + + + + 修改 + 预约记录 + 删除 + + + + + + + + + + + + + + diff --git a/src/views/store/index.vue b/src/views/store/index.vue index b9b3a30..fa270e8 100644 --- a/src/views/store/index.vue +++ b/src/views/store/index.vue @@ -20,8 +20,8 @@ 添加商品 - 商品采集 - 导出 + + - - + - diff --git a/src/views/user/list/edit.vue b/src/views/user/list/edit.vue index 4e263da..e7a106f 100644 --- a/src/views/user/list/edit.vue +++ b/src/views/user/list/edit.vue @@ -25,6 +25,14 @@ 关闭 + + + + 开启 + 关闭 + + + 开启 @@ -89,7 +97,7 @@ id : res.uid, mark: res.mark, // phone: res.phone, - // realName: res.realName, + isProsecutor: res.isProsecutor, status: res.status, addres: res.addres, groupId: Number(res.groupId) || '',
短信配置