Skip to content

Commit 2d1ccc8

Browse files
committed
访问量详情添加loading状态
1 parent bf41495 commit 2d1ccc8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/AdminViews.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
</el-date-picker>
3030
</div>
3131
<el-table
32+
v-loading="loading"
3233
:data="viewDetails"
3334
stripe
3435
border
@@ -80,7 +81,8 @@ export default {
8081
viewDetails: [],
8182
total: 0,
8283
limit: 20,
83-
page: 1
84+
page: 1,
85+
loading: false
8486
}
8587
},
8688
mounted () {
@@ -167,12 +169,14 @@ export default {
167169
}
168170
},
169171
async apiSelectViewsDetailMethod (start, end, page) {
172+
this.loading = true
170173
let result = await apiSelectViewsDetail({
171174
start,
172175
end,
173176
limit: this.limit,
174177
page: page || 1
175178
})
179+
this.loading = false
176180
if (result.isok) {
177181
this.viewDetails = result.data.selectData
178182
this.total = result.data.total

0 commit comments

Comments
 (0)