Commit 7df16b48 by 前端

Merge branch 'v2.11.0' of http://192.168.3.233:8090/saas/scrm-micro-custom into xuyl_dev_v3.5.0

2 parents 28125d45 2812dc2a
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"echarts": "^5.2.0", "echarts": "^5.2.0",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.4.7", "glsx-components": "^1.5.2",
"glsx-table": "^1.1.0", "glsx-table": "^1.1.0",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"sha1": "^1.1.1", "sha1": "^1.1.1",
......
<template> <template>
<div> <div class="gl-form-page gl-form-min">
<el-form :model="ruleForm" :rules="rules" :label-position="labelPosition" :label-width="labelWidth" :size="size"> <el-form :model="ruleForm" :rules="rules" :label-position="labelPosition" :size="size">
<el-form-item v-for="(item, index) in ruleData" :key="index" :label="item.label" :prop="item.prop || ''" :class="item.class" v-show="!item.hidden"> <el-form-item v-for="(item, index) in ruleData" :key="index" :label="item.label" :prop="item.prop || ''" :class="item.class" v-show="!item.hidden">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="item.type === 'input'"> <template v-if="item.type === 'input'">
...@@ -75,10 +75,10 @@ export default { ...@@ -75,10 +75,10 @@ export default {
type: String, type: String,
default: 'small' default: 'small'
}, },
labelWidth: { // labelWidth: {
type: String, // type: String,
default: '100px' // default: '100px'
} // }
}, },
mounted() {}, mounted() {},
methods: { methods: {
......
...@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) { ...@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
return Promise.resolve(cfg) return Promise.resolve(cfg)
} }
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2') return new Http({ request: { timeout: 3000 } }).get('https://oss-config.dev.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
//开发环境mock //开发环境mock
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2') // return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
} }
......
import { getCustomersList, exportLabelList } from '@/api/modules/tagsManage' import {
import { getStaffList } from '@/api/modules/clientManage' getCustomersList,
exportLabelList
} from '@/api/modules/tagsManage'
import {
getStaffList
} from '@/api/modules/clientManage'
export default { export default {
data() { data() {
return { return {
...@@ -24,15 +29,20 @@ export default { ...@@ -24,15 +29,20 @@ export default {
this.tagHeight = 0 this.tagHeight = 0
} }
this.allListParams = [] this.allListParams = []
this.sopListParams = []
const tagNode = this.$common.utils.deepClone(this.tagCheckItem) const tagNode = this.$common.utils.deepClone(this.tagCheckItem)
tagNode.forEach(group_item => { tagNode.forEach(group_item => {
group_item.children.forEach(label_item => { group_item.children.forEach(label_item => {
if (label_item) { if (label_item) {
this.allListParams.push({ this.allListParams.push({
groupId: group_item.id, groupId: group_item.id,
groupName: group_item.name, // groupName: group_item.name,
groupType: group_item.labelType, groupType: group_item.labelType,
labelId: label_item.id, labelId: label_item.id,
// labelName: label_item.name
})
this.sopListParams.push({
labelGroupName: group_item.name,
labelName: label_item.name labelName: label_item.name
}) })
} }
...@@ -71,12 +81,14 @@ export default { ...@@ -71,12 +81,14 @@ export default {
value: item.staffName value: item.staffName
} }
}) })
staff.unshift({ label: '全部', value: '' }) staff.unshift({
label: '全部',
value: ''
})
this.$nextTick(() => { this.$nextTick(() => {
this.tagsPartFormList[id].optionList = staff this.tagsPartFormList[id].optionList = staff
}) })
}) })
}, },
tagLength(children) { tagLength(children) {
...@@ -137,7 +149,10 @@ export default { ...@@ -137,7 +149,10 @@ export default {
//导出 //导出
handleExport() { handleExport() {
const params = { const params = {
...JSON.parse(JSON.stringify({ tagLists: this.allListParams })), ...JSON.parse(JSON.stringify({
tagLists: this.allListParams
})),
...this.searchForm,
combineType: 2 combineType: 2
} }
exportLabelList(params).then(res => { exportLabelList(params).then(res => {
...@@ -147,14 +162,16 @@ export default { ...@@ -147,14 +162,16 @@ export default {
//客户列表 //客户列表
getCustomersListData() { getCustomersListData() {
if (this.searchForm.createTime) { if (this.searchForm.createTime) {
this.searchForm.beginTime = new Date(this.searchForm.createTime[0]).toLocaleDateString().replace(/-/g, '/') this.searchForm.beginCarBuyDate = new Date(this.searchForm.createTime[0]).toLocaleDateString().replace(/-/g, '/')
this.searchForm.endTime = new Date(this.searchForm.createTime[1]).toLocaleDateString().replace(/-/g, '/') this.searchForm.endCarBuyDate = new Date(this.searchForm.createTime[1]).toLocaleDateString().replace(/-/g, '/')
} }
delete this.searchForm.createTime delete this.searchForm.createTime
const tagLists = this.$common.utils.deepClone(this.allListParams) const tagLists = this.$common.utils.deepClone(this.allListParams)
this.userLoading = true this.userLoading = true
const params = { const params = {
...JSON.parse(JSON.stringify({ tagLists })), ...JSON.parse(JSON.stringify({
tagLists
})),
...JSON.parse(JSON.stringify(this.searchForm)), ...JSON.parse(JSON.stringify(this.searchForm)),
combineType: 2, combineType: 2,
pageSize: this.$refs.viewCustomers.page.pageSize, pageSize: this.$refs.viewCustomers.page.pageSize,
...@@ -184,7 +201,6 @@ export default { ...@@ -184,7 +201,6 @@ export default {
}, },
//创建人群 //创建人群
groupConfirmDialog() { groupConfirmDialog() {
if (this.tagCheckItem.length == 0) { if (this.tagCheckItem.length == 0) {
this.$message.error('必须选择一个标签') this.$message.error('必须选择一个标签')
return return
...@@ -196,7 +212,10 @@ export default { ...@@ -196,7 +212,10 @@ export default {
const tagCombine = this.allListParams.reduce((prev, cur) => { const tagCombine = this.allListParams.reduce((prev, cur) => {
const index = prev.findIndex(group => cur.groupId == group.groupId) const index = prev.findIndex(group => cur.groupId == group.groupId)
if (index == -1) { if (index == -1) {
return prev.concat({ groupId: cur.groupId, labelIdList: [cur.labelId] }) return prev.concat({
groupId: cur.groupId,
labelIdList: [cur.labelId]
})
} else { } else {
prev[index].labelIdList.push(cur.labelId) prev[index].labelIdList.push(cur.labelId)
return prev return prev
......
<template> <template>
<div> <div>
<GLDialog :title="dialogTitle" :visible.sync="groupVisible"> <GLDialog :title="dialogTitle" :visible.sync="groupVisible" mode="big">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="grouping-ruleForm"> <div class="gl-form-page gl-form-min" >
<el-form-item label="分群名称" prop="crowdGroupName" size="small"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="grouping-ruleForm">
<el-input v-model="ruleForm.crowdGroupName" placeholder="请输入分群名称" maxlength="30" show-word-limit></el-input> <el-form-item label="分群名称:" prop="crowdGroupName" size="small">
<el-input class="crowdGroupName" 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" show-word-limit></el-input> <el-input class="crowdGroupDesc" v-model="ruleForm.crowdGroupDesc" type="textarea" 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">
<el-radio :label="1">是</el-radio> <el-radio :label="1">是</el-radio>
<el-radio :label="2">否</el-radio> <el-radio :label="2">否</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="选择展示位" size="small" v-show="ruleForm.isDisplay == 1"> <el-form-item label="选择展示位:" size="small" v-show="ruleForm.isDisplay == 1">
<el-select v-model="ruleForm.displayLoc" placeholder="请选择"> <el-select v-model="ruleForm.displayLoc" placeholder="请选择">
<el-option v-for="item in 12" :key="item" :label="`${item}号展示位`" :value="item"></el-option> <el-option v-for="item in 12" :key="item" :label="`${item}号展示位`" :value="item"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="选择人群" size="small"> <el-form-item label="选择人群:" size="small">
<div class="group-tree-container"> <div class="group-tree-container">
<div class="group-tree-panel" :style="{ height: heightBox + 'px' }"> <div class="group-tree-panel" :style="{ height: heightBox + 'px' }">
<template v-for="(item, index) in crowdUnitList"> <template v-for="(item, index) in crowdUnitList">
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button plain size="small" class="btn-three" @click="groupVisible = false">取 消</el-button> <el-button plain size="small" class="btn-three" @click="groupVisible = false">取 消</el-button>
<el-button type="primary" size="small" @click="handleSelect">提 交</el-button> <el-button type="primary" size="small" @click="handleSelect">提 交</el-button>
...@@ -364,6 +366,12 @@ export default { ...@@ -364,6 +366,12 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.crowdGroupDesc {
padding-right: 56px;
}
.crowdGroupName{
padding-right: 50px;
}
.group-tree-container { .group-tree-container {
display: flex; display: flex;
.group-tree-operation { .group-tree-operation {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="back color-58 font-14" @click="goBack">返回人群管理</div> <div class="back color-58 font-14" @click="goBack">返回人群管理</div>
</div> </div>
<div class="main-container"> <div class="main-container">
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="tagsPartFormList" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="formSearch" :formObj="searchForm" :formData="tagsPartFormList" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="main-container-head flex-between"> <div class="main-container-head flex-between">
<div class="main-container-head-title color-3 font-20"> <div class="main-container-head-title color-3 font-20">
全部客户 全部客户
...@@ -21,9 +21,7 @@ ...@@ -21,9 +21,7 @@
</div> </div>
<div> <div>
<el-button size="small" @click="handleExport" class="export">导出</el-button> <el-button size="small" @click="handleExport" class="export">导出</el-button>
<el-button plain size="small" @click="createMarketSOP()"> <el-button plain size="small" @click="createMarketSOP()">营销SOP</el-button>
营销SOP
</el-button>
</div> </div>
</div> </div>
<GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :noDataImg="url" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :noDataImg="url" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
...@@ -72,15 +70,16 @@ export default { ...@@ -72,15 +70,16 @@ export default {
corwdId: '', //传到营销SOP的crowId corwdId: '', //传到营销SOP的crowId
getListApi: this.$route.params.crowdType == '1' || this.$route.params.crowdType == '2' ? getcrowdManageList : getCustomerList, getListApi: this.$route.params.crowdType == '1' || this.$route.params.crowdType == '2' ? getcrowdManageList : getCustomerList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableSearchForm: { searchForm: {
customerPhone: '', // customerPhone: '',
nickName: '', // nickName: '',
customerName: '', // customerName: '',
followStaff: '', // followStaff: '',
audi: '', // audi: '',
carNumber: '', // carNumber: '',
isJoin: '' // isJoin: ''
}, },
tableSearchForm: {},
tagsPartFormList: [ tagsPartFormList: [
{ {
type: 'select', type: 'select',
...@@ -126,6 +125,29 @@ export default { ...@@ -126,6 +125,29 @@ export default {
label: '否' label: '否'
} }
] ]
},
{
type: 'datePicker',
name: 'daterange',
label: '购车时间',
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
},
{
type: 'input',
inputType: 'text',
name: 'carVin',
label: '车架号'
},
{
type: 'input',
inputType: 'text',
name: 'carNumber',
label: '车牌号'
} }
], ],
crowdForm: {}, crowdForm: {},
...@@ -243,6 +265,24 @@ export default { ...@@ -243,6 +265,24 @@ export default {
this.getStaffList() this.getStaffList()
}, },
methods: { methods: {
beforeSearchFn() {
return new Promise(async (resolve, reject) => {
this.tableSearchForm = this.getParams()
resolve()
})
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.crowdType == 1 || this.crowdType == 2) params.customCrowd = true
if (params.daterange) {
params.beginCarBuyDate = params.daterange[0]
params.endCarBuyDate = params.daterange[1]
} else {
if (params.beginCarBuyDate) delete params.beginCarBuyDate && delete params.endCarBuyDate
}
delete params.daterange
return params
},
// 跳转到营销SOP // 跳转到营销SOP
async createMarketSOP() { async createMarketSOP() {
let marketQuery let marketQuery
...@@ -300,20 +340,19 @@ export default { ...@@ -300,20 +340,19 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.tagsPartFormList[id].optionList = staff this.tagsPartFormList[id].optionList = staff
}) })
}) })
}, },
handleSearch() { handleSearch() {
this.$refs.groupRef.refreshTable() this.$refs.groupRef.refreshTable()
}, },
handleReset() { handleReset() {
this.tableSearchForm = { this.searchForm = {
crowdId: this.id crowdId: this.id
} }
this.$refs.groupRef.refreshTable() this.$refs.groupRef.refreshTable()
}, },
init(id) { init(id) {
this.tableSearchForm = { this.searchForm = {
crowdId: id crowdId: id
} }
// 通过人群Id查询人群详情 // 通过人群Id查询人群详情
...@@ -338,12 +377,9 @@ export default { ...@@ -338,12 +377,9 @@ export default {
}, },
//导出 //导出
handleExport() { handleExport() {
var params = { var params = this.getParams()
crowdId: this.id, params.pageSize = 10
pageSize: 10, params.pageNum = 1
pageNum: 1
}
if (this.crowdType == 1 || this.crowdType == 2) params.customCrowd = true
customerClusterListExport(params).then(res => { customerClusterListExport(params).then(res => {
this.$Utils.exportFn(res) this.$Utils.exportFn(res)
}) })
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
<span slot="customerName" slot-scope="scope"> <span slot="customerName" slot-scope="scope">
<GLFull :labelWidth="70" :identification="`node_${scope.scope.id}`">{{ scope.scope.customerName ? scope.scope.customerName : '--' }}</GLFull> <GLFull :labelWidth="70" :identification="`node_${scope.scope.id}`">{{ scope.scope.customerName ? scope.scope.customerName : '--' }}</GLFull>
</span> </span>
<span slot="customerSex" slot-scope="scope"> <!-- <span slot="customerSex" slot-scope="scope" >-->
<span slot="customerSex" slot-scope="scope" >
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span> <span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
</span> </span>
<!-- 企微名称 --> <!-- 企微名称 -->
...@@ -236,12 +237,12 @@ export default { ...@@ -236,12 +237,12 @@ export default {
// mutiSelectUniqueKey: 'id', // mutiSelectUniqueKey: 'id',
tableColumns: [ tableColumns: [
{ // {
label: '客户ID', // label: '客户ID',
prop: 'oneId', // prop: 'oneId',
width: 290, // width: 290,
line: 1 // line: 1
}, // },
{ {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
...@@ -342,9 +343,6 @@ export default { ...@@ -342,9 +343,6 @@ export default {
flushTime: false flushTime: false
} }
}, },
// activated() {
// this.searchTable()
// },
created() { created() {
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中 //运行在qiankun容器中
...@@ -443,21 +441,11 @@ export default { ...@@ -443,21 +441,11 @@ export default {
setTableHeightEvent() { setTableHeightEvent() {
this.$refs.clientManage.setTableHeightFun() this.$refs.clientManage.setTableHeightFun()
}, },
setTableFinishFun(content) { setTableFinishFun() {
//关闭默认时间30天再刷新,showDefaultTime也要设置false
// if (!this.flushTime) {
// this.flushTime = true
// this.searchTable()
// }
//接收到的数据为空
// if (!this.$refs.clientManage.data.length) {
// this.$refs.clientManage.setTableHeightFun()
// }
this.$refs.clientManage.data.length ? (this.$refs.clientManage.tableHeightValues = '') : this.$refs.clientManage.setTableHeightFun() this.$refs.clientManage.data.length ? (this.$refs.clientManage.tableHeightValues = '') : this.$refs.clientManage.setTableHeightFun()
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) let params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) { if (params.daterange) {
params.beginTime = this.searchForm.daterange[0] params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1] params.endTime = this.searchForm.daterange[1]
...@@ -475,26 +463,13 @@ export default { ...@@ -475,26 +463,13 @@ export default {
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
// return new Promise((resolve, reject) => { return new Promise(async (resolve) => {
// this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
// if (this.searchFormTable.daterange) {
// this.searchFormTable.beginTime = this.searchForm.daterange[0]
// this.searchFormTable.endTime = this.searchForm.daterange[1]
// delete this.searchFormTable.daterange
// } else {
// if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
// }
// resolve()
// })
return new Promise(async (resolve, reject) => {
if (Object.keys(this.$route.query).length && this.queryFlag == 0) { if (Object.keys(this.$route.query).length && this.queryFlag == 0) {
const res = JSON.parse(window.localStorage.getItem('sourceList')) const res = JSON.parse(window.localStorage.getItem('sourceList'))
let add_way = this.$route.query.addWay || '' let add_way = this.$route.query.addWay || ''
let isJoinVal = this.$route.query.isJoin || null let isJoinVal = this.$route.query.isJoin || null
let addWayObj = res.find(i => i.label === add_way) let addWayObj = res.find(i => i.label === add_way)
let addWayVal = addWayObj.value this.searchForm.addWay = addWayObj.value
this.searchForm.addWay = addWayVal
this.searchForm.isJoin = isJoinVal === null ? null : Number(isJoinVal) this.searchForm.isJoin = isJoinVal === null ? null : Number(isJoinVal)
setTimeout(() => { setTimeout(() => {
this.$refs.combiForm.expandFn() this.$refs.combiForm.expandFn()
...@@ -568,7 +543,7 @@ export default { ...@@ -568,7 +543,7 @@ export default {
}, },
//导出 //导出
handleExport() { handleExport() {
var params = this.getParams() let params = this.getParams()
clientManageExportApi(params).then(res => { clientManageExportApi(params).then(res => {
this.$Utils.exportFn(res) this.$Utils.exportFn(res)
}) })
...@@ -675,8 +650,6 @@ export default { ...@@ -675,8 +650,6 @@ export default {
} }
} }
padding: 20px 20px 30px; padding: 20px 20px 30px;
// min-width: 1300px;
background-color: #fff; background-color: #fff;
.el-button + .el-button { .el-button + .el-button {
margin-left: 10px; margin-left: 10px;
......
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
<div class="container" id="container"> <div class="container" id="container">
<div> <div>
<div class="title">创建人群</div> <div class="title">创建人群</div>
<div class="info-box"> <div class="info-box" >
<el-form class="create-form" :model="crowdForm" :rules="crowdRules" ref="crowdForm" label-width="118px"> <div class="gl-form-page">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules" ref="crowdForm">
<div class="el-form-line"> <div class="el-form-line">
<el-form-item label="人群名称:" prop="crowdName"> <el-form-item label="人群名称:" prop="crowdName">
<el-input v-model.trim="crowdForm.crowdName" size="small" placeholder="请输入人群名称" maxlength="60"></el-input> <el-input v-model.trim="crowdForm.crowdName" size="small" placeholder="请输入人群名称" maxlength="60"></el-input>
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
</div>
<div class="label-wrap"> <div class="label-wrap">
<div :class="{ 'fixed-box': true, is_fixed: isFixed, is_pb: isDom }" id="boxFixed"> <div :class="{ 'fixed-box': true, is_fixed: isFixed, is_pb: isDom }" id="boxFixed">
<template v-if="this.selectedArray.length > 0"> <template v-if="this.selectedArray.length > 0">
...@@ -733,7 +735,7 @@ export default { ...@@ -733,7 +735,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
line-height: 17px; line-height: 17px;
margin-left: 118px; margin-left: 154px;
margin-bottom: 20px; margin-bottom: 20px;
margin-top: -20px; margin-top: -20px;
} }
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<div class="container"> <div class="container">
<div> <div>
<div class="title">人群详情</div> <div class="title">人群详情</div>
<div class="info-box"> <div class="info-box gl-form-page">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules" label-width="118px"> <el-form class="create-form" :model="crowdForm" :rules="crowdRules">
<div class="el-form-line"> <div class="el-form-line">
<el-form-item label="人群名称:" prop="crowdName" class="label-word"> <el-form-item label="人群名称:" prop="crowdName" class="label-word">
<div class="color-3">{{ crowdForm.crowdName }}</div> <div class="color-3">{{ crowdForm.crowdName }}</div>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</div> </div>
<div class="el-form-line"> <div class="el-form-line">
<el-form-item label="已选标签:" prop="groupNameRule" class="label-word"> <el-form-item label="已选标签:" prop="groupNameRule" class="label-word">
<div class="pageContent"> <div class="pageContent" style="display: flex;">
<GLTable :tableData="selectedArray" :hasNum="hasNum" :hasPage="hasPage" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }"> <GLTable :tableData="selectedArray" :hasNum="hasNum" :hasPage="hasPage" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<span slot="labelUnitList" slot-scope="scope"> <span slot="labelUnitList" slot-scope="scope">
<div class="allTagsWrap flex"> <div class="allTagsWrap flex">
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
dialogLogicVisible: false, dialogLogicVisible: false,
tableData: [], tableData: [],
hasPage: false, hasPage: false,
hasNum: false, hasNum: true,
page: {}, page: {},
tableParams: { tableParams: {
tableColumns: [ tableColumns: [
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
{ {
label: '标签组类型', label: '标签组类型',
prop: 'groupType', prop: 'groupType',
width: 180, width: 220,
formatter: cellValue => { formatter: cellValue => {
return cellValue.groupType == '企业标签' && this.$globalState.session.merchantModel == 1 ? '集团标签' : cellValue.groupType return cellValue.groupType == '企业标签' && this.$globalState.session.merchantModel == 1 ? '集团标签' : cellValue.groupType
}, },
...@@ -200,6 +200,9 @@ export default { ...@@ -200,6 +200,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
/deep/.glsx-table{
width: 100%;
}
.container { .container {
background: #ffffff; background: #ffffff;
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
选择跟进专员 选择跟进专员
</el-button> </el-button>
<span class="drainage-coutom-count"> <span class="drainage-coutom-count">
只能选择 (只能选择
<span class="count">1</span> <span class="count">1</span>
个 人)
</span> </span>
<div class="el-input-tag input-tag-wrapper" v-if="choicedStaff.beforeUserName"> <div class="el-input-tag input-tag-wrapper" v-if="choicedStaff.beforeUserName">
<el-tag effect="plain" type="info" :key="idx" :disable-transitions="false" closable @close="handleClose(1)"> <el-tag effect="plain" type="info" :key="idx" :disable-transitions="false" closable @close="handleClose(1)">
...@@ -50,9 +50,9 @@ ...@@ -50,9 +50,9 @@
选择跟进专员 选择跟进专员
</el-button> </el-button>
<span class="drainage-coutom-count"> <span class="drainage-coutom-count">
只能选择 (只能选择
<span class="count">1</span> <span class="count">1</span>
个 人)
</span> </span>
<div class="el-input-tag input-tag-wrapper" v-if="choicedStaff.afterUserName"> <div class="el-input-tag input-tag-wrapper" v-if="choicedStaff.afterUserName">
<el-tag effect="plain" type="info" :key="idx" :disable-transitions="false" closable @close="handleClose(2)"> <el-tag effect="plain" type="info" :key="idx" :disable-transitions="false" closable @close="handleClose(2)">
...@@ -148,7 +148,6 @@ export default { ...@@ -148,7 +148,6 @@ export default {
if (this.type == 2) { if (this.type == 2) {
;(this.choicedStaff.afterUserId = item.userId), (this.choicedStaff.afterUserName = item.userName), (this.choicedStaff.afterUserUuid = item.userUuid) ;(this.choicedStaff.afterUserId = item.userId), (this.choicedStaff.afterUserName = item.userName), (this.choicedStaff.afterUserUuid = item.userUuid)
} }
} }
} }
} }
...@@ -160,7 +159,6 @@ export default { ...@@ -160,7 +159,6 @@ export default {
} }
.scrm-sub-client-container { .scrm-sub-client-container {
.pageContent { .pageContent {
background-color: #fff; background-color: #fff;
.baseTitle { .baseTitle {
.title { .title {
...@@ -209,13 +207,14 @@ export default { ...@@ -209,13 +207,14 @@ export default {
max-height: 68px; max-height: 68px;
overflow: auto; overflow: auto;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 567px; width: 580px;
display: flex; display: flex;
align-items: center; //align-items: center;
margin-top: 6px; margin-top: 6px;
font-size: 14px; font-size: 14px;
height: 46px; height: 75px;
/deep/ .el-tag { /deep/ .el-tag {
margin-top: 8px;
height: 26px; height: 26px;
line-height: 26px; line-height: 26px;
padding: 0 8px; padding: 0 8px;
...@@ -228,6 +227,7 @@ export default { ...@@ -228,6 +227,7 @@ export default {
} }
} }
.drainage-coutom-count { .drainage-coutom-count {
margin-left: 8px;
color: #999; color: #999;
font-size: 14px; font-size: 14px;
.count { .count {
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
<yl-descriptions v-if="leadType == 5 || leadType == 6" ref="ylDeacriptions" :tableModel="orderDescriModel" :showData="leadBaseList" /> <yl-descriptions v-if="leadType == 5 || leadType == 6" ref="ylDeacriptions" :tableModel="orderDescriModel" :showData="leadBaseList" />
</div> </div>
<!-- 跟进记录 --> <!-- 跟进记录 -->
</div>
<div class="pageContent" :style="{ 'min-height': clientHeight + 50 + 'px' }">
<div class="baseTitle"> <div class="baseTitle">
<p class="title">跟进记录</p> <p class="title">跟进记录</p>
<hr /> <hr />
...@@ -34,6 +36,7 @@ ...@@ -34,6 +36,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
...@@ -116,7 +119,7 @@ export default { ...@@ -116,7 +119,7 @@ export default {
this.addCol() this.addCol()
}, },
mounted() { mounted() {
this.clientHeight = document.documentElement.clientHeight - 140 this.clientHeight = document.documentElement.clientHeight - 610
}, },
computed: { computed: {
// 救援服务 // 救援服务
...@@ -209,9 +212,7 @@ export default { ...@@ -209,9 +212,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.scrm-sub-client-container { .scrm-sub-client-container {
.pageContent { .pageContent {
// padding: 6px 0px 30px; margin-bottom: 16px;
// min-width: 1300px;
background-color: #fff; background-color: #fff;
.leadAllocation { .leadAllocation {
width: 700px; width: 700px;
......
...@@ -19,7 +19,7 @@ const cdn = { ...@@ -19,7 +19,7 @@ const cdn = {
] ]
} }
module.exports = { module.exports = {
outputDir: `../dist/${packageName}`, outputDir: `dist`,
publicPath, //node_env ? baseUrl : '/' publicPath, //node_env ? baseUrl : '/'
assetsDir: 'static', assetsDir: 'static',
configureWebpack: { configureWebpack: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!