Lou
2024-02-22 821672dbbd1a7f2be98d5e87a5f39c648ae721a7
src/views/article/components/discussionManageChild.vue
@@ -36,7 +36,7 @@
    getDetatils as getHouseholdDetail
  } from "@/api/userHouse/list/houseHold"
  import { getUserlnfoByDistrictlds  } from "@/api/system/user"
  export default {
    data() {
@@ -176,13 +176,15 @@
              display: false,
              label: "选择用户",
              prop: "userIds",
              type: 'select',
              tags: true,
              type: "tree",
              multiple: true,
              span: 12,
              offset: 8,
              remote: true,
              hide: true,
              row: true,
              dicUrl: `/api/blade-system/user/getUserlnfoByDistrictlds?districtlds=`,
              // dicUrl: `/api/blade-system/user/getUserlnfoByDistrictlds?districtlds={{}}`,
              props: {
                label: 'name',
                value: 'id',
@@ -298,20 +300,28 @@
        articleId: data.id
      }) {
        this.loading = true
        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 => {
        getUserlnfoByDistrictlds( data.articleRange).then(res=>{
              console.log(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
        //     })
        //   }
        // })
      }
    }
  }