|
@@ -120,7 +120,14 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
+ <el-col :sm="24" :md="12">
|
|
|
+ <el-form-item label="参数类型" prop="paramType">
|
|
|
+ <el-select v-model="formModel.paramType" style="width:100%">
|
|
|
+ <el-option label="油井采集参数" value="gather"></el-option>
|
|
|
+ <el-option label="动液面参数" value="liquid"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
@@ -248,7 +255,8 @@
|
|
|
maxVal:null,
|
|
|
minVal:null,
|
|
|
referData:null,
|
|
|
- adjustMode:null
|
|
|
+ adjustMode:null,
|
|
|
+ paramType:null
|
|
|
})
|
|
|
|
|
|
const showParam2=ref(false)
|
|
@@ -277,14 +285,17 @@
|
|
|
gatherUnit:[
|
|
|
{required:true,message:'采集单位还未填写',trigger:'blur'}
|
|
|
],
|
|
|
+ paramType:[
|
|
|
+ {required:true,message:'参数类型还未选择',trigger:'blur'}
|
|
|
+ ]
|
|
|
})
|
|
|
|
|
|
onMounted(async ()=>{
|
|
|
try{
|
|
|
await initForm()
|
|
|
if(props.record){
|
|
|
- let {paramId,wellId,paramCode,paramName,displayUnit,displayFormat,insertUnit,gatherUnit,calibrateA,calibrateB,calibrateC,displayNum,maxVal,minVal,referData,adjustMode}=props.record
|
|
|
- Object.assign(formModel,{paramId,wellId,paramCode,paramName,displayUnit,displayFormat,insertUnit,gatherUnit,calibrateA,calibrateB,calibrateC,displayNum,maxVal,minVal,referData,adjustMode})
|
|
|
+ let {paramId,wellId,paramCode,paramName,displayUnit,displayFormat,insertUnit,gatherUnit,calibrateA,calibrateB,calibrateC,displayNum,maxVal,minVal,referData,adjustMode,paramType}=props.record
|
|
|
+ Object.assign(formModel,{paramId,wellId,paramCode,paramName,displayUnit,displayFormat,insertUnit,gatherUnit,calibrateA,calibrateB,calibrateC,displayNum,maxVal,minVal,referData,adjustMode,paramType})
|
|
|
|
|
|
let {displayUnit2,insertUnit2,gatherUnit2,displayFormat2,calibrateA2,calibrateB2,calibrateC2,serialName,serialName2}=props.record
|
|
|
Object.assign(formModel,{displayUnit2,insertUnit2,gatherUnit2,displayFormat2,calibrateA2,calibrateB2,calibrateC2,serialName,serialName2})
|