lin
2024-02-28 34dbf82112e28c111ffb2efdf2653ee42df80b21
src/views/article/components/deitDiscussion.vue
@@ -211,7 +211,7 @@
          calcHeight: 54,
          dialogWidth: 950,
          tip: false,
          border: false,
          border: true,
          //stripe:true,
          index: true,
          editBtn: false,
@@ -221,6 +221,7 @@
          delBtn: false,
          excelBtn: true,
          dialogClickModal: false,
          header:false,
          column: [{
            label: '姓名',
            prop: 'name',
@@ -260,6 +261,8 @@
          total: 0
        },
        query: {},
        newData: {},
        articleRange: {},
      }
    },
@@ -273,14 +276,22 @@
      },
      searchReset() {
        this.query = {}
        this.getUserPage(this.userPage)
        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
        this.getUserPage(this.userPage, params)
        this.getUserPage(this.userPage, this.query)
        done()
      },
      initData(newData) {
@@ -289,6 +300,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) {
@@ -411,13 +424,20 @@
      openUser(row, type = 0) {
        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)