|
@@ -56,8 +56,8 @@
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
<el-col :sm="24" :md="12">
|
|
<el-col :sm="24" :md="12">
|
|
- <el-form-item label="参考液面1(分米)">
|
|
|
|
- <el-input-number v-model="formModel.referDepth1" :controls="false" :min="1" :precision="0"/>
|
|
|
|
|
|
+ <el-form-item label="参考液面1(厘米)">
|
|
|
|
+ <el-input-number v-model="formModel.referDepth1" :controls="false" :min="10" :precision="0" @change="refDepthHandle"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
@@ -153,6 +153,12 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //参考深度,后台要求是整数的分米,所以要求是整10的厘米
|
|
|
|
+ const refDepthHandle=(val)=>{
|
|
|
|
+ let depth=Math.floor(val/10)
|
|
|
|
+ formModel.referDepth1=depth*10
|
|
|
|
+ }
|
|
|
|
+
|
|
let startTime=null
|
|
let startTime=null
|
|
|
|
|
|
const remoteCtr=async (action)=>{
|
|
const remoteCtr=async (action)=>{
|
|
@@ -169,6 +175,10 @@
|
|
if((now-stime)>300000){
|
|
if((now-stime)>300000){
|
|
ElMessageBox.confirm('传感器时间已滞后5分钟以上,确定要设置到设备?').then(()=>{
|
|
ElMessageBox.confirm('传感器时间已滞后5分钟以上,确定要设置到设备?').then(()=>{
|
|
appendlog('发送远程参数设置指令...')
|
|
appendlog('发送远程参数设置指令...')
|
|
|
|
+ if(formData.referDepth1){
|
|
|
|
+ formData.referDepth1=parseInt((formData.referDepth1/10).toFixed(0)) //参考深度由厘米转分米
|
|
|
|
+ }
|
|
|
|
+
|
|
sendCMD(wellLiquidAPI.remoteSet,formData)
|
|
sendCMD(wellLiquidAPI.remoteSet,formData)
|
|
}).catch(()=>{
|
|
}).catch(()=>{
|
|
console.log('cancel set')
|
|
console.log('cancel set')
|
|
@@ -250,6 +260,7 @@
|
|
test_interval:testInterval,sensor_yyyy:sensorYYYY,sensor_mm:sensorMM,refer_depth1:referDepth1,
|
|
test_interval:testInterval,sensor_yyyy:sensorYYYY,sensor_mm:sensorMM,refer_depth1:referDepth1,
|
|
sensor_dd:sensorDD,sensor_hr:sensorHr,sensor_mi:sensorMi,sensor_ss:sensorSS}=respData
|
|
sensor_dd:sensorDD,sensor_hr:sensorHr,sensor_mi:sensorMi,sensor_ss:sensorSS}=respData
|
|
let sensorTime=`${sensorYYYY}-${fmtDate(sensorMM)}-${fmtDate(sensorDD)} ${fmtDate(sensorHr)}:${fmtDate(sensorMi)}:${fmtDate(sensorSS)}`
|
|
let sensorTime=`${sensorYYYY}-${fmtDate(sensorMM)}-${fmtDate(sensorDD)} ${fmtDate(sensorHr)}:${fmtDate(sensorMi)}:${fmtDate(sensorSS)}`
|
|
|
|
+ referDepth1=referDepth1?(referDepth1*10):null //后台单位分米,前台厘米
|
|
Object.assign(formModel,{avgLenPipe,soundMarkDepth,soundSpeed,testInterval,sensorTime,hoopSensitivity,liquidSensitivity,casingPress,referDepth1})
|
|
Object.assign(formModel,{avgLenPipe,soundMarkDepth,soundSpeed,testInterval,sensorTime,hoopSensitivity,liquidSensitivity,casingPress,referDepth1})
|
|
//console.log(formModel.avgLenPipe)
|
|
//console.log(formModel.avgLenPipe)
|
|
appendlog('远程读取参数完成')
|
|
appendlog('远程读取参数完成')
|