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
ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:label-width="labelWidth" :label-width="labelWidth"
:form-data="showFormData" /> :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
ref="recordTable"
:get-list-api="getListApi" :get-list-api="getListApi"
:search-form="searchFormSearch" :search-form="searchFormSearch"
:table-params="tableParams" :table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn"
>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -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"
: "--"
} }
} }
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!