Commit ebd88c2d by 杨明

fixed

1 parent 3fb8524b
......@@ -305,6 +305,16 @@ const analysisOrder = params => {
sign: true
})
}
//门店精品升级、众筹、精品升级12个月产值趋势图
const activityOutputTrend = params => {
params.method = 'marketing.api.activity.activityOutputTrend'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
//客户群
const queryCrowdTree = params => {
params.method = 'scrm.api.datahub.user.queryCrowdTree'
......@@ -356,5 +366,6 @@ export default {
tendency,
analysisOrder,
queryCrowdTree,
activityOutputTrend,
queryLabelCount
}
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 14:08:14
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-08 16:23:48
* @LastEditTime: 2023-10-09 17:49:06
* @FilePath: \scrm-micro-home\src\components\options.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -10,7 +10,7 @@ import * as echarts from 'echarts'
function getLineOptions(obj) {
const { color, lineList } = obj
// const statDate = dataList.map(item => item.statDate)
const dataList = lineList.map(item => item.ordinateValue || 0)
const dataList = lineList.map(item => item.ordinateValue || item.output || 0)
// 定义颜色渐变
var gradientColors = [
{
......
......@@ -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-10-08 16:35:06
* @LastEditTime: 2023-10-09 16:47:24
* @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
-->
......@@ -66,18 +66,21 @@ export default {
methods: {
//产值、柱状图数据
async getLineList() {
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 }] }
])
const res = await Promise.all([this.$apis.home.tendency({}), this.$apis.home.activityOutputTrend({ merchantId: this.$globalState.session.merchantId })])
const output = {
...res[0],
...res[1]
}
console.log(res, 'res')
const mapData = {
0: ['totalShopProfitMoney', 'diagramList'],
1: ['crowdfundingOutput', 'crowdfundingOutputTrend', 'crowdfundingFlag'],
2: ['membershipOutput', 'membershipOutputTrend', 'membershipFlag']
}
this.chartList.forEach((item, index) => {
item.value = list[index].totalShopProfitMoney || list[index].value || 0
item.lineList = list[index].diagramList || []
item.value = output[mapData[index][0]]
item.lineList = output[mapData[index][1]]
// item.isFlag = list[0]
})
}
}
......
......@@ -8,8 +8,8 @@
<div class="analysis-item-head">
<img :src="require(`@/assets/img/home/icon-${index + 1}.png`)" />
<span>{{ item.instName }}</span>
<a @click="handleJump(item)" v-if="index == 0">查看使用情况</a>
<a @click="handleJump(item)" v-else>去使用</a>
<a @click="handleJump(item, 'index')" v-if="item.instStatus == 1">查看使用情况</a>
<a @click="handleJump(item, 'config')" v-else>去使用</a>
<div :class="{ 'analysis-item-status': true, 'is-disable': item.instStatus != 1 }">
<i :class="`${getStatusValue(item, 'icon')}`"></i>
<span>{{ getStatusValue(item, 'label') }}</span>
......@@ -18,7 +18,7 @@
<div class="analysis-process">
<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" v-if="item.instStatus == 1">当前客户:{{ p.customerList.length }}</div>
<div class="analysis-process-task">SOP任务:{{ p.nodes.length }}</div>
</div>
</div>
......@@ -139,7 +139,7 @@ export default {
})
if (unenable)
unenable.journeyItem.forEach(i => {
customerList[0].list.forEach(v => {
customerList[1].list.forEach(v => {
if (i.label == v.sopJourneyStage) {
i.customerList.push(v)
}
......@@ -158,7 +158,9 @@ export default {
getStatusValue(val, prop) {
return STATUS.find(item => item.value == val.instStatus)[prop]
},
handleJump() {}
handleJump(item, path) {
this.$history.push(`/scene/journeyConfig/${path}?title=${item.instName}-续保旅程&instId=${item.instId}`)
}
}
}
</script>
......
......@@ -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-10-08 15:44:44
* @LastEditTime: 2023-10-09 11:44:09
* @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
-->
......@@ -217,6 +217,7 @@ export default {
color: #333333;
font-size: 26px;
line-height: 38px;
font-weight: 600;
margin-top: 15px;
}
.warp-price {
......
......@@ -222,14 +222,14 @@ export default {
background: #ffffff;
padding: 16px 8px;
margin-right: 16px;
width: 182px;
width: 12vw;
box-sizing: border-box;
position: relative;
&::nth-child(3) {
width: 176px;
}
&:nth-child(4) {
width: 212px;
width: 13vw;
margin-right: 0px;
}
.step-icon {
......@@ -415,7 +415,7 @@ export default {
padding: 30px 0px 20px;
.step-title-h2 {
font-size: 18px;
color: #111111;
color: #333;
letter-spacing: 0;
text-align: center;
line-height: 28px;
......@@ -437,11 +437,11 @@ export default {
}
.step-module {
display: grid;
grid-template-columns: 86px 86px;
gap: 8px;
grid-template-columns: 48% 48%;
gap: 8px 4%;
padding: 8px;
font-size: 14px;
&-item {
width: 86px;
height: 26px;
background: #f2f2ff;
border: 1px solid #dfdff9;
......@@ -477,4 +477,9 @@ export default {
}
}
}
@media screen and (max-width: 1500px) {
.step-title {
font-size: 13px !important;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!