|
@@ -12,7 +12,7 @@
|
|
<image v-if="imageSrc" style="width:300px;" :src="imageSrc" mode="aspectFit" @click="getPreview">
|
|
<image v-if="imageSrc" style="width:300px;" :src="imageSrc" mode="aspectFit" @click="getPreview">
|
|
</image>
|
|
</image>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view style="width:100%;display: flex;justify-content: space-between;margin: 2px 0px;">
|
|
<view style="width:100%;display: flex;justify-content: space-between;margin: 2px 0px;">
|
|
<u-button icon="eye" type="primary" size="small" :loading="loading" loadingText="识别中"
|
|
<u-button icon="eye" type="primary" size="small" :loading="loading" loadingText="识别中"
|
|
style="width:49%;margin:0" @click="getGasIdentify">识别</u-button>
|
|
style="width:49%;margin:0" @click="getGasIdentify">识别</u-button>
|
|
@@ -48,7 +48,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="dialog-item" @click="getChangeTime">
|
|
<view class="dialog-item" @click="getChangeTime">
|
|
<text class="dialog-label">检测时间:</text>
|
|
<text class="dialog-label">检测时间:</text>
|
|
- <u--input v-model="formState.time" placeholder="请选择检测时间" inputAlign="center"
|
|
|
|
|
|
+ <u--input readonly v-model="formState.time" placeholder="请选择检测时间" inputAlign="center"
|
|
:disabled="statusShow == 'edit'" suffixIcon="arrow-right"></u--input>
|
|
:disabled="statusShow == 'edit'" suffixIcon="arrow-right"></u--input>
|
|
<u-datetime-picker :show="showCalendar" v-model="timeRan" mode="datetime" closeOnClickOverlay
|
|
<u-datetime-picker :show="showCalendar" v-model="timeRan" mode="datetime" closeOnClickOverlay
|
|
@confirm="showCalendar = false" @cancel="showCalendar = false" @change="change"
|
|
@confirm="showCalendar = false" @cancel="showCalendar = false" @change="change"
|
|
@@ -56,7 +56,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="dialog-item">
|
|
<view class="dialog-item">
|
|
<text class="dialog-label">填报日期:</text>
|
|
<text class="dialog-label">填报日期:</text>
|
|
- <u--input inputAlign="center" v-model="formState.tbrq" placeholder="请选择填报日期"
|
|
|
|
|
|
+ <u--input inputAlign="center" readonly v-model="formState.tbrq" placeholder="请选择填报日期"
|
|
:disabled="statusShow == 'edit'"></u--input>
|
|
:disabled="statusShow == 'edit'"></u--input>
|
|
</view>
|
|
</view>
|
|
<view class="dialog-item">
|
|
<view class="dialog-item">
|
|
@@ -101,8 +101,8 @@
|
|
<div class="dialog-title">三对照数据</div>
|
|
<div class="dialog-title">三对照数据</div>
|
|
<view class="dialog-item">
|
|
<view class="dialog-item">
|
|
<text class="dialog-label">甲烷传感器:</text>
|
|
<text class="dialog-label">甲烷传感器:</text>
|
|
- <u--input inputAlign="center" :disabled="formState.jw=='-'" v-model="formState.jw" placeholder="请输入" clearable
|
|
|
|
- @input="changeInput($event, 'ch4')"></u--input>
|
|
|
|
|
|
+ <u--input inputAlign="center" :disabled="formState.jw == '-'" v-model="formState.jw"
|
|
|
|
+ placeholder="请输入" clearable @input="changeInput($event, 'ch4')"></u--input>
|
|
</view>
|
|
</view>
|
|
<view class="dialog-item">
|
|
<view class="dialog-item">
|
|
<text class="dialog-label">光瓦测量数据:</text>
|
|
<text class="dialog-label">光瓦测量数据:</text>
|
|
@@ -229,7 +229,7 @@ export default {
|
|
showCalendar: false,//控制日期选型下拉开启
|
|
showCalendar: false,//控制日期选型下拉开启
|
|
timeRan: Number(new Date()),
|
|
timeRan: Number(new Date()),
|
|
gasList: [],//瓦斯填报列表数据
|
|
gasList: [],//瓦斯填报列表数据
|
|
- tbTime: moment(new Date()).format('YYYY-MM-DD'),//查询条件-填报时间
|
|
|
|
|
|
+ // tbTime: moment(new Date()).format('YYYY-MM-DD'),//查询条件-填报时间
|
|
// showCalendarTb: false,//控制填报时间组件弹出
|
|
// showCalendarTb: false,//控制填报时间组件弹出
|
|
saveShowList: {},
|
|
saveShowList: {},
|
|
formState: {
|
|
formState: {
|
|
@@ -278,11 +278,11 @@ export default {
|
|
immediate: true,
|
|
immediate: true,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- mounted() {},
|
|
|
|
|
|
+ mounted() { },
|
|
methods: {
|
|
methods: {
|
|
//打开选择器选择
|
|
//打开选择器选择
|
|
GalleryFile() {
|
|
GalleryFile() {
|
|
- let that=this
|
|
|
|
|
|
+ let that = this
|
|
let parameter = {
|
|
let parameter = {
|
|
MediaType: 1,//设置选择类型 0: ALL(全部) 1: IMAGE(图片) 2: VIDEO(视频) 3: AUDIO(音频) 不传默认为1图片
|
|
MediaType: 1,//设置选择类型 0: ALL(全部) 1: IMAGE(图片) 2: VIDEO(视频) 3: AUDIO(音频) 不传默认为1图片
|
|
Single: 2,//设置单选或多选, 1为单选,2为多选,不传默认为多选
|
|
Single: 2,//设置单选或多选, 1为单选,2为多选,不传默认为多选
|
|
@@ -317,20 +317,20 @@ export default {
|
|
}
|
|
}
|
|
RHFselcet.getPicture(parameter, (data) => {
|
|
RHFselcet.getPicture(parameter, (data) => {
|
|
let arrData = data.mediaArray
|
|
let arrData = data.mediaArray
|
|
- let list=[]
|
|
|
|
|
|
+ let list = []
|
|
// let jsonData = JSON.stringify(arrData)
|
|
// let jsonData = JSON.stringify(arrData)
|
|
console.log(arrData)
|
|
console.log(arrData)
|
|
- that.imageSrc=arrData[0].Pathurl
|
|
|
|
|
|
+ that.imageSrc = arrData[0].Pathurl
|
|
that.imageSrcList = arrData[0].path
|
|
that.imageSrcList = arrData[0].path
|
|
list.push(arrData[0].Pathurl)
|
|
list.push(arrData[0].Pathurl)
|
|
- that.tempFilePaths = list
|
|
|
|
|
|
+ that.tempFilePaths = list
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// hasPermission(param) {
|
|
// hasPermission(param) {
|
|
// let permission = uni.getStorageSync('btnPermission')
|
|
// let permission = uni.getStorageSync('btnPermission')
|
|
// return permission.filter(v => v.action == param).length != 0 ? true : false
|
|
// return permission.filter(v => v.action == param).length != 0 ? true : false
|
|
// },
|
|
// },
|
|
-
|
|
|
|
|
|
+
|
|
//点击返回上一级
|
|
//点击返回上一级
|
|
handlerToggle() {
|
|
handlerToggle() {
|
|
this.$emit('getBackAddress')
|
|
this.$emit('getBackAddress')
|
|
@@ -348,7 +348,7 @@ export default {
|
|
let that = this
|
|
let that = this
|
|
if (that.imageSrc) {
|
|
if (that.imageSrc) {
|
|
that.loading = true
|
|
that.loading = true
|
|
- let jcNum=that.deviceName.indexOf('第三次')!=-1 ? 3 : null
|
|
|
|
|
|
+ let jcNum = that.deviceName.indexOf('第三次') != -1 ? 3 : null
|
|
let apiUrlImg = `${configService.apiUrlP.substring(0, configService.apiUrlP.lastIndexOf(':'))}:6006`
|
|
let apiUrlImg = `${configService.apiUrlP.substring(0, configService.apiUrlP.lastIndexOf(':'))}:6006`
|
|
uni.uploadFile({
|
|
uni.uploadFile({
|
|
url: `${apiUrlImg}/gasIdentify`,
|
|
url: `${apiUrlImg}/gasIdentify`,
|
|
@@ -666,7 +666,7 @@ export default {
|
|
// }
|
|
// }
|
|
// });
|
|
// });
|
|
// },
|
|
// },
|
|
-
|
|
|
|
|
|
+
|
|
//删除
|
|
//删除
|
|
delSb() {
|
|
delSb() {
|
|
this.isShowAdd = false
|
|
this.isShowAdd = false
|
|
@@ -674,13 +674,13 @@ export default {
|
|
this.indexParam = {}
|
|
this.indexParam = {}
|
|
this.imageSrc = ''
|
|
this.imageSrc = ''
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
//甲烷三对照选项切换
|
|
//甲烷三对照选项切换
|
|
changeJw(e) {
|
|
changeJw(e) {
|
|
this.formState.jw = e
|
|
this.formState.jw = e
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
//检测时间下拉选项切换
|
|
//检测时间下拉选项切换
|
|
change(e) {
|
|
change(e) {
|
|
let that = this
|
|
let that = this
|
|
@@ -1307,7 +1307,7 @@ export default {
|
|
this.isRule14 = false
|
|
this.isRule14 = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
getAddSave() {
|
|
getAddSave() {
|
|
let that = this
|
|
let that = this
|
|
console.log(that.paramData, 'paramData---------')
|
|
console.log(that.paramData, 'paramData---------')
|
|
@@ -1853,13 +1853,13 @@ export default {
|
|
let that = this
|
|
let that = this
|
|
new Promise((resolve, reject) => {
|
|
new Promise((resolve, reject) => {
|
|
api
|
|
api
|
|
- .getGas({ reportTime: that.tbTime, deviceId: that.deviceID })
|
|
|
|
|
|
+ .getGas({ reportTime: that.searchTime, deviceId: that.deviceID })
|
|
.then((response) => {
|
|
.then((response) => {
|
|
if (response.data.code == 200) {
|
|
if (response.data.code == 200) {
|
|
that.gasList = response.data.result.records
|
|
that.gasList = response.data.result.records
|
|
if (that.gasList.length != 0) {
|
|
if (that.gasList.length != 0) {
|
|
that.editData = that.gasList.filter(v => v.deviceId == that.deviceID)[0]
|
|
that.editData = that.gasList.filter(v => v.deviceId == that.deviceID)[0]
|
|
-
|
|
|
|
|
|
+
|
|
if (that.classType == '夜班' && that.checkNum == '1') {
|
|
if (that.classType == '夜班' && that.checkNum == '1') {
|
|
that.formState = {
|
|
that.formState = {
|
|
id: that.editData.id || '',
|
|
id: that.editData.id || '',
|
|
@@ -2224,7 +2224,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
::v-deep .u-modal__button-group__wrapper {
|
|
::v-deep .u-modal__button-group__wrapper {
|
|
- height: 36px;
|
|
|
|
|
|
+ height:36px;
|
|
}
|
|
}
|
|
|
|
|
|
::v-deep .u-modal__content {
|
|
::v-deep .u-modal__content {
|