Commit 14de890f authored by 罗林杰's avatar 罗林杰

修改点击量时间搜索

parent da45106e
......@@ -29,6 +29,7 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:clearable="false"
/>
</el-form-item>
<el-form-item>
......@@ -56,15 +57,13 @@
{{ scope.row.nickName || '-' }}
</template>
</el-table-column>
<el-table-column label="访问量" prop="memTraffic" :show-overflow-tooltip="true">
<el-table-column label="访问量" prop="totalMemTraffic" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.memTraffic || '0' }}
{{ scope.row.totalMemTraffic || '0' }}
</template>
</el-table-column>
<el-table-column label="访问日期" prop="createDate" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.createDate || '-' }}
</template>
<el-table-column label="访问日期" prop="dateRange" :show-overflow-tooltip="true">
<span>{{ getDateRange() }}</span>
</el-table-column>
</el-table>
</div>
......@@ -196,6 +195,17 @@ export default {
}
this.dateRange = this.nowDayRange
this.handleQuery()
},
getDateRange() {
if (this.dateRange && this.dateRange.length > 0) {
if (this.dateRange[0] === this.dateRange[1]) {
return this.dateRange[0]
} else {
return this.dateRange[0] + ' ~ ' + this.dateRange[1]
}
} else {
return '-'
}
}
}
}
......
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