Commit 784ba9f3 by 前端

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

Xuyl dev 2.1.0

See merge request !55
2 parents 533c6dc2 a0efbcf2
......@@ -15,7 +15,7 @@
"echarts": "^5.2.0",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.1",
"glsx-components": "^1.4.2",
"glsx-table": "^1.1.0",
"jquery": "^3.6.0",
"sha1": "^1.1.1",
......
......@@ -13,8 +13,8 @@
<div class="leftWrapTop">
<div class="baseInfo">
<span>基本信息</span>
<i class="el-icon-arrow-down iconStyle" @click="switchBaseInfo()" v-if="isShowBaseInfo"></i>
<i class="el-icon-arrow-up iconStyle" @click="switchBaseInfo()" v-else></i>
<i class="el-icon-arrow-up iconStyle" @click="switchBaseInfo()" v-if="isShowBaseInfo"></i>
<i class="el-icon-arrow-down iconStyle" @click="switchBaseInfo()" v-else></i>
</div>
<div class="leftWrapBottom" v-if="isShowBaseInfo">
<p>
......@@ -335,7 +335,7 @@ export default {
},
{
label: '购车时间:',
prop: 'buyDate'
prop: 'buyTime'
},
{
label: '最近保养时间:',
......
......@@ -20,6 +20,7 @@
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
</span>
<div slot="followStaff" class="entmicro" slot-scope="scope">
<div v-if="!followList(scope.scope.followStaff).length">--</div>
<div class="entmicro-tag" style="padding-right:3px" v-for="(tag, idx) in followList(scope.scope.followStaff)" :key="idx">
<el-tooltip effect="dark" :content="tag" placement="top">
<el-tag type="info" class="ellipsis-1" v-if="idx < 2" :disable-transitions="false">
......@@ -43,6 +44,7 @@
</div>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-if="!scope.scope.nickNameList.length">--</div>
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0">
<span>{{ list.nickName }}</span>
......@@ -60,9 +62,8 @@
</div>
</div>
<span slot="customerPhone" slot-scope="scope">
<span>{{ scope.scope.customerPhone == 'null' ? '' : scope.scope.customerPhone }}</span>
<span>{{ scope.scope.customerPhone == null ? '--' : scope.scope.customerPhone }}</span>
</span>
<span slot="addWay" slot-scope="scope">
<el-tooltip effect="dark" :content="toLabel(scope.scope.addWay)" placement="top">
<span style="display: inline-block; max-width: 120px; text-align: left">{{ toLabel(scope.scope.addWay) }}</span>
......@@ -103,7 +104,14 @@ export default {
url: url,
sloading: false,
CLIENTSTATUS: this.$Constants.CLIENT_STATUS,
searchForm: {},
searchForm: {
followStaff: '',
addWay: ''
},
searchFormQuery: {
followStaff: '',
addWay: ''
},
searchFormTable: {},
clientManageFormList: [
{
......@@ -299,8 +307,10 @@ export default {
},
followList2: [],
getListApi: getTableList,
sourceList: [],
merchantModel: 1,
sourceList: [],
followstaffList: [],
queryFlag: 0,
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
flushTime: false
}
......@@ -314,7 +324,7 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
}
// this.getDictionaryFun()
this.getDictionaryFun()
this.getStaffList()
},
// filters:{
......@@ -375,7 +385,18 @@ export default {
// }
// resolve()
// })
return new Promise((resolve, reject) => {
return new Promise(async (resolve, reject) => {
if (Object.keys(this.$route.query).length && this.queryFlag == 0) {
console.log('进来了')
const res = JSON.parse(window.localStorage.getItem('sourceList'))
this.searchForm.followStaff = this.$route.query.staffName || ''
let add_way = this.$route.query.addWay || ''
let addWayObj = res.find(i => i.label === add_way)
let addWayVal = addWayObj.value
this.searchForm.addWay = addWayVal
this.queryFlag =1
}
this.searchFormTable = this.getParams()
resolve()
})
......@@ -391,7 +412,7 @@ export default {
})
let data = res.map(item => {
return {
...item,
// ...item,
label: item.dictLabel,
value: item.dictValue
}
......@@ -422,7 +443,7 @@ export default {
}
})
staff.unshift({ label: '全部', value: '' })
this.followstaffList = staff
this.$nextTick(() => {
this.clientManageFormList[id].optionList = staff
})
......@@ -448,8 +469,6 @@ export default {
},
//搜索表格
searchTable() {
console.log('进来了1111111111111111111111111')
console.log(this.searchForm)
this.$refs.clientManage.refreshTable()
},
syncClick() {
......@@ -470,10 +489,6 @@ export default {
},
//重置表格
resetTable() {
// this.isReload = false
// this.$nextTick(() => {
// this.isReload = true
// })
this.searchForm = {}
this.$refs.clientManage.refreshTable()
// 点击之后强制页面刷新
......@@ -494,6 +509,12 @@ export default {
mounted() {
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 130
// 页面首次加载添加缓存
// if (sessionStorage.getItem('isReload')) {
// this.$$route.query = ''
// } else {
// sessionStorage.setItem('isReload', true)
// }
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!