| | |
| | | value: 'id', |
| | | }, |
| | | dicData: [], |
| | | formatter: (row) => { |
| | | console.log(row, 1212213) |
| | | return row.name |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | }, |
| | | |
| | | watch: { |
| | | "disCussFrom.userIds": { |
| | | handler (val) { |
| | | if (val) { |
| | | |
| | | getPersonPublicSelect({ |
| | | id: val |
| | | }).then(res => { |
| | | const column = this.findObject(this.option.column, "userIds") |
| | | column.dicData = res.data.data |
| | | }) |
| | | |
| | | } |
| | | } |
| | | }, |
| | | 'disCussFrom.appointUser': { |
| | | handler (newData) { |
| | | const column = this.findObject(this.option.column, "userIds") |
| | |
| | | const data = res.data.data |
| | | this.page.total = data.total |
| | | this.disCussFrom = data.records[0] |
| | | |
| | | getPersonPublicSelect({ |
| | | id: this.disCussFrom.userIds |
| | | }).then(res => { |
| | | const column = this.findObject(this.option.column, "userIds") |
| | | column.dicData = res.data.data |
| | | |
| | | this.loading = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | <script> |
| | | import { getPersonPublicSelect } from "@/api/public" |
| | | import { getDetatils as householdDetail } from "@/api/userHouse/list/houseHold" |
| | | import { getList, remove, update, add, getGridWorkLog } from "@/api/grid/gridWorkLog" |
| | | import { getList as getHouseholdList, getDetatils as getHouseholdDetail } from "@/api/userHouse/list/houseHold" |
| | | import { mapGetters } from "vuex" |
| | |
| | | value: 'id', |
| | | }, |
| | | dicData: [], |
| | | formatter: (row) => { |
| | | console.log(row, 1111) |
| | | |
| | | return row.name |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | searchSpan: 4, |
| | | search: true, |
| | | }, |
| | | |
| | | { |
| | | width: 156, |
| | | overHidden: true, |
| | |
| | | handler (val) { |
| | | if (val) { |
| | | |
| | | getPersonPublicSelect({ |
| | | id: val |
| | | }).then(res => { |
| | | const column = this.findObject(this.option.column, "householdId") |
| | | column.dicData = res.data.data |
| | | householdDetail(val).then(res => { |
| | | let data = res.data.data |
| | | |
| | | this.form.phone = res.data.data[0].phoneNumber |
| | | this.form.address = res.data.data[0].currentAddress |
| | | this.form.phone = data.phoneNumber |
| | | this.form.address = data.currentAddress |
| | | }) |
| | | |
| | | } |
| | |
| | | }) |
| | | this.form.url = urls.join(",") |
| | | } |
| | | |
| | | getPersonPublicSelect({ |
| | | id: this.form.householdId |
| | | }).then(res => { |
| | | const column = this.findObject(this.option.column, "householdId") |
| | | column.dicData = res.data.data |
| | | }) |
| | | }) |
| | | } |
| | | // con |