Commit 4c546720 by 前端

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

fixed

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