Commit 682eea18 by 杨明

fixed

1 parent bf5bab3a
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-07 16:54:06
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-26 11:45:19
* @LastEditTime: 2023-09-27 12:11:28
* @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -11,7 +11,7 @@ import { http_sop } from '@/main'
//查询模板实例客户分页列表
const getCustomersList = params => {
return http_sop({
url: `http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/customers`,
url: `process/sop/api/sopInsts/customers`,
method: 'get',
data: params,
sign: false
......@@ -20,7 +20,7 @@ const getCustomersList = params => {
//旅程列表
const byGroupIdSop = params => {
return http_sop({
url: 'http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/byGroupId',
url: 'process/sop/api/sopInsts/byGroupId',
method: 'get',
data: params,
sign: false
......@@ -30,10 +30,19 @@ const byGroupIdSop = params => {
//旅程列表详情
const getInstIdDetail = params => {
return http_sop({
url: 'http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/' + params.instId,
url: 'process/sop/api/sopInsts/' + params.instId,
method: 'get',
// data: params,
sign: false
})
}
export default { getCustomersList, byGroupIdSop, getInstIdDetail }
//旅程列表详情
const statistic = params => {
return http_sop({
url: 'process/sop/api/sopInsts/customer/statistic',
method: 'get',
data: params,
sign: false
})
}
export default { getCustomersList, byGroupIdSop, getInstIdDetail, statistic }
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-07-22 18:15:13
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-26 11:40:41
* @LastEditTime: 2023-09-27 12:11:47
* @FilePath: \scrm-micro-home\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -28,14 +28,14 @@ let routes = []
let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, request_common, response_sop, request_merchant, request_gpt, sign_common, scene, cavansObj } = await fetchConfig(common)
const { response, request, sign, secret, request_common, response_sop, request_merchant, request_gpt, request_sop, sign_common, scene, cavansObj } = await fetchConfig(common)
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
Vue.prototype.cavansObj = cavansObj
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_sop = new common.Http({ response: response_sop, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token, 'Content-Type': 'application/json' } })
Vue.prototype.$http_sop = new common.Http({ response: response_sop, request: request_sop, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token, 'Content-Type': 'application/json' } })
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_gpt = new common.Http({ response, request: request_gpt, sign, secret, alert: ElementUI.Message.error })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 10:26:24
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-19 17:27:58
* @LastEditTime: 2023-09-27 12:05:34
* @FilePath: \scrm-micro-home\src\views\home\components\AddValue.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -40,14 +40,14 @@ export default {
title: '轻改业务-售后众筹',
backgroundColor: 'linear-gradient(179deg, #EFF8FF 1%, #F4FAFF 1%, #F6FCFF 100%)',
color: ['#83D8FF', '#0087FA'],
value: 0,
value: 154.9,
lineList: []
},
{
title: '保险业务-会员权益升级',
backgroundColor: 'linear-gradient(179deg, #FFF8F0 1%, #FFFCF9 100%)',
color: ['#FFCF8D', '#FF8D0A'],
value: 0,
value: 101.5,
lineList: []
}
]
......@@ -59,10 +59,17 @@ export default {
methods: {
//产值、柱状图数据
async getLineList() {
const list = await Promise.all([this.$apis.home.tendency({}), {}, {}])
console.log(list)
const list = await Promise.all([
this.$apis.home.tendency({}),
{
value: 154.9,
lineList: [],
diagramList: [{ ordinateValue: 1 }, { ordinateValue: 2 }, { ordinateValue: 25 }, { ordinateValue: 6 }, { ordinateValue: 10 }, { ordinateValue: 5 }]
},
{ value: 101.5, lineList: [], diagramList: [{ ordinateValue: 5 }, { ordinateValue: 7 }, { ordinateValue: 2 }, { ordinateValue: 6 }, { ordinateValue: 5 }, { ordinateValue: 2 }] }
])
this.chartList.forEach((item, index) => {
item.value = list[index].totalShopProfitMoney || 0
item.value = list[index].totalShopProfitMoney || list[index].value || 0
item.lineList = list[index].diagramList || []
})
}
......
......@@ -16,10 +16,10 @@
</div>
</div>
<div class="analysis-process">
<div class="analysis-process-item" v-for="(p, i) in item.journeyItem" :key="i" :style="{ height: index === 0 ? '72px' : '92px' }">
<div class="analysis-process-item" v-for="(p, i) in item.journeyItem" :key="i" :style="{ height: index === 1 ? '72px' : '92px' }">
<div class="analysis-process-title">{{ p.label }}</div>
<div class="analysis-process-task" v-if="index == 0">当前客户:{{ p.customerList.length }}</div>
<div class="analysis-process-task">SOP任务:{{ p.process }}</div>
<div class="analysis-process-task">SOP任务:{{ p.nodes.length }}</div>
</div>
</div>
</div>
......@@ -112,6 +112,7 @@ export default {
process++
item.journeyItem.push({
customerList: [],
nodes: [],
label: stages[k].value,
process
})
......@@ -121,12 +122,25 @@ export default {
const enable = journeyList.find(item => item.instStatus == 1) //已启用
const unenable = journeyList.find(item => item.instStatus == -1) //未启用
const customerList = await Promise.all([this.$apis.journey.getCustomersList({ sopJourneyId: enable.instId, pageSize: 10000, pageNumber: 1 }), this.$apis.journey.getCustomersList({ sopJourneyId: unenable.instId })])
const nodes = await Promise.all([this.$apis.journey.getInstIdDetail({ instId: enable.instId }), this.$apis.journey.getInstIdDetail({ instId: unenable.instId })])
enable.journeyItem.forEach(i => {
customerList[0].list.forEach(v => {
if (i.label == v.sopJourneyStage) {
i.customerList.push(v)
}
})
nodes[0].nodes.forEach(v => {
if (i.label == (v.nodeParam && JSON.parse(v.nodeParam).stage)) {
i.nodes.push(v)
}
})
})
unenable.journeyItem.forEach(i => {
nodes[1].nodes.forEach(v => {
if (i.label == (v.nodeParam && JSON.parse(v.nodeParam).stage)) {
i.nodes.push(v)
}
})
})
this.journeyList = [enable, unenable]
},
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 10:26:58
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-26 15:48:06
* @LastEditTime: 2023-09-27 11:44:42
* @FilePath: \scrm-micro-home\src\views\home\components\MicroStore.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -113,14 +113,14 @@ export default {
methods: {
init(date) {
this.getLineList({
startTime: dayjs(date[0]).format('YYYY-MM-DD'),
endTime: dayjs(date[1]).format('YYYY-MM-DD')
startTime: dayjs(date[0]).format('YYYY-MM-DD') + ' 00:00:00',
endTime: dayjs(date[1]).format('YYYY-MM-DD') + ' 23:59:59'
})
},
dateChange(val) {
const params = {
startTime: dayjs(val[0]).format('YYYY-MM-DD'),
endTime: dayjs(val[1]).format('YYYY-MM-DD')
startTime: dayjs(val[0]).format('YYYY-MM-DD') + ' 00:00:00',
endTime: dayjs(val[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
this.getLineList(params)
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!