Commit e756cda9 by 李伟康

commit 盯防

1 parent fe721437
...@@ -223,7 +223,6 @@ export function updateKpiMetric (data) { ...@@ -223,7 +223,6 @@ export function updateKpiMetric (data) {
data.method = 'dj.riskmanage.api.kpiMetric.updateKpiMetric' data.method = 'dj.riskmanage.api.kpiMetric.updateKpiMetric'
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
/** /**
* 店效盯防-更多看板-数据指标 * 店效盯防-更多看板-数据指标
*/ */
...@@ -246,4 +245,12 @@ export function getBoardMerchantList (data) { ...@@ -246,4 +245,12 @@ export function getBoardMerchantList (data) {
export function getBoardDetail (data) { export function getBoardDetail (data) {
data.method = 'dj.api.smartcarlife.risk.manage.code.detail.list' data.method = 'dj.api.smartcarlife.risk.manage.code.detail.list'
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
}
\ No newline at end of file \ No newline at end of file
}
/**
* 店效盯防-修改登录人指标隐藏显示
*/
export function updateOneKpiMetric (data) {
data.method = 'dj.riskmanage.api.kpiMetric.updateOneKpiMetri'
return request(data, RequestMethods.POST)
}
...@@ -380,3 +380,12 @@ export function get4sAndServiceMerchantListApi(data) { ...@@ -380,3 +380,12 @@ export function get4sAndServiceMerchantListApi(data) {
data.method = `${path}merchant.merchantAndService.page` data.method = `${path}merchant.merchantAndService.page`
return request(data, "post") return request(data, "post")
} }
/**
*
* 获取车品牌列表
*/
export function getCarBrandList (data = {}) {
data.method = 'dj.api.smartcarlife.common.car.brand.list'
return request(data, RequestMethods.POST)
}
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import sortablejs from "sortablejs" import sortablejs from "sortablejs"
import { getKpiMetric, updateKpiMetric } from '@/api/earlyWarningManager' import { getKpiMetric, updateKpiMetric, updateOneKpiMetric} from '@/api/earlyWarningManager'
export default { export default {
name: '', name: '',
...@@ -219,14 +219,15 @@ export default { ...@@ -219,14 +219,15 @@ export default {
}) })
}) })
console.log(userKpiMetricAddRequestDTOS, '-------') console.log(userKpiMetricAddRequestDTOS, '-------')
const res = await updateKpiMetric({ const apiFun = searchFlag ? updateOneKpiMetric : updateKpiMetric
const res = await apiFun({
userKpiMetricAddRequestDTOS, userKpiMetricAddRequestDTOS,
scope scope
}) })
if (res) { if (res) {
this.$message.success('保存成功') this.$message.success('保存成功')
this.dialogShow = false this.dialogShow = false
// this.$emit('update') this.$emit('update')
} }
} catch (error) { } catch (error) {
if (typeof error === 'string') this.$message.error(error) if (typeof error === 'string') this.$message.error(error)
......
...@@ -235,7 +235,11 @@ export default { ...@@ -235,7 +235,11 @@ export default {
} }
} }
if (this.hasStatisticalPeriod) { if (this.hasStatisticalPeriod) {
console.log(this.statisticalPeriod) params.dateType = {
'day':0,
'week':1,
'month':2,
}[this.statisticalPeriod]
} }
params.startDate = startDate params.startDate = startDate
params.endDate = endDate params.endDate = endDate
......
...@@ -55,9 +55,6 @@ export default { ...@@ -55,9 +55,6 @@ export default {
businessType () { businessType () {
return this.pageData.businessType return this.pageData.businessType
}, },
queryType () {
return this.pageData.queryType
}
}, },
watch: { watch: {
businessType: { businessType: {
...@@ -78,45 +75,33 @@ export default { ...@@ -78,45 +75,33 @@ export default {
this.initStatus = true this.initStatus = true
}, },
async getData () { async getData () {
let { searchTime, businessType, queryType } = this let { searchTime: { startDate, endDate, dateType }, businessType } = this
this.chart = echarts.init(document.getElementById(this.pageData.pageId)) this.chart = echarts.init(document.getElementById(this.pageData.pageId))
if (queryType) { const { merchantId, code } = this.pageData,
const res = await getMerchantOutputDetail({ res = await getBoardDetail({
businessType, businessType,
queryType, merchantId,
...searchTime startDate,
dateType,
endDate,
code: 'A048'
}) })
this.drawChart(res, queryType) this.drawChart(res)
} else {
const { merchantId } = this.pageData,
res = await getBoardDetail({
businessType,
merchantId,
...searchTime
})
console.log(res, 'lll')
}
}, },
drawChart (list, queryType) { drawChart (list) {
this.chart.clear() this.chart.clear()
let { pageData } = this, let { pageData: { name } } = this,
_this = this, _this = this,
{ allYear } = this.searchTime, { allYear, dateType } = this.searchTime,
timeList = [], timeList = [],
data = [], data = []
//1-产值,2-客单价,3-订单数,4-引流率,5-转化率,6-展业门店数,7-店均产值,8-交车数,9-触客数)
queryKey = {
1: 'output',
6: 'storeNum',
2: 'customerPrice',
7: 'storeAverageOutput',
8: 'deliveryNumber',
9: 'touchCustomers'
}[queryType]
list.map(e => { list.map(e => {
// if (!e[queryKey]) e[queryKey] = Math.round(Math.random() * 10000) let { startDate, endDate } = e,
data.push([dayjs(e.countDate).format("YYYY-MM-DD"), e[queryKey] || 0]) axisLabel = dayjs(startDate).format("YYYY-MM-DD"),
timeList.push(e.countDate) weekStr = `${dayjs(startDate).format('MM/DD')}~${dayjs(endDate).format('MM/DD')}`
if (dateType == 1) axisLabel = weekStr
data.push([axisLabel, e.value || 0])
timeList.push(dateType == 1 ? weekStr : e.startDate)
}) })
let option = { let option = {
...@@ -126,20 +111,18 @@ export default { ...@@ -126,20 +111,18 @@ export default {
let [item] = params let [item] = params
if (!item) return if (!item) return
let { dataIndex, axisValue } = item, let { dataIndex, axisValue } = item,
{ output, customerPrice, orderNumber, drainageRate, conversionRate } = list[dataIndex] { value } = list[dataIndex],
return ` title = dayjs(axisValue).format(allYear ? 'YYYY年MM月' : 'MM-DD')
${dayjs(axisValue).format(allYear ? 'YYYY-MM' : 'YYYY-MM-DD')}<br> if (dateType == 1) title = axisValue
return `${title}<br>
<div class="tooltips"> <div class="tooltips">
<i class="circle"></i>产值:${output?.toLocaleString() || 0}<br> <i class="circle"></i>${name}:${value?.toLocaleString() || 0}
客单价:${customerPrice?.toLocaleString() || 0}<br> </div>`;
订单数:${orderNumber || 0}<br>
引流率:${drainageRate || 0}%<br>
转化率:${conversionRate || 0}%</div>`;
} }
}, },
title: { title: {
left: '20', left: '20',
text: `${pageData.name}趋势图` text: `${name}趋势图`
}, },
grid: { grid: {
left: 100, left: 100,
......
...@@ -25,7 +25,7 @@ export const tooltipConfig = { ...@@ -25,7 +25,7 @@ export const tooltipConfig = {
// } // }
} }
export const xAxisConfig = (params) => { export const xAxisConfig = (params) => {
let { allYear } = params.searchTime, let { allYear, dateType } = params.searchTime,
xaxis = { xaxis = {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
...@@ -40,6 +40,7 @@ export const xAxisConfig = (params) => { ...@@ -40,6 +40,7 @@ export const xAxisConfig = (params) => {
formatter: function (value, index) { formatter: function (value, index) {
let str = '' let str = ''
str = allYear ? dayjs(value).format('MM月') : dayjs(value).format('MM/DD') str = allYear ? dayjs(value).format('MM月') : dayjs(value).format('MM/DD')
if (dateType == 1) str = value
return str return str
} }
...@@ -55,8 +56,10 @@ export const dataZoomSliderConfig = (params, timeList) => { ...@@ -55,8 +56,10 @@ export const dataZoomSliderConfig = (params, timeList) => {
left: 100, left: 100,
right: 100, right: 100,
labelFormatter (value) { labelFormatter (value) {
let { allYear } = params.searchTime let { allYear, dateType } = params.searchTime,
return allYear ? dayjs(timeList[value]).format('YYYY年MM月') : dayjs(timeList[value]).format('YYYY-MM-DD') str = allYear ? dayjs(timeList[value]).format('YYYY年MM月') : dayjs(timeList[value]).format('YYYY-MM-DD')
if(dateType == 1) str = timeList[value]
return str
} }
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,10 @@ ...@@ -10,7 +10,10 @@
/> />
</el-tabs> </el-tabs>
<template v-if="activeName == '1'"> <template v-if="activeName == '1'">
<el-button class="edit-board" @click="dialogShow = true"> <el-button
class="edit-board"
@click="dialogShow = true"
>
<span class="el-icon-edit-outline"></span> <span class="el-icon-edit-outline"></span>
编辑指标 编辑指标
</el-button> </el-button>
...@@ -27,13 +30,14 @@ ...@@ -27,13 +30,14 @@
@openWindow="$emit('openWindow',$event)" @openWindow="$emit('openWindow',$event)"
:pageId="i.id" :pageId="i.id"
:search-form="searchForm" :search-form="searchForm"
:refreshFlag.sync="i.refreshFlag"
/> />
</template> </template>
</div> </div>
<pointer-config <pointer-config
:show.sync="dialogShow" :show.sync="dialogShow"
:scope="1" :scope="1"
@update="$emit('update')" @update="search"
/> />
</div> </div>
</template> </template>
...@@ -76,6 +80,9 @@ export default { ...@@ -76,6 +80,9 @@ export default {
methods: { methods: {
search () { search () {
this.$refs[`component-${this.activeName}`][0].search() this.$refs[`component-${this.activeName}`][0].search()
this.tabList.map(e => {
if (e.id != this.activeName) e.refreshFlag = true
})
} }
} }
} }
......
<template> <template>
<div class="data-list"> <div class="data-list-box">
<template v-for="(item,index) in boardList"> <template v-if="boardList.length">
<board-item <div class="data-list">
:key="index"
class="board-item" <template v-for="(item,index) in boardList">
:item="item" <board-item
:data="boardData" :key="index"
@click="openWindow(item)" class="board-item"
> :item="item"
<div class="board-tips"> :data="item.data"
<el-tooltip placement="top"> @click="openWindow(item)"
<div slot="content">多行信息<br />第二行信息</div> >
<div class="board-tips-icon">?</div> <div class="board-tips">
</el-tooltip> <el-tooltip placement="top">
</div> <div slot="content">{{item.definition}}</div>
</board-item> <div class="board-tips-icon">?</div>
</el-tooltip>
</div>
</board-item>
</template>
</div>
</template>
<template v-else>
<div class="no-data">
暂无数据
</div>
</template> </template>
</div> </div>
</template> </template>
...@@ -32,63 +43,37 @@ export default { ...@@ -32,63 +43,37 @@ export default {
name: '', name: '',
data () { data () {
return { return {
boardData: { boardList: [],
},
boardList: [
{
name: '总产值',
value: 'output',
percent: 'outputRatio',
unit: '(元)'
},
{
name: '客单价',
value: 'customerUnitPrice',
percent: 'customerUnitPriceRatio',
unit: '(元)'
},
{
name: '交车数',
value: 'deliveryNum',
percent: 'deliveryNumRatio',
},
{
name: '触客数',
value: 'touchCustomers',
percent: 'touchCustomersRatio',
},
{
name: '转化数',
value: 'conversionNum',
percent: 'conversionNumRatio',
},
],
} }
}, },
mounted () { mounted () {
}, },
methods: { methods: {
async search () { async search () {
this.boardList.map((e, index) => { this.boardList = this.$options.data.call(this).boardList
e.componentName = 'boardDetail' let { businessType } = this.searchForm
e.pageId = `data-board-${index}`
e.tabTitle = `${e.name}详情`
})
return
const res = await getBoardList({ const res = await getBoardList({
...this.searchForm ...this.searchForm,
scope: 1
})
res.map(e => {
this.boardList.push({
componentName: 'boardDetail',
pageId: `board-${e.code}`,
tabTitle: `${e.name}详情`,
definition: e.definition,
code: e.code,
name: e.name,
businessType,
data: e,
value: 'value',
percent: 'ratio'
})
}) })
console.log(res)
}, },
openWindow (e) { openWindow (e) {
let { businessType } = this.searchForm
console.log(e) console.log(e)
this.$emit('openWindow', { this.$emit('openWindow', e)
...e,
businessType
})
} }
} }
} }
...@@ -123,4 +108,13 @@ export default { ...@@ -123,4 +108,13 @@ export default {
} }
} }
} }
.no-data {
background: white;
padding: 20px 0;
min-height: 60px;
display: flex;
align-items: center;
justify-content: center;
color: #909399;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import SearchBox from '../SearchBox' import SearchBox from '../SearchBox'
import dataGroup from './dataGroup.vue' import dataGroup from './dataGroup.vue'
import { listShop4sByRef } from "@api/merchant" import { listShop4sByRef, getCarBrandList } from "@api/merchant"
export default { export default {
name: '', name: '',
components: { components: {
...@@ -108,10 +108,10 @@ export default { ...@@ -108,10 +108,10 @@ export default {
type: 'select', type: 'select',
multiple: true, multiple: true,
isClear: true, isClear: true,
optionList: [ collapseTags: true,
], optionList: [],
optionId: 'value', optionId: 'id',
optionLabel: 'name', optionLabel: 'label',
}, },
{ {
label: '门店范围', label: '门店范围',
...@@ -137,6 +137,7 @@ export default { ...@@ -137,6 +137,7 @@ export default {
}, },
mounted () { mounted () {
this.getServiceStore() this.getServiceStore()
this.getCarBrandList()
}, },
methods: { methods: {
getServiceStore (merchantId) { getServiceStore (merchantId) {
...@@ -153,12 +154,30 @@ export default { ...@@ -153,12 +154,30 @@ export default {
}) })
}) })
}, },
async getCarBrandList () {
const res = await getCarBrandList({ containsChildren: true }),
brandList = []
console.log(res)
res.map(e => {
if (e && e.children && e.children.length) {
e.children.map(i => {
brandList.push(i)
})
}
})
this.showFormData.map(item => {
if (item.name == 'secondBrandIdList') {
item.optionList = brandList || []
}
})
},
handleReset () { handleReset () {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
this.$refs.timeRef.handleReset() this.$refs.timeRef.handleReset()
this.$nextTick(() => this.search()) this.$nextTick(() => this.search())
}, },
setTimeData (e) { setTimeData (e) {
delete e.allYear
this.searchForm = { this.searchForm = {
...this.searchForm, ...this.searchForm,
...e ...e
......
...@@ -10,11 +10,18 @@ ...@@ -10,11 +10,18 @@
ref="table" ref="table"
:table-params="tableParams" :table-params="tableParams"
:tableData="tableData" :tableData="tableData"
:table-total="tableTotal" :hasPage="false"
:has-num="false" :has-num="false"
@pageChange="pageChange"
noDataText="暂无门店数据" noDataText="暂无门店数据"
> >
<template
slot="sortableHtml"
slot-scope="scope"
>
<div class="sortableHtml">
{{scope.scope[scope.prop]}}
</div>
</template>
<div <div
slot="auth-button" slot="auth-button"
slot-scope="scope" slot-scope="scope"
...@@ -31,7 +38,7 @@ ...@@ -31,7 +38,7 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import onShowMixin from './onShowMixin' import onShowMixin from './onShowMixin'
import { getBoardMerchantList } from '@api/earlyWarningManager' import { getBoardMerchantList } from '@api/earlyWarningManager'
import dayjs from 'dayjs'
export default { export default {
mixins: [onShowMixin], mixins: [onShowMixin],
name: '', name: '',
...@@ -52,83 +59,92 @@ export default { ...@@ -52,83 +59,92 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '门店名称', label: '门店名称',
prop: 'merchantName4s', prop: 'merchantName',
width: '150' width: '150'
}, { }, {
label: '商户号', label: '商户号',
prop: 'merchantId4s', prop: 'merchantId',
width: '100' width: '100'
}, { }, {
label: '是否直营', label: '是否直营',
prop: 'customerName', formatter (row) {
//直营(0-非直营,1-直营)
return {
0: '非直营',
1: '直营'
}[row.directSale]
}
}, { }, {
label: '展业时间', label: '展业时间',
prop: 'carModel', formatter (row) {
return row.startBusiness ? dayjs(row.startBusiness).format('YYYY-MM-DD') : '-'
}
}, { }, {
label: '督导', label: '督导',
width: '130', width: 'supervisionList',
formatter (row) { formatter (row) {
let result = { return "-"
1: "成交",
0: "战败"
}[row.receptionStatus]
return result || "-"
} }
}, { }, {
label: '归属业务', label: '归属业务',
prop: 'orderFinishFlag', prop: 'businessType',
width: '130', width: '130',
formatter (row) { formatter (row) {
return row.orderFinishFlag ? '成交' : '战败' return {
2: '轻改',
3: '权益',
4: '延保',
}[row.businessType]
} }
}, { }, {
label: '主营品牌', label: '主营品牌',
prop: "score", prop: "brandList",
formatter (row) { formatter (row) {
return row.score != null ? row.score : '-' return
} }
}, { }, {
label: '业务性质', label: '业务性质',
prop: "defencePoint", prop: "businessScenario",
formatter (row) { formatter (row) {
return row.defencePoint != null ? row.defencePoint : '-' return {
1: '直营渠道',
2: '直营4S店',
4: '投资收购-利丰',
5: '投资收购-内蒙古',
6: '服务商投资',
}[row.businessScenario] || '-'
} }
}, { }, {
label: '门店范围',
prop: "customerTypeName",
width: '130',
}, {
label: '产值', label: '产值',
width: '150', width: '150',
prop: "startTime", prop: "output",
sortable:true sortable: true,
addHtml: 'sortableHtml'
}, { }, {
label: '订单数', label: '订单数',
width: '150', width: '150',
prop: "endTime", prop: "orderNumber",
sortable:true sortable: true,
addHtml: 'sortableHtml'
}, { }, {
label: '客单价', label: '客单价',
width: '130', width: '130',
prop: "seconds", prop: "customerUnitPrice",
sortable:true sortable: true,
addHtml: 'sortableHtml'
}, { }, {
label: '渗透率', label: '渗透率',
prop: "axbOpenFlag", prop: "penetrationRate",
width: 130, width: 130,
sortable:true, sortable: true,
formatter (row) { addHtml: 'sortableHtml'
return row.axbOpenFlag ? "是" : "否"
}
}, },
{ {
label: '触客转化率', label: '触客转化率',
prop: "isFinishFlag", prop: "touchConversionRate",
sortable:true, sortable: true,
width: 130, width: 130,
formatter (row) { addHtml: 'sortableHtml'
return row.finishFlag ? "是" : "否"
}
} }
] ]
}, },
...@@ -138,25 +154,25 @@ export default { ...@@ -138,25 +154,25 @@ export default {
}, },
methods: { methods: {
async search () { async search () {
return this.tableData = []
const { total, list } = await getBoardMerchantList({ const res = await getBoardMerchantList({
...this.page,
...this.searchForm ...this.searchForm
}) })
this.tableData = list console.log(res)
this.tableTotal = total this.tableData = res
// this.tableTotal = total
}, },
handleDetail (e) { handleDetail (e) {
this.$emit('openWindow', { this.$emit('openWindow', {
...e, ...e,
pageId: `merchant-${e.merchantId4s}`, pageId: `merchant-${e.merchantId}`,
componentName: 'shop-detail', componentName: 'shop-detail',
tabTitle: `${e.merchantName4s}门店详情`, tabTitle: `${e.merchantName}门店详情`,
merchantId: e.merchantId4s, merchantId: e.merchantId,
merchantName: e.merchantName4s merchantName: e.merchantName
}) })
}, },
pageChange(e){ pageChange (e) {
this.page = e this.page = e
this.search() this.search()
} }
......
...@@ -4,9 +4,10 @@ export default { ...@@ -4,9 +4,10 @@ export default {
initStatus: false, initStatus: false,
} }
}, },
props:{ props: {
show: Boolean, show: Boolean,
searchForm:Object searchForm: Object,
refreshFlag: Boolean
}, },
mounted () { mounted () {
let search = this.search let search = this.search
...@@ -18,9 +19,10 @@ export default { ...@@ -18,9 +19,10 @@ export default {
show: { show: {
async handler (newVal) { async handler (newVal) {
if (newVal) { if (newVal) {
if (!this.initStatus) { if (!this.initStatus || this.refreshFlag) {
await this.search() await this.search()
this.initStatus = true this.initStatus = true
this.$emit('update:refreshFlag', false)
} }
} }
}, },
......
export const KpiList = {
'A014': {
}
}
\ No newline at end of file \ No newline at end of file
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
import BoardItem from '../../shopGuardIndex/BoardItem' import BoardItem from '../../shopGuardIndex/BoardItem'
import Funnel from './Funnel' import Funnel from './Funnel'
import LineChart from './LineChart' import LineChart from './LineChart'
import { getMerchantBaseDetail } from '@/api/earlyWarningManager' import { getMerchantBaseDetail, getBoardList } from '@/api/earlyWarningManager'
import onShowMixin from '../onShowMixin' import onShowMixin from '../onShowMixin'
export default { export default {
mixins: [onShowMixin], mixins: [onShowMixin],
...@@ -53,49 +53,21 @@ export default { ...@@ -53,49 +53,21 @@ export default {
boardData: { boardData: {
outputTrend: [] outputTrend: []
}, },
boardList: [ boardList: [],
{
name: '总产值',
value: 'output',
percent: 'outputRatio',
unit: '(元)'
},
{
name: '客单价',
value: 'customerUnitPrice',
percent: 'customerUnitPriceRatio',
unit: '(元)'
},
{
name: '交车数',
value: 'deliveryNum',
percent: 'deliveryNumRatio',
},
{
name: '触客数',
value: 'touchCustomers',
percent: 'touchCustomersRatio',
},
{
name: '转化数',
value: 'conversionNum',
percent: 'conversionNumRatio',
},
],
} }
}, },
watch: { watch: {
pageData: { pageData: {
handler (newVal) { handler (newVal) {
let { businessType, merchantId, merchantName } = newVal
this.boardList.map((e, index) => { // let { businessType, merchantId, merchantName } = newVal
e.businessType = businessType // this.boardList.map((e, index) => {
e.componentName = 'boardDetail' // e.businessType = businessType
e.pageId = `board-${merchantId}-${index}` // e.componentName = 'boardDetail'
e.tabTitle = `${e.name}(${merchantName})` // e.pageId = `board-${merchantId}-${index}`
}) // e.tabTitle = `${e.name}(${merchantName})`
// })
}, },
immediate: true, immediate: true,
deep: true deep: true
...@@ -117,6 +89,33 @@ export default { ...@@ -117,6 +89,33 @@ export default {
if (res[key] == null) res[key] = '-' if (res[key] == null) res[key] = '-'
}) })
this.boardData = res this.boardData = res
this.getBoardList()
},
async getBoardList () {
this.boardList = this.$options.data.call(this).boardList
let { merchantId, merchantName, businessType } = this.pageData,
{ searchTime: { startDate, endDate } } = this
const res = await getBoardList({
businessType,
merchantId,
startDate,
endDate,
scope: 2
})
res.map(e => {
this.boardList.push({
componentName: 'boardDetail',
pageId: `board-${e.code}`,
tabTitle: `${e.name}(${merchantName})`,
definition: e.definition,
code: e.code,
name: e.name,
businessType,
data: e,
value: 'value',
percent: 'ratio'
})
})
}, },
openWindow (e) { openWindow (e) {
this.$emit('openWindow', e) this.$emit('openWindow', e)
......
...@@ -107,48 +107,48 @@ export default { ...@@ -107,48 +107,48 @@ export default {
value: 'output', value: 'output',
percent: 'outputRatio', percent: 'outputRatio',
unit: '(元)', unit: '(元)',
queryType: 1 code: 'A014'
}, },
{ {
name: '展业门店数', name: '展业门店数',
value: 'storeNum', value: 'storeNum',
percent: 'storeNumRatio', percent: 'storeNumRatio',
queryType: 6 code: 'A045'
}, },
{ {
name: '客单价', name: '客单价',
value: 'customerUnitPrice', value: 'customerUnitPrice',
percent: 'customerUnitPriceRatio', percent: 'customerUnitPriceRatio',
unit: '(元)', unit: '(元)',
queryType: 2 code: 'A020'
}, },
{ {
name: '店均产值', name: '店均产值',
value: 'storeAverageOutput', value: 'storeAverageOutput',
percent: 'storeAverageOutputRatio', percent: 'storeAverageOutputRatio',
unit: '(元)', unit: '(元)',
queryType: 7 code: 'A044'
}, },
{ {
name: '交车数', name: '交车数',
value: 'deliveryNum', value: 'deliveryNum',
percent: 'deliveryNumRatio', percent: 'deliveryNumRatio',
queryType: 8 code: 'A001'
}, },
{ {
name: '触客数', name: '触客数',
value: 'touchNum', value: 'touchNum',
percent: 'touchNumRatio', percent: 'touchNumRatio',
queryType: 9 code: 'A004'
}, },
], ],
timeObject: {} timeObject: {}
} }
}, },
mounted () { mounted () {
this.boardList.map((e, index) => { this.boardList.map(e => {
e.componentName = 'boardDetail' e.componentName = 'boardDetail'
e.pageId = `board-${index}` e.pageId = `board-${e.code}`
e.tabTitle = `${e.name}详情` e.tabTitle = `${e.name}详情`
}) })
}, },
...@@ -177,7 +177,6 @@ export default { ...@@ -177,7 +177,6 @@ export default {
this.$emit('changeBusinessType', this.businessType) this.$emit('changeBusinessType', this.businessType)
}, },
openWindow (e) { openWindow (e) {
console.log(e)
let { businessType } = this let { businessType } = this
this.$emit('openWindow', { this.$emit('openWindow', {
...e, ...e,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!