Commit bf5bab3a by 杨明

sop

1 parent 3261cff5
...@@ -305,6 +305,25 @@ const analysisOrder = params => { ...@@ -305,6 +305,25 @@ const analysisOrder = params => {
sign: true sign: true
}) })
} }
//客户群
const queryCrowdTree = params => {
params.method = 'scrm.api.datahub.user.queryCrowdTree'
return http({
url: 'rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
const queryLabelCount = params => {
params.method = 'scrm.api.datahub.labelgroup.queryLabelCount'
return http({
url: 'rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getChart, getChart,
...@@ -335,5 +354,7 @@ export default { ...@@ -335,5 +354,7 @@ export default {
serviceBillStat, serviceBillStat,
viewData, viewData,
tendency, tendency,
analysisOrder analysisOrder,
queryCrowdTree,
queryLabelCount
} }
/*
* @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
* @FilePath: \scrm-micro-journey\src\api\modules\journeyConfig.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http_sop } from '@/main'
//查询模板实例客户分页列表
const getCustomersList = params => {
return http_sop({
url: `http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/customers`,
method: 'get',
data: params,
sign: false
})
}
//旅程列表
const byGroupIdSop = params => {
return http_sop({
url: 'http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/byGroupId',
method: 'get',
data: params,
sign: false
})
}
//旅程列表详情
const getInstIdDetail = params => {
return http_sop({
url: 'http://gateway.platform.dev.glsx.com.cn/process/sop/api/sopInsts/' + params.instId,
method: 'get',
// data: params,
sign: false
})
}
export default { getCustomersList, byGroupIdSop, getInstIdDetail }
...@@ -144,6 +144,7 @@ img { ...@@ -144,6 +144,7 @@ img {
.flex-row-between { .flex-row-between {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
} }
.glsx-table .line-ellipsis { .glsx-table .line-ellipsis {
display: inline; display: inline;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-08-13 14:12:11 * @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-20 10:49:23 * @LastEditTime: 2023-09-26 11:38:56
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
...@@ -20,6 +20,7 @@ Vue.prototype.defaultLabelWidth = '154px' ...@@ -20,6 +20,7 @@ Vue.prototype.defaultLabelWidth = '154px'
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_sop = params => Vue.prototype.$http_sop(params)
export const http_common = params => Vue.prototype.$http_common(params) export const http_common = params => Vue.prototype.$http_common(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params) export const http_merchant = params => Vue.prototype.$http_merchant(params)
export const http_gpt = params => Vue.prototype.$http_gpt(params) export const http_gpt = params => Vue.prototype.$http_gpt(params)
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-07-22 18:15:13 * @Date: 2022-07-22 18:15:13
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13 12:04:30 * @LastEditTime: 2023-09-26 11:40:41
* @FilePath: \scrm-micro-home\src\setup\qiankun.js * @FilePath: \scrm-micro-home\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -28,13 +28,14 @@ let routes = [] ...@@ -28,13 +28,14 @@ let routes = []
let router = null let router = null
let instance = null let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) { export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, request_common, request_merchant, request_gpt, sign_common, scene, cavansObj } = await fetchConfig(common) const { response, request, sign, secret, request_common, response_sop, request_merchant, request_gpt, sign_common, scene, cavansObj } = await fetchConfig(common)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.cavansObj = cavansObj 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 = 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_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) 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_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 } }) 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 } })
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-26 14:55:34
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export default {
namespaced: true,
state: {
journey_num: 0
},
mutations: {
// 设置客户信息
SET_JOURNEY_NUM(state, data) {
state.journey_num = data
}
}
}
...@@ -67,6 +67,67 @@ util.getPrevMonth = function() { ...@@ -67,6 +67,67 @@ util.getPrevMonth = function() {
} }
return year + '年' + month + '月' return year + '年' + month + '月'
} }
util.getDays = function() {
// 获取Date()对象
let date = new Date()
// 获取当前事件的年份转为字符串
let year = date.getFullYear().toString()
// 获取月份,注意:月份默认从0开始,所以要+1
let month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1).toString() : (date.getMonth() + 1).toString()
// 获取天,
let day = date
.getDate()
.toString()
.padStart(2, 0)
// 获取时
let hour = date
.getHours()
.toString()
.padStart(2, 0)
// 获取分
let minute = date
.getMinutes()
.toString()
.padStart(2, 0)
// 获取秒
let second = date
.getSeconds()
.toString()
.padStart(2, 0)
// 拼接时间
// 例如:1号:00:00:00,当日:当前时间
// 举例:2022-09-01 00:00:00 2022-09-29 13:39:29
let begin = year + '-' + month + '-01' + ' 00:00:00' // 当月第一天
let end = year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second // 当天
return [begin, end]
}
util.getMonth = function() {
// 获取Date()对象
let date = new Date()
// 获取当前事件的年份转为字符串
let year = date.getFullYear().toString()
// 获取月份,注意:月份默认从0开始,所以要+1
let month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1).toString() : (date.getMonth() + 1).toString()
// 获取天,
let day = date.getDate() < 10 ? '0' + date.getDate().toString : date.getDate().toString()
// 获取时
let hour = date.getHours().toString()
// 获取分
let minute = date.getMinutes().toString()
// 获取秒
let second = date.getSeconds().toString()
// 拼接时间
// 例如:1号:00:00:00,当日:当前时间
// 举例:2022-09-01 00:00:00 2022-09-29 13:39:29
let begin = year + '-' + month + '-01' + ' 00:00:00' // 当月第一天
let end = year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second // 当天
console.log(begin)
console.log(end)
}
util.getCurrentMonthLast = function(date) { util.getCurrentMonthLast = function(date) {
var endDate = new Date(date) var endDate = new Date(date)
var month = endDate.getMonth() var month = endDate.getMonth()
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
<div class="analysis-item" v-for="(item, index) in journeyList" :key="index"> <div class="analysis-item" v-for="(item, index) in journeyList" :key="index">
<div class="analysis-item-head"> <div class="analysis-item-head">
<img :src="require(`@/assets/img/home/icon-${index + 1}.png`)" /> <img :src="require(`@/assets/img/home/icon-${index + 1}.png`)" />
<span>{{ item.title }}</span> <span>{{ item.instName }}</span>
<a @click="handleJump(item)" v-if="index == 0">查看使用情况</a> <a @click="handleJump(item)" v-if="index == 0">查看使用情况</a>
<a @click="handleJump(item)" v-else>去使用</a> <a @click="handleJump(item)" v-else>去使用</a>
<div :class="{ 'analysis-item-status': true, 'is-disable': item.status != 1 }"> <div :class="{ 'analysis-item-status': true, 'is-disable': item.instStatus != 1 }">
<i :class="`${getStatusValue(item, 'icon')}`"></i> <i :class="`${getStatusValue(item, 'icon')}`"></i>
<span>{{ getStatusValue(item, 'label') }}</span> <span>{{ getStatusValue(item, 'label') }}</span>
</div> </div>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<div class="analysis-process"> <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 === 0 ? '72px' : '92px' }">
<div class="analysis-process-title">{{ p.label }}</div> <div class="analysis-process-title">{{ p.label }}</div>
<div class="analysis-process-task" v-if="index == 1">当前客户:{{ p.process }}</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.process }}</div>
</div> </div>
</div> </div>
...@@ -29,13 +29,15 @@ ...@@ -29,13 +29,15 @@
<script> <script>
const STATUS = [ const STATUS = [
{ label: '已启用', value: 1, icon: 'el-icon-check' }, { label: '已启用', value: 1, icon: 'el-icon-check' },
{ label: '未启用', value: 2, icon: 'el-icon-close' }, { label: '未启用', value: 0, icon: 'el-icon-close' },
{ label: '已禁用', value: 3, icon: 'el-icon-remove-outline' } { label: '已禁用', value: -1, icon: 'el-icon-remove-outline' }
] ]
import { mapMutations } from 'vuex'
export default { export default {
data() { data() {
return { return {
journeyList: [ journeyList: [],
journeyList2: [
{ {
id: 1, id: 1,
title: '续保客户旅程1', title: '续保客户旅程1',
...@@ -93,11 +95,45 @@ export default { ...@@ -93,11 +95,45 @@ export default {
] ]
} }
}, },
mounted() {}, mounted() {
this.byGroupIdSop()
},
methods: { methods: {
...mapMutations('journey', ['SET_JOURNEY_NUM']),
async byGroupIdSop() {
const res = await this.$apis.journey.byGroupIdSop({ groupId: 'M153312087', pageNumber: 1, pageSize: 1000 })
const journeyList = res.list || []
this.SET_JOURNEY_NUM(journeyList.length)
journeyList.forEach(item => {
const stages = JSON.parse(item.instParam).stages
item.journeyItem = []
let process = 0
for (let k in stages) {
process++
item.journeyItem.push({
customerList: [],
label: stages[k].value,
process
})
}
})
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 })])
enable.journeyItem.forEach(i => {
customerList[0].list.forEach(v => {
if (i.label == v.sopJourneyStage) {
i.customerList.push(v)
}
})
})
this.journeyList = [enable, unenable]
},
//状态值映射 //状态值映射
getStatusValue(val, prop) { getStatusValue(val, prop) {
return STATUS.find(item => item.value == val.status)[prop] return STATUS.find(item => item.value == val.instStatus)[prop]
}, },
handleJump() {} handleJump() {}
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 10:26:58 * @Date: 2023-09-14 10:26:58
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-22 16:44:42 * @LastEditTime: 2023-09-26 15:48:06
* @FilePath: \scrm-micro-home\src\views\home\components\MicroStore.vue * @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 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -34,7 +34,17 @@ ...@@ -34,7 +34,17 @@
</div> </div>
</div> </div>
<div class="analysis-bar-right"> <div class="analysis-bar-right">
<div class="chart-title">销售额趋势</div> <div class="flex-row-between">
<div class="chart-title">销售额趋势</div>
<div class="chart-time">
<el-radio-group v-model="dateValue" size="small">
<el-radio-button label="month">本月</el-radio-button>
<el-radio-button label="year">全年</el-radio-button>
</el-radio-group>
<el-date-picker class="chart-time-picker" @change="dateChange" v-model="timeValue" size="small" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
</div>
<line-chart :lineList="lineList" domId="store1" functionStr="getLineOddOptions"></line-chart> <line-chart :lineList="lineList" domId="store1" functionStr="getLineOddOptions"></line-chart>
</div> </div>
</div> </div>
...@@ -64,15 +74,19 @@ ...@@ -64,15 +74,19 @@
</div> </div>
</template> </template>
<script> <script>
import util from '@/utils/util'
import * as dayjs from 'dayjs'
export default { export default {
data() { data() {
return { return {
dateValue: 1,
lineList: { lineList: {
title: '精改业务-精品升级', title: '精改业务-精品升级',
backgroundColor: 'linear-gradient(179deg, #F5F7FF 1%, #F9FBFF 100%);', backgroundColor: 'linear-gradient(179deg, #F5F7FF 1%, #F9FBFF 100%);',
color: ['#98B8FF', '#5850FF', '#83D8FF', '#0087FA'], color: ['#98B8FF', '#5850FF', '#83D8FF', '#0087FA'],
lineList: [] lineList: []
}, },
timeValue: [],
orderDetail: {}, orderDetail: {},
orderList: [ orderList: [
{ label: '商城', color: '#5850FF', orderSource: 1, saleAmount: 0, orderCount: 0, radio: 0 }, { label: '商城', color: '#5850FF', orderSource: 1, saleAmount: 0, orderCount: 0, radio: 0 },
...@@ -84,12 +98,57 @@ export default { ...@@ -84,12 +98,57 @@ export default {
] ]
} }
}, },
watch: {
dateValue(val) {
if (val) {
this.storeData(val)
}
}
},
mounted() { mounted() {
this.getLineList() const start = new Date()
this.timeValue = [start.setTime(start.getTime() - 3600 * 1000 * 24 * 14), new Date()]
this.init(this.timeValue)
}, },
methods: { methods: {
getLineList() { init(date) {
this.$apis.home.analysisOrder({}).then(res => { this.getLineList({
startTime: dayjs(date[0]).format('YYYY-MM-DD'),
endTime: dayjs(date[1]).format('YYYY-MM-DD')
})
},
dateChange(val) {
const params = {
startTime: dayjs(val[0]).format('YYYY-MM-DD'),
endTime: dayjs(val[1]).format('YYYY-MM-DD')
}
this.getLineList(params)
},
storeData(name) {
let startTime, endTime
let now = new Date()
let nowMonth = now.getMonth()
let nowYear = now.getFullYear()
this.currentTime = name
switch (name) {
case 'month':
startTime = new Date(nowYear, nowMonth, 1)
endTime = new Date()
// endTime = new Date(nowYear, nowMonth + 1, 0)
break
case 'year':
startTime = new Date(nowYear, 0, 1)
endTime = new Date()
// endTime = new Date(nowYear, 11, 31)
this.dateChange(this.date, 2)
break
}
this.timeValue = [startTime, endTime]
this.dateChange(this.timeValue)
},
getLineList(params) {
this.$apis.home.analysisOrder(params).then(res => {
console.log(res, 9999999) console.log(res, 9999999)
this.orderDetail = res || {} this.orderDetail = res || {}
this.lineList.lineList = res.trendData || [] this.lineList.lineList = res.trendData || []
...@@ -182,6 +241,13 @@ export default { ...@@ -182,6 +241,13 @@ export default {
color: #333333; color: #333333;
text-align: center; text-align: center;
} }
.chart-time {
display: flex;
justify-content: center;
&-picker {
margin-left: 10px;
}
}
} }
.analysis-circle { .analysis-circle {
margin-top: 16px; margin-top: 16px;
......
...@@ -64,24 +64,24 @@ ...@@ -64,24 +64,24 @@
<div> <div>
<div class="step-icon"><img src="@/assets/img/home/step2_i.png" alt="" /></div> <div class="step-icon"><img src="@/assets/img/home/step2_i.png" alt="" /></div>
<div class="step-title-h2 number"> <div class="step-title-h2 number">
10 {{ labelCount }}
<span>个</span> <span>个</span>
</div> </div>
<div class="step-title-h3 text-center">标签数</div> <div class="step-title-h3 text-center">标签数</div>
<div class="step-operation" @click="jumpUrl('/custom/crowdManage/index')"> <div class="step-operation" @click="jumpUrl('/custom/crowdManage/index')">
<label>人群管理</label> <label>标签管理</label>
</div> </div>
</div> </div>
<div> <div>
<div class="step-icon"><img src="@/assets/img/home/step3_i.png" alt="" /></div> <div class="step-icon"><img src="@/assets/img/home/step3_i.png" alt="" /></div>
<div class="step-title-h2 number"> <div class="step-title-h2 number">
10 {{ crowdTotal }}
<span>个</span> <span>个</span>
</div> </div>
<div class="step-title-h3 text-center">人群数</div> <div class="step-title-h3 text-center">人群数</div>
<div class="step-operation" @click="jumpUrl('/custom/crowdManage/index')"> <div class="step-operation" @click="jumpUrl('/custom/crowdManage/index')">
<label>标签管理</label> <label>人群管理</label>
</div> </div>
</div> </div>
</div> </div>
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<div class="background-f7 step-border-4"> <div class="background-f7 step-border-4">
<div class="step-icon"><img src="@/assets/img/home/step4_i.png" alt="" /></div> <div class="step-icon"><img src="@/assets/img/home/step4_i.png" alt="" /></div>
<div class="step-title-h2 number"> <div class="step-title-h2 number">
10 {{ journey_num }}
<span>个</span> <span>个</span>
</div> </div>
<div class="step-title-h3 text-center">客户旅程数</div> <div class="step-title-h3 text-center">客户旅程数</div>
...@@ -119,11 +119,13 @@ ...@@ -119,11 +119,13 @@
</template> </template>
<script> <script>
import { mapActions } from 'vuex' import { mapActions, mapState } from 'vuex'
export default { export default {
name: 'homeStep', name: 'homeStep',
data() { data() {
return { return {
crowdTotal: 0,
labelCount: 0,
cgacarUrl: false, cgacarUrl: false,
loading: false, loading: false,
customerCount: 0, customerCount: 0,
...@@ -136,6 +138,9 @@ export default { ...@@ -136,6 +138,9 @@ export default {
entmicroAddCustomerCountPercent: 0 entmicroAddCustomerCountPercent: 0
} }
}, },
computed: {
...mapState('journey', ['journey_num'])
},
methods: { methods: {
...mapActions('marketing', ['setCustomDetail']), ...mapActions('marketing', ['setCustomDetail']),
jumpUrl(url) { jumpUrl(url) {
...@@ -157,10 +162,48 @@ export default { ...@@ -157,10 +162,48 @@ export default {
this.entmicroAddCustomerCountPercent = customerCount ? ((100 * this.entmicroAddCustomerCount) / customerCount).toFixed(2) : 0 this.entmicroAddCustomerCountPercent = customerCount ? ((100 * this.entmicroAddCustomerCount) / customerCount).toFixed(2) : 0
} }
}) })
},
//标签数
queryLabelCount() {
this.$apis.home
.queryLabelCount({
labelStatReq: {
shopId: this.$globalState.session.merchantId,
edition: 1
}
})
.then(res => {
const { bizLabelCount, rcLabelCount, traLabelCount } = res
this.labelCount = bizLabelCount + rcLabelCount + traLabelCount
})
},
//人群数
async queryCrowdTree() {
const res = await Promise.all([
this.$apis.home.queryCrowdTree({
req: {
pageSize: 1,
pageNum: 1,
crowdType: 2,
merchantId: this.$globalState.session.merchantId
}
}),
this.$apis.home.queryCrowdTree({
req: {
pageSize: 1,
pageNum: 1,
crowdType: 1,
merchantId: this.$globalState.session.merchantId
}
})
])
this.crowdTotal = res.reduce((prev, cur) => prev + cur.total, 0)
} }
}, },
mounted() { mounted() {
this.viewData() this.viewData()
this.queryCrowdTree()
this.queryLabelCount()
if (/cgacar/.test(location.host)) { if (/cgacar/.test(location.host)) {
this.cgacarUrl = true this.cgacarUrl = true
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!