diff --git a/index.html b/index.html index df466cc..5037961 100644 --- a/index.html +++ b/index.html @@ -1,87 +1,89 @@ - + + + + + + + + - - - - - - + +
+
+
+
正在加载资源
+
初次加载需要较长时间 请耐心等待
+
+ -
- - - - - \ No newline at end of file + 100% { + transform: rotate(360deg); + } + } + + + + + + diff --git a/package-lock.json b/package-lock.json index dfeedd5..48d9bd0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "@ant-design/colors": "^7.0.0", "@ant-design/icons-vue": "^6.1.0", "@icon-park/vue-next": "^1.4.2", - "@jiaminghi/data-view": "^2.10.0", "@tinymce/tinymce-vue": "^5.1.0", "ant-design-vue": "^4.0.1", "axios": "^1.4.0", @@ -905,62 +904,6 @@ "url": "https://github.com/sponsors/kazupon" } }, - "node_modules/@jiaminghi/bezier-curve": { - "version": "0.0.9", - "resolved": "https://registry.npmmirror.com/@jiaminghi/bezier-curve/-/bezier-curve-0.0.9.tgz", - "integrity": "sha512-u9xJPOEl6Dri2E9FfmJoGxYQY7vYJkURNX04Vj64tdi535tPrpkuf9Sm0lNr3QTKdHQh0DdNRsaa62FLQNQEEw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.5.5" - } - }, - "node_modules/@jiaminghi/c-render": { - "version": "0.4.3", - "resolved": "https://registry.npmmirror.com/@jiaminghi/c-render/-/c-render-0.4.3.tgz", - "integrity": "sha512-FJfzj5hGj7MLqqqI2D7vEzHKbQ1Ynnn7PJKgzsjXaZpJzTqs2Yw5OSeZnm6l7Qj7jyPAP53lFvEQNH4o4j6s+Q==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.5.5", - "@jiaminghi/bezier-curve": "*", - "@jiaminghi/color": "*", - "@jiaminghi/transition": "*" - } - }, - "node_modules/@jiaminghi/charts": { - "version": "0.2.18", - "resolved": "https://registry.npmmirror.com/@jiaminghi/charts/-/charts-0.2.18.tgz", - "integrity": "sha512-K+HXaOOeWG9OOY1VG6M4mBreeeIAPhb9X+khG651AbnwEwL6G2UtcAQ8GWCq6GzhczcLwwhIhuaHqRygwHC0sA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.5.5", - "@jiaminghi/c-render": "^0.4.3" - } - }, - "node_modules/@jiaminghi/color": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/@jiaminghi/color/-/color-1.1.3.tgz", - "integrity": "sha512-ZY3hdorgODk4OSTbxyXBPxAxHPIVf9rPlKJyK1C1db46a50J0reFKpAvfZG8zMG3lvM60IR7Qawgcu4ZDO3+Hg==", - "license": "MIT" - }, - "node_modules/@jiaminghi/data-view": { - "version": "2.10.0", - "resolved": "https://registry.npmmirror.com/@jiaminghi/data-view/-/data-view-2.10.0.tgz", - "integrity": "sha512-Cud2MTiMcqc5k2KWabR/svuVQmXHANqURo+yj40370/LdI/gyUJ6LG203hWXEnT1nMCeiv/SLVmxv3PXLScCeA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.5.5", - "@jiaminghi/charts": "*" - } - }, - "node_modules/@jiaminghi/transition": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/@jiaminghi/transition/-/transition-1.1.11.tgz", - "integrity": "sha512-owBggipoHMikDHHDW5Gc7RZYlVuvxHADiU4bxfjBVkHDAmmck+fCkm46n2JzC3j33hWvP9nSCAeh37t6stgWeg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.5.5" - } - }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", @@ -5614,56 +5557,6 @@ "resolved": "https://registry.npmmirror.com/@intlify/shared/-/shared-9.14.4.tgz", "integrity": "sha512-P9zv6i1WvMc9qDBWvIgKkymjY2ptIiQ065PjDv7z7fDqH3J/HBRBN5IoiR46r/ujRcU7hCuSIZWvCAFCyuOYZA==" }, - "@jiaminghi/bezier-curve": { - "version": "0.0.9", - "resolved": "https://registry.npmmirror.com/@jiaminghi/bezier-curve/-/bezier-curve-0.0.9.tgz", - "integrity": "sha512-u9xJPOEl6Dri2E9FfmJoGxYQY7vYJkURNX04Vj64tdi535tPrpkuf9Sm0lNr3QTKdHQh0DdNRsaa62FLQNQEEw==", - "requires": { - "@babel/runtime": "^7.5.5" - } - }, - "@jiaminghi/c-render": { - "version": "0.4.3", - "resolved": "https://registry.npmmirror.com/@jiaminghi/c-render/-/c-render-0.4.3.tgz", - "integrity": "sha512-FJfzj5hGj7MLqqqI2D7vEzHKbQ1Ynnn7PJKgzsjXaZpJzTqs2Yw5OSeZnm6l7Qj7jyPAP53lFvEQNH4o4j6s+Q==", - "requires": { - "@babel/runtime": "^7.5.5", - "@jiaminghi/bezier-curve": "*", - "@jiaminghi/color": "*", - "@jiaminghi/transition": "*" - } - }, - "@jiaminghi/charts": { - "version": "0.2.18", - "resolved": "https://registry.npmmirror.com/@jiaminghi/charts/-/charts-0.2.18.tgz", - "integrity": "sha512-K+HXaOOeWG9OOY1VG6M4mBreeeIAPhb9X+khG651AbnwEwL6G2UtcAQ8GWCq6GzhczcLwwhIhuaHqRygwHC0sA==", - "requires": { - "@babel/runtime": "^7.5.5", - "@jiaminghi/c-render": "^0.4.3" - } - }, - "@jiaminghi/color": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/@jiaminghi/color/-/color-1.1.3.tgz", - "integrity": "sha512-ZY3hdorgODk4OSTbxyXBPxAxHPIVf9rPlKJyK1C1db46a50J0reFKpAvfZG8zMG3lvM60IR7Qawgcu4ZDO3+Hg==" - }, - "@jiaminghi/data-view": { - "version": "2.10.0", - "resolved": "https://registry.npmmirror.com/@jiaminghi/data-view/-/data-view-2.10.0.tgz", - "integrity": "sha512-Cud2MTiMcqc5k2KWabR/svuVQmXHANqURo+yj40370/LdI/gyUJ6LG203hWXEnT1nMCeiv/SLVmxv3PXLScCeA==", - "requires": { - "@babel/runtime": "^7.5.5", - "@jiaminghi/charts": "*" - } - }, - "@jiaminghi/transition": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/@jiaminghi/transition/-/transition-1.1.11.tgz", - "integrity": "sha512-owBggipoHMikDHHDW5Gc7RZYlVuvxHADiU4bxfjBVkHDAmmck+fCkm46n2JzC3j33hWvP9nSCAeh37t6stgWeg==", - "requires": { - "@babel/runtime": "^7.5.5" - } - }, "@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", diff --git a/package.json b/package.json index 793cdc7..2d59900 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "@ant-design/colors": "^7.0.0", "@ant-design/icons-vue": "^6.1.0", "@icon-park/vue-next": "^1.4.2", - "@jiaminghi/data-view": "^2.10.0", "@tinymce/tinymce-vue": "^5.1.0", "ant-design-vue": "^4.0.1", "axios": "^1.4.0", diff --git a/src/App.vue b/src/App.vue index b9a25d5..72612d1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,4 +30,26 @@ const theme = ref({ }) - + diff --git a/src/apis/modules/serverObj.js b/src/apis/modules/serverObj.js index 254a1bd..ff543e5 100644 --- a/src/apis/modules/serverObj.js +++ b/src/apis/modules/serverObj.js @@ -17,4 +17,7 @@ export const delItem = (id) => request.basic.delete(`/api/v1/customers/${id}`) export const getCount=(params)=>request.basic.get('/api/v1/customers/count',params) //创建工单 -export const createOrderItem=(params)=> request.basic.post('/api/v1/orders', params) \ No newline at end of file +export const createOrderItem=(params)=> request.basic.post('/api/v1/orders', params) + +//转入转出 +export const inOutLogs=(params)=>request.basic.post('/api/v1/in-out-logs',params) \ No newline at end of file diff --git a/src/assets/marker.png b/src/assets/marker.png new file mode 100644 index 0000000..da41963 Binary files /dev/null and b/src/assets/marker.png differ diff --git a/src/components/JsonMap/index.vue b/src/components/JsonMap/index.vue new file mode 100644 index 0000000..d244511 --- /dev/null +++ b/src/components/JsonMap/index.vue @@ -0,0 +1,147 @@ + + + + + \ No newline at end of file diff --git a/src/components/MapWithMarkers/index.vue b/src/components/MapWithMarkers/index.vue new file mode 100644 index 0000000..0569b5c --- /dev/null +++ b/src/components/MapWithMarkers/index.vue @@ -0,0 +1,119 @@ + + + + + \ No newline at end of file diff --git a/src/components/ServiceStation/index.vue b/src/components/ServiceStation/index.vue new file mode 100644 index 0000000..1924ae3 --- /dev/null +++ b/src/components/ServiceStation/index.vue @@ -0,0 +1,50 @@ + + + \ No newline at end of file diff --git a/src/layouts/components/BasicHeader.vue b/src/layouts/components/BasicHeader.vue index 10c5150..8fbdfed 100644 --- a/src/layouts/components/BasicHeader.vue +++ b/src/layouts/components/BasicHeader.vue @@ -47,9 +47,9 @@ {{ $t('component.RightContent.profile') }} --> - + - 返回平台 + 返回平台 @@ -68,7 +68,7 @@ import { Modal } from 'ant-design-vue' import { storeToRefs } from 'pinia' import { computed, useSlots, ref } from 'vue' import { useRouter } from 'vue-router' -import { LoginOutlined, SettingOutlined, EditOutlined, TranslationOutlined, BarChartOutlined,LeftOutlined } from '@ant-design/icons-vue' +import { LoginOutlined, SettingOutlined, EditOutlined, TranslationOutlined, BarChartOutlined, LeftOutlined } from '@ant-design/icons-vue' import { useAppStore, useUserStore } from '@/store' import ActionButton from './ActionButton.vue' import { theme as antTheme } from 'ant-design-vue' @@ -157,9 +157,11 @@ function handleLogout() { */ function handleOpen() { - const multiTab = useMultiTab() - multiTab.$reset() - router.replace({path:'/platForm'}) + storage.local.removeItem('platform') + storage.local.removeItem('stationId') + const multiTab = useMultiTab() + multiTab.$reset() + router.replace({ path: '/platForm' }) } /** diff --git a/src/locales/lang/zh-CN/menu.js b/src/locales/lang/zh-CN/menu.js index d495b43..c4f3d1f 100644 --- a/src/locales/lang/zh-CN/menu.js +++ b/src/locales/lang/zh-CN/menu.js @@ -1,3 +1,5 @@ +import callBaseSet from "../../../router/routes/callBaseSet"; + export default { welcome: '欢迎', home: '首页', @@ -63,5 +65,16 @@ export default { serverProjectManage:'服务项目管理', serviceStaffyuying:'服务人员', workorderYunying:'工单管理', - waitWorkOrder:'待派单' + waitWorkOrder:'待派单', + callServerObj:'服务对象管理', + callBaseSet:'基础配置', + callType:'呼叫类型', + trafficMgt:'话务管理', + callLog:'通话记录', + myCallLog:'我的通话记录', + missedCalls:'未接来电', + quality:'质检管理', + qualityLog:'质检记录', + operatorMgt:'话务员管理', + operator:'话务员列表', } diff --git a/src/main.js b/src/main.js index 4482ae0..6c36947 100644 --- a/src/main.js +++ b/src/main.js @@ -1,12 +1,12 @@ import { createApp } from 'vue' -import {spliceUrl} from '@/utils/util' +import { spliceUrl } from '@/utils/util' import App from '@/App.vue' import { useCore } from '@/core' -import './assets/iconfont/iconfont.css'; +import './assets/iconfont/iconfont.css' // import dataV from '@jiaminghi/data-view' const app = createApp(App) -// app.use(dataV) -app.config.globalProperties.$spliceUrl=spliceUrl + +app.config.globalProperties.$spliceUrl = spliceUrl useCore(app) app.mount('#app') diff --git a/src/router/routes/callBaseSet.js b/src/router/routes/callBaseSet.js new file mode 100644 index 0000000..0340883 --- /dev/null +++ b/src/router/routes/callBaseSet.js @@ -0,0 +1,30 @@ +import { DollarOutlined } from '@ant-design/icons-vue' + +export default [ + { + path: 'callBaseSet', + name: 'callBaseSet', + component: 'RouteViewLayout', + meta: { + icon: DollarOutlined, + title: '基础配置', + isMenu: true, + keepAlive: true, + permission: '*', + }, + children: [ + { + path: 'callType', + name: 'callType', + component: 'callBaseSet/callType/index.vue', + meta: { + title: '通话类型', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, + + ], + }, +] diff --git a/src/router/routes/callServerObj.js b/src/router/routes/callServerObj.js new file mode 100644 index 0000000..140c14a --- /dev/null +++ b/src/router/routes/callServerObj.js @@ -0,0 +1,30 @@ +import { DollarOutlined } from '@ant-design/icons-vue' + +export default [ + { + path: 'callServerObj', + name: 'callServerObj', + component: 'RouteViewLayout', + meta: { + icon: DollarOutlined, + title: '服务对象管理', + isMenu: true, + keepAlive: true, + permission: '*', + }, + children: [ + { + path: 'callServerList', + name: 'callServerList', + component: 'serverObj/serverList/index.vue', + meta: { + title: '服务对象列表', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, + + ], + }, +] diff --git a/src/router/routes/index.js b/src/router/routes/index.js index e0cc627..6ea0979 100644 --- a/src/router/routes/index.js +++ b/src/router/routes/index.js @@ -19,6 +19,10 @@ import serverSet from './serverSet' import yunYingServerObj from './yunyingServerObj' import serviceStaffYunYing from './serviceStaffYunYing' import workorderYunying from './workorderYunying' +import callServerObj from './callServerObj' +import callBaseSet from './callBaseSet' +import trafficMgt from './trafficMgt' +import operator from './operator' export default [ ...home, // ...form, @@ -40,5 +44,9 @@ export default [ ...serverSet, ...yunYingServerObj, ...serviceStaffYunYing, - ...workorderYunying + ...workorderYunying, + ...callServerObj, + ...callBaseSet, + ...trafficMgt, + ...operator, ] diff --git a/src/router/routes/operator.js b/src/router/routes/operator.js new file mode 100644 index 0000000..aa2fe44 --- /dev/null +++ b/src/router/routes/operator.js @@ -0,0 +1,30 @@ +import { DollarOutlined } from '@ant-design/icons-vue' + +export default [ + { + path: 'operatorMgt', + name: 'operatorMgt', + component: 'RouteViewLayout', + meta: { + icon: DollarOutlined, + title: '话务员管理', + isMenu: true, + keepAlive: true, + permission: '*', + }, + children: [ + { + path: 'operator', + name: 'operator', + component: 'operatorMgt/operator/index.vue', + meta: { + title: '话务员列表', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, + + ], + }, +] diff --git a/src/router/routes/platform.js b/src/router/routes/platform.js index 763b12d..91cce66 100644 --- a/src/router/routes/platform.js +++ b/src/router/routes/platform.js @@ -6,5 +6,5 @@ export default [ meta: { title: '平台选择', }, - }, + } ] \ No newline at end of file diff --git a/src/router/routes/serverSet.js b/src/router/routes/serverSet.js index 6c45160..3d51dd8 100644 --- a/src/router/routes/serverSet.js +++ b/src/router/routes/serverSet.js @@ -24,6 +24,17 @@ export default [ permission: '*', }, }, + { + path: 'callBaseSet', + name: 'callBaseSet', + component: 'baseSet/callBaseSet/index.vue', + meta: { + title: '基础配置', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, ], }, ] diff --git a/src/router/routes/serviceStaffCall.js b/src/router/routes/serviceStaffCall.js new file mode 100644 index 0000000..9b18c35 --- /dev/null +++ b/src/router/routes/serviceStaffCall.js @@ -0,0 +1,29 @@ +import { DollarOutlined } from '@ant-design/icons-vue' + +export default [ + { + path: 'serviceStaffCall', + name: 'serviceStaffCall', + component: 'RouteViewLayout', + meta: { + icon: DollarOutlined, + title: '服务人员', + isMenu: true, + keepAlive: true, + permission: '*', + }, + children: [ + { + path: 'serviceStaffList', + name: 'serviceStaffList', + component: 'serviceStaff/serviceStaffList/index.vue', + meta: { + title: '服务人员', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, + ], + }, +] diff --git a/src/router/routes/trafficMgt.js b/src/router/routes/trafficMgt.js new file mode 100644 index 0000000..d9a74ca --- /dev/null +++ b/src/router/routes/trafficMgt.js @@ -0,0 +1,73 @@ +import { DollarOutlined } from '@ant-design/icons-vue' + +export default [ + { + path: 'trafficMgt', + name: 'trafficMgt', + component: 'RouteViewLayout', + meta: { + icon: DollarOutlined, + title: '话务管理', + isMenu: true, + keepAlive: true, + permission: '*', + }, + children: [ + { + path: 'myCallLog', + name: 'myCallLog', + component: 'trafficMgt/myCallLog/index.vue', + meta: { + title: '我的通话记录', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, + { + path: 'callLog', + name: 'callLog', + component: 'trafficMgt/callLog/index.vue', + meta: { + title: '通话记录', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, + { + path: 'missedCalls', + name: 'missedCalls', + component: 'trafficMgt/missedCalls/index.vue', + meta: { + title: '未接来电', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, + { + path: 'quality', + name: 'quality', + component: 'trafficMgt/quality/index.vue', + meta: { + title: '质检管理', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, + { + path: 'qualityLog', + name: 'qualityLog', + component: 'trafficMgt/qualityLog/index.vue', + meta: { + title: '质检记录', + isMenu: true, + keepAlive: true, + permission: '*', + }, + }, + ], + }, +] diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 2f67da5..1ccf8bc 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -51,8 +51,9 @@ const useUserStore = defineStore('user', { const appStore = useAppStore() const multiTab = useMultiTab() const router = useRouter() - storage.local.removeItem(config('storage.token')) - storage.local.removeItem(config('storage.userInfo')) + // storage.local.removeItem(config('storage.token')) + // storage.local.removeItem(config('storage.userInfo')) + storage.local.clear() this.$reset() appStore.$reset() multiTab.$reset() diff --git a/src/views/callBaseSet/callType/components/EditDialog.vue b/src/views/callBaseSet/callType/components/EditDialog.vue new file mode 100644 index 0000000..98d524b --- /dev/null +++ b/src/views/callBaseSet/callType/components/EditDialog.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/callBaseSet/callType/index.vue b/src/views/callBaseSet/callType/index.vue new file mode 100644 index 0000000..db45b61 --- /dev/null +++ b/src/views/callBaseSet/callType/index.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 92006ae..fdeda75 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,5 +1,6 @@ diff --git a/src/views/login/map.vue b/src/views/login/map.vue new file mode 100644 index 0000000..39d0a74 --- /dev/null +++ b/src/views/login/map.vue @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/src/views/login/platForm.vue b/src/views/login/platForm.vue index 715c560..72da4f9 100644 --- a/src/views/login/platForm.vue +++ b/src/views/login/platForm.vue @@ -1,8 +1,8 @@