shuishen
2024-01-08 c9b3952131b7273bf4f29c00975b6d737a3aae64
src/views/cGovernance/gridWorkLog.vue
@@ -20,7 +20,7 @@
</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"
@@ -128,8 +128,7 @@
                        },
                        dicData: [],
                        formatter: (row) => {
                            this.form.phone = row.phoneNumber
                            this.form.address = row.currentAddress
                            console.log(row, 1111)
                            return row.name
                        },
@@ -257,6 +256,24 @@
    },
    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(
@@ -330,11 +347,9 @@
    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) {
@@ -455,15 +470,6 @@
                        })
                        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