From d7541d3db0a2129f0033683ed63231cd6d6611bd Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期六, 24 六月 2023 11:06:06 +0800
Subject: [PATCH] bug修改
---
src/views/systemSetting/device/bayonet/index.vue | 44 ++++++++++++++++++++++++++++++++++----------
src/views/operate/images/updateUser/index.vue | 1 -
2 files changed, 34 insertions(+), 11 deletions(-)
diff --git a/src/views/operate/images/updateUser/index.vue b/src/views/operate/images/updateUser/index.vue
index 5378102..0bfbeb2 100644
--- a/src/views/operate/images/updateUser/index.vue
+++ b/src/views/operate/images/updateUser/index.vue
@@ -127,7 +127,6 @@
}
if (this.dialogType !== "create") {
let _imageList = [];
- debugger;
let imageData = this.imagedata.url.split(",");
imageData.forEach((url) => {
console.log(
diff --git a/src/views/systemSetting/device/bayonet/index.vue b/src/views/systemSetting/device/bayonet/index.vue
index 0fd8a38..0b7b9ba 100644
--- a/src/views/systemSetting/device/bayonet/index.vue
+++ b/src/views/systemSetting/device/bayonet/index.vue
@@ -4,15 +4,15 @@
<div class="header-content">
<div class="search">
<span style="padding-right: 20px">绛涢�夋潯浠�:</span>
- <el-input
- v-model="context"
- placeholder="璇疯緭鍏�"
-
- ></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
+ type="primary"
+ icon="el-icon-search"
+ @click="getBayonetListData"
+ >鏌ヨ
</el-button>
<el-button
class="el-icon-plus button-addition"
@@ -21,8 +21,7 @@
>娣诲姞</el-button
>
- <el-button @click="handleExport"
- type="primary">瀵煎嚭鍗″彛</el-button>
+ <el-button @click="handleExport" type="primary">瀵煎嚭鍗″彛</el-button>
</div>
</div>
</header>
@@ -33,7 +32,6 @@
:tableOption="tableOption"
:get-table-list="getBayonetListData"
:tableData="list"
- :pageShow="true"
>
<template #operation="info">
<el-link
@@ -52,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>
@@ -101,6 +118,7 @@
list: [],
current: 1,
size: 10,
+ total: 0,
tableOption: {
group: [
{
@@ -156,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