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 @@ -