| | |
| | | </view> |
| | | <view class="measureCard"> |
| | | <view class="first"> |
| | | <text style="font-size: 16px;margin-bottom: 20px;">基础措施</text> |
| | | <text style="font-size: 16px;margin-bottom: 20px;"><text style="color: red;">*</text>基础措施</text> |
| | | <u-checkbox-group |
| | | v-model="checkboxValue1" |
| | | placement="column" |
| | |
| | | :maxCount="10" |
| | | style="margin-top: -10px;" |
| | | ></u-upload> |
| | | <view class="pic" v-for="(item,index) in nameList" :key="index"> |
| | | {{item.name}} |
| | | <view :class="{pic: nameList.length>0}"> |
| | | <view class="picItem" v-for="(item,index) in nameList" :key="index"> |
| | | <image src="../../../static/pic.png"> |
| | | {{item.name}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | |
| | | <script> |
| | | import { measureList, submitMeasures, getMeasureDetail } from '@/api/notice.js' |
| | | import VUE_APP_BASE_URL from '../../../common/constant.js' |
| | | export default { |
| | | components:{ |
| | | |
| | |
| | | autoHeight: true, |
| | | detailData : {}, |
| | | measureIds : [], |
| | | baseUrl: '', |
| | | baseUrl: VUE_APP_BASE_URL, |
| | | list: [], |
| | | showBtn: false |
| | | } |
| | |
| | | this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight']; |
| | | uni.hideTabBar(); |
| | | this.getMeasureList(); |
| | | console.log("huan",process.env.NODE_ENV) |
| | | if (process.env.NODE_ENV == 'development') { |
| | | this.baseUrl = 'http://192.168.0.41:8086' |
| | | }else { |
| | | this.baseUrl = 'http://121.239.169.30:13001' |
| | | } |
| | | }, |
| | | methods: { |
| | | getMeasureList() { |
| | | const param = { |
| | | pageIndex: 1, |
| | | pageSize: 10000000, |
| | | pageSize: 10000, |
| | | } |
| | | measureList(param).then(res => { |
| | | if(res.code == 100){ |
| | |
| | | console.log('change', this.measureIds); |
| | | }, |
| | | submit() { |
| | | if(this.measureIds.length <0) { |
| | | uni.showToast({ |
| | | icon: "none", |
| | | title: '请勾选基础措施' |
| | | }); |
| | | return; |
| | | } |
| | | const param = { |
| | | id: this.detailData.id, |
| | | baseMeasures: this.measureIds, |
| | |
| | | title: '提交成功' |
| | | }); |
| | | this.goBack(); |
| | | }else{ |
| | | uni.$u.toast(res.msg) |
| | | } |
| | | }) |
| | | |
| | |
| | | uploadFilePromise(url) { |
| | | return new Promise((resolve, reject) => { |
| | | let a = uni.uploadFile({ |
| | | url: this.baseUrl + '/attachment/uploadMeasureImage/key', |
| | | url: VUE_APP_BASE_URL + '/attachment/uploadMeasureImage/key', |
| | | filePath: url, |
| | | name: 'file', |
| | | header: { |
| | |
| | | .second{ |
| | | display: flex; |
| | | flex-direction: column; |
| | | margin-top: 50px; |
| | | margin-top: 30px; |
| | | } |
| | | .third{ |
| | | display: flex; |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | background-color: rgb(242,242,242); |
| | | padding: 5px 8px; |
| | | } |
| | | .picItem{ |
| | | font-weight: 500; |
| | | margin-top: 5px; |
| | | font-size: 14px; |
| | | display: flex; |
| | | image{ |
| | | width: 20px; |
| | | height: 20px; |
| | | margin-right:3px; |
| | | } |
| | | } |
| | | |
| | | .measures{ |
| | | margin-top: 50px 12px 0; |
| | | padding: 0 12px; |