From 4cb91b32d05877eda339f3b040b29d1fbb421707 Mon Sep 17 00:00:00 2001 From: yaosen <741606767@qq.com> Date: Mon, 24 Jun 2024 20:58:23 +0800 Subject: [PATCH] a --- admin/src/router/index.js | 18 +-- admin/src/views/onlines/online.vue | 29 +++-- admin/src/views/order/back.vue | 13 +++ admin/src/views/order/index.vue | 21 ++-- admin/src/views/shortcut/shortcutContent.vue | 4 +- .../app/admin/controller/AdminController.php | 26 ++++- .../app/admin/controller/CityController.php | 14 +++ .../app/admin/controller/OrderController.php | 80 ++++++++++--- service/app/admin/controller/QaController.php | 73 ++++++++++++ .../app/admin/controller/WorkController.php | 109 ++++++++++-------- service/app/command/SpiderMt.php | 14 ++- service/app/model/Admins.php | 1 + service/app/model/Backs.php | 11 ++ service/app/model/Citys.php | 8 ++ service/app/model/Orders.php | 4 + service/app/model/Qas.php | 8 ++ 16 files changed, 340 insertions(+), 93 deletions(-) create mode 100644 service/app/admin/controller/CityController.php create mode 100644 service/app/admin/controller/QaController.php create mode 100644 service/app/model/Citys.php create mode 100644 service/app/model/Qas.php diff --git a/admin/src/router/index.js b/admin/src/router/index.js index e89f0fd1..cb2bc929 100644 --- a/admin/src/router/index.js +++ b/admin/src/router/index.js @@ -101,7 +101,7 @@ export const asyncRoutes = [ title: '客服在线列表', roles: ['admin'] } - }, + }/*, { path: 'shortcut', component: () => import('@/views/shortcut/shortcutContent.vue'), @@ -110,7 +110,7 @@ export const asyncRoutes = [ title: '快捷内容设置', roles: ['admin'] } - }/*, + }, { path: 'teams', component: () => import('@/views/admin/teams'), @@ -132,7 +132,7 @@ export const asyncRoutes = [ meta: { title: '订单管理', icon: 'money', - roles: ['order_index','editor'] + roles: ['order_index', 'editor'] }, children: [ { @@ -141,7 +141,7 @@ export const asyncRoutes = [ name: 'OrderList', meta: { title: '订单列表', - roles: ['order_pub','editor'] + roles: ['order_pub', 'editor'] } }, /* { @@ -159,7 +159,7 @@ export const asyncRoutes = [ name: 'OrderBack', meta: { title: '流转订单', - roles: ['order_back','editor'] + roles: ['order_back', 'editor'] } } ] @@ -173,7 +173,7 @@ export const asyncRoutes = [ meta: { title: '日志记录', icon: 'nested', - roles: ['follow_index','log_index','editor'] + roles: ['follow_index', 'log_index', 'editor'] }, children: [ { @@ -182,7 +182,7 @@ export const asyncRoutes = [ name: 'Follow', meta: { title: '跟进记录', - roles: ['follow_index','editor'] + roles: ['follow_index', 'editor'] } }, { @@ -218,7 +218,7 @@ export const asyncRoutes = [ roles: ['data_index'] } }, - { + /* { path: 'online', component: () => import('@/views/data/online'), name: 'Index', @@ -235,7 +235,7 @@ export const asyncRoutes = [ title: '主播概况', roles: ['data_anchor'] } - }, + },*/ { path: 'sale', component: () => import('@/views/data/sale'), diff --git a/admin/src/views/onlines/online.vue b/admin/src/views/onlines/online.vue index bc3e4a15..401b0e20 100644 --- a/admin/src/views/onlines/online.vue +++ b/admin/src/views/onlines/online.vue @@ -1,8 +1,8 @@ + @@ -158,6 +162,15 @@ export default { this.getList() }).catch(err => { + }) + }, + onCancel(item) { + this.$axios.post('/admin/order/backcancel', { id: item.id }).then(res => { + this.dialogVisible = false + this.item = {} + this.getList() + }).catch(err => { + }) } } diff --git a/admin/src/views/order/index.vue b/admin/src/views/order/index.vue index d56484f3..078e1255 100644 --- a/admin/src/views/order/index.vue +++ b/admin/src/views/order/index.vue @@ -74,9 +74,9 @@ -