Commit 4c546720 by 前端

Merge branch 'yangm_dev_v2.4.0' into 'v2.4.0'

fixed

See merge request !120
2 parents 74665add 0b304c7c
<template>
<div>
<el-dialog :title="dialogTitle" :visible.sync="groupVisible" width="50%" :before-close="handleClose">
<el-dialog top="5vh" :title="dialogTitle" :visible.sync="groupVisible" width="50%" :before-close="handleClose">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="grouping-ruleForm">
<el-form-item label="分群名称" prop="crowdGroupName" size="small">
<el-input v-model="ruleForm.crowdGroupName" placeholder="请输入分群名称" maxlength="30"></el-input>
<el-input v-model="ruleForm.crowdGroupName" placeholder="请输入分群名称" maxlength="30" show-word-limit></el-input>
</el-form-item>
<el-form-item label="分群描述" size="small">
<el-input v-model="ruleForm.crowdGroupDesc" placeholder="请输入分群描述" maxlength="100"></el-input>
<el-input v-model="ruleForm.crowdGroupDesc" placeholder="请输入分群描述" maxlength="100" show-word-limit></el-input>
</el-form-item>
<el-form-item label="概览是否展示" size="small">
<el-radio-group v-model="ruleForm.isDisplay">
......@@ -101,7 +101,7 @@ export default {
},
mounted() {
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 630
this.heightBox = clientHeight - 520
this.getCrowdList()
},
methods: {
......
......@@ -168,13 +168,19 @@ export default {
},
// 跳转SOP分析
handleJump(id) {
const { crowdGroupName, crowdGroupDesc } = this.$route.query
console.log(crowdGroupName)
let query = JSON.stringify({
crowdId: this.crowdGroupId,
selectTab: 'second'
crowdGroupDesc,
selectTab: 'second',
crowdGroupName
})
if (this.$route.query && this.$route.query.flag == 1) {
query = JSON.stringify({
crowdId: this.crowdGroupId,
crowdGroupDesc,
crowdGroupName,
selectTab: 'second',
flag: 1
})
......@@ -183,9 +189,12 @@ export default {
},
// 跳转到编辑营销SOP
handleEdit(row) {
const { crowdGroupName, crowdGroupDesc } = this.$route.query
let query = JSON.stringify({
crowdId: this.crowdGroupId,
selectTab: 'second'
selectTab: 'second',
crowdGroupDesc,
crowdGroupName
})
this.$history.push(`/marketing/sop/editSop?fromPage=${encodeURI(`/custom/clientDataOverview/marketingPeople?crowQuery=${query}`)}&addOrEdit=edit&id=${row.id}&$title=编辑SOP`)
},
......
......@@ -214,7 +214,7 @@ export default {
}
// 针对广汇替换字段
// cgacar
if ((this.id == 1 || this.id == 2 || this.id == 3) && location.host.includes('cgacar')) {
if ((this.id == 4 || this.id == 5 || this.id == 6) && location.host.includes('cgacar')) {
this.tableParams.tableColumns.splice(
3,
3,
......@@ -255,7 +255,7 @@ export default {
'req.merchantId': this.merchantId
}
await searchCrowdIdByCrowdname(params).then(res => {
this.corwdId = res
this.corwdId = res
})
marketQuery = {
crowdDesc: this.groupCorwdDesc,
......
......@@ -22,7 +22,7 @@
</div>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- <auth-button :data="scope.scope"></auth-button> -->
<el-button type="text" @click="goDetail(scope.scope.crowdGroupId)" class="blue-text">
<el-button type="text" @click="goDetail(scope.scope)" class="blue-text">
查看客户
</el-button>
<el-button type="text" @click="handleAdd(scope.scope)" class="blue-text">
......@@ -114,6 +114,7 @@ export default {
{
label: '分群名称',
prop: 'crowdGroupName',
width: 300,
line: 1
},
{
......@@ -284,8 +285,8 @@ export default {
this.isReload = true
})
},
goDetail(id) {
this.$router.push(`/clientDataOverview/marketingPeople?crowdId=${id}`)
goDetail(item) {
this.$router.push(`/clientDataOverview/marketingPeople?crowdId=${item.crowdGroupId}&crowdGroupName=${item.crowdGroupName}&crowdGroupDesc=${item.crowdGroupDesc}`)
}
}
}
......
......@@ -286,7 +286,7 @@
<div class="itembox">
<template v-for="(item, index) in customerSegmentation">
<!-- fn="人群客户列表" mode="div" -->
<div class="item" @click="goToGroupOperating(item.crowdGroupId)" :key="index" v-if="index < displayNum">
<div class="item" @click="goToGroupOperating(item)" :key="index" v-if="index < displayNum">
<div class="itemTitle">
<span class="itemName">{{ item.crowdGroupName }}</span>
<el-popover placement="top" trigger="hover" :content="item.crowdGroupDesc">
......@@ -566,8 +566,8 @@ export default {
console.log(this.customerSegmentation)
})
},
goToGroupOperating(id) {
this.$router.push(`/clientDataOverview/marketingPeople?crowdId=${id}&flag=1`)
goToGroupOperating(item) {
this.$router.push(`/clientDataOverview/marketingPeople?crowdId=${item.crowdGroupId}&crowdGroupName=${item.crowdGroupName}&crowdGroupDesc=${item.crowdGroupDesc}&flag=1`)
},
goNextPage() {
this.$history.push('/drainage/square/index')
......
......@@ -2,8 +2,8 @@
<div>
<!-- 大标题 -->
<p class="topTitle">
<span class="title">待定保客户</span>
<span class="desc">下个月待定保客户</span>
<span class="title">{{ crowdGroupName }}</span>
<span class="desc">{{ crowdGroupDesc }}</span>
</p>
<!-- 切换导航栏 -->
<el-tabs v-model="activeName" @tab-click="handleClick">
......@@ -23,11 +23,11 @@
<el-divider></el-divider>
<!-- 营销人群展示 -->
<div :class="{ secondBigMarketItem: isSecondBigMarketItem, bigMarketItem: isBigMarketItem }" v-if="closeFlag">
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx, item.crowdName, item.crowdId)">
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx, item.crowdName, item.crowdId, item.sop)">
<template v-if="idx < displayNum">
<el-tooltip :content="item.crowdName" placement="top">
<p class="peopleName">{{ item.crowdName }}</p>
</el-tooltip>
<!-- <el-tooltip :content="item.crowdName" placement="top"> -->
<p class="peopleName">{{ item.crowdName }}</p>
<!-- </el-tooltip> -->
<!-- <p class="peopleName">{{ item.crowdName }}</p> -->
<div class="itemBox">
<p class="peopleNum">
......@@ -44,11 +44,11 @@
<div v-show="!closeFlag">
<div class="swiper-container" id="swiper">
<div class="swiper-wrapper">
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem', 'swiper-slide']" @click="choickItem(idx, item.crowdName, item.crowdId)">
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem', 'swiper-slide']" @click="choickItem(idx, item.crowdName, item.crowdId, item.sop)">
<div class="marketItem-border">
<el-tooltip :content="item.crowdName" placement="top">
<p class="peopleName">{{ item.crowdName }}</p>
</el-tooltip>
<!-- <el-tooltip :content="item.crowdName" placement="top"> -->
<p class="peopleName">{{ item.crowdName }}</p>
<!-- </el-tooltip> -->
<div class="itemBox">
<p class="peopleNum">
{{ item.total }}
......@@ -72,7 +72,7 @@
</div>
<div>
<el-button size="small" @click="handleExport">导出</el-button>
<el-button class="marketSOP" size="small" @click="marketSOP()">营销SOP</el-button>
<el-button class="marketSOP" size="small" :disabled="sopStatus == 'Y'" @click="marketSOP()">营销SOP</el-button>
</div>
</div>
<GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" :beforeSearchFn="beforeSearchFn" ref="marketPeople" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :tableParams="tableParams">
......@@ -122,12 +122,15 @@ export default {
components: { marketingPlan },
data() {
return {
sopStatus: '',
isSecondBigMarketItem: '',
isBigMarketItem: '',
screenWidth: null,
selectTab: 1,
queryTab: '',
crowdGroupId: '',
crowdGroupName: '',
crowdGroupDesc: '',
activeName: 'first',
searchForm: {
crowdId: '',
......@@ -233,7 +236,8 @@ export default {
label: '客户名称',
prop: 'customerName',
// addHtml: 'customerName',
minWidth: 150
width: 300,
line: 1
},
{
label: '企微名称',
......@@ -298,6 +302,8 @@ export default {
created() {
this.crowdGroupId = this.$route.query.crowdId || ''
this.crowdGroupName = this.$route.query.crowdGroupName
this.crowdGroupDesc = this.$route.query.crowdGroupDesc
// 判断营销SOP返回来的页面
this.queryTab = this.$route.query.selectTab || ''
if (this.queryTab) {
......@@ -307,6 +313,8 @@ export default {
if (this.$route.query.crowQuery) {
let crowInfo = JSON.parse(this.$route.query.crowQuery)
this.crowdGroupId = crowInfo.crowdId
this.crowdGroupName = crowInfo.crowdGroupName
this.crowdGroupDesc = crowInfo.crowdGroupDesc
this.activeName = crowInfo.selectTab == 'first' ? 'first' : 'second'
}
this.getStaffList()
......@@ -375,7 +383,7 @@ export default {
handleExport() {
var params = {
customCrowd: true,
crowdId: this.backupCrowdId,
crowdId: this.backupCrowdId ? this.backupCrowdId : this.theFirstGroudId,
pageSize: 10,
pageNum: 1
}
......@@ -416,6 +424,7 @@ export default {
this.itemArr = res
this.showTitle = this.itemArr[0].crowdName
this.theFirstGroudId = this.searchForm.crowdId = this.itemArr[0].crowdId
this.sopStatus = this.itemArr[0].sop
})
}
return new Promise((resolve, reject) => {
......@@ -473,7 +482,7 @@ export default {
}
var params = {
addOrEdit: 'add',
fromPage: `/custom/clientDataOverview/marketingPeople?crowdId=${this.crowdGroupId}&selectTab=first`,
fromPage: `/custom/clientDataOverview/marketingPeople?crowdId=${this.crowdGroupId}&crowdGroupName=${this.crowdGroupName}&crowdGroupDesc=${this.crowdGroupDesc}&selectTab=first`,
$title: encodeURI('新建SOP'),
info: {
// 人群
......@@ -497,7 +506,8 @@ export default {
}
},
// 选择的人群
choickItem(idx, title, Cid) {
choickItem(idx, title, Cid, sop) {
this.sopStatus = sop
this.isActive = idx
this.showTitle = title
this.backupCrowdId = Cid
......@@ -599,6 +609,12 @@ export default {
}
}
.peopledesc {
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
word-break: break-all;
font-size: 14px;
color: #999999;
line-height: 20px;
......@@ -701,6 +717,12 @@ export default {
color: #999999;
line-height: 20px;
height: 40px;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
word-break: break-all;
}
.createSOP {
margin: 24px 0;
......@@ -761,6 +783,12 @@ export default {
color: #999999;
line-height: 20px;
height: 40px;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
word-break: break-all;
}
.createSOP {
margin: 24px 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!