linwei
2024-02-22 ffbd8b9ff978103901d025be8c1229bccda94372
议事优化
1 files modified
21 ■■■■■ changed files
src/views/article/components/deitDiscussion.vue 21 ●●●●● patch | view | raw | blame | history
src/views/article/components/deitDiscussion.vue
@@ -274,12 +274,18 @@
      },
      searchReset() {
        if (this.newData.articleRange) {
          this.query.districtId = this.newData.articleRange[0][0]
        }
        this.query.articleId = this.articleId
        this.userPage.currentPage = 1
        this.getUserPage(this.userPage, this.query)
      },
      searchChange(params, done) {
        if (this.newData.articleRange) {
          this.query.districtId = this.newData.articleRange[0][0]
        }
        this.query = params
        this.query.articleId = this.articleId
        this.userPage.currentPage = 1
@@ -413,15 +419,26 @@
      openUser(row, type = 0) {
        this.popupTableUserShow = true
        this.newData = row
        this.query = {}
        this.articleId = row.id
        let districtId
        if (this.newData.articleRange) {
          console.log(this.newData)
          // this.newData.articleRange = JSON.parse(this.newData.articleRange)
          districtId = this.newData.articleRange[0][0]
          console.log("********************" + districtId)
        }
        console.log(districtId)
        if (type == 0) {
          this.userParams = {
            articleId: row.id
            articleId: row.id,
            districtId: districtId
          }
        } else {
          this.userParams = {
            topicsId: row.id
            topicsId: row.id,
            districtId: districtId
          }
        }
        this.getUserPage(this.userPage, this.userParams)