From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化
---
src/views/article/components/userList.vue | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/views/article/components/userList.vue b/src/views/article/components/userList.vue
index df624f9..0947a22 100644
--- a/src/views/article/components/userList.vue
+++ b/src/views/article/components/userList.vue
@@ -158,6 +158,14 @@
}
},
methods: {
+ selectPersonList(personList) {
+ console.log(personList, "++++++++++++")
+ this.personList = personList
+ let nameList = personList.map(e => {
+ return e.name
+ })
+ this.froms.userName = nameList.join(",")
+ },
submit() {
this.$emit("selectPersonList", this.idsList)
this.showDialog = false
@@ -167,6 +175,7 @@
console.log("***111111111111111111***", articleRange)
this.articleRange = articleRange
this.showDialog = true
+ this.page.currentPage = 1
this.onLoad(this.page)
},
@@ -196,6 +205,7 @@
},
currentChange(currentPage) {
this.page.currentPage = currentPage
+ this.onLoad(this.page)
},
sizeChange(pageSize) {
this.page.pageSize = pageSize
@@ -252,4 +262,4 @@
}
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3