Commit 4b392ec8 by xuyl

UI走查样式修改,线索管理页面没有数据时设置高度,跟进员工增加删除功能

1 parent a860817f
......@@ -11,7 +11,7 @@
</div>
<GLButton fn="线索分配" size="small" @click="goAllocation">线索分配</GLButton>
</div>
<GLTable :hasNum="true" @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" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<!-- 线索类型 -->
<template slot="type" slot-scope="scope">
<span>{{ switchStaff(scope.scope.type) }}</span>
......@@ -31,7 +31,6 @@
</template>
<template slot="options" slot-scope="scope">
<GLButton class="blue-text" type="text" fn="线索详情" @click="goBasicInfo(scope.scope)">查看</GLButton>
<!-- <el-button class="blue-text" type="primary" size="small" @click="goBasicInfo(scope.scope)">查看</el-button> -->
</template>
</GLTable>
</div>
......@@ -81,6 +80,7 @@ export default {
name: 'leadManage',
data() {
return {
loading:false,
url: url,
searchForm: {
status: '',
......@@ -234,7 +234,20 @@ export default {
sessionStorage.setItem('isReload', true)
}
},
mounted(){
//没数据的时候要算高度
setTimeout(() => {
if (!this.$refs.leadManage.data.length) {
this.loading = true
this.$refs.leadManage.setTableHeightFun()
this.loading = false
}
}, 200)
},
methods: {
setTableHeightEvent() {
this.$refs.leadManage.setTableHeightFun()
},
goAllocation() {
this.$router.push('./leadAllocation')
},
......@@ -338,6 +351,7 @@ export default {
.dialogEncircle {
// width: 100%;
.funcText {
line-height: 20px;
color: #333;
font-weight: 600;
font-size: 14px;
......@@ -360,6 +374,7 @@ export default {
margin-left: 5px;
margin-top: 22px;
color: #333;
line-height: 20px;
font-size: 14px;
}
}
......
......@@ -22,7 +22,7 @@
个
</span>
<div class="el-input-tag input-tag-wrapper" v-if="choicedStaff.beforeUserName">
<el-tag effect="plain" type="info" :key="idx" :disable-transitions="false">
<el-tag effect="plain" type="info" :key="idx" :disable-transitions="false" closable @close="handleClose(1)">
<i class="el-icon-user-solid"></i>
{{ this.choicedStaff.beforeUserName }}
</el-tag>
......@@ -49,7 +49,7 @@
个
</span>
<div class="el-input-tag input-tag-wrapper" v-if="choicedStaff.afterUserName">
<el-tag effect="plain" type="info" :key="idx" :disable-transitions="false">
<el-tag effect="plain" type="info" :key="idx" :disable-transitions="false" closable @close="handleClose(2)">
<i class="el-icon-user-solid"></i>
{{ choicedStaff.afterUserName }}
</el-tag>
......@@ -74,8 +74,6 @@ export default {
components: { selectEmp },
data() {
return {
followStaffBefore: {}, //售前员工
followStaffAfter: {}, //售后员工
choicedStaff: {
afterUserId: '',
afterUserName: '',
......@@ -85,8 +83,7 @@ export default {
beforeUserUuid: ''
}, //已选择的员工
clientHeight: '',
type: '',
followStaffLists: [] //跟进员工列表
type: ''
}
},
created() {
......@@ -96,6 +93,16 @@ export default {
this.clientHeight = document.documentElement.clientHeight - 180
},
methods: {
// 删除跟进员工
handleClose(tag) {
if (tag == 1) {
;(this.choicedStaff.beforeUserId = ''), (this.choicedStaff.beforeUserName = ''), (this.choicedStaff.beforeUserUuid = '')
}
if (tag == 2) {
;(this.choicedStaff.afterUserId = ''), (this.choicedStaff.afterUserName = ''), (this.choicedStaff.afterUserUuid = '')
}
},
// 获取到跟进员工
getStaff() {
getfollowstaff({}).then(res => {
this.choicedStaff = res
......@@ -104,6 +111,7 @@ export default {
goback() {
this.$router.push({ path: '/leadManage/index' })
},
// 确认修改跟进员工
comEmployee() {
let params = this.choicedStaff
editfollowstaff(params).then(res => {
......@@ -114,7 +122,7 @@ export default {
this.$message.success('修改成功')
})
},
//选择跟进员工
//选择跟进员工的类型和高亮
handleAddEmp(type) {
this.type = type
if (this.type == 1) {
......@@ -124,6 +132,7 @@ export default {
this.$refs.selectEmpForm.init(type, this.choicedStaff.afterUserUuid)
}
},
// 跟进员工列表选择回显在页面
selectTable(item) {
if (this.type == 1) {
;(this.choicedStaff.beforeUserId = item.userId), (this.choicedStaff.beforeUserName = item.userName), (this.choicedStaff.beforeUserUuid = item.userUuid)
......@@ -190,7 +199,7 @@ export default {
/deep/ .el-tag {
height: 26px;
line-height: 26px;
padding:0 8px;
padding: 0 8px;
margin-left: 5px;
}
i {
......
......@@ -105,7 +105,7 @@ export default {
{
colList: [
{ thColspan: 1, tdColspan: 2, label: '车牌号', name: 'plateNum' },
{ thColspan: 1, tdColspan: 2, label: '里程数', name: 'mileage' }
{ thColspan: 1, tdColspan: 2, label: '里程数(km)', name: 'mileage' }
]
},
{
......@@ -223,7 +223,7 @@ export default {
font-weight: 600;
}
.timestamp {
margin: 25px 20px 30px 44px;
margin: 0px 20px 30px 44px;
/deep/ .el-timeline-item__timestamp.is-top {
margin-bottom: 3px !important;
}
......@@ -247,6 +247,7 @@ export default {
.remark {
font-size: 12px;
color: #999999;
line-height: 20px;
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!