| | |
| | | }, |
| | | |
| | | handleSubmit(form, done) { |
| | | console.log("**********" + JSON.stringify(form)) |
| | | form.articleId = this.articleId |
| | | form.eventType = 1 |
| | | form.userIds = JSON.stringify(form.userIds) |
| | | if (form.appointUser == 0) { |
| | | form.userIds = '' |
| | | } |
| | | console.log("===>", JSON.stringify(this.froms)) |
| | | form.id = this.id; |
| | | console.log("formData====>", JSON.stringify(formData)) |
| | | |
| | | form.id = this.id |
| | | |
| | | addPd(form).then( |
| | | () => { |
| | | // this.onLoad(this.discussion) |
| | |
| | | ) |
| | | }, |
| | | init(data) { |
| | | // console.log("====>", data); |
| | | console.log("===init===", data) |
| | | this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm() |
| | | this.dialogVisibles = true |
| | | this.froms = {} |
| | |
| | | }, |
| | | |
| | | handleClose() { |
| | | console.log("**********************************************************************************") |
| | | console.log("******handleClose*******") |
| | | this.dialogVisibles = false |
| | | this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm() |
| | | this.froms = {}; |
| | | console.log("^^^^^", this.froms) |
| | | console.log(this.$refs, 90999) |
| | | this.froms = {} |
| | | }, |
| | | |
| | | opens() { |
| | | console.log("***************************************opens*******************************************") |
| | | console.log("******opens*******") |
| | | // this.dialogVisibles = false |
| | | this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm() |
| | | this.froms = {}; |
| | | console.log("^^^^^", this.froms) |
| | | console.log(this.$refs, 90999) |
| | | this.froms = {} |
| | | }, |
| | | |
| | | onLoad(row, params = { |
| | | eventType: 1, |
| | | articleId: row.id |
| | | }) { |
| | | this.loading = true |
| | | // this.loading = true |
| | | getListPd(1, 10, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data |
| | | this.$refs.DisCussFrom && this.$refs.DisCussFrom.resetForm() |
| | | if (data.records.length <= 0) { |
| | | console.log("----------------------------------") |
| | | console.log("--------onLoad------------") |
| | | this.id = '' |
| | | this.froms = {} |
| | | } else { |
| | | console.log(">>>>>", data.records[0]) |
| | | console.log(">>>>>onLoad", data.records[0]) |
| | | this.froms = data.records[0] |
| | | this.id = data.records[0].id; |
| | | formData = data.records[0]; |
| | | |
| | | this.id = data.records[0].id |
| | | formData = data.records[0] |
| | | if (this.froms && this.froms.userIds) { |
| | | this.froms.userIds = JSON.parse(this.froms.userIds) |
| | | } |