From 821672dbbd1a7f2be98d5e87a5f39c648ae721a7 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Thu, 22 Feb 2024 18:23:57 +0800
Subject: [PATCH] 更新
---
src/views/article/components/deitDiscussion.vue | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/src/views/article/components/deitDiscussion.vue b/src/views/article/components/deitDiscussion.vue
index 8e43bb7..abce4aa 100644
--- a/src/views/article/components/deitDiscussion.vue
+++ b/src/views/article/components/deitDiscussion.vue
@@ -261,6 +261,7 @@
},
query: {},
newData: {},
+ articleRange: {},
}
},
@@ -274,12 +275,18 @@
},
searchReset() {
+ if (this.articleRange) {
+ this.query.districtId = this.newData.articleRange
+ }
this.query.articleId = this.articleId
this.userPage.currentPage = 1
this.getUserPage(this.userPage, this.query)
},
searchChange(params, done) {
+ if (this.articleRange) {
+ this.query.districtId = this.newData.articleRange
+ }
this.query = params
this.query.articleId = this.articleId
this.userPage.currentPage = 1
@@ -292,6 +299,8 @@
this.articleId = newData.id
this.query.level = 1
this.query.articleId = this.articleId
+ this.newData = newData
+ this.query.districtId = newData.articleRange
this.onLoad(this.userPage, this.query)
},
// initData(newData) {
@@ -415,13 +424,19 @@
this.popupTableUserShow = true
this.query = {}
this.articleId = row.id
+ let districtId
if (type == 0) {
+ this.newData = row
+ districtId = this.newData.articleRange
this.userParams = {
- articleId: row.id
+ articleId: row.id,
+ districtId: districtId
}
} else {
+ districtId = this.newData.articleRange
this.userParams = {
- topicsId: row.id
+ topicsId: row.id,
+ districtId: districtId
}
}
this.getUserPage(this.userPage, this.userParams)
--
Gitblit v1.9.3