From 7952797c47a0a5149435d448eafd268091732e74 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Fri, 08 Mar 2024 13:09:22 +0800 Subject: [PATCH] fix:整改附件必填 --- pages/actionChange/components/basicInfor.vue | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/pages/actionChange/components/basicInfor.vue b/pages/actionChange/components/basicInfor.vue index d661d64..87811da 100644 --- a/pages/actionChange/components/basicInfor.vue +++ b/pages/actionChange/components/basicInfor.vue @@ -85,6 +85,18 @@ <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"> + <view class="rowTipContenet" style="width: 100%;"> + <view class="wholeLine"> + <text class="rowTipContenetLabel">������������:</text> + <text class="rowTipContenetAll"> + <text>{{ dictObj.emphasisEnum[basicInfor.keyPoint]||'' }}</text> + </text> + </view> </view> </p> <view class="formItemContent"> @@ -149,6 +161,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 -- Gitblit v1.8.0