|
@@ -63,7 +63,7 @@
|
|
:prop="item.key"
|
|
:prop="item.key"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
align="center"
|
|
align="center"
|
|
- :sortable="item.label == 'PV/UV' ? true : false"
|
|
|
|
|
|
+ :sortable="item.label == 'PV/UV' ? 'custom' : false"
|
|
>
|
|
>
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
<span v-if="item.label != 'PV/UV'" @click="handleRowClick(row, item.key)" :style="handleRowStyle(item.key)">{{ handleRowContent(row, item.key) }}</span>
|
|
<span v-if="item.label != 'PV/UV'" @click="handleRowClick(row, item.key)" :style="handleRowStyle(item.key)">{{ handleRowContent(row, item.key) }}</span>
|
|
@@ -224,7 +224,7 @@ export default {
|
|
},
|
|
},
|
|
// 是否显示
|
|
// 是否显示
|
|
isShowSortable(item) {
|
|
isShowSortable(item) {
|
|
- return item.label == "总PV/UV" || item.label == "开通时间" || item.label == "已发布文章";
|
|
|
|
|
|
+ return item.label == "总PV/UV" || item.label == "开通时间" || item.label == "已发布文章" ? "custom" : false;
|
|
},
|
|
},
|
|
// 排序事件
|
|
// 排序事件
|
|
sortChangeHandle(params) {
|
|
sortChangeHandle(params) {
|