Commit 242230b0 by xuyl

客户管理弹框样式修改

1 parent b096ef10
<template> <template>
<div class="gl-form-page"> <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: {
......
<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 {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="title">创建人群</div> <div class="title">创建人群</div>
<div class="info-box" > <div class="info-box" >
<div class="gl-form-page"> <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"> <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>
...@@ -735,7 +735,7 @@ export default { ...@@ -735,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;
......
...@@ -74,9 +74,6 @@ ...@@ -74,9 +74,6 @@
<GLCombiForm ref="formSearch" :formObj="searchForm" :formData="tagsPartFormList" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="formSearch" :formObj="searchForm" :formData="tagsPartFormList" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="clientNumExp"> <div class="clientNumExp">
<div class="clientNum"> <div class="clientNum">
<!-- {{ labelGroupName }} -->
<!-- <div class="clientListNew">标签组客户列表</div>
<div class="clientNumText">{{ tableTotal }}个</div> -->
<div class="clientListNew">客户列表({{ tableTotal }}人)</div> <div class="clientListNew">客户列表({{ tableTotal }}人)</div>
</div> </div>
<div> <div>
...@@ -161,7 +158,7 @@ ...@@ -161,7 +158,7 @@
<span>说明:</span> <span>说明:</span>
此处添加的标签均为人工标签,即后续标签更新由员工更新打标签 此处添加的标签均为人工标签,即后续标签更新由员工更新打标签
</div> </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"> <div slot="tagsGroup-type">
<el-select v-model="tagForm.initTagsGroup" placeholder="请选择" :disabled="tagDialogTitle != '添加标签组'" @change="handleSelect"> <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> <el-option v-for="item in tagsGroupList" :key="item.id" :label="item.name" :value="item.id"></el-option>
...@@ -194,10 +191,11 @@ ...@@ -194,10 +191,11 @@
<!-- 自店标签最多3000个,已创建3个 --> <!-- 自店标签最多3000个,已创建3个 -->
</div> </div>
<div slot="modeType"> <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>
<div slot="tagsInput-type"> <div slot="tagsInput-type">
<div class="tagsWrap" v-if="tagDialogTitle == '编辑标签组'"> <div class="tagsWrap" v-if="tagDialogTitle == '编辑标签组'">
<div class="tagsWrapInput">
<span class="tag" :class="{ inputWrapShow: item.inputVisible }" v-for="item in editTagList" :key="item.id"> <span class="tag" :class="{ inputWrapShow: item.inputVisible }" v-for="item in editTagList" :key="item.id">
<!-- maxlength="30" show-word-limit --> <!-- 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-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>
...@@ -207,6 +205,7 @@ ...@@ -207,6 +205,7 @@
<img class="editIcon" src="@/assets/tagsManage/edit.png" @click="showInput(item.id)" alt="" v-show="!item.inputVisible" /> <img class="editIcon" src="@/assets/tagsManage/edit.png" @click="showInput(item.id)" alt="" v-show="!item.inputVisible" />
</span> </span>
</div> </div>
</div>
<div class="row-tag" v-for="(item, index) in tagForm.tagsList" :key="index"> <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"--> <!-- :onkeyup="(item.name = item.name.replace(/\s+/g, ''))" maxlength="30" show-word-limit @input="checkInputContent"-->
<el-input v-model.trim="item.name" placeholder="添加标签名称(至少添加一个标签)" @keyup.native="item.name = checkInputContent(item.name)"></el-input> <el-input v-model.trim="item.name" placeholder="添加标签名称(至少添加一个标签)" @keyup.native="item.name = checkInputContent(item.name)"></el-input>
...@@ -235,35 +234,22 @@ ...@@ -235,35 +234,22 @@
</span> </span>
</GLDialog> </GLDialog>
<GLDialog title="保存为人群" :visible.sync="groupVisible" :hasFooter="true"> <GLDialog title="保存为人群" :visible.sync="groupVisible" :hasFooter="true">
<div class="dialog-form"> <div class="gl-form-page gl-form-min">
<div class="dialog-form-item"> <el-form :model="crowdForm" :rules="crowdFormRules">
<label> <el-form-item label="人群名称:" prop="crowdName">
<span style="color: #ff0000">*</span> <el-input class="crowdName" v-model.trim="crowdForm.crowdName" size="small" placeholder="请输入人群名称:" maxlength="30" show-word-limit></el-input>
人群名称: </el-form-item>
</label> <el-form-item label="人群描述:">
<el-input v-model.trim="crowdForm.crowdName" size="small" placeholder="请输入人群名称:" maxlength="30"></el-input> <el-input class="crowdDesc" type="textarea" v-model.trim="crowdForm.crowdDesc" size="small" placeholder="请输入人群描述" maxlength="100" show-word-limit></el-input>
</div> </el-form-item>
<div class="form-tips"> </el-form>
最多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> </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="groupConfirmDialog">确定</el-button> <el-button type="primary" size="small" @click="groupConfirmDialog">确定</el-button>
</span> </span>
</GLDialog> </GLDialog>
<GLDialog title="提示" :visible.sync="successVisible" :hasFooter="false"> <GLDialog title="提示" mode="small" :visible.sync="successVisible" :hasFooter="false">
<div class="success-panel"> <div class="success-panel">
<i class="el-icon-circle-check"></i> <i class="el-icon-circle-check"></i>
</div> </div>
...@@ -330,6 +316,9 @@ export default { ...@@ -330,6 +316,9 @@ export default {
numberObj: {}, numberObj: {},
url: url, url: url,
isFirstShow: false, isFirstShow: false,
crowdFormRules: {
crowdName: [{ required: true, message: '请输入人群名称', trigger: 'blur' }]
},
searchForm: { searchForm: {
customerPhone: '', customerPhone: '',
nickName: '', nickName: '',
...@@ -497,8 +486,6 @@ export default { ...@@ -497,8 +486,6 @@ export default {
prop: 'tagsName', prop: 'tagsName',
type: 'input', type: 'input',
placeholder: '最多30个字符,1个汉字为2个字符', placeholder: '最多30个字符,1个汉字为2个字符',
// maxlength: 30,
// showWordLimit: true,
disabled: false, disabled: false,
clickFunc: this.watchInput clickFunc: this.watchInput
}, },
...@@ -523,13 +510,7 @@ export default { ...@@ -523,13 +510,7 @@ export default {
} }
], ],
tagRules: { tagRules: {
tagsName: [ tagsName: [{ required: true, message: '请输入名称', trigger: 'blur' }],
{ required: true, message: '请输入名称', trigger: 'blur' }
// {
// validator: checkName,
// trigger: 'change'
// }
],
initTagsGroup: [{ required: true, message: '请选择标签组类型', trigger: 'change' }] initTagsGroup: [{ required: true, message: '请选择标签组类型', trigger: 'change' }]
// tagsList: [{ required: true }] // tagsList: [{ required: true }]
}, },
...@@ -598,12 +579,6 @@ export default { ...@@ -598,12 +579,6 @@ export default {
mounted() { mounted() {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 122 this.heightBox = clientHeight - 122
//没数据的时候要算高度
// setTimeout(() => {
// if (!this.$refs.tagsManage.data.length) {
// this.$refs.tagsManage.setTableHeightFun()
// }
// }, 200)
}, },
methods: { methods: {
// toViewCustomer(info) { // toViewCustomer(info) {
...@@ -618,10 +593,9 @@ export default { ...@@ -618,10 +593,9 @@ export default {
// .replace(/groupName/g, 'labelGroupName') // .replace(/groupName/g, 'labelGroupName')
.replace(/groupType/g, 'labelGroupType') .replace(/groupType/g, 'labelGroupType')
) )
let mergeDatas = getDatas.map((item,index) => { let mergeDatas = getDatas.map((item, index) => {
return {...item,...this.sopListParams[index]} return { ...item, ...this.sopListParams[index] }
}) })
console.log(getDatas)
var params = { var params = {
addOrEdit: 'add', addOrEdit: 'add',
fromPage: '/custom/tagsManage/index', fromPage: '/custom/tagsManage/index',
...@@ -706,24 +680,6 @@ export default { ...@@ -706,24 +680,6 @@ export default {
this.numberObj = res 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() { handleSearch() {
this.getCustomersListData() this.getCustomersListData()
...@@ -837,68 +793,6 @@ export default { ...@@ -837,68 +793,6 @@ export default {
} }
}) })
}, 300), }, 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() { handleRuleClose() {
this.dialogRuleVisible = false this.dialogRuleVisible = false
}, },
...@@ -1036,6 +930,12 @@ export default { ...@@ -1036,6 +930,12 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
@import '@/styles/resetelement.scss'; @import '@/styles/resetelement.scss';
.crowdName {
padding-right: 50px;
}
.crowdDesc {
padding-right: 58px;
}
.loading-containner { .loading-containner {
top: 0px; top: 0px;
left: 0px; left: 0px;
...@@ -1376,18 +1276,15 @@ export default { ...@@ -1376,18 +1276,15 @@ export default {
} }
.allTagsWrap { .allTagsWrap {
position: relative; position: relative;
// display: -webkit-box; display: -webkit-box;
// overflow: hidden; overflow: hidden;
// -webkit-line-clamp: 2; -webkit-line-clamp: 2;
// -webkit-box-orient: vertical; -webkit-box-orient: vertical;
// padding-bottom: -2px; padding-bottom: -2px;
// box-sizing: border-box; box-sizing: border-box;
// &:hover { &:hover {
// -webkit-line-clamp: 9999; -webkit-line-clamp: 9999;
// // .tag-box-wrap { }
// // margin-bottom: 10px;
// // }
// }
.tag-box-wrap { .tag-box-wrap {
display: inline-block; display: inline-block;
margin-right: 10px; margin-right: 10px;
...@@ -1408,9 +1305,6 @@ export default { ...@@ -1408,9 +1305,6 @@ export default {
color: #666666; color: #666666;
max-width: 245px; max-width: 245px;
cursor: pointer; cursor: pointer;
// &:first-child{
// margin-bottom: 4px;
// }
} }
.expande-button-wrap { .expande-button-wrap {
position: absolute; position: absolute;
...@@ -1438,36 +1332,24 @@ export default { ...@@ -1438,36 +1332,24 @@ export default {
} }
} }
.role { .role {
::v-deep .el-input--small, /deep/.tagTipMsg {
.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-size: 12px;
font-weight: 400; display: flex;
color: #999999; color: #999999;
} margin-left: 150px;
}
::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;
} }
.tagsWrap { .tagsWrap {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-content: flex-start; align-content: flex-start;
padding-top: 3px; padding-top: 3px;
.tagsWrapInput{
border: 1px solid rgb(229, 229, 229);
padding: 8px;
width: 423px;
max-height: 75px;
overflow-y: auto;
}
img { img {
display: none; display: none;
} }
...@@ -1477,8 +1359,8 @@ export default { ...@@ -1477,8 +1359,8 @@ export default {
padding: 0 10px; padding: 0 10px;
min-width: 68px; min-width: 68px;
max-width: 200px; max-width: 200px;
margin-right: 10px; margin-right: 6px;
margin-bottom: 10px; margin-bottom: 6px;
height: 26px; height: 26px;
line-height: 26px; line-height: 26px;
background: #fafbfe; background: #fafbfe;
...@@ -1526,6 +1408,7 @@ export default { ...@@ -1526,6 +1408,7 @@ export default {
display: flex; display: flex;
&:not(:first-child) { &:not(:first-child) {
margin-top: 5px; margin-top: 5px;
margin-left: 154px;
} }
align-items: center; align-items: center;
.el-icon-circle-close { .el-icon-circle-close {
...@@ -1543,6 +1426,7 @@ export default { ...@@ -1543,6 +1426,7 @@ export default {
align-items: center; align-items: center;
color: $btnBlue; color: $btnBlue;
cursor: pointer; cursor: pointer;
margin-left: 150px;
i { i {
font-size: 20px; font-size: 20px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!