Commit e7ea2c2e by 徐忆琳

Merge branch 'v3.19.0_10' into 'v3.19.0'

更新客户旅程代码

See merge request !4
2 parents 4c508ece 89d4d533
......@@ -22,9 +22,9 @@ const pictureUpload = params => {
}
const getMerchantList = params => {
params.method = `${defaultPath}merchant.listWithPageByCurMerchant`
params.method = 'merchants.api.open.findMerchantListByPage'
return http_merchant({
url: 'rop-scrm-carlife/router',
url: 'rop-merchants/router',
method: 'POST',
data: params,
sign: true
......
......@@ -62,7 +62,7 @@ const sopInstsApi = (params) => {
method: 'POST',
data: params,
sign: false,
noNeed:true
noSessionId:true
})
}
......
......@@ -9,7 +9,8 @@
<template>
<div class="border-content">
<div class="journey-step-info" v-for="(stepItem, k) in configList" :key="k">
<div v-if="stepItem.sopList.flat(Initify).length>0">
<!-- v-if="stepItem.sopList.flat(Initify).length>0"-->
<div >
<div :class="{ 'collapse-item': true, 'is-active': stepItem.isExpaned }">
<div class="collapse-item-tab flex-column-center pl20">
<i class="el-icon-caret-bottom" v-show="stepItem.isExpaned" @click="handleExpand(stepItem)"></i>
......
......@@ -88,7 +88,7 @@ export default {
],
pageConfig: {
pageSize: 10,
currentPage: 1
pageNum: 1
},
tableParams: {
listName: 'list',
......@@ -128,7 +128,7 @@ export default {
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
baseData: {}
}
},
......@@ -166,6 +166,7 @@ export default {
getList(pageCon) {
pageCon && (this.pageConfig = pageCon)
var params = {
merchantAccountLevel:[4],
merchantId: this.merchantId,
...this.searchForm,
...this.pageConfig
......@@ -173,14 +174,13 @@ export default {
}
this.$apis.common.getMerchantList(params).then(res => {
this.storeList = res.list
this.total = res.total
this.storeList = res.data
this.total = res.count
// // this.storeList = res.staffUnitList
// // var page = this.$refs.staffRef.page
// // // 添加序号
// pageConfig
let nowIndex = this.pageConfig.pageSize * (this.pageConfig.currentPage - 1)
let nowIndex = this.pageConfig.pageSize * (this.pageConfig.pageNum - 1)
this.storeList.forEach((item, index) => {
item.idx = index + 1 + nowIndex
})
......
......@@ -19,7 +19,7 @@ const tableConfig = {
label: '旅程阶段',
prop: 'instRemark',
addHtml: 'instRemark',
width:250
width:320
},
{
label: '门店名称',
......
......@@ -111,7 +111,8 @@ export default {
methods: {
getDetail(val) {
this.$apis.journeyConfig.getInsDetailsApi({instId: val}).then(res => {
const stages = JSON.parse(res.instParam).stages.defaultValue
const stages = JSON.parse(res.instParam).stages
// .defaultValue
const nodes = res.nodes
const configList = []
for (let k in stages) {
......
......@@ -27,11 +27,11 @@
:beforeSearchFn="beforeSearchFn">
<div slot="instRemark" slot-scope="scope" style="display:flex">
<div v-for="(item,index) in handleStage(scope)" :key="index">
<div v-if="index <= 4">
<div v-if="index <= 3">
{{ item.name }}
{{ getCommaSeparator('less', index, scope) }}
</div>
<div v-if="index > 4">
<div v-if="index > 3">
<el-popover placement="top" width="600" trigger="hover"
content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...</span>
......@@ -88,7 +88,7 @@ export default {
},
handleStage(scope) {
let stages = JSON.parse(scope.scope.instParam).stages.defaultValue
let stages = JSON.parse(scope.scope.instParam).stages
let list = []
for (let k in stages) {
list.push({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!