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/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/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/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index 5bd4260..0fd4401 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -30,10 +30,10 @@ }, created() { // 如果需要提醒 - // if (this.meta.remind) { - // this.getRealtimeData() - // this.clock() - // } + if (this.meta && this.meta.remind) { + this.getRealtimeData() // 获取实时数量 + this.clock() + } }, methods: { clock() { @@ -45,8 +45,8 @@ getRealtimeData() { getCount(this.meta.type).then(response => { if (response.code === 200) { - response.count = 2 - this.count = response.count + // response.count = 2 + this.count = response.data } }) } 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/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index 5bd4260..0fd4401 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -30,10 +30,10 @@ }, created() { // 如果需要提醒 - // if (this.meta.remind) { - // this.getRealtimeData() - // this.clock() - // } + if (this.meta && this.meta.remind) { + this.getRealtimeData() // 获取实时数量 + this.clock() + } }, methods: { clock() { @@ -45,8 +45,8 @@ getRealtimeData() { getCount(this.meta.type).then(response => { if (response.code === 200) { - response.count = 2 - this.count = response.count + // response.count = 2 + this.count = response.data } }) } diff --git a/src/router/index.js b/src/router/index.js index bcaea68..ac7440b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -60,7 +60,7 @@ path: 'dashboard', name: 'Dashboard', component: () => import('@/views/dashboard/index'), - meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true } + meta: { title: '首页', icon: 'dashboard', noCache: false, keepAlive: true, affix: true } }] } ] 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/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index 5bd4260..0fd4401 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -30,10 +30,10 @@ }, created() { // 如果需要提醒 - // if (this.meta.remind) { - // this.getRealtimeData() - // this.clock() - // } + if (this.meta && this.meta.remind) { + this.getRealtimeData() // 获取实时数量 + this.clock() + } }, methods: { clock() { @@ -45,8 +45,8 @@ getRealtimeData() { getCount(this.meta.type).then(response => { if (response.code === 200) { - response.count = 2 - this.count = response.count + // response.count = 2 + this.count = response.data } }) } diff --git a/src/router/index.js b/src/router/index.js index bcaea68..ac7440b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -60,7 +60,7 @@ path: 'dashboard', name: 'Dashboard', component: () => import('@/views/dashboard/index'), - meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true } + meta: { title: '首页', icon: 'dashboard', noCache: false, keepAlive: true, affix: true } }] } ] diff --git a/src/utils/request.js b/src/utils/request.js index 1177be7..517107c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -13,9 +13,9 @@ service.interceptors.request.use( config => { if (store.getters.token) { - console.log('request.js gettoken') + // console.log('request.js gettoken') config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 - console.log(config.headers['token']) + // console.log(config.headers['token']) } return config }, 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/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index 5bd4260..0fd4401 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -30,10 +30,10 @@ }, created() { // 如果需要提醒 - // if (this.meta.remind) { - // this.getRealtimeData() - // this.clock() - // } + if (this.meta && this.meta.remind) { + this.getRealtimeData() // 获取实时数量 + this.clock() + } }, methods: { clock() { @@ -45,8 +45,8 @@ getRealtimeData() { getCount(this.meta.type).then(response => { if (response.code === 200) { - response.count = 2 - this.count = response.count + // response.count = 2 + this.count = response.data } }) } diff --git a/src/router/index.js b/src/router/index.js index bcaea68..ac7440b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -60,7 +60,7 @@ path: 'dashboard', name: 'Dashboard', component: () => import('@/views/dashboard/index'), - meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true } + meta: { title: '首页', icon: 'dashboard', noCache: false, keepAlive: true, affix: true } }] } ] diff --git a/src/utils/request.js b/src/utils/request.js index 1177be7..517107c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -13,9 +13,9 @@ service.interceptors.request.use( config => { if (store.getters.token) { - console.log('request.js gettoken') + // console.log('request.js gettoken') config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 - console.log(config.headers['token']) + // console.log(config.headers['token']) } return config }, diff --git a/src/views/caseManage/caseCommon/caseRecord.vue b/src/views/caseManage/caseCommon/caseRecord.vue index 8ed5b0a..2b66bfe 100644 --- a/src/views/caseManage/caseCommon/caseRecord.vue +++ b/src/views/caseManage/caseCommon/caseRecord.vue @@ -272,11 +272,6 @@ align: 'center' }, { - text: '处理状态', - value: 'caseStatus', - align: 'center' - }, - { text: '督办内容', value: 'urgeContent', align: 'center' @@ -341,11 +336,6 @@ align: 'center' }, { - text: '处理状态', - value: 'caseStatus', - align: 'center' - }, - { text: '监察内容', value: 'superviseContent', align: 'center' @@ -399,6 +389,8 @@ this.fetchDelayRecords() this.fetchUrgeRecords() this.fetchReportRecords() + this.fetchSuperviseRecords() + this.fetchMonitorecords() }, methods: { fetchProcessRecords() { 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/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index 5bd4260..0fd4401 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -30,10 +30,10 @@ }, created() { // 如果需要提醒 - // if (this.meta.remind) { - // this.getRealtimeData() - // this.clock() - // } + if (this.meta && this.meta.remind) { + this.getRealtimeData() // 获取实时数量 + this.clock() + } }, methods: { clock() { @@ -45,8 +45,8 @@ getRealtimeData() { getCount(this.meta.type).then(response => { if (response.code === 200) { - response.count = 2 - this.count = response.count + // response.count = 2 + this.count = response.data } }) } diff --git a/src/router/index.js b/src/router/index.js index bcaea68..ac7440b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -60,7 +60,7 @@ path: 'dashboard', name: 'Dashboard', component: () => import('@/views/dashboard/index'), - meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true } + meta: { title: '首页', icon: 'dashboard', noCache: false, keepAlive: true, affix: true } }] } ] diff --git a/src/utils/request.js b/src/utils/request.js index 1177be7..517107c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -13,9 +13,9 @@ service.interceptors.request.use( config => { if (store.getters.token) { - console.log('request.js gettoken') + // console.log('request.js gettoken') config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 - console.log(config.headers['token']) + // console.log(config.headers['token']) } return config }, diff --git a/src/views/caseManage/caseCommon/caseRecord.vue b/src/views/caseManage/caseCommon/caseRecord.vue index 8ed5b0a..2b66bfe 100644 --- a/src/views/caseManage/caseCommon/caseRecord.vue +++ b/src/views/caseManage/caseCommon/caseRecord.vue @@ -272,11 +272,6 @@ align: 'center' }, { - text: '处理状态', - value: 'caseStatus', - align: 'center' - }, - { text: '督办内容', value: 'urgeContent', align: 'center' @@ -341,11 +336,6 @@ align: 'center' }, { - text: '处理状态', - value: 'caseStatus', - align: 'center' - }, - { text: '监察内容', value: 'superviseContent', align: 'center' @@ -399,6 +389,8 @@ this.fetchDelayRecords() this.fetchUrgeRecords() this.fetchReportRecords() + this.fetchSuperviseRecords() + this.fetchMonitorecords() }, methods: { fetchProcessRecords() { diff --git a/src/views/caseManage/components/knowledgeDetail.vue b/src/views/caseManage/components/knowledgeDetail.vue index 89061ee..f0c48db 100644 --- a/src/views/caseManage/components/knowledgeDetail.vue +++ b/src/views/caseManage/components/knowledgeDetail.vue @@ -10,8 +10,8 @@
所属类别:{{ knowledge.kTypeName }}
-
发布人:{{ knowledge.kUserName }}
-
发布时间:{{ knowledge.kTime }}
+
发布人:{{ knowledge.publisherName }}
+
发布时间:{{ knowledge.publishTime }}
@@ -31,9 +31,9 @@ knowledge: { kName: '', kTypeName: '', - kUserName: '', + publisherName: '', kInfo: '', - kTime: '' + publishTime: '' }, dialogShow: false } @@ -46,21 +46,18 @@ }, // 请求详情 fetchKnowledge(id) { - // const params = { - // kId: id + knowledgeDetail(id).then(response => { + if (response.code === 200) { + this.knowledge = response.data + } + }) + // this.knowledge = { + // kName: '特困人员救助供养标准是什么?', + // kTypeName: '州民政局', + // kUserName: '周海瑞', + // kInfo: '2019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:6214502', + // publishTime: '2019-10-18 15:55:35' // } - // knowledgeDetail(params).then(response => { - // if (response.code === 200) { - // this.knowledge = response.data - // } - // }) - this.knowledge = { - kName: '特困人员救助供养标准是什么?', - kTypeName: '州民政局', - kUserName: '周海瑞', - kInfo: '2019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:6214502', - kTime: '2019-10-18 15:55:35' - } } } } @@ -77,7 +74,7 @@ } .k-subtitle{ margin-top: 15px; - line-height: 17px; + line-height: 1.5; } .k-content{ text-align: justify; 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/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index 5bd4260..0fd4401 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -30,10 +30,10 @@ }, created() { // 如果需要提醒 - // if (this.meta.remind) { - // this.getRealtimeData() - // this.clock() - // } + if (this.meta && this.meta.remind) { + this.getRealtimeData() // 获取实时数量 + this.clock() + } }, methods: { clock() { @@ -45,8 +45,8 @@ getRealtimeData() { getCount(this.meta.type).then(response => { if (response.code === 200) { - response.count = 2 - this.count = response.count + // response.count = 2 + this.count = response.data } }) } diff --git a/src/router/index.js b/src/router/index.js index bcaea68..ac7440b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -60,7 +60,7 @@ path: 'dashboard', name: 'Dashboard', component: () => import('@/views/dashboard/index'), - meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true } + meta: { title: '首页', icon: 'dashboard', noCache: false, keepAlive: true, affix: true } }] } ] diff --git a/src/utils/request.js b/src/utils/request.js index 1177be7..517107c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -13,9 +13,9 @@ service.interceptors.request.use( config => { if (store.getters.token) { - console.log('request.js gettoken') + // console.log('request.js gettoken') config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 - console.log(config.headers['token']) + // console.log(config.headers['token']) } return config }, diff --git a/src/views/caseManage/caseCommon/caseRecord.vue b/src/views/caseManage/caseCommon/caseRecord.vue index 8ed5b0a..2b66bfe 100644 --- a/src/views/caseManage/caseCommon/caseRecord.vue +++ b/src/views/caseManage/caseCommon/caseRecord.vue @@ -272,11 +272,6 @@ align: 'center' }, { - text: '处理状态', - value: 'caseStatus', - align: 'center' - }, - { text: '督办内容', value: 'urgeContent', align: 'center' @@ -341,11 +336,6 @@ align: 'center' }, { - text: '处理状态', - value: 'caseStatus', - align: 'center' - }, - { text: '监察内容', value: 'superviseContent', align: 'center' @@ -399,6 +389,8 @@ this.fetchDelayRecords() this.fetchUrgeRecords() this.fetchReportRecords() + this.fetchSuperviseRecords() + this.fetchMonitorecords() }, methods: { fetchProcessRecords() { diff --git a/src/views/caseManage/components/knowledgeDetail.vue b/src/views/caseManage/components/knowledgeDetail.vue index 89061ee..f0c48db 100644 --- a/src/views/caseManage/components/knowledgeDetail.vue +++ b/src/views/caseManage/components/knowledgeDetail.vue @@ -10,8 +10,8 @@
所属类别:{{ knowledge.kTypeName }}
-
发布人:{{ knowledge.kUserName }}
-
发布时间:{{ knowledge.kTime }}
+
发布人:{{ knowledge.publisherName }}
+
发布时间:{{ knowledge.publishTime }}
@@ -31,9 +31,9 @@ knowledge: { kName: '', kTypeName: '', - kUserName: '', + publisherName: '', kInfo: '', - kTime: '' + publishTime: '' }, dialogShow: false } @@ -46,21 +46,18 @@ }, // 请求详情 fetchKnowledge(id) { - // const params = { - // kId: id + knowledgeDetail(id).then(response => { + if (response.code === 200) { + this.knowledge = response.data + } + }) + // this.knowledge = { + // kName: '特困人员救助供养标准是什么?', + // kTypeName: '州民政局', + // kUserName: '周海瑞', + // kInfo: '2019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:6214502', + // publishTime: '2019-10-18 15:55:35' // } - // knowledgeDetail(params).then(response => { - // if (response.code === 200) { - // this.knowledge = response.data - // } - // }) - this.knowledge = { - kName: '特困人员救助供养标准是什么?', - kTypeName: '州民政局', - kUserName: '周海瑞', - kInfo: '2019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:62145022019年1月起,城市特困供养基本生活年标准9110元/人,各县8252元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。农村特困供养基本生活年标准5226元/人。照料护理补贴年标准分为自理1200元/人,半失能2400元/人,失能3600元/人。--咨询电话:6214502', - kTime: '2019-10-18 15:55:35' - } } } } @@ -77,7 +74,7 @@ } .k-subtitle{ margin-top: 15px; - line-height: 17px; + line-height: 1.5; } .k-content{ text-align: justify; diff --git a/src/views/caseManage/components/knowledgeSearch.vue b/src/views/caseManage/components/knowledgeSearch.vue index 3aaffee..8cdd60a 100644 --- a/src/views/caseManage/components/knowledgeSearch.vue +++ b/src/views/caseManage/components/knowledgeSearch.vue @@ -2,20 +2,22 @@