linwe
2024-05-23 d8a1ca0a03ae1cc37dc26eb23d969fd92ce62169
E呼即办页面优化
1 files modified
27 ■■■■■ changed files
src/views/cGovernance/taskECallTwo/index.vue 27 ●●●●● patch | view | raw | blame | history
src/views/cGovernance/taskECallTwo/index.vue
@@ -262,16 +262,11 @@
            {
              prop: "sceneGeo",
              size: "mini",
              dataType: "string",
              type: 'map',
              // dataType: "string",
              span: 24,
              // value: [117.966460, 28.431002, ""],
              rows: 0.5,
              //高德初始化参数
              params: {
                zoom: 10,
                zoomEnable: false,
                dragEnable: false,
              }
              // value: [117.966460, 28.431002, ""]
            },
            {
              label: "事发地点-经度",
@@ -441,16 +436,12 @@
        // form是表单或者表格绑定的数据集,v-model='form'
        handler(val) {
          console.log("*****123**********" + val)
          if (val) {
            // var arr = val.split(",")
          console.log("*****456**********" + typeof(val))
          if (typeof val == "object") {
            var arr = val
            //经纬度替换
            console.log("*****4563**********" + val[1])
            if (val[0]) {
              this.form.sceneGeoLng = val[0]
            }
            if (val[1]) {
              this.form.sceneGeoLat = val[1]
            }
            this.form.sceneGeoLat = arr[1]
            this.form.sceneGeoLng = arr[0]
          }
        },
        immediate: true,