| | |
| | | <view class="licence" v-if="fireImages.length"> |
| | | <box-title title="灭火器图片" class="box-title"></box-title> |
| | | <view class="flex-wrap"> |
| | | <view v-for="(i,k) in fireImages" :key="k" class="ml-20 mt-20" @click="previewImg(i,fireImages)"> |
| | | <view v-for="(i,k) in fireImages" :key="k" class="ml-20 mt-20" @click="previewImg(i,fireImages)"> |
| | | <u-image :src="i" width="80" height="80"></u-image> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="planegraph" v-if="scImageUrls.length"> |
| | | <box-title title="安全通道图片" class="box-title"></box-title> |
| | | <view class="flex-wrap"> |
| | | <view v-for="(i,k) in scImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,scImageUrls)"> |
| | | <view v-for="(i,k) in scImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,scImageUrls)"> |
| | | <u-image :src="i" width="80" height="80"></u-image> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="planegraph" v-if="pfImageUrls.length"> |
| | | <box-title title="技防设施图片" class="box-title"></box-title> |
| | | <view class="flex-wrap"> |
| | | <view v-for="(i,k) in pfImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,pfImageUrls)"> |
| | | <view v-for="(i,k) in pfImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,pfImageUrls)"> |
| | | <u-image :src="i" width="80" height="80"></u-image> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="planegraph" v-if="uanImageUrls.length"> |
| | | <box-title title="未成年人入住及照片" class="box-title"></box-title> |
| | | <view class="flex-wrap"> |
| | | <view v-for="(i,k) in uanImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,uanImageUrls)"> |
| | | <view v-for="(i,k) in uanImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,uanImageUrls)"> |
| | | <u-image :src="i" width="80" height="80"></u-image> |
| | | </view> |
| | | </view> |
| | |
| | | <box-title title="审核信息" class="box-title"></box-title> |
| | | <view class="info"> |
| | | <u-form labelWidth="70" :model="form" ref="form" class="form"> |
| | | <u-form-item label="审核状态" @click="showPicker()" class="form-item" :border-bottom="true"> |
| | | <u-form-item label="审核状态" @click="showPicker()" class="form-item" :border-bottom="true"> |
| | | <u--input v-model="form.confirmFlag" disabled disabledColor="#ffffff" placeholder="请选择审核状态" |
| | | :border="false"></u--input> |
| | | <u-icon slot="right" name="arrow-right"></u-icon> |
| | |
| | | scImageUrls: [], |
| | | pfImageUrls: [], |
| | | uanImageUrls: [], |
| | | selectStatus: "", |
| | | selectStatus: 2, |
| | | remark: "", |
| | | roleType:"", |
| | | status:1, |
| | | id:"" |
| | | roleType: "", |
| | | status: 1, |
| | | id: "" |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | this.taskId = option.id; |
| | | this.getDetailInfo(option.id); |
| | | let roleName = uni.getStorageSync("activeRole").roleName |
| | | if(roleName == "居民"){ |
| | | if (roleName == "居民") { |
| | | this.roleType = 2 |
| | | }else { |
| | | } else { |
| | | this.roleType = 1 |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | showPicker() { |
| | | if (this.roleType == 1){ |
| | | if (this.roleType == 1) { |
| | | this.isPickerShow = true; |
| | | }; |
| | | }, |
| | |
| | | |
| | | }) |
| | | }, |
| | | |
| | | previewImg(current,urls){ |
| | | |
| | | previewImg(current, urls) { |
| | | uni.previewImage({ |
| | | current,urls |
| | | current, |
| | | urls |
| | | }) |
| | | }, |
| | | |
| | |
| | | submit() { |
| | | let data = { |
| | | id: this.id, |
| | | taskId:this.taskId, |
| | | taskId: this.taskId, |
| | | status: this.selectStatus, |
| | | remark: this.remark |
| | | } |
| | |
| | | title: '更新失败', |
| | | icon: 'error' |
| | | }) |
| | | |
| | | }else { |
| | | |
| | | } else { |
| | | uni.showToast({ |
| | | title: '提交成功', |
| | | title: '提交成功', |
| | | }) |
| | | this.reLoadPrePage(); |
| | | } |
| | | |
| | | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | //刷新上一页数据后返回 |
| | | reLoadPrePage() { |
| | | let pages = getCurrentPages(); |
| | | let prePage = pages[pages.length - 2]; |
| | | prePage.$vm.currentPage = 1, |
| | | prePage.$vm.list = []; |
| | | prePage.$vm.currentPage = 1, |
| | | prePage.$vm.list = []; |
| | | prePage.$vm.getList(); |
| | | uni.navigateBack(); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | </script> |