Commit 7128de28 by xuyl

更新v2.9.0代码

1 parent 09dd9b75
......@@ -12,10 +12,11 @@
<GLButton size="small" @click="handleExport" fn="导出">导出</GLButton>
</div>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams">
<span slot="customerName" slot-scope="scope">
<span slot="customerName" slot-scope="scope">
<GLFull :labelWidth="70" :identification="`node_${scope.scope.id}`">{{ scope.scope.customerName ? scope.scope.customerName : '--' }}</GLFull>
</span>
<span slot="customerSex" slot-scope="scope">
<!-- <span slot="customerSex" slot-scope="scope" >-->
<span slot="customerSex" slot-scope="scope" >
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
</span>
<!-- 企微名称 -->
......@@ -236,12 +237,12 @@ export default {
// mutiSelectUniqueKey: 'id',
tableColumns: [
{
label: '客户ID',
prop: 'oneId',
width: 290,
line: 1
},
// {
// label: '客户ID',
// prop: 'oneId',
// width: 290,
// line: 1
// },
{
label: '客户名称',
prop: 'customerName',
......@@ -443,7 +444,7 @@ export default {
setTableHeightEvent() {
this.$refs.clientManage.setTableHeightFun()
},
setTableFinishFun(content) {
setTableFinishFun() {
//关闭默认时间30天再刷新,showDefaultTime也要设置false
// if (!this.flushTime) {
// this.flushTime = true
......@@ -457,7 +458,7 @@ export default {
this.$refs.clientManage.data.length ? (this.$refs.clientManage.tableHeightValues = '') : this.$refs.clientManage.setTableHeightFun()
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
let params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1]
......@@ -487,14 +488,13 @@ export default {
// resolve()
// })
return new Promise(async (resolve, reject) => {
return new Promise(async (resolve) => {
if (Object.keys(this.$route.query).length && this.queryFlag == 0) {
const res = JSON.parse(window.localStorage.getItem('sourceList'))
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.addWay = addWayObj.value
this.searchForm.isJoin = isJoinVal === null ? null : Number(isJoinVal)
setTimeout(() => {
this.$refs.combiForm.expandFn()
......@@ -568,7 +568,7 @@ export default {
},
//导出
handleExport() {
var params = this.getParams()
let params = this.getParams()
clientManageExportApi(params).then(res => {
this.$Utils.exportFn(res)
})
......@@ -675,8 +675,6 @@ export default {
}
}
padding: 20px 20px 30px;
// min-width: 1300px;
background-color: #fff;
.el-button + .el-button {
margin-left: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!