Commit cbc0729e authored by 罗超's avatar 罗超

调整

parent 9137a792
...@@ -183,17 +183,17 @@ ...@@ -183,17 +183,17 @@
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<el-table <!-- <el-table
v-if="loading" v-show="loading"
v-loading="true" v-loading="true"
:data="[]"> :data="[]">
<el-table-column <el-table-column
v-for="(item, index) in queryType2" :key="index" v-for="(item, index) in queryType2" :key="index"
:label="item.label"> :label="item.label">
</el-table-column> </el-table-column>
</el-table> </el-table> -->
<el-table <el-table
v-if="!loading" v-loading="loading"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
...@@ -201,6 +201,7 @@ ...@@ -201,6 +201,7 @@
:height="sceneList.length > 0 ? '600' : '660'" :height="sceneList.length > 0 ? '600' : '660'"
border border
row-class-name="font-size-12" row-class-name="font-size-12"
@sort-change="handleSortChange"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="40"></el-table-column> <el-table-column fixed type="selection" width="40"></el-table-column>
<el-table-column <el-table-column
...@@ -217,23 +218,27 @@ ...@@ -217,23 +218,27 @@
prop="CustomerTypeAlias" prop="CustomerTypeAlias"
label="客户类型" label="客户类型"
v-if="queryType[20].show" v-if="queryType[20].show"
width="120"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="CustomerSourceTypeStr" prop="CustomerSourceTypeStr"
label="客户来源" label="客户来源"
width="120"
v-if="queryType[1].show" v-if="queryType[1].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="Contact" prop="Contact"
label="联系人" label="联系人"
width="120"
v-if="queryType[2].show" v-if="queryType[2].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="ContactNumber" prop="ContactNumber"
label="联系电话" label="联系电话"
width="120"
sortable sortable
v-if="queryType[3].show" v-if="queryType[3].show"
show-overflow-tooltip> show-overflow-tooltip>
...@@ -241,12 +246,14 @@ ...@@ -241,12 +246,14 @@
<el-table-column <el-table-column
prop="Address" prop="Address"
label="地址" label="地址"
width="150"
v-if="queryType[4].show" v-if="queryType[4].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="BusinessCount" prop="BusinessCount"
label="商机数" label="商机数"
width="80"
v-if="queryType[5].show" v-if="queryType[5].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
...@@ -254,7 +261,7 @@ ...@@ -254,7 +261,7 @@
prop="OrderCount" prop="OrderCount"
label="交易订单数" label="交易订单数"
sortable sortable
width="100" width="120"
v-if="queryType[6].show" v-if="queryType[6].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
...@@ -262,6 +269,7 @@ ...@@ -262,6 +269,7 @@
prop="GuestCount" prop="GuestCount"
label="交客数" label="交客数"
sortable sortable
width="100"
v-if="queryType[19].show" v-if="queryType[19].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
...@@ -269,6 +277,7 @@ ...@@ -269,6 +277,7 @@
prop="OrderMoney" prop="OrderMoney"
label="交易金额" label="交易金额"
sortable sortable
width="120"
v-if="queryType[7].show" v-if="queryType[7].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
...@@ -276,12 +285,14 @@ ...@@ -276,12 +285,14 @@
prop="CouponCount" prop="CouponCount"
label="优惠券" label="优惠券"
sortable sortable
width="80"
v-if="queryType[8].show" v-if="queryType[8].show"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="Client_Balance" prop="Client_Balance"
label="幸福存折" label="幸福存折"
width="100"
sortable sortable
v-if="queryType[9].show" v-if="queryType[9].show"
show-overflow-tooltip> show-overflow-tooltip>
...@@ -289,6 +300,7 @@ ...@@ -289,6 +300,7 @@
<el-table-column <el-table-column
prop="CustomerLevelStr" prop="CustomerLevelStr"
label="客户级别" label="客户级别"
width="120"
sortable sortable
v-if="queryType[10].show" v-if="queryType[10].show"
show-overflow-tooltip> show-overflow-tooltip>
...@@ -959,6 +971,14 @@ export default { ...@@ -959,6 +971,14 @@ export default {
this.multipleSelection = val.map(x=> this.multipleSelection = val.map(x=>
x.CustomerId x.CustomerId
) )
},
handleSortChange(p){
if(p.order=='ascending'){
this.msg.OrderBy=`${p.prop} asc`
}else{
this.msg.OrderBy=`${p.prop} desc`
}
this.getList()
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment