|
@@ -10,6 +10,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="body">
|
|
|
+ <div class="w-full" v-if="list.length==0">
|
|
|
+ <a-empty description="暂无数据" :image="simpleImage" />
|
|
|
+ </div>
|
|
|
<div
|
|
|
v-for="(item, index) in list"
|
|
|
:key="index"
|
|
@@ -143,9 +146,10 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { message } from "ant-design-vue";
|
|
|
+import { Empty, message } from "ant-design-vue";
|
|
|
import { computed, defineComponent, ref } from "vue";
|
|
|
import api from "@/api";
|
|
|
+import {scoreApi} from '@/api/score/type'
|
|
|
export default defineComponent({
|
|
|
setup() {
|
|
|
const pageTotal = ref(0);
|
|
@@ -157,28 +161,10 @@ export default defineComponent({
|
|
|
: Math.floor(pageTotal.value / pageSize) + 1;
|
|
|
});
|
|
|
return {
|
|
|
+ simpleImage: Empty.PRESENTED_IMAGE_SIMPLE,
|
|
|
inputPageNum: ref(1),
|
|
|
- list: ref([
|
|
|
- {
|
|
|
- createTime: "2023-07-10 09:53:11",
|
|
|
- updateTime: null,
|
|
|
- id: 1821,
|
|
|
- userId: 8,
|
|
|
- type: "摩托车",
|
|
|
- kskm: "科目一",
|
|
|
- score: 100,
|
|
|
- deviceType: 2,
|
|
|
- },
|
|
|
- {
|
|
|
- createTime: "2023-07-10 09:53:11",
|
|
|
- updateTime: null,
|
|
|
- id: 1821,
|
|
|
- userId: 8,
|
|
|
- type: "摩托车",
|
|
|
- kskm: "科目一",
|
|
|
- score: 100,
|
|
|
- deviceType: 2,
|
|
|
- },
|
|
|
+ list: ref<scoreApi.scoreInfoListRes['rows']>([
|
|
|
+
|
|
|
]),
|
|
|
pageTotal,
|
|
|
pageNum,
|
|
@@ -217,11 +203,14 @@ export default defineComponent({
|
|
|
message.destroy();
|
|
|
message.success({
|
|
|
content: "加载成功",
|
|
|
- duration:1
|
|
|
+ duration: 1,
|
|
|
});
|
|
|
// this.pageTotal = res.total
|
|
|
});
|
|
|
},
|
|
|
+ components: {
|
|
|
+ aEmpty:Empty,
|
|
|
+ },
|
|
|
watch: {
|
|
|
pageNum(newValue, oldValue) {
|
|
|
if (newValue !== oldValue) {
|
|
@@ -240,7 +229,7 @@ export default defineComponent({
|
|
|
message.destroy();
|
|
|
message.success({
|
|
|
content: "加载成功",
|
|
|
- duration:1
|
|
|
+ duration: 1,
|
|
|
});
|
|
|
// this.pageTotal = res.total
|
|
|
});
|