|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="main" v-loading="loading">
|
|
|
- <div class="w_1300">
|
|
|
+ <div class="w_1300" v-if="total > 0">
|
|
|
<el-col :span="24" class="one">
|
|
|
<div class="list" v-for="(item, index) in list" :key="index">
|
|
|
<div class="title">
|
|
@@ -27,10 +27,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
+ <el-col :span="24" class="two">
|
|
|
+ <el-pagination background layout="prev, pager, next" :total="total" :page-size="limit" v-model:current-page="currentPage" @current-change="changePage" @size-change="sizeChange" />
|
|
|
+ </el-col>
|
|
|
</div>
|
|
|
- <el-col :span="24" class="two">
|
|
|
- <el-pagination background layout="prev, pager, next" :total="total" :page-size="limit" v-model:current-page="currentPage" @current-change="changePage" @size-change="sizeChange" />
|
|
|
- </el-col>
|
|
|
+ <el-empty v-else description="暂无数据" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -58,7 +59,7 @@ const router = useRouter()
|
|
|
const list = ref([])
|
|
|
let skip = 0
|
|
|
let limit = inject('limit')
|
|
|
-const total = ref(6)
|
|
|
+const total = ref(0)
|
|
|
// 字典表
|
|
|
const cityList = ref([])
|
|
|
const plateList = ref([])
|