Commit 667de11f by 杨明

fixed

1 parent 0dddd9c4
......@@ -26,7 +26,7 @@
</div>
<img src="./assets/logo.png" alt="" srcset="" />
</div> -->
<keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage">
<keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage,clientManage">
<router-view></router-view>
</keep-alive>
</div>
......
......@@ -19,7 +19,7 @@
全部客户
<span class="main-container-head-number font-14">{{ totalCount }}个</span>
</div>
<GLButton size="small" @click="handleExport" class="export" fn="导出">导出</GLButton>
<el-button size="small" @click="handleExport" class="export">导出</el-button>
</div>
<GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :noDataImg="url" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<span slot="customerName" slot-scope="scope" style="display:flex;align-items:center">
......@@ -153,7 +153,7 @@ export default {
label: '车架号',
prop: 'carVin',
minWidth: 140,
line:1
line: 1
},
{
label: '车系',
......
......@@ -619,9 +619,13 @@ export default {
},
tabClick(index) {
this.currentIndex = index
if (this.currentIndex == 2 && this.clientTagsList.length <= 0) {
this.$refs.clientTagsListRef.setTableHeightFun()
}
this.$nextTick(() => {
if (this.currentIndex == 2 && this.clientTagsList.length <= 0) {
this.$refs.clientTagsListRef.setTableHeightFun()
console.log(this.$refs.clientTagsListRef.tableHeightValues, '----------------')
// this.$refs.clientTagsListRef.tableHeightValues =
}
})
},
showTagArray(list) {
if (list.length == 0) {
......@@ -630,7 +634,7 @@ export default {
return list.slice(0, 9)
},
/* *
/* *
用途:js中字符串超长作固定长度加省略号(...)处理
参数说明:
str:需要进行处理的字符串,可含汉字
......@@ -830,14 +834,15 @@ export default {
})
})
})
const userIdList = this.nickNameList.map(item => item.userId)
let param = {
'req.OneId': this.id,
'req.merchantId': this.merchantId,
'req.uuId': this.userid,
'req.staffId': this.staffId,
'req.labelIdAddList': labelIdAddList,
'req.labelIdDelList': labelIdDelList
'req.labelIdDelList': labelIdDelList,
'req.userIdList': userIdList
}
addSingleClientTag(param)
.then(res => {
......@@ -1115,6 +1120,18 @@ export default {
}
// 处理客户标签的样式
.clientTagsWrap {
/deep/ .el-table:before {
background-color: #fff !important;
}
/deep/ .el-table__empty-block {
height: auto;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
/deep/ .glsx-table .emptyBg .noDataImg {
margin-top: 0;
}
.allTagsWrap {
position: relative;
.tag-box-wrap {
......
......@@ -389,6 +389,7 @@ export default {
let addWayVal = addWayObj.value
this.searchForm.addWay = addWayVal
this.searchForm.isJoin = isJoinVal === null ? null : Number(isJoinVal)
window.history.pushState(null, null, location.origin + location.pathname)
setTimeout(() => {
this.$refs.combiForm.expandFn()
}, 100)
......
......@@ -107,6 +107,11 @@ export default {
this.userType = this.$globalState.session.userType
}
this.searchForm = { 'req.merchantId': this.merchantId, 'req.crowdType': this.crowdType }
//标签管理保存初始化保存自定义人群状态
if (this.$route.query.selectTab) {
this.activeName = 'second'
// window.history.pushState(null, null, location.origin + location.pathname)
}
},
mounted() {},
methods: {
......@@ -123,7 +128,6 @@ export default {
this.$router.push('/crowdManage/crowdAdd')
},
setTableFinishFun() {
console.log(this.$refs.crowdManage.data.length)
if (!this.$refs.crowdManage.data.length) {
this.$nextTick(() => this.$refs.crowdManage.setTableHeightFun())
} else {
......@@ -135,10 +139,6 @@ export default {
this.searchTable()
},
beforeSearchFn() {
if (this.$route.query.selectTab) {
this.activeName = 'second'
// window.history.pushState(null, null, location.origin + location.pathname)
}
return new Promise(resolve => {
const crowdType = this.activeName == 'first' ? 1 : 2
this.searchForm = Object.assign(this.searchForm, { 'req.merchantId': this.merchantId, 'req.crowdType': crowdType })
......@@ -158,6 +158,7 @@ export default {
},
beforeRouteEnter(to, from, next) {
next(vm => {
console.log(to, 'to')
if (from.params.crowdType) {
vm.activeName = from.params.crowdType == 2 ? 'second' : 'first'
vm.crowdType = from.params.crowdType
......
......@@ -165,15 +165,20 @@ export default {
this.$nextTick(() => {
status && this.updateTreeNode()
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.maxHeight = this.$parent.heightBox - 205 + 'px'
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.overflow = 'auto'
this.setTreeHeight()
})
this.loading = false
})
},
nodeExpand() {
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.maxHeight = this.$parent.heightBox - 205 + 'px'
setTreeHeight() {
const nodeHeight = document.querySelectorAll('.el-tree>.el-tree-node').length * 30
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.maxHeight = this.$parent.heightBox - 80 - nodeHeight + 'px'
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.overflow = 'auto'
},
nodeExpand() {
this.$nextTick(() => {
this.setTreeHeight()
})
}
},
mounted() {
......@@ -184,7 +189,7 @@ export default {
<style lang="scss" scoped>
.content-wrap {
padding: 16px 3px 16px 16px;
padding: 16px 3px 0px 16px;
box-sizing: border-box;
height: 100%;
.tree-input {
......@@ -201,7 +206,6 @@ export default {
}
.tag-tree {
margin-top: 20px;
height: calc(100% - 80px);
overflow-y: auto;
/deep/ {
.el-tree-node {
......
......@@ -30,7 +30,7 @@
<i class="el-icon-close" @click="closeInitPanel"></i>
</div>
<div class="client-main-box">
<div class="client-tag" :style="{ height: heightBox + 'px' }">
<div class="client-tag">
<tag-group @getCheckItem="getCheckItem" ref="tagTree" @editTag="btnClick"></tag-group>
</div>
<div class="client-tabel">
......@@ -732,7 +732,7 @@ export default {
this.$message.error('不能提交相同的标签,请修改')
return
}
this.newAddTagFun()
this.newAddTagFun(1)
//this.handleClose() //这里不管
} else {
//修改标签(允许同时增加标签)
......@@ -783,7 +783,7 @@ export default {
this.tagForm.tagsList = [] //取消时清空新增标签
this.tagVisible = !this.tagVisible
},
newAddTagFun() {
newAddTagFun(status) {
//满足条件进行提交
let params = {}
params['labelDTO.dataFrom'] = 'cs'
......@@ -801,7 +801,7 @@ export default {
}
if (res.data.code == 0) {
if (this.tagForm.tagsList.length > 0) {
this.$message.success('添加成功')
status && this.$message.success('添加成功')
}
if (this.tagDialogTitle == '编辑标签组') {
this.tagForm.tagsName = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!