Commit 8be0e511 by 前端

Merge branch 'xuyl_dev_2.1.0' into 'v2.1.0'

Xuyl dev 2.1.0

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