Commit 96efde6b by 前端

Merge branch 'xuyl_dev_v2.3.0' into 'v2.3.0'

更新2.3.0的代码

See merge request !78
2 parents 709ba1e6 cc568089
......@@ -198,27 +198,28 @@ export default {
let { id } = this
this.init(id)
// 针对广汇替换字段
// if (this.id == 1 && location.host == 'scrm.cgacar.com') {
// this.tableParams.tableColumns.splice(
// 3,
// 3,
// {
// type: 'input',
// name: '',
// label: '线索时间'
// },
// {
// type: 'input',
// name: '',
// label: '意向车型'
// },
// {
// type: 'input',
// name: '',
// label: '线索来源'
// }
// )
// }
console.log(location.host)
if (this.id == 1 && location.host == 'scrm.cgacar.com') {
this.tableParams.tableColumns.splice(
3,
3,
{
type: 'input',
name: '',
label: '线索时间'
},
{
type: 'input',
name: '',
label: '意向车型'
},
{
type: 'input',
name: '',
label: '线索来源'
}
)
}
},
mounted() {
this.getStaffList()
......
......@@ -234,7 +234,7 @@
<div class="intended" @click="goto(11)">
<p class="intend-name">
<span class="nameHover">已加企微,待匹配客户</span>
<span class="intend-phone" @click.stop="goto(201)">(已绑定手机号{{ topDataObj.notMatchCustomerAddPhoneCount ? topDataObj.notMatchCustomerAddPhoneCount : 0 }}人)</span>
<span class="intend-phone" @click.stop="goto(20)">(已绑定手机号{{ topDataObj.notMatchCustomerAddPhoneCount ? topDataObj.notMatchCustomerAddPhoneCount : 0 }}人)</span>
<el-popover placement="top" trigger="hover" content="已加企微,且未匹配到潜在意向和基盘客户的客户">
<span class="dataOverPopover">已加企微,且未匹配到潜在意向和基盘客户的客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
......@@ -255,7 +255,7 @@
</div>
</div>
<!-- 未加企微,未匹配客户 -->
<div class="intended" @click="goto(202)">
<div class="intended" @click="goto(21)">
<p class="intend-name">
<span>未加企微,未匹配客户</span>
<el-popover placement="top" trigger="hover" content="未加企微,且未匹配到潜在意向和基盘客户的客户">
......
......@@ -4,6 +4,7 @@
<el-input placeholder="请输入标签组或标签关键字" v-model="filterText" size="small"><i slot="suffix" class="el-input__icon el-icon-search"></i></el-input>
<span @click="resetTree">重置</span>
</div>
<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 }">
<el-tooltip placement="top" v-if="hoverId == data.id && hoverStatus">
......@@ -24,6 +25,7 @@
</el-tree>
</div>
</template>
<script>
import { getTableList } from '@/api/modules/tagsManage'
export default {
......@@ -51,6 +53,7 @@ export default {
this.$refs.tagTree.filter(val)
}
},
methods: {
hoverFun(data) {
this.hoverId = data.id
......@@ -159,6 +162,7 @@ export default {
this.expandId.push(item.id)
})
}
this.$nextTick(() => {
status && this.updateTreeNode()
this.setTreeHeight()
......@@ -166,15 +170,23 @@ export default {
this.loading = false
})
},
setTreeHeight() {
setTreeHeight(domNode) {
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'
if (domNode) {
domNode.style.maxHeight = this.$parent.heightBox - 80 - nodeHeight + 'px'
domNode.style.overflow = 'auto'
} else {
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()
})
nodeExpand(data, node, target) {
if (data.sort) {
this.$nextTick(() => {
const domNode = target.$refs.node.lastElementChild
this.setTreeHeight(domNode)
})
}
}
},
mounted() {
......@@ -182,6 +194,7 @@ export default {
}
}
</script>
<style lang="scss" scoped>
.content-wrap {
padding: 16px 3px 0px 16px;
......@@ -211,6 +224,7 @@ export default {
}
}
}
.el-tree-node__children {
.el-tree-node__content {
.el-checkbox {
......@@ -251,4 +265,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!