|
@@ -271,7 +271,15 @@
|
|
|
loadDiagnose(row.dataIdStr)
|
|
|
}
|
|
|
|
|
|
+ const cleanFormModel=()=>{
|
|
|
+ let [diagramId,wellId,conclusion,elasticCoe,fillCoe,leakCoe,gasEffect,dischargeCoe,dischargeLeakCoe,inhaleLeakCoe,pipeLeakCoe]=[null,null,null,null,null,null,null,null,null,null,null]
|
|
|
+ let [sandDegree,waxDegree,pistonSlipDegree,pumpDownBump,comPumpEff,gtLiquidYield,gtOilYield,gtWaterYield,note]=[null,null,null,null,null,null,null,null,null]
|
|
|
+ Object.assign(formModel,{diagramId,wellId,conclusion,elasticCoe,fillCoe,leakCoe,gasEffect,dischargeCoe,dischargeLeakCoe,inhaleLeakCoe,pipeLeakCoe})
|
|
|
+ Object.assign(formModel,{sandDegree,waxDegree,pistonSlipDegree,pumpDownBump,comPumpEff,gtLiquidYield,gtOilYield,gtWaterYield,note})
|
|
|
+ }
|
|
|
+
|
|
|
const loadDiagnose=(diagramId)=>{
|
|
|
+ cleanFormModel()
|
|
|
diagnoseAPI.getDiagnose(diagramId).then(resp=>{
|
|
|
if(resp.code==0 && resp.data){
|
|
|
Object.assign(formModel,resp.data)
|