From 21ff3718bd5268441f44921ae674da5fcf9bf970 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Wed, 11 Dec 2024 16:28:31 +0800 Subject: [PATCH] sc --- src/api/system/wechat/index.js | 23 ++++ src/router/modules/remaining.ts | 42 ++++---- src/views/Basic/WxRobot/Setting.vue | 157 +++++++++++++++------------- src/views/Kpi/Score/index.vue | 3 +- 4 files changed, 133 insertions(+), 92 deletions(-) create mode 100644 src/api/system/wechat/index.js diff --git a/src/api/system/wechat/index.js b/src/api/system/wechat/index.js new file mode 100644 index 0000000..eb4c01d --- /dev/null +++ b/src/api/system/wechat/index.js @@ -0,0 +1,23 @@ +import request from '@/config/axios' + +// 更新 +export const updateWechatConfig = (data) => { + return request.post({ url: '/admin-api/system/wx-robot-message-setting/save', data }) +} + +// 更新发送时间 +export const updateWechatSendTime = (data) => { + return request.put({ url: '/admin-api/system/wx-robot-message-setting/update-send-time', data }) +} +// 更新微信群 +export const updateWechatGroup = (data) => { + return request.put({ url: '/admin-api/system/wx-robot-message-setting/update-wx-group', data }) +} + +// 获得列表 +export const getWechatConfigList = (params) => { + return request.get({ + url: '/admin-api/system/wx-robot-message-setting/list', + params + }) +} diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 348d8ae..fdd7af5 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -129,27 +129,27 @@ const remainingRouter: AppRouteRecordRaw[] = [ // } // ] // }, - { - path: '/Basic', - component: Layout, - name: 'Basic', - meta: { title: '菜单管理' }, - redirect: '/Basic/menu', - children: [ - { - path: 'menu', - component: () => import('@/views/Basic/Menu/index.vue'), - name: 'Menu', - meta: { - canTo: true, - hidden: true, - noTagsView: false, - icon: 'ep:user', - title: '菜单管理' - } - } - ] - }, + // { + // path: '/Basic', + // component: Layout, + // name: 'Basic', + // meta: { title: '菜单管理' }, + // redirect: '/Basic/menu', + // children: [ + // { + // path: 'menu', + // component: () => import('@/views/Basic/Menu/index.vue'), + // name: 'Menu', + // meta: { + // canTo: true, + // hidden: true, + // noTagsView: false, + // icon: 'ep:user', + // title: '菜单管理' + // } + // } + // ] + // }, { path: '/login', component: () => import('@/views/Login/Login.vue'), diff --git a/src/views/Basic/WxRobot/Setting.vue b/src/views/Basic/WxRobot/Setting.vue index 6f0fdf2..d1d3f1e 100644 --- a/src/views/Basic/WxRobot/Setting.vue +++ b/src/views/Basic/WxRobot/Setting.vue @@ -5,15 +5,21 @@ @@ -23,11 +29,17 @@