Lou
2024-02-23 daea06fe6b912c640c87e9a40dc8ead31b87ac3c
src/views/article/components/discussionManageChild.vue
@@ -263,6 +263,7 @@
      handleSubmit(row, done) {
        row.articleId = this.articleId
        row.eventType = 1
        row.userIds = JSON.stringify(row.userIds)
        addPd(row).then(
          () => {
            this.onLoad(this.discussion)
@@ -283,6 +284,7 @@
        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)
@@ -308,20 +310,20 @@
        // 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
            })
          }
        })
      }
    }
  }