| | |
| | | handleSubmit(row, done) { |
| | | row.articleId = this.articleId |
| | | row.eventType = 1 |
| | | row.userIds = JSON.stringify(row.userIds) |
| | | addPd(row).then( |
| | | () => { |
| | | this.onLoad(this.discussion) |
| | |
| | | this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm() |
| | | this.dialogVisibles = true |
| | | this.disCussFrom = {} |
| | | // this.disCussFrom = data; |
| | | this.discussion = data |
| | | this.articleId = data.id |
| | | this.onLoad(data) |
| | |
| | | |
| | | |
| | | |
| | | // getListPd(1, 10, Object.assign(params, this.query)).then(res => { |
| | | // const data = res.data.data |
| | | // this.page.total = data.total |
| | | // this.disCussFrom = data.records[0] |
| | | // if (this.disCussFrom.userIds) { |
| | | // getPersonPublicSelect({ |
| | | // id: this.disCussFrom.userIds |
| | | // }).then(res => { |
| | | // const column = this.findObject(this.option.column, "userIds") |
| | | // column.dicData = res.data.data |
| | | // this.loading = false |
| | | // }) |
| | | // } |
| | | // }) |
| | | getListPd(1, 10, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data |
| | | this.page.total = data.total |
| | | this.disCussFrom = data.records[0] |
| | | if (this.disCussFrom.userIds) { |
| | | getPersonPublicSelect({ |
| | | id: this.disCussFrom.userIds |
| | | }).then(res => { |
| | | const column = this.findObject(this.option.column, "userIds") |
| | | column.dicData = res.data.data |
| | | this.loading = false |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |