shuishen
2024-01-16 f100ef511bfd5cb27e553a41abcb8fbd7dcc3fe4
src/views/cGovernance/gridWorkLog.vue
@@ -21,6 +21,7 @@
<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"
@@ -42,13 +43,14 @@
            option: {
                labelWidth: 120,
                searchLabelWidth: 96,
                searchShow: true,
                searchMenuSpan: 3,
                menuWidth: 210,
                height: "auto",
                calcHeight: 54,
                dialogWidth: 950,
                tip: false,
                searchShow: true,
                searchMenuSpan: 3,
                menuWidth: 280,
                border: false,
                //stripe:true,
                index: true,
@@ -58,6 +60,7 @@
                dialogClickModal: false,
                column: [
                    {
                        width: 120,
                        label: "走访类型",
                        prop: "type",
                        span: 12,
@@ -127,11 +130,6 @@
                            value: 'id',
                        },
                        dicData: [],
                        formatter: (row) => {
                            console.log(row, 1111)
                            return row.name
                        },
                        rules: [
                            {
                                required: true,
@@ -150,6 +148,7 @@
                        searchSpan: 4,
                        search: true,
                    },
                    {
                        width: 156,
                        overHidden: true,
@@ -234,6 +233,7 @@
                    },
                    {
                        dispaly: false,
                        width: 144,
                        label: "上报时间",
                        prop: "createTime",
@@ -260,14 +260,11 @@
            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
                    })
                }
@@ -347,7 +344,7 @@
    methods: {
        getUserList (param = '') {
            let dicUrl = `/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}&limit=20`
            let dicUrl = `/api/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}&limit=20`
            const column = this.findObject(this.option.column, "householdId")
            column.dicUrl = dicUrl
        },
@@ -470,6 +467,13 @@
                        })
                        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