|
@@ -56,9 +56,9 @@
|
|
<view class="uni-grid-wrap" v-if="item.attUrl.length!=0">
|
|
<view class="uni-grid-wrap" v-if="item.attUrl.length!=0">
|
|
<view style="color: #8C8C8C;">设备图片</view>
|
|
<view style="color: #8C8C8C;">设备图片</view>
|
|
<view style="position: relative;width: 180rpx;float: left;margin: 40rpx;"
|
|
<view style="position: relative;width: 180rpx;float: left;margin: 40rpx;"
|
|
- v-for="(items,indexs) in item.attUrl" :key="indexs">
|
|
|
|
- <image :src="items"
|
|
|
|
- style="width: 160rpx;height: 160rpx;border-radius: 30rpx;float: left;">
|
|
|
|
|
|
+ v-for="(items,indexs) in item.attUrl" :key="indexs"
|
|
|
|
+ @click="viewImageBig(items,item.attUrl)">
|
|
|
|
+ <image :src=" items" style="width: 160rpx;height: 160rpx;border-radius: 30rpx;float: left;">
|
|
</image>
|
|
</image>
|
|
<u-icon name="close" color="#4CB2B6" size="19" @click="closeImage(item,indexs,index)">
|
|
<u-icon name="close" color="#4CB2B6" size="19" @click="closeImage(item,indexs,index)">
|
|
</u-icon>
|
|
</u-icon>
|
|
@@ -229,7 +229,8 @@
|
|
</view>
|
|
</view>
|
|
<view class="uni-grid-wraps">
|
|
<view class="uni-grid-wraps">
|
|
<view style="position: relative;width: 180rpx;float: left;margin: 10rpx 15rpx 0 0rpx;"
|
|
<view style="position: relative;width: 180rpx;float: left;margin: 10rpx 15rpx 0 0rpx;"
|
|
- v-for="(items,indexs) in item.attUrl" :key="indexs">
|
|
|
|
|
|
+ v-for="(items,indexs) in item.attUrl" :key="indexs"
|
|
|
|
+ @click="viewImageBig(items,item.attUrl)">
|
|
<image :src="items" style="width: 160rpx;height: 160rpx;border-radius: 30rpx;float: left;">
|
|
<image :src="items" style="width: 160rpx;height: 160rpx;border-radius: 30rpx;float: left;">
|
|
<u-icon name="close" color="#4CB2B6" size="19" @click="closeImage(item,indexs,index)">
|
|
<u-icon name="close" color="#4CB2B6" size="19" @click="closeImage(item,indexs,index)">
|
|
</u-icon>
|
|
</u-icon>
|
|
@@ -285,6 +286,9 @@
|
|
import {
|
|
import {
|
|
getAccessToken
|
|
getAccessToken
|
|
} from '@/utils/auth'
|
|
} from '@/utils/auth'
|
|
|
|
+ import {
|
|
|
|
+ viewImgBig
|
|
|
|
+ } from '@/utils/common.js';
|
|
import config from '@/config'
|
|
import config from '@/config'
|
|
import store from "@/store"
|
|
import store from "@/store"
|
|
import loadImage from 'blueimp-load-image';
|
|
import loadImage from 'blueimp-load-image';
|
|
@@ -421,6 +425,9 @@
|
|
},
|
|
},
|
|
onShow() {},
|
|
onShow() {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ viewImageBig(i, imgList) {
|
|
|
|
+ viewImgBig(i, imgList)
|
|
|
|
+ },
|
|
// ----隐患
|
|
// ----隐患
|
|
checkboxConfirm2(index) {
|
|
checkboxConfirm2(index) {
|
|
this.choiceDanger.map(i => {
|
|
this.choiceDanger.map(i => {
|
|
@@ -491,7 +498,7 @@
|
|
this.insTypeData[0].dengerType = i.value
|
|
this.insTypeData[0].dengerType = i.value
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- console.log(this.insTypeData[0].dengerType,'this.insTypeData[0].dengerType');
|
|
|
|
|
|
+ console.log(this.insTypeData[0].dengerType, 'this.insTypeData[0].dengerType');
|
|
this.description2 = this.checkedPopupDanger.toString()
|
|
this.description2 = this.checkedPopupDanger.toString()
|
|
if (this.description2.startsWith(',')) {
|
|
if (this.description2.startsWith(',')) {
|
|
this.description2 = this.description2.slice(1);
|
|
this.description2 = this.description2.slice(1);
|
|
@@ -951,8 +958,10 @@
|
|
// this.newInsTypeData = uni.getStorageSync('newInsTypeDatas')
|
|
// this.newInsTypeData = uni.getStorageSync('newInsTypeDatas')
|
|
this.tableData.map(i => {
|
|
this.tableData.map(i => {
|
|
if (i.id == this.checkTableDataId) {
|
|
if (i.id == this.checkTableDataId) {
|
|
- i.dengerType=this.insTypeData[0].dengerType
|
|
|
|
- i.hisFpdCreateReqVOList = [...i.hisFpdCreateReqVOList, ...this.insTypeData]
|
|
|
|
|
|
+ i.dengerType = this.insTypeData[0].dengerType
|
|
|
|
+ i.hisFpdCreateReqVOList = [...i.hisFpdCreateReqVOList, ...this
|
|
|
|
+ .insTypeData
|
|
|
|
+ ]
|
|
i.hisFpdCreateReqVOList.map(k => {
|
|
i.hisFpdCreateReqVOList.map(k => {
|
|
k['broadId'] = that.formData.broadId
|
|
k['broadId'] = that.formData.broadId
|
|
if (k.id == fpdId) {
|
|
if (k.id == fpdId) {
|
|
@@ -1022,19 +1031,8 @@
|
|
sizeType: ['original', 'compressed'],
|
|
sizeType: ['original', 'compressed'],
|
|
// sourceType: ['album','camera'], //打开系统相册
|
|
// sourceType: ['album','camera'], //打开系统相册
|
|
success(res) {
|
|
success(res) {
|
|
- // that.loading = true
|
|
|
|
if (Array.isArray(res.tempFilePaths)) { //从相册选择有三张的情况
|
|
if (Array.isArray(res.tempFilePaths)) { //从相册选择有三张的情况
|
|
- // if (res.tempFilePaths.length === 3) {
|
|
|
|
- // pictures.length = 0
|
|
|
|
- // } else if (res.tempFilePaths.length == 2 && pictures.length == 2) {
|
|
|
|
- // pictures.splice(0, 1)
|
|
|
|
- // }
|
|
|
|
res.tempFilePaths.forEach(item => {
|
|
res.tempFilePaths.forEach(item => {
|
|
- // let picture = {
|
|
|
|
- // url: item,
|
|
|
|
- // show: false
|
|
|
|
- // }
|
|
|
|
- // pictures.push(picture)
|
|
|
|
loadImage(
|
|
loadImage(
|
|
item,
|
|
item,
|
|
function(canvas) {
|
|
function(canvas) {
|
|
@@ -1113,11 +1111,6 @@
|
|
this.$modal.msg(err.msg)
|
|
this.$modal.msg(err.msg)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- // // 保存到本地
|
|
|
|
- // uni.saveImageToPhotosAlbum({
|
|
|
|
- // filePath: item,
|
|
|
|
- // })
|
|
|
|
- // 上传完毕后,释放临时URL
|
|
|
|
URL.revokeObjectURL(fileUrl);
|
|
URL.revokeObjectURL(fileUrl);
|
|
}, 'image/jpeg', 0.6); // 设置压缩后的图片格式为 JPEG,压缩质量为 0.6
|
|
}, 'image/jpeg', 0.6); // 设置压缩后的图片格式为 JPEG,压缩质量为 0.6
|
|
}, {
|
|
}, {
|