Commit 683f9ac0 by 杨明

fixed

2 parents da52c02b c0e85da9
......@@ -86,7 +86,12 @@ export default {
this.$router.push('/clientManage/clientDetail?id=' + scope.oneId)
},
jumpGroup() {
this.$router.push('/crowdManage/index')
this.$router.push({
path: '/crowdManage/index',
query: {
selectTab: 1
}
})
},
//删除标签组
removeItem(index) {
......@@ -207,13 +212,13 @@ export default {
this.$apis.crowdManage
.addCrowd(params)
.then(res => {
if (res) {
if (res.data.code == 0) {
this.groupVisible = false
this.successVisible = true
} else {
this.$message({
type: 'error',
message: '操作失败'
message: res.data.message
})
}
})
......
......@@ -3,7 +3,7 @@
<div class="scrm-sub-client-container">
<!-- <p class="pageTitle">客户群管理</p> -->
<!-- :style="{ 'min-height': heightBox + 'px' }" -->
<div class="pageContent" >
<div class="pageContent">
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<div class="leadList">
<div>
......@@ -167,7 +167,8 @@ export default {
},
{
label: '管理员',
prop: 'groupAdminName'
prop: 'groupAdminName',
minWidth: 100
},
{
label: '创建方式',
......@@ -186,11 +187,11 @@ export default {
{
label: '创建时间',
prop: 'addTime',
width: 170
width: 180
}
],
tableOption: {
width: 62
width: 80
// btnList: [
// {
// name: '详情',
......
......@@ -45,7 +45,7 @@
</div>
<p>
<span>联系电话:</span>
<span class="ellipsis-1" v-if="leftPanelInfo.customerPhone">{{ leftPanelInfo.customerPhone }}</span>
<span class="ellipsis-1" v-if="leftPanelInfo.customerPhone || leftPanelInfo.status == -1">{{ leftPanelInfo.customerPhone }}</span>
<span
class="phone-fill"
v-else
......
......@@ -4,7 +4,7 @@
<!-- <p class="pageTitle">客户管理</p> -->
<!-- :style="{ 'min-height': heightBox + 'px' }" -->
<div class="pageContent">
<GLCombiForm :formObj="searchForm" :formData="clientManageFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<GLCombiForm ref="combiForm" :formObj="searchForm" :formData="clientManageFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<div class="leadList">
<div>
<span></span>
......@@ -104,8 +104,8 @@ export default {
sloading: false,
CLIENTSTATUS: this.$Constants.CLIENT_STATUS,
searchForm: {
followStaff: '',
addWay: ''
addWay: '',
isJoin: null
},
searchFormTable: {},
clientManageFormList: [
......@@ -383,13 +383,19 @@ export default {
return new Promise(async (resolve, reject) => {
if (Object.keys(this.$route.query).length && this.queryFlag == 0) {
const res = JSON.parse(window.localStorage.getItem('sourceList'))
this.searchForm.followStaff = this.$route.query.staffName || ''
let add_way = this.$route.query.addWay || ''
let isJoinVal = this.$route.query.isJoin || null
let addWayObj = res.find(i => i.label === add_way)
let addWayVal = addWayObj.value
this.searchForm.addWay = addWayVal
this.searchForm.isJoin = isJoinVal === null ? null : Number(isJoinVal)
setTimeout(() => {
this.$refs.combiForm.expandFn()
}, 100)
// document.querySelector('.operate').lastElementChild.click()
this.queryFlag = 1
}
this.searchFormTable = this.getParams()
resolve()
})
......@@ -499,10 +505,7 @@ export default {
})
}
},
mounted() {
// let clientHeight = document.documentElement.clientHeight
// this.heightBox = clientHeight - 130
}
mounted() {}
}
</script>
......
......@@ -338,7 +338,7 @@ export default {
this.$apis.crowdManage
.addCrowd(params)
.then(res => {
if (res) {
if (res.data.code == 0) {
this.$message({
type: 'success',
message: '操作成功!'
......@@ -352,7 +352,7 @@ export default {
} else {
this.$message({
type: 'error',
message: '操作失败'
message: res.data.message
})
}
})
......
......@@ -16,7 +16,7 @@
<el-button class="searchBtn" type="primary" @click="searchTable">查询</el-button>
</span>
</search-form>
<GLTable class="crowdTable" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="crowdManage" :hasNum="false" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable class="crowdTable" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="crowdManage" :hasNum="false" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams">
<span slot="crowdName" slot-scope="scope">
<span class="line-ellipsis">{{ scope.scope.crowdName.slice(0, 24) }}</span>
</span>
......
......@@ -11,7 +11,7 @@
</div>
<GLButton fn="线索分配" size="small" @click="goAllocation">线索分配</GLButton>
</div>
<GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="leadManage" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="leadManage" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams">
<!-- 线索类型 -->
<template slot="type" slot-scope="scope">
<span>{{ switchStaff(scope.scope.type) }}</span>
......
......@@ -5,11 +5,19 @@
<span @click="resetTree">重置</span>
</div>
<el-tree @check="checkChange" class="tag-tree" ref="tagTree" :data="labelTree" :props="defaultProps" @node-click="nodeClick" show-checkbox node-key="id" :default-expanded-keys="expandId" :expand-on-click-node="false" :filter-node-method="filterNode">
<el-tree @node-expand="nodeExpand" accordion @check="checkChange" class="tag-tree" ref="tagTree" :data="labelTree" :props="defaultProps" @node-click="nodeClick" show-checkbox node-key="id" :default-expanded-keys="expandId" :expand-on-click-node="false" :filter-node-method="filterNode">
<div class="custom-tree-node" slot-scope="{ node, data }">
<GLFull labelWidth="140" :identification="`node_${data.id}`">
<el-tooltip placement="top" v-if="hoverId == data.id && hoverStatus">
<span :class="['tree-node', `node_${data.id}`]" slot="content">
{{ node.label }}
</span>
<span :class="['tree-node', `node_${data.id}`]">
{{ node.label }}
</span>
</el-tooltip>
<span :class="['tree-node', `node_${data.id}`]" v-else @mouseenter="hoverFun(data)">
{{ node.label }}
</GLFull>
</span>
<span v-if="data.labelType && data.labelType != '系统标签' && isShowEditBtn(data.labelDTO)" @click.stop="editTree(data)">
<i class="el-icon-edit-outline"></i>
</span>
......@@ -157,9 +165,15 @@ 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.loading = false
})
},
nodeExpand() {
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'
}
},
mounted() {
......@@ -198,6 +212,7 @@ export default {
}
}
}
.el-tree-node__children {
.el-tree-node__content {
.el-checkbox {
......@@ -210,11 +225,11 @@ export default {
color: #333;
}
.tree-node {
// width: 140px;
// display: inline-block;
// white-space: nowrap;
// text-overflow: ellipsis;
// overflow: hidden;
width: 140px;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.el-tree-node__expand-icon {
font-size: 15px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!