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 | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/views/article/components/userList.vue b/src/views/article/components/userList.vue
index 167feea..0947a22 100644
--- a/src/views/article/components/userList.vue
+++ b/src/views/article/components/userList.vue
@@ -1,5 +1,5 @@
<template>
- <el-dialog class="dept-user-table-dialog" width="70%" title="选择接收人" modal-append-to-body="false" append-to-body="true"
+ <el-dialog class="dept-user-table-dialog" width="70%" title="选择人员" modal-append-to-body="false" append-to-body="true"
:close-on-click-model="true" :visible.sync="showDialog" @close="showDialog = false">
<!-- <div class="left">
<el-scrollbar>
@@ -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