From 893fc457a2daeb0aa33a5a9d0b32eef7db238c1f Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 23 十月 2023 21:58:07 +0800
Subject: [PATCH] bug修改
---
src/views/systemSetting/device/bayonet/index.vue | 45 ++++++++++++++++++++++++++++++++++++---------
1 files changed, 36 insertions(+), 9 deletions(-)
diff --git a/src/views/systemSetting/device/bayonet/index.vue b/src/views/systemSetting/device/bayonet/index.vue
index 8705eca..0b7b9ba 100644
--- a/src/views/systemSetting/device/bayonet/index.vue
+++ b/src/views/systemSetting/device/bayonet/index.vue
@@ -4,22 +4,24 @@
<div class="header-content">
<div class="search">
<span style="padding-right: 20px">绛涢�夋潯浠�:</span>
- <el-input
- v-model="context"
- placeholder="璇疯緭鍏�"
- @change="getBayonetListData"
- ></el-input>
+ <el-input v-model="context" placeholder="璇疯緭鍏�"></el-input>
</div>
<div class="main-title">
+ <el-button
+ type="primary"
+ icon="el-icon-search"
+ @click="getBayonetListData"
+ >鏌ヨ
+ </el-button>
<el-button
class="el-icon-plus button-addition"
type="primary"
@click="showDialog(false, null)"
>娣诲姞</el-button
>
- <el-button @click="handleExport"
- type="primary">瀵煎嚭鍗″彛</el-button>
+
+ <el-button @click="handleExport" type="primary">瀵煎嚭鍗″彛</el-button>
</div>
</div>
</header>
@@ -30,7 +32,6 @@
:tableOption="tableOption"
:get-table-list="getBayonetListData"
:tableData="list"
- :pageShow="true"
>
<template #operation="info">
<el-link
@@ -49,6 +50,25 @@
>
</template>
</MyTable>
+
+ <div class="tools">
+ <div class="funs">
+ <div class="funsItem funs-sp"></div>
+ <div class="funsItem funs-sp"></div>
+ <div class="funsItem"></div>
+ </div>
+ <div class="pagination">
+ <el-pagination
+ background
+ :current-page="current"
+ layout="prev, pager, next"
+ :total="total"
+ :page-size="size"
+ @current-change="changeCurrentPage"
+ >
+ </el-pagination>
+ </div>
+ </div>
</div>
</main>
<footer>
@@ -98,6 +118,7 @@
list: [],
current: 1,
size: 10,
+ total: 0,
tableOption: {
group: [
{
@@ -153,13 +174,19 @@
current: this.current,
size: this.size,
})
- .then(({ records }) => {
+ .then(({ records, total }) => {
this.list = records;
+ this.total = total;
})
.catch((err) => {
this.$message({ type: "error", message: err });
});
},
+ // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ changeCurrentPage(page) {
+ this.current = page;
+ this.getBayonetListData();
+ },
// 寮圭獥鍏抽棴
handleClose(done) {
this.$confirm("纭鍏抽棴?").then((_) => {
--
Gitblit v1.8.0