diff --git a/config/dev.env.js b/config/dev.env.js index 9b23a72..fcc970d 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,8 +9,10 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' - // BASE_API: '"http://139.198.16.38:20005"' - // BASE_API: '"http://192.168.0.225:8083"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' + // BASE_API: '"http://192.168.0.123:20007"' + // BASE_API: '"http://192.168.2.107:20007"' + // BASE_API: '"http://192.170.1.102:8093"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/dev.env.js b/config/dev.env.js index 9b23a72..fcc970d 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,8 +9,10 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' - // BASE_API: '"http://139.198.16.38:20005"' - // BASE_API: '"http://192.168.0.225:8083"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' + // BASE_API: '"http://192.168.0.123:20007"' + // BASE_API: '"http://192.168.2.107:20007"' + // BASE_API: '"http://192.170.1.102:8093"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index e4f27b9..e2feec2 100644 --- a/config/index.js +++ b/config/index.js @@ -22,7 +22,7 @@ // }, // after: require('./../mock/mock-server.js'), // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/dev.env.js b/config/dev.env.js index 9b23a72..fcc970d 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,8 +9,10 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' - // BASE_API: '"http://139.198.16.38:20005"' - // BASE_API: '"http://192.168.0.225:8083"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' + // BASE_API: '"http://192.168.0.123:20007"' + // BASE_API: '"http://192.168.2.107:20007"' + // BASE_API: '"http://192.170.1.102:8093"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index e4f27b9..e2feec2 100644 --- a/config/index.js +++ b/config/index.js @@ -22,7 +22,7 @@ // }, // after: require('./../mock/mock-server.js'), // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 3fa0587..9ba8ed4 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,6 +2,8 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8084/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://192.168.8.201:8083"' } diff --git a/config/dev.env.js b/config/dev.env.js index 9b23a72..fcc970d 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,8 +9,10 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' - // BASE_API: '"http://139.198.16.38:20005"' - // BASE_API: '"http://192.168.0.225:8083"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' + // BASE_API: '"http://192.168.0.123:20007"' + // BASE_API: '"http://192.168.2.107:20007"' + // BASE_API: '"http://192.170.1.102:8093"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index e4f27b9..e2feec2 100644 --- a/config/index.js +++ b/config/index.js @@ -22,7 +22,7 @@ // }, // after: require('./../mock/mock-server.js'), // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 3fa0587..9ba8ed4 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,6 +2,8 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8084/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://192.168.8.201:8083"' } diff --git a/src/api/call.js b/src/api/call.js index 3aba9ab..c12d0db 100644 --- a/src/api/call.js +++ b/src/api/call.js @@ -3,7 +3,7 @@ // 座席状态上报 export function seatReport(type, recordName) { return request({ - url: 'case/workList', + url: '/seats/report', method: 'post', params: { type: type, diff --git a/config/dev.env.js b/config/dev.env.js index 9b23a72..fcc970d 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,8 +9,10 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' - // BASE_API: '"http://139.198.16.38:20005"' - // BASE_API: '"http://192.168.0.225:8083"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' + // BASE_API: '"http://192.168.0.123:20007"' + // BASE_API: '"http://192.168.2.107:20007"' + // BASE_API: '"http://192.170.1.102:8093"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index e4f27b9..e2feec2 100644 --- a/config/index.js +++ b/config/index.js @@ -22,7 +22,7 @@ // }, // after: require('./../mock/mock-server.js'), // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 3fa0587..9ba8ed4 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,6 +2,8 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8084/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://192.168.8.201:8083"' } diff --git a/src/api/call.js b/src/api/call.js index 3aba9ab..c12d0db 100644 --- a/src/api/call.js +++ b/src/api/call.js @@ -3,7 +3,7 @@ // 座席状态上报 export function seatReport(type, recordName) { return request({ - url: 'case/workList', + url: '/seats/report', method: 'post', params: { type: type, diff --git a/src/api/callCase.js b/src/api/callCase.js index 4bbd433..b8eff49 100644 --- a/src/api/callCase.js +++ b/src/api/callCase.js @@ -111,7 +111,7 @@ // 获取工单提醒 export function caseRemind(params) { return request({ - url: 'case/workList', + url: '/case/remindAll', method: 'get', params }) @@ -119,7 +119,7 @@ // 获取指定类型工单统计数量 export function getCount(type) { return request({ - url: 'case/workList', + url: '/case/getCount', method: 'get', params: { type: type diff --git a/config/dev.env.js b/config/dev.env.js index 9b23a72..fcc970d 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,8 +9,10 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' - // BASE_API: '"http://139.198.16.38:20005"' - // BASE_API: '"http://192.168.0.225:8083"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' + // BASE_API: '"http://192.168.0.123:20007"' + // BASE_API: '"http://192.168.2.107:20007"' + // BASE_API: '"http://192.170.1.102:8093"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index e4f27b9..e2feec2 100644 --- a/config/index.js +++ b/config/index.js @@ -22,7 +22,7 @@ // }, // after: require('./../mock/mock-server.js'), // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 3fa0587..9ba8ed4 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,6 +2,8 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8084/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://192.168.8.201:8083"' } diff --git a/src/api/call.js b/src/api/call.js index 3aba9ab..c12d0db 100644 --- a/src/api/call.js +++ b/src/api/call.js @@ -3,7 +3,7 @@ // 座席状态上报 export function seatReport(type, recordName) { return request({ - url: 'case/workList', + url: '/seats/report', method: 'post', params: { type: type, diff --git a/src/api/callCase.js b/src/api/callCase.js index 4bbd433..b8eff49 100644 --- a/src/api/callCase.js +++ b/src/api/callCase.js @@ -111,7 +111,7 @@ // 获取工单提醒 export function caseRemind(params) { return request({ - url: 'case/workList', + url: '/case/remindAll', method: 'get', params }) @@ -119,7 +119,7 @@ // 获取指定类型工单统计数量 export function getCount(type) { return request({ - url: 'case/workList', + url: '/case/getCount', method: 'get', params: { type: type diff --git a/src/api/phone.js b/src/api/phone.js index 9dee42c..d91e090 100644 --- a/src/api/phone.js +++ b/src/api/phone.js @@ -1,5 +1,6 @@ // 分机管理接口 import request from '@/utils/request' +import qs from 'qs' // 分机列表 export function phoneList(params) { @@ -26,11 +27,27 @@ params }) } +// 删除分机 +export function delPhone(id) { + return request({ + url: '/extensionPhone/delete', + method: 'post', + params: { + extensionPhoneId: id + } + }) +} // 绑定座席 -export function bindSeats(params) { +export function bindSeats(phoneid, users) { return request({ url: '/extensionPhone/bindUsers', method: 'post', - params + params: { + extensionPhoneId: phoneid, + users: users + }, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } }) } diff --git a/config/dev.env.js b/config/dev.env.js index 9b23a72..fcc970d 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,8 +9,10 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' - // BASE_API: '"http://139.198.16.38:20005"' - // BASE_API: '"http://192.168.0.225:8083"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' + // BASE_API: '"http://192.168.0.123:20007"' + // BASE_API: '"http://192.168.2.107:20007"' + // BASE_API: '"http://192.170.1.102:8093"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index e4f27b9..e2feec2 100644 --- a/config/index.js +++ b/config/index.js @@ -22,7 +22,7 @@ // }, // after: require('./../mock/mock-server.js'), // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 3fa0587..9ba8ed4 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,6 +2,8 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8084/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://192.168.8.201:8083"' } diff --git a/src/api/call.js b/src/api/call.js index 3aba9ab..c12d0db 100644 --- a/src/api/call.js +++ b/src/api/call.js @@ -3,7 +3,7 @@ // 座席状态上报 export function seatReport(type, recordName) { return request({ - url: 'case/workList', + url: '/seats/report', method: 'post', params: { type: type, diff --git a/src/api/callCase.js b/src/api/callCase.js index 4bbd433..b8eff49 100644 --- a/src/api/callCase.js +++ b/src/api/callCase.js @@ -111,7 +111,7 @@ // 获取工单提醒 export function caseRemind(params) { return request({ - url: 'case/workList', + url: '/case/remindAll', method: 'get', params }) @@ -119,7 +119,7 @@ // 获取指定类型工单统计数量 export function getCount(type) { return request({ - url: 'case/workList', + url: '/case/getCount', method: 'get', params: { type: type diff --git a/src/api/phone.js b/src/api/phone.js index 9dee42c..d91e090 100644 --- a/src/api/phone.js +++ b/src/api/phone.js @@ -1,5 +1,6 @@ // 分机管理接口 import request from '@/utils/request' +import qs from 'qs' // 分机列表 export function phoneList(params) { @@ -26,11 +27,27 @@ params }) } +// 删除分机 +export function delPhone(id) { + return request({ + url: '/extensionPhone/delete', + method: 'post', + params: { + extensionPhoneId: id + } + }) +} // 绑定座席 -export function bindSeats(params) { +export function bindSeats(phoneid, users) { return request({ url: '/extensionPhone/bindUsers', method: 'post', - params + params: { + extensionPhoneId: phoneid, + users: users + }, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } }) } diff --git a/src/assets/global_images/appLogo.png b/src/assets/global_images/appLogo.png new file mode 100644 index 0000000..9926c89 --- /dev/null +++ b/src/assets/global_images/appLogo.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 9b23a72..fcc970d 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,8 +9,10 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' - // BASE_API: '"http://139.198.16.38:20005"' - // BASE_API: '"http://192.168.0.225:8083"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' + // BASE_API: '"http://192.168.0.123:20007"' + // BASE_API: '"http://192.168.2.107:20007"' + // BASE_API: '"http://192.170.1.102:8093"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index e4f27b9..e2feec2 100644 --- a/config/index.js +++ b/config/index.js @@ -22,7 +22,7 @@ // }, // after: require('./../mock/mock-server.js'), // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST + host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined //是否自动打开浏览器 autoOpenBrowser: true, diff --git a/config/prod.env.js b/config/prod.env.js index 3fa0587..9ba8ed4 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,6 +2,8 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.23:8084/callcenter/api"' + BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://192.168.8.201:8083"' } diff --git a/src/api/call.js b/src/api/call.js index 3aba9ab..c12d0db 100644 --- a/src/api/call.js +++ b/src/api/call.js @@ -3,7 +3,7 @@ // 座席状态上报 export function seatReport(type, recordName) { return request({ - url: 'case/workList', + url: '/seats/report', method: 'post', params: { type: type, diff --git a/src/api/callCase.js b/src/api/callCase.js index 4bbd433..b8eff49 100644 --- a/src/api/callCase.js +++ b/src/api/callCase.js @@ -111,7 +111,7 @@ // 获取工单提醒 export function caseRemind(params) { return request({ - url: 'case/workList', + url: '/case/remindAll', method: 'get', params }) @@ -119,7 +119,7 @@ // 获取指定类型工单统计数量 export function getCount(type) { return request({ - url: 'case/workList', + url: '/case/getCount', method: 'get', params: { type: type diff --git a/src/api/phone.js b/src/api/phone.js index 9dee42c..d91e090 100644 --- a/src/api/phone.js +++ b/src/api/phone.js @@ -1,5 +1,6 @@ // 分机管理接口 import request from '@/utils/request' +import qs from 'qs' // 分机列表 export function phoneList(params) { @@ -26,11 +27,27 @@ params }) } +// 删除分机 +export function delPhone(id) { + return request({ + url: '/extensionPhone/delete', + method: 'post', + params: { + extensionPhoneId: id + } + }) +} // 绑定座席 -export function bindSeats(params) { +export function bindSeats(phoneid, users) { return request({ url: '/extensionPhone/bindUsers', method: 'post', - params + params: { + extensionPhoneId: phoneid, + users: users + }, + paramsSerializer: params => { + return qs.stringify(params, { indices: false }) + } }) } diff --git a/src/assets/global_images/appLogo.png b/src/assets/global_images/appLogo.png new file mode 100644 index 0000000..9926c89 --- /dev/null +++ b/src/assets/global_images/appLogo.png Binary files differ diff --git a/src/components/AudioPlayer/AudioPlayer.vue b/src/components/AudioPlayer/AudioPlayer.vue index c82ec13..8bc9184 100644 --- a/src/components/AudioPlayer/AudioPlayer.vue +++ b/src/components/AudioPlayer/AudioPlayer.vue @@ -1,5 +1,5 @@