|
@@ -162,9 +162,9 @@
|
|
|
<el-form ref="radiationRef" :disabled="checkShow || addBtn" size="mini" :rules="radiationRules"
|
|
|
:validate-on-rule-change="false" :model="radiationData" label-width="80px">
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
- <el-form-item label="标定温度" prop="calTempEk">
|
|
|
+ <el-form-item label="标定温度" prop="calTemp">
|
|
|
<file-upload :isCheck="isCheck" :fileSize="0" :limit="5" :fileType="['Igm','rar','zip']"
|
|
|
- v-model="radiationData.calTempEk" />
|
|
|
+ v-model="radiationData.calTemp" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="3 ~ 5μm 标定曲线" prop="calCurve">
|
|
|
<file-upload :isCheck="isCheck" :fileSize="0" :limit="5" :fileType="['txt']" :isShowViev="true"
|
|
@@ -211,64 +211,7 @@
|
|
|
</div>
|
|
|
<!-- lhp_end -->
|
|
|
|
|
|
- <!-- <el-row type="flex" justify="space-around">
|
|
|
- <el-form-item label="背景数据" prop="backgroundData">
|
|
|
- <file-upload :isCheck="isCheck" :fileSize="0" :limit="1" :fileType="['Igm']"
|
|
|
- v-model="radiationData.backgroundData" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="标定曲线" prop="calCurve">
|
|
|
- <file-upload :isCheck="isCheck" :fileSize="0" :limit="5" :fileType="['txt']" :isShowViev="true"
|
|
|
- v-model="radiationData.calCurve" v-on:fileView="fileView" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <div style="width: 200px;"></div>
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
- <el-row style="margin-left: 2%;" class="calTempTabel" type="flex">
|
|
|
- <el-form-item label="标定温度" prop="calTemp">
|
|
|
- <el-table :data="calTempData" size="mini" border style="width: 600px">
|
|
|
- <el-table-column prop="temp" label="温度" width="100px" align="center">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="calTempFile" label="文件" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-link @click="$download.resource(scope.row.calTempFile,false)" :underline="false">
|
|
|
- <span class="el-icon-document"> {{ getFileName(scope.row.calTempFile) }} </span>
|
|
|
- </el-link>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" width="100px" align="center" class-name="small-padding fixed-width">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" icon="el-icon-delete" @click="delCalTemp(scope.row)">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="" label-width="10px">
|
|
|
- <i style="font-size: 1.5rem;margin-top: 10px;" class="el-icon-circle-plus-outline" @click="addCalTemp"
|
|
|
- v-if="!(checkShow || addBtn)"></i>
|
|
|
- </el-form-item>
|
|
|
- </el-row> -->
|
|
|
</el-form>
|
|
|
- <!-- <div class="box" style="margin-bottom: 15px">
|
|
|
- <span class="title">目标数据</span>
|
|
|
- <el-form ref="radiationRef" :disabled="checkShow || addBtn" size="mini" :rules="radiationRules"
|
|
|
- :validate-on-rule-change="false" :model="radiationData" label-width="80px">
|
|
|
- <el-row type="flex" justify="space-around">
|
|
|
- <el-form-item label="原始数据" prop="rawData">
|
|
|
- <file-upload :isCheck="isCheck" :fileSize="0" :limit="5" :fileType="['txt']"
|
|
|
- v-model="radiationData.rawData" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="辐射亮度3~5μm" label-width="130px" prop="radiance1">
|
|
|
- <file-upload :isCheck="isCheck" :fileSize="0" :limit="1" :fileType="['txt']"
|
|
|
- v-model="radiationData.radiance1" :isShowViev="true" v-on:fileView="fileView" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="辐射亮度8~14μm" label-width="130px" prop="radiance2">
|
|
|
- <file-upload :isCheck="isCheck" :fileSize="0" :limit="1" :fileType="['txt']"
|
|
|
- v-model="radiationData.radiance2" :isShowViev="true" v-on:fileView="fileView" />
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
<div class="box" v-if="TIData && Object.keys(TIData).length > 0">
|
|
|
<span class="title">热像仪测量数据</span>
|
|
@@ -658,7 +601,7 @@ export default {
|
|
|
],
|
|
|
gain: [
|
|
|
{ required: true, message: '光阑不能为空' },
|
|
|
- { required: true, pattern: /^(10\.0|([0-9]\.[0-9]))$/, message: '请输入0.0-10.0之间的数字,最多可保留一位小数', trigger: 'blur' }
|
|
|
+ { required: true, pattern: /^(([0-9](\.\d)?)|10(\.0)?)$/, message: '请输入0.0-10.0之间的数字,最多可保留一位小数', trigger: 'blur' }
|
|
|
],
|
|
|
|
|
|
},
|
|
@@ -922,11 +865,11 @@ export default {
|
|
|
this.calTempData = []
|
|
|
},
|
|
|
getcalTempData(val) {
|
|
|
- if (val) {
|
|
|
- this.calTempData = JSON.parse(val)
|
|
|
- } else {
|
|
|
- this.calTempData = []
|
|
|
- }
|
|
|
+ // if (val) {
|
|
|
+ // this.calTempData = JSON.parse(val)
|
|
|
+ // } else {
|
|
|
+ // this.calTempData = []
|
|
|
+ // }
|
|
|
},
|
|
|
handleCloseBeforeTI() {
|
|
|
this.tempCalData = []
|
|
@@ -1058,7 +1001,7 @@ export default {
|
|
|
this.validateAll()
|
|
|
.then(() => {
|
|
|
if (this.radiationForm) {
|
|
|
- this.radiationForm.calTemp = this.calTempData.length > 0 ? JSON.stringify(this.calTempData) : null;
|
|
|
+ // this.radiationForm.calTemp = this.calTempData.length > 0 ? JSON.stringify(this.calTempData) : null;
|
|
|
this.calTempData = []
|
|
|
}
|
|
|
if (this.TIData) {
|
|
@@ -1312,24 +1255,24 @@ export default {
|
|
|
let lensFView = this.radiationData.lensFView
|
|
|
let gain = this.radiationData.gain
|
|
|
if( model || lensFView || gain ){
|
|
|
- let data = {model,lensFView,gain}
|
|
|
+ let data = {'measurementBatchId':this.formData.measurementBatchId,model,lensFView,gain}
|
|
|
getRadianceByCondition(data).then(response => {
|
|
|
let _data = response.data
|
|
|
if(_data){
|
|
|
this.radiationData.radianceId = _data.id;
|
|
|
- this.radiationData.calTempEk = _data.calTempEk;
|
|
|
+ this.radiationData.calTemp = _data.calTemp;
|
|
|
this.radiationData.calCurve = _data.calCurve;
|
|
|
this.radiationData.calCurve2 = _data.calCurve2;
|
|
|
} else {
|
|
|
this.radiationData.radianceId = null;
|
|
|
- this.radiationData.calTempEk = '';
|
|
|
+ this.radiationData.calTemp = '';
|
|
|
this.radiationData.calCurve = '';
|
|
|
this.radiationData.calCurve2 = '';
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
this.radiationData.radianceId = null;
|
|
|
- this.radiationData.calTempEk = '';
|
|
|
+ this.radiationData.calTemp = '';
|
|
|
this.radiationData.calCurve = '';
|
|
|
this.radiationData.calCurve2 = '';
|
|
|
}
|