| | |
| | | <view class="wholeLine"> |
| | | <text class="rowTipContenetLabel">责任主体:</text> |
| | | <text class="rowTipContenetAll"> |
| | | {{ unitName }} |
| | | {{ basicInfor.unitName }} |
| | | </text> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="wholeLine"> |
| | | <text class="rowTipContenetLabel">污染分类:</text> |
| | | <text class="rowTipContenetAll"> |
| | | {{ polluteType }} |
| | | {{ basicInfor.polluteTypeName }} |
| | | </text> |
| | | </view> |
| | | </view> |
| | |
| | | <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> |
| | | <text class="rowTipContenetAll"> |
| | | {{ escalationUnitName }} |
| | | {{ basicInfor.escalationUnitName }} |
| | | </text> |
| | | </view> |
| | | </view> |
| | |
| | | <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> |
| | | <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> |
| | | </p> |
| | | <view class="formItemContent"> |
| | | <u--form labelPosition="left" label-width="75" :border-bottom="false" ref="uForm"> |
| | | <u-form-item border-bottom label="相关附件:" :border-bottom="false"> |
| | | <view class="fileBox"> |
| | | <cl-upload v-model="fileList" :add="false" :action="`''`" cloud-type="other" |
| | | :remove="false" /> |
| | | <cl-upload v-if="fileList.length>0" v-model="fileList" :add="false" :action="`''`" |
| | | cloud-type="other" :remove="false" /> |
| | | </view> |
| | | </u-form-item> |
| | | </u--form> |
| | |
| | | baseUrl: this.$storage.get('baseUrl'), |
| | | } |
| | | }, |
| | | computed: { |
| | | unitName() { |
| | | let data = '' |
| | | if (this.basicInfor.unitId && this.unitList.length > 0) { |
| | | data = this.unitList && this.unitList.find(a => Number(a.unitId) === Number(this.basicInfor.unitId)) |
| | | .unitName |
| | | } |
| | | return data |
| | | }, |
| | | escalationUnitName() { |
| | | let data = '' |
| | | if (this.basicInfor.unitId && this.unitList.length > 0) { |
| | | data = this.unitList && this.unitList.find(a => Number(a.unitId) === Number(this.basicInfor |
| | | .escalationUnitId)).unitName |
| | | } |
| | | return data |
| | | }, |
| | | polluteType() { |
| | | let data = '' |
| | | console.log('this.polluteList', this.polluteList) |
| | | console.log('this.basicInfor.polluteType', this.basicInfor.polluteType) |
| | | if (String(this.basicInfor.polluteType) && this.polluteList.length > 0) { |
| | | data = this.polluteList.find(a => Number(a.dataKey) === Number(this.basicInfor.polluteType)).dataValue |
| | | } |
| | | console.log('data', data) |
| | | return data |
| | | } |
| | | }, |
| | | computed: {}, |
| | | watch: { |
| | | basicInfor: { |
| | | handler: function(newValue, oldValue) { |
| | |
| | | }, |
| | | mounted() { |
| | | // 获取责任单位list |
| | | console.log('this.basicInfor.fileBaseList', this.basicInfor.fileBaseList) |
| | | if (this.basicInfor.fileBaseList && this.basicInfor.fileBaseList.length > 0) { |
| | | this.basicInfor.fileBaseList.forEach(item => { |
| | | let name = item.fileType === 1 ? 'name.png' : '' |
| | |
| | | } |
| | | }, |
| | | 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 |