| | |
| | | }, |
| | | query: {}, |
| | | newData: {}, |
| | | articleRange: {}, |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | searchReset() { |
| | | if (this.newData.articleRange) { |
| | | this.query.districtId = this.newData.articleRange[0][0] |
| | | if (this.articleRange) { |
| | | this.query.districtId = this.newData.articleRange |
| | | } |
| | | this.query.articleId = this.articleId |
| | | this.userPage.currentPage = 1 |
| | |
| | | }, |
| | | |
| | | searchChange(params, done) { |
| | | if (this.newData.articleRange) { |
| | | this.query.districtId = this.newData.articleRange[0][0] |
| | | if (this.articleRange) { |
| | | this.query.districtId = this.newData.articleRange |
| | | } |
| | | this.query = params |
| | | this.query.articleId = this.articleId |
| | |
| | | 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) { |
| | |
| | | |
| | | 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.newData = row |
| | | districtId = this.newData.articleRange |
| | | this.userParams = { |
| | | articleId: row.id, |
| | | districtId: districtId |
| | | } |
| | | } else { |
| | | districtId = this.newData.articleRange |
| | | this.userParams = { |
| | | topicsId: row.id, |
| | | districtId: districtId |