shuishen
2024-01-05 f2e4a9d500d2ae2a0ca0fe9ff8cb050c90ccaa2e
src/views/cGovernance/taskECall.vue
@@ -93,18 +93,35 @@
                    },],
                    // search: true,
                },
                {
                    parent: false,
                    width: 156,
                    overHidden: true,
                    label: "所属社区",
                    prop: "communityCode",
                    addDisplay: false,
                    editDisplay: false,
                    viewDisplay: false,
                    prop: "communityName",
                    search: true,
                    searchSpan: 4,
                    width: 150,
                    rules: [{
                        required: true,
                        message: "请选择所属社区",
                        trigger: "blur",
                    }],
                },
                {
                    label: "所属社区",
                    hide: true,
                    parent: false,
                    prop: "communityCode",
                    search: false,
                    type: "tree",
                    dicUrl: "/api/blade-system/region/tree",
                    props: {
                        label: "name",
                        value: "id"
                        value: "id",
                    },
                    rules: [
                        {
@@ -114,6 +131,7 @@
                        },
                    ],
                },
                {
                    label: "数据来源",
                    prop: "source",
@@ -271,9 +289,9 @@
                },
                {
                    width: 110,
                    label: "现场图片",
                    prop: "imageUrls",
                    width: 80,
                    type: "upload",
                    listType: "picture-card",
                    dataType: "string",
@@ -331,13 +349,11 @@
            // form是表单或者表格绑定的数据集,v-model='form'
            handler (val) {
                if (typeof val == "string") {
                    console.log(val, 7777)
                    var arr = val.split(",")
                    console.log(val, 88888)
                    //经纬度替换
                    this.form.lat = arr[1]
                    this.form.lng = arr[0]
                    // this.form.location = arr[2];
                    this.form.address = arr[2]
                }
            },
            immediate: true,