...
|
...
|
@@ -29,7 +29,7 @@ |
|
|
</Form>
|
|
|
</div>
|
|
|
<Table :columns="columns" :data="list"></Table>
|
|
|
<Page :total="pager.rows" :current="pager.page" :page-size="pager.size" @on-change="onPageChange" show-elevator style="margin-top:20px;text-align: right;"></Page>
|
|
|
<Page ref="page" :total="pager.rows" :current="pager.page" :page-size="pager.size" @on-change="onPageChange" show-elevator style="margin-top:20px;text-align: right;"></Page>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
...
|
...
|
@@ -53,7 +53,7 @@ export default { |
|
|
}
|
|
|
});
|
|
|
},
|
|
|
className: 'top'
|
|
|
className: "top"
|
|
|
},
|
|
|
{
|
|
|
title: "相似图",
|
...
|
...
|
@@ -83,7 +83,7 @@ export default { |
|
|
</div>
|
|
|
);
|
|
|
},
|
|
|
className: 'top'
|
|
|
className: "top"
|
|
|
}
|
|
|
],
|
|
|
list: [],
|
...
|
...
|
@@ -107,6 +107,12 @@ export default { |
|
|
this.api = new ApiService();
|
|
|
this.getList();
|
|
|
},
|
|
|
mounted() {
|
|
|
document.addEventListener("keydown", this.keydown);
|
|
|
},
|
|
|
destroyed() {
|
|
|
document.removeEventListener("keydown", this.keydown);
|
|
|
},
|
|
|
methods: {
|
|
|
onPageChange(page) {
|
|
|
this.pager.page = page;
|
...
|
...
|
@@ -160,7 +166,7 @@ export default { |
|
|
this.pager.size = result.size;
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
this.$emit('backtop');
|
|
|
this.$emit("backtop");
|
|
|
});
|
|
|
|
|
|
msg();
|
...
|
...
|
@@ -169,6 +175,19 @@ export default { |
|
|
msg();
|
|
|
this.$Message.error("查询失败");
|
|
|
});
|
|
|
},
|
|
|
keydown(evt) {
|
|
|
if (evt.code === "ArrowLeft") {
|
|
|
this.goBack();
|
|
|
} else if (evt.code === "ArrowRight") {
|
|
|
this.goNext();
|
|
|
}
|
|
|
},
|
|
|
goNext() {
|
|
|
this.$refs.page.next()
|
|
|
},
|
|
|
goBack() {
|
|
|
this.$refs.page.prev()
|
|
|
}
|
|
|
},
|
|
|
components: {
|
...
|
...
|
|