Commit 242230b0 by xuyl

客户管理弹框样式修改

1 parent b096ef10
<template>
<div class="gl-form-page">
<el-form :model="ruleForm" :rules="rules" :label-position="labelPosition" :label-width="labelWidth" :size="size">
<div class="gl-form-page gl-form-min">
<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">
<template slot-scope="scope">
<template v-if="item.type === 'input'">
......@@ -75,10 +75,10 @@ export default {
type: String,
default: 'small'
},
labelWidth: {
type: String,
default: '100px'
}
// labelWidth: {
// type: String,
// default: '100px'
// }
},
mounted() {},
methods: {
......
<template>
<div>
<GLDialog :title="dialogTitle" :visible.sync="groupVisible">
<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" show-word-limit></el-input>
<GLDialog :title="dialogTitle" :visible.sync="groupVisible" mode="big">
<div class="gl-form-page gl-form-min" >
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="grouping-ruleForm">
<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 label="分群描述" size="small">
<el-input v-model="ruleForm.crowdGroupDesc" placeholder="请输入分群描述" maxlength="100" show-word-limit></el-input>
<el-form-item label="分群描述:" size="small">
<el-input class="crowdGroupDesc" v-model="ruleForm.crowdGroupDesc" type="textarea" placeholder="请输入分群描述" maxlength="100" show-word-limit></el-input>
</el-form-item>
<el-form-item label="概览是否展示" size="small">
<el-form-item label="概览是否展示:" size="small">
<el-radio-group v-model="ruleForm.isDisplay">
<el-radio :label="1">是</el-radio>
<el-radio :label="2">否</el-radio>
</el-radio-group>
</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-option v-for="item in 12" :key="item" :label="`${item}号展示位`" :value="item"></el-option>
</el-select>
</el-form-item>
<el-form-item label="选择人群" size="small">
<el-form-item label="选择人群:" size="small">
<div class="group-tree-container">
<div class="group-tree-panel" :style="{ height: heightBox + 'px' }">
<template v-for="(item, index) in crowdUnitList">
......@@ -55,6 +56,7 @@
</div>
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button plain size="small" class="btn-three" @click="groupVisible = false">取 消</el-button>
<el-button type="primary" size="small" @click="handleSelect">提 交</el-button>
......@@ -205,7 +207,7 @@ export default {
crowdGroup = 'addCrowdGroup'
}
this.$apis.crowdManage[crowdGroup](params).then(res => {
if (res.data.code == 0) {
this.groupVisible = false
this.$message.success('操作成功')
......@@ -262,7 +264,7 @@ export default {
arr2.push(item.crowdId)
}
})
this.setTreeChecked(arr1, arr2)
},
setTreeChecked(arr1, arr2) {
......@@ -364,6 +366,12 @@ export default {
</script>
<style lang="scss" scoped>
.crowdGroupDesc {
padding-right: 56px;
}
.crowdGroupName{
padding-right: 50px;
}
.group-tree-container {
display: flex;
.group-tree-operation {
......
......@@ -5,7 +5,7 @@
<div class="title">创建人群</div>
<div class="info-box" >
<div class="gl-form-page">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules" ref="crowdForm" label-width="118px">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules" ref="crowdForm">
<div class="el-form-line">
<el-form-item label="人群名称:" prop="crowdName">
<el-input v-model.trim="crowdForm.crowdName" size="small" placeholder="请输入人群名称" maxlength="60"></el-input>
......@@ -491,7 +491,7 @@ export default {
}
},
//选择标签
selectTag(data) {
this.tableData.forEach(item => {
......@@ -504,7 +504,7 @@ export default {
})
},
// 添加已选标签
selectedLabelFn(groupData, data) {
this.addClick = true
......@@ -735,7 +735,7 @@ export default {
font-weight: 400;
color: #999999;
line-height: 17px;
margin-left: 118px;
margin-left: 154px;
margin-bottom: 20px;
margin-top: -20px;
}
......
......@@ -3,8 +3,8 @@
<div class="container">
<div>
<div class="title">人群详情</div>
<div class="info-box">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules" label-width="118px">
<div class="info-box gl-form-page">
<el-form class="create-form" :model="crowdForm" :rules="crowdRules">
<div class="el-form-line">
<el-form-item label="人群名称:" prop="crowdName" class="label-word">
<div class="color-3">{{ crowdForm.crowdName }}</div>
......@@ -25,7 +25,7 @@
</div>
<div class="el-form-line">
<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' }">
<span slot="labelUnitList" slot-scope="scope">
<div class="allTagsWrap flex">
......@@ -109,7 +109,7 @@ export default {
dialogLogicVisible: false,
tableData: [],
hasPage: false,
hasNum: false,
hasNum: true,
page: {},
tableParams: {
tableColumns: [
......@@ -122,7 +122,7 @@ export default {
{
label: '标签组类型',
prop: 'groupType',
width: 180,
width: 220,
formatter: cellValue => {
return cellValue.groupType == '企业标签' && this.$globalState.session.merchantModel == 1 ? '集团标签' : cellValue.groupType
},
......@@ -147,7 +147,7 @@ export default {
this.getCrowdDetails()
},
mounted() {
},
methods: {
goBack() {
......@@ -164,11 +164,11 @@ export default {
'req.crowdId': this.crowdId
}
this.$apis.crowdManage.getCrowdDetails(params).then(res => {
if (res.code == 0) {
this.crowdForm.crowdName = res.data.crowdName
this.crowdForm.crowdDesc = res.data.crowdDesc
this.selectedArray = res.data.tagCombine ? JSON.parse(res.data.tagCombine) : []
}
})
......@@ -200,9 +200,12 @@ export default {
<style lang="scss" scoped>
@import '@/styles/variables.scss';
/deep/.glsx-table{
width: 100%;
}
.container {
background: #ffffff;
height: calc(100vh - 164px);
overflow-y: auto;
// padding: 20px;
......
......@@ -22,9 +22,9 @@
选择跟进专员
</el-button>
<span class="drainage-coutom-count">
只能选择
(只能选择
<span class="count">1</span>
个
人)
</span>
<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)">
......@@ -50,9 +50,9 @@
选择跟进专员
</el-button>
<span class="drainage-coutom-count">
只能选择
(只能选择
<span class="count">1</span>
个
人)
</span>
<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)">
......@@ -148,7 +148,6 @@ export default {
if (this.type == 2) {
;(this.choicedStaff.afterUserId = item.userId), (this.choicedStaff.afterUserName = item.userName), (this.choicedStaff.afterUserUuid = item.userUuid)
}
}
}
}
......@@ -160,7 +159,6 @@ export default {
}
.scrm-sub-client-container {
.pageContent {
background-color: #fff;
.baseTitle {
.title {
......@@ -209,13 +207,14 @@ export default {
max-height: 68px;
overflow: auto;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 567px;
width: 580px;
display: flex;
align-items: center;
//align-items: center;
margin-top: 6px;
font-size: 14px;
height: 46px;
height: 75px;
/deep/ .el-tag {
margin-top: 8px;
height: 26px;
line-height: 26px;
padding: 0 8px;
......@@ -228,6 +227,7 @@ export default {
}
}
.drainage-coutom-count {
margin-left: 8px;
color: #999;
font-size: 14px;
.count {
......
......@@ -14,6 +14,8 @@
<yl-descriptions v-if="leadType == 5 || leadType == 6" ref="ylDeacriptions" :tableModel="orderDescriModel" :showData="leadBaseList" />
</div>
<!-- 跟进记录 -->
</div>
<div class="pageContent" :style="{ 'min-height': clientHeight + 50 + 'px' }">
<div class="baseTitle">
<p class="title">跟进记录</p>
<hr />
......@@ -34,6 +36,7 @@
</div>
</div>
</div>
</div>
</template>
<script>
......@@ -116,7 +119,7 @@ export default {
this.addCol()
},
mounted() {
this.clientHeight = document.documentElement.clientHeight - 140
this.clientHeight = document.documentElement.clientHeight - 610
},
computed: {
// 救援服务
......@@ -209,9 +212,7 @@ export default {
<style lang="scss" scoped>
.scrm-sub-client-container {
.pageContent {
// padding: 6px 0px 30px;
// min-width: 1300px;
margin-bottom: 16px;
background-color: #fff;
.leadAllocation {
width: 700px;
......
......@@ -74,9 +74,6 @@
<GLCombiForm ref="formSearch" :formObj="searchForm" :formData="tagsPartFormList" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="clientNumExp">
<div class="clientNum">
<!-- {{ labelGroupName }} -->
<!-- <div class="clientListNew">标签组客户列表</div>
<div class="clientNumText">{{ tableTotal }}个</div> -->
<div class="clientListNew">客户列表({{ tableTotal }}人)</div>
</div>
<div>
......@@ -101,7 +98,7 @@
</div>
</div>
<!-- noDataText="你当前还没有添加的标签" -->
<GLTable @setTableFinishFun="setTableFinishFun" @refreshTable="getCustomersListData" ref="viewCustomers" :layout="layout" :hasNum="true" :tableData="tableData" :tableTotal="tableTotal" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams">
<GLTable @setTableFinishFun="setTableFinishFun" @refreshTable="getCustomersListData" ref="viewCustomers" :layout="layout" :hasNum="true" :tableData="tableData" :tableTotal="tableTotal" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams">
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
......@@ -161,7 +158,7 @@
<span>说明:</span>
此处添加的标签均为人工标签,即后续标签更新由员工更新打标签
</div>
<rule-form :ruleForm="tagForm" :rules="tagRules" :ruleData="tagDialogData" :labelWidth="'120px'" labelPosition="right" ref="tagForm">
<rule-form :ruleForm="tagForm" :rules="tagRules" :ruleData="tagDialogData" ref="tagForm">
<div slot="tagsGroup-type">
<el-select v-model="tagForm.initTagsGroup" placeholder="请选择" :disabled="tagDialogTitle != '添加标签组'" @change="handleSelect">
<el-option v-for="item in tagsGroupList" :key="item.id" :label="item.name" :value="item.id"></el-option>
......@@ -194,18 +191,20 @@
<!-- 自店标签最多3000个,已创建3个 -->
</div>
<div slot="modeType">
<el-input v-model.trim="tagForm.mode" disabled style="width:190px"></el-input>
<el-input v-model.trim="tagForm.mode" disabled></el-input>
</div>
<div slot="tagsInput-type">
<div class="tagsWrap" v-if="tagDialogTitle == '编辑标签组'">
<div class="tagsWrapInput">
<span class="tag" :class="{ inputWrapShow: item.inputVisible }" v-for="item in editTagList" :key="item.id">
<!-- maxlength="30" show-word-limit -->
<el-input class="input-new-tag" v-if="item.inputVisible" v-model.trim="item.name" ref="saveTagInput" size="small" @blur="item.name = handleInputConfirm(item.name, item.id)" @keyup.enter.native="item.name = handleInputConfirm(item.name, item.id)"></el-input>
<el-tooltip class="item" :content="item.name" placement="top">
<span class="ellipsis-1" v-if="!item.inputVisible">{{ item.name }}</span>
</el-tooltip>
<el-input class="input-new-tag" v-if="item.inputVisible" v-model.trim="item.name" ref="saveTagInput" size="small" @blur="item.name = handleInputConfirm(item.name, item.id)" @keyup.enter.native="item.name = handleInputConfirm(item.name, item.id)"></el-input>
<el-tooltip class="item" :content="item.name" placement="top">
<span class="ellipsis-1" v-if="!item.inputVisible">{{ item.name }}</span>
</el-tooltip>
<img class="editIcon" src="@/assets/tagsManage/edit.png" @click="showInput(item.id)" alt="" v-show="!item.inputVisible" />
</span>
</div>
</div>
<div class="row-tag" v-for="(item, index) in tagForm.tagsList" :key="index">
<!-- :onkeyup="(item.name = item.name.replace(/\s+/g, ''))" maxlength="30" show-word-limit @input="checkInputContent"-->
......@@ -235,35 +234,22 @@
</span>
</GLDialog>
<GLDialog title="保存为人群" :visible.sync="groupVisible" :hasFooter="true">
<div class="dialog-form">
<div class="dialog-form-item">
<label>
<span style="color: #ff0000">*</span>
人群名称:
</label>
<el-input v-model.trim="crowdForm.crowdName" size="small" placeholder="请输入人群名称:" maxlength="30"></el-input>
</div>
<div class="form-tips">
最多30个字符
<span>{{ crowdForm.crowdName.length }}/30</span>
</div>
</div>
<div class="dialog-form">
<div class="dialog-form-item">
<label>人群描述:</label>
<el-input v-model.trim="crowdForm.crowdDesc" size="small" placeholder="请输入人群描述" maxlength="100"></el-input>
</div>
<div class="form-tips">
最多100个字符
<span>{{ crowdForm.crowdDesc.length }}/100</span>
</div>
<div class="gl-form-page gl-form-min">
<el-form :model="crowdForm" :rules="crowdFormRules">
<el-form-item label="人群名称:" prop="crowdName">
<el-input class="crowdName" v-model.trim="crowdForm.crowdName" size="small" placeholder="请输入人群名称:" maxlength="30" show-word-limit></el-input>
</el-form-item>
<el-form-item label="人群描述:">
<el-input class="crowdDesc" type="textarea" v-model.trim="crowdForm.crowdDesc" size="small" placeholder="请输入人群描述" maxlength="100" show-word-limit></el-input>
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button plain size="small" class="btn-three" @click="groupVisible = false">取消</el-button>
<el-button type="primary" size="small" @click="groupConfirmDialog">确定</el-button>
</span>
</GLDialog>
<GLDialog title="提示" :visible.sync="successVisible" :hasFooter="false">
<GLDialog title="提示" mode="small" :visible.sync="successVisible" :hasFooter="false">
<div class="success-panel">
<i class="el-icon-circle-check"></i>
</div>
......@@ -330,6 +316,9 @@ export default {
numberObj: {},
url: url,
isFirstShow: false,
crowdFormRules: {
crowdName: [{ required: true, message: '请输入人群名称', trigger: 'blur' }]
},
searchForm: {
customerPhone: '',
nickName: '',
......@@ -497,8 +486,6 @@ export default {
prop: 'tagsName',
type: 'input',
placeholder: '最多30个字符,1个汉字为2个字符',
// maxlength: 30,
// showWordLimit: true,
disabled: false,
clickFunc: this.watchInput
},
......@@ -523,13 +510,7 @@ export default {
}
],
tagRules: {
tagsName: [
{ required: true, message: '请输入名称', trigger: 'blur' }
// {
// validator: checkName,
// trigger: 'change'
// }
],
tagsName: [{ required: true, message: '请输入名称', trigger: 'blur' }],
initTagsGroup: [{ required: true, message: '请选择标签组类型', trigger: 'change' }]
// tagsList: [{ required: true }]
},
......@@ -598,12 +579,6 @@ export default {
mounted() {
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 122
//没数据的时候要算高度
// setTimeout(() => {
// if (!this.$refs.tagsManage.data.length) {
// this.$refs.tagsManage.setTableHeightFun()
// }
// }, 200)
},
methods: {
// toViewCustomer(info) {
......@@ -618,10 +593,9 @@ export default {
// .replace(/groupName/g, 'labelGroupName')
.replace(/groupType/g, 'labelGroupType')
)
let mergeDatas = getDatas.map((item,index) => {
return {...item,...this.sopListParams[index]}
let mergeDatas = getDatas.map((item, index) => {
return { ...item, ...this.sopListParams[index] }
})
console.log(getDatas)
var params = {
addOrEdit: 'add',
fromPage: '/custom/tagsManage/index',
......@@ -706,24 +680,6 @@ export default {
this.numberObj = res
})
},
// beforeSearchFn() {
// console.log('生效')
// return new Promise(async (resolve, reject) => {
// this.tableParams = this.getParams()
// resolve()
// })
// },
// getParams() {
// var params = JSON.parse(JSON.stringify(this.tableParams))
// if (params.createTime) {
// params.beginTime = this.tableParams.createTime[0]
// params.endTime = this.tableParams.createTime[1]
// } else {
// if (params.beginTime) delete params.beginTime && delete params.endTime
// }
// delete params.daterange
// return params
// },
//搜索表格
handleSearch() {
this.getCustomersListData()
......@@ -837,68 +793,6 @@ export default {
}
})
}, 300),
// handleConfirm() {
// this.$refs.tagForm.$children[0].validate(valid => {
// if (!valid) {
// if (this.tagForm.tagsList.length <= 0 && this.tagDialogTitle == '添加标签组') {
// this.tagNameRules = true
// this.$message.error('至少要添加一个标签')
// // return
// }
// return
// }
// if (this.tagForm.tagsList.length <= 0 && this.tagDialogTitle == '添加标签组') {
// this.tagNameRules = true
// this.$message.error('至少要添加一个标签')
// return
// }
// if (this.tagDialogTitle == '添加标签组') {
// //过滤掉没有输入值得标签输入框
// this.tagForm.tagsList = this.tagForm.tagsList.filter(item => item.name != '')
// if (this.tagForm.tagsList.length <= 0) {
// this.$message.error('不能提交空标签')
// return
// }
// //如果存在添加标签的输入框的内容的标签相同则不提交
// let isSameTagFlag = false
// var tempArr = this.tagForm.tagsList.map(item => item.name)
// isSameTagFlag = this.isHasSome(tempArr)
// if (isSameTagFlag) {
// this.$message.error('不能提交相同的标签,请修改')
// return
// }
// this.newAddTagFun(1)
// //this.handleClose() //这里不管
// } else {
// //修改标签(允许同时增加标签)
// let isHasEmpty = this.editTagList.some(ele => ele.name == '')
// if (isHasEmpty) {
// this.$message.error('不能提交空的编辑标签')
// return
// }
// if (this.tagForm.tagsList.length > 0) {
// //过滤掉没有输入值得标签输入框
// this.tagForm.tagsList = this.tagForm.tagsList.filter(item => item.name != '')
// //如果存在添加标签的输入框的内容和可编辑的标签相同则不提交
// let ishasSameTagFlag = false
// this.editTagList.forEach(item => {
// for (let i = 0; i < this.tagForm.tagsList.length; i++) {
// if (this.tagForm.tagsList[i].name == item.name) {
// ishasSameTagFlag = true
// }
// }
// })
// if (ishasSameTagFlag) {
// this.$message.error('不能提交已存在的标签,请修改')
// return
// }
// }
// this.updateTagFun()
// this.newAddTagFun()
// // this.handleClose()
// }
// })
// },
handleRuleClose() {
this.dialogRuleVisible = false
},
......@@ -1036,6 +930,12 @@ export default {
<style lang="scss" scoped>
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.crowdName {
padding-right: 50px;
}
.crowdDesc {
padding-right: 58px;
}
.loading-containner {
top: 0px;
left: 0px;
......@@ -1376,18 +1276,15 @@ export default {
}
.allTagsWrap {
position: relative;
// display: -webkit-box;
// overflow: hidden;
// -webkit-line-clamp: 2;
// -webkit-box-orient: vertical;
// padding-bottom: -2px;
// box-sizing: border-box;
// &:hover {
// -webkit-line-clamp: 9999;
// // .tag-box-wrap {
// // margin-bottom: 10px;
// // }
// }
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
padding-bottom: -2px;
box-sizing: border-box;
&:hover {
-webkit-line-clamp: 9999;
}
.tag-box-wrap {
display: inline-block;
margin-right: 10px;
......@@ -1408,9 +1305,6 @@ export default {
color: #666666;
max-width: 245px;
cursor: pointer;
// &:first-child{
// margin-bottom: 4px;
// }
}
.expande-button-wrap {
position: absolute;
......@@ -1438,36 +1332,24 @@ export default {
}
}
.role {
::v-deep .el-input--small,
.el-input__inner {
width: 423px;
}
::v-deep .container {
position: relative;
.tagTipMsg {
position: absolute;
display: inline-block;
width: 240px;
left: 200px;
top: 0;
font-size: 12px;
font-weight: 400;
color: #999999;
}
}
::v-deep .el-select > .el-input--small {
width: 190px;
}
::v-deep .el-form-item--small:nth-child(2) {
display: inline-block;
width: 310px;
position: relative;
/deep/.tagTipMsg {
font-size: 12px;
display: flex;
color: #999999;
margin-left: 150px;
}
.tagsWrap {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
padding-top: 3px;
.tagsWrapInput{
border: 1px solid rgb(229, 229, 229);
padding: 8px;
width: 423px;
max-height: 75px;
overflow-y: auto;
}
img {
display: none;
}
......@@ -1477,8 +1359,8 @@ export default {
padding: 0 10px;
min-width: 68px;
max-width: 200px;
margin-right: 10px;
margin-bottom: 10px;
margin-right: 6px;
margin-bottom: 6px;
height: 26px;
line-height: 26px;
background: #fafbfe;
......@@ -1526,6 +1408,7 @@ export default {
display: flex;
&:not(:first-child) {
margin-top: 5px;
margin-left: 154px;
}
align-items: center;
.el-icon-circle-close {
......@@ -1543,6 +1426,7 @@ export default {
align-items: center;
color: $btnBlue;
cursor: pointer;
margin-left: 150px;
i {
font-size: 20px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!