Commit cc568089 by xuyl

更新2.3.0的代码

1 parent 1f07a8e0
...@@ -198,27 +198,28 @@ export default { ...@@ -198,27 +198,28 @@ export default {
let { id } = this let { id } = this
this.init(id) this.init(id)
// 针对广汇替换字段 // 针对广汇替换字段
// if (this.id == 1 && location.host == 'scrm.cgacar.com') { console.log(location.host)
// this.tableParams.tableColumns.splice( if (this.id == 1 && location.host == 'scrm.cgacar.com') {
// 3, this.tableParams.tableColumns.splice(
// 3, 3,
// { 3,
// type: 'input', {
// name: '', type: 'input',
// label: '线索时间' name: '',
// }, label: '线索时间'
// { },
// type: 'input', {
// name: '', type: 'input',
// label: '意向车型' name: '',
// }, label: '意向车型'
// { },
// type: 'input', {
// name: '', type: 'input',
// label: '线索来源' name: '',
// } label: '线索来源'
// ) }
// } )
}
}, },
mounted() { mounted() {
this.getStaffList() this.getStaffList()
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
<div class="intended" @click="goto(11)"> <div class="intended" @click="goto(11)">
<p class="intend-name"> <p class="intend-name">
<span class="nameHover">已加企微,待匹配客户</span> <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="已加企微,且未匹配到潜在意向和基盘客户的客户"> <el-popover placement="top" trigger="hover" content="已加企微,且未匹配到潜在意向和基盘客户的客户">
<span class="dataOverPopover">已加企微,且未匹配到潜在意向和基盘客户的客户</span> <span class="dataOverPopover">已加企微,且未匹配到潜在意向和基盘客户的客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" /> <img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
</div> </div>
</div> </div>
<!-- 未加企微,未匹配客户 --> <!-- 未加企微,未匹配客户 -->
<div class="intended" @click="goto(202)"> <div class="intended" @click="goto(21)">
<p class="intend-name"> <p class="intend-name">
<span>未加企微,未匹配客户</span> <span>未加企微,未匹配客户</span>
<el-popover placement="top" trigger="hover" content="未加企微,且未匹配到潜在意向和基盘客户的客户"> <el-popover placement="top" trigger="hover" content="未加企微,且未匹配到潜在意向和基盘客户的客户">
......
...@@ -4,6 +4,7 @@ ...@@ -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> <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> <span @click="resetTree">重置</span>
</div> </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"> <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 }"> <div class="custom-tree-node" slot-scope="{ node, data }">
<el-tooltip placement="top" v-if="hoverId == data.id && hoverStatus"> <el-tooltip placement="top" v-if="hoverId == data.id && hoverStatus">
...@@ -24,6 +25,7 @@ ...@@ -24,6 +25,7 @@
</el-tree> </el-tree>
</div> </div>
</template> </template>
<script> <script>
import { getTableList } from '@/api/modules/tagsManage' import { getTableList } from '@/api/modules/tagsManage'
export default { export default {
...@@ -51,6 +53,7 @@ export default { ...@@ -51,6 +53,7 @@ export default {
this.$refs.tagTree.filter(val) this.$refs.tagTree.filter(val)
} }
}, },
methods: { methods: {
hoverFun(data) { hoverFun(data) {
this.hoverId = data.id this.hoverId = data.id
...@@ -159,6 +162,7 @@ export default { ...@@ -159,6 +162,7 @@ export default {
this.expandId.push(item.id) this.expandId.push(item.id)
}) })
} }
this.$nextTick(() => { this.$nextTick(() => {
status && this.updateTreeNode() status && this.updateTreeNode()
this.setTreeHeight() this.setTreeHeight()
...@@ -166,22 +170,31 @@ export default { ...@@ -166,22 +170,31 @@ export default {
this.loading = false this.loading = false
}) })
}, },
setTreeHeight() { setTreeHeight(domNode) {
const nodeHeight = document.querySelectorAll('.el-tree>.el-tree-node').length * 30 const nodeHeight = document.querySelectorAll('.el-tree>.el-tree-node').length * 30
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.maxHeight = this.$parent.heightBox - 80 - nodeHeight + 'px'
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.overflow = 'auto' document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.overflow = 'auto'
}
}, },
nodeExpand() { nodeExpand(data, node, target) {
if (data.sort) {
this.$nextTick(() => { this.$nextTick(() => {
this.setTreeHeight() const domNode = target.$refs.node.lastElementChild
this.setTreeHeight(domNode)
}) })
} }
}
}, },
mounted() { mounted() {
this.getTableList() this.getTableList()
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.content-wrap { .content-wrap {
padding: 16px 3px 0px 16px; padding: 16px 3px 0px 16px;
...@@ -211,6 +224,7 @@ export default { ...@@ -211,6 +224,7 @@ export default {
} }
} }
} }
.el-tree-node__children { .el-tree-node__children {
.el-tree-node__content { .el-tree-node__content {
.el-checkbox { .el-checkbox {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!