| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAllHouseHold } from "@/api/userHouse/list/houseHold" |
| | | import { getPersonPublicSelect } from "@/api/public" |
| | | 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" |
| | |
| | | }, |
| | | dicData: [], |
| | | formatter: (row) => { |
| | | this.form.phone = row.phoneNumber |
| | | this.form.address = row.currentAddress |
| | | console.log(row, 1111) |
| | | |
| | | return row.name |
| | | }, |
| | |
| | | }, |
| | | |
| | | watch: { |
| | | "form.householdId": { |
| | | handler (val) { |
| | | if (val) { |
| | | |
| | | getPersonPublicSelect({ |
| | | id: val |
| | | }).then(res => { |
| | | const column = this.findObject(this.option.column, "householdId") |
| | | column.dicData = res.data.data |
| | | |
| | | this.form.phone = res.data.data[0].phoneNumber |
| | | this.form.address = res.data.data[0].currentAddress |
| | | }) |
| | | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | 'form.personType': { |
| | | handler (newData) { |
| | | let householdIdColumn = this.findObject( |
| | |
| | | |
| | | methods: { |
| | | getUserList (param = '') { |
| | | let dicUrl = `/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}` |
| | | let dicUrl = `/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}&limit=20` |
| | | const column = this.findObject(this.option.column, "householdId") |
| | | column.dicUrl = dicUrl |
| | | |
| | | console.log(param, this.option.column, 9999) |
| | | }, |
| | | |
| | | rowSave (row, done, loading) { |
| | |
| | | }) |
| | | this.form.url = urls.join(",") |
| | | } |
| | | |
| | | let params = { |
| | | id: this.form.householdId |
| | | } |
| | | |
| | | getAllHouseHold(params).then(res => { |
| | | const column = this.findObject(this.option.column, "householdId") |
| | | column.dicData = res.data.data |
| | | }) |
| | | }) |
| | | } |
| | | // con |