Commit b6723f0a by 杨明

显示

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