Commit c0e85da9 by 前端

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

优化方法

See merge request !61
2 parents e56d52b3 49bb9a0f
......@@ -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: '详情',
......
......@@ -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>
......
......@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!