Commit b6723f0a by 杨明

显示

1 parent 809792cc
...@@ -4,29 +4,25 @@ ...@@ -4,29 +4,25 @@
<!-- class="order-detail" --> <!-- class="order-detail" -->
<d2-container> <d2-container>
<!-- <div class="offline-account"> --> <!-- <div class="offline-account"> -->
<div class="header" <div class="header" slot="header" style="padding: 10px 20px">
slot="header"
style="padding: 10px 20px">
<div class="header-bar"> <div class="header-bar">
<h3>{{ title }}</h3> <h3>{{ title }}</h3>
<div class="btn"> <div class="btn">
<el-button size="small" <el-button size="small" @click="handleRecord"> 返回 </el-button>
@click="handleRecord"> 返回 </el-button>
</div> </div>
</div> </div>
<d2-search ref="showSearch" <d2-search
class="show-search" ref="showSearch"
:search-form="searchForm" class="show-search"
:label-width="labelWidth" :search-form="searchForm"
:form-data="showFormData" /> :label-width="labelWidth"
:form-data="showFormData"
/>
<div class="up-btns"> <div class="up-btns">
<el-button @click="handleSearch" <el-button @click="handleSearch" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset"> 重置 </el-button>
@click="handleReset"> 重置 </el-button>
</div> </div>
</div> </div>
<!-- </d2-container> <!-- </d2-container>
...@@ -35,11 +31,13 @@ ...@@ -35,11 +31,13 @@
<d2-table-header> <d2-table-header>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table
:get-list-api="getListApi" ref="recordTable"
:search-form="searchFormSearch" :get-list-api="getListApi"
:table-params="tableParams" :search-form="searchFormSearch"
:before-search-fn="beforeSearchFn"> :table-params="tableParams"
:before-search-fn="beforeSearchFn"
>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -119,9 +117,9 @@ export default { ...@@ -119,9 +117,9 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.firstViewTime return cellValue.firstViewTime
? Util.dateFormate( ? Util.dateFormate(
cellValue.firstViewTime, cellValue.firstViewTime,
"YYYY-MM-DD HH:mm:ss" "YYYY-MM-DD HH:mm:ss"
) )
: "--" : "--"
} }
}, },
...@@ -129,7 +127,9 @@ export default { ...@@ -129,7 +127,9 @@ export default {
label: "总浏览时长", label: "总浏览时长",
prop: "totalViewTime", prop: "totalViewTime",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.totalViewTime ? cellValue.totalViewTime + "s" : '--' return cellValue.totalViewTime || cellValue.totalViewTime === 0
? cellValue.totalViewTime + "s"
: "--"
} }
} }
] ]
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
if ( if (
this.baseData[item.optionsName].length && this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][ this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel this.showFormData[index].optionLabel
] !== "全部" ] !== "全部"
) { ) {
const temp = {} const temp = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!