quanyawei
2024-06-27 e07b984728e0a97473b2954d097afac4a5c8b80a
pages/actionChange/components/basicInfor.vue
@@ -66,12 +66,18 @@
                        <text class="rowTipContenetLabel">整改类型:</text>
                        <text class="rowTipContenetAll">
                           <text>{{ dictObj.changeEnum[basicInfor.changeType]||'' }}</text>
                           <!-- <text>{{ basicInfor.residueDay||'' }}</text> -->
                        </text>
                     </view>
                  </view>
               </p>
               <p class="rowTip">
                  <view class="rowTipContenet" v-if="basicInfor.changeDay">
                     <view class="wholeLine">
                        <text class="rowTipContenetLabel">限期天数:</text>
                        <text class="rowTipContenetAll">
                           {{ basicInfor.changeDay }}天 </text>
                     </view>
                  </view>
                  <view class="rowTipContenet">
                     <view class="wholeLine">
                        <text class="rowTipContenetLabel">上报单位:</text>
@@ -85,6 +91,8 @@
                  <view class="wholeLine">
                     <text class="rowTipContenetLabel">污染位置:</text>
                     <text class="rowTipContenetAll">{{ basicInfor.pollutePosition ||'' }}</text>
                     <u-icon name="map" color="#2979ff" size="28" @tap="toNavigation()"
                        v-if="basicInfor.longitude !==null"></u-icon>
                  </view>
               </p>
               <p class="rowTip">
@@ -93,6 +101,16 @@
                        <text class="rowTipContenetLabel">任务分类:</text>
                        <text class="rowTipContenetAll">
                           <text>{{ dictObj.emphasisEnum[basicInfor.keyPoint]||'' }}</text>
                        </text>
                     </view>
                  </view>
               </p>
               <p class="rowTip">
                  <view class="rowTipContenet" style="width: 100%;">
                     <view class="wholeLine">
                        <text class="rowTipContenetLabel">问题描述:</text>
                        <text class="rowTipContenetAll" style="white-space: break-spaces;">
                           {{ basicInfor.problemDescribe }}
                        </text>
                     </view>
                  </view>
@@ -159,6 +177,20 @@
         }
      },
      methods: {
         //导航--传终点的坐标即可
         toNavigation: function() {
            //根据终点地址调起地图导航
            uni.openLocation({
               longitude: parseFloat(this.basicInfor.longitude), // 经度,范围为-180~180,负数表示西经
               latitude: parseFloat(this.basicInfor.latitude), // 纬度,范围为-90~90,负数表示南纬
               scale: 28, // 缩放比例
               name: this.basicInfor.name, //终点名称
               address: this.basicInfor.address, //终点详细地址
               success: function(res) {
                  console.log('success:', res)
               }
            })
         },
         getUnitList() {
            this.$http.httpGet('/allocation/unit').then(res => {
               this.unitList = res.data