|
@@ -20,10 +20,10 @@
|
|
|
<el-radio-group v-model="searchPktFmt" style="width: 100%" @change="searchPktTypetFmt">
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-radio v-model="radio" :value="0">空军报文格式</el-radio>
|
|
|
+ <el-radio :value="0">空军报文格式</el-radio>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-radio v-model="radio" :value="1">军队报文格式</el-radio>
|
|
|
+ <el-radio :value="1">军队报文格式</el-radio>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-radio-group>
|
|
@@ -31,22 +31,22 @@
|
|
|
<el-checkbox-group v-model="pkt_jbxm" style="width: 100%" disabled>
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="是否固定台站" />
|
|
|
+ <el-checkbox label="是否固定台站" :value="0"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="最小能见度"/>
|
|
|
+ <el-checkbox label="最小能见度" :value="1"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="本站气压"/>
|
|
|
+ <el-checkbox label="本站气压" :value="2"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="海平面气压"/>
|
|
|
+ <el-checkbox label="海平面气压" :value="3"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="时降水量"/>
|
|
|
+ <el-checkbox label="时降水量" :value="4"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="日降水量"/>
|
|
|
+ <el-checkbox label="日降水量" :value="5"/>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-checkbox-group>
|
|
@@ -54,19 +54,19 @@
|
|
|
<el-checkbox-group v-model="pkt_hkht" style="width: 100%" disabled>
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="垂直能见度" />
|
|
|
+ <el-checkbox label="垂直能见度" :value="0" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="跑道视程"/>
|
|
|
+ <el-checkbox label="跑道视程" :value="1"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="场面、零点、高度表"/>
|
|
|
+ <el-checkbox label="场面、零点、高度表" :value="2"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="静电场"/>
|
|
|
+ <el-checkbox label="静电场" :value="3"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="雷电"/>
|
|
|
+ <el-checkbox label="雷电" :value="4"/>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-checkbox-group>
|
|
@@ -74,30 +74,30 @@
|
|
|
<el-checkbox-group v-model="pkt_zywx" style="width: 100%" disabled>
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="瞬时最大风速" />
|
|
|
+ <el-checkbox label="瞬时最大风速" :value="0"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="积雨云方向去向"/>
|
|
|
+ <el-checkbox label="积雨云方向去向" :value="1"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="冰雹最大直径" />
|
|
|
+ <el-checkbox label="冰雹最大直径" :value="2"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="云敝山所在方向"/>
|
|
|
+ <el-checkbox label="云敝山所在方向" :value="3"/>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="低云方向去向" />
|
|
|
+ <el-checkbox label="低云方向去向" :value="4"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="最大静电场强度"/>
|
|
|
+ <el-checkbox label="最大静电场强度" :value="5"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="雷暴方向去向" />
|
|
|
+ <el-checkbox label="雷暴方向去向" :value="6"/>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="龙卷方向去向"/>
|
|
|
+ <el-checkbox label="龙卷方向去向" :value="7"/>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-checkbox-group>
|
|
@@ -105,30 +105,30 @@
|
|
|
<el-checkbox-group v-model="pkt_hysw" style="width: 100%" disabled>
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="航向和航速" />
|
|
|
+ <el-checkbox label="航向和航速" :value="0" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="表层海水温度"/>
|
|
|
+ <el-checkbox label="表层海水温度" :value="1" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="表层海水盐度" />
|
|
|
+ <el-checkbox label="表层海水盐度" :value="2" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="海况和波周期"/>
|
|
|
+ <el-checkbox label="海况和波周期" :value="3" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="波级和波高" value="波级和波高" />
|
|
|
+ <el-checkbox label="波级和波高" :value="4" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="风浪和涌波" value="风浪和涌波" />
|
|
|
+ <el-checkbox label="风浪和涌波" :value="5" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="降水PH值" value="降水PH值" />
|
|
|
+ <el-checkbox label="降水PH值" :value="6" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="气溶胶" value="气溶胶" />
|
|
|
+ <el-checkbox label="气溶胶" :value="7" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-checkbox-group>
|
|
@@ -136,19 +136,19 @@
|
|
|
<el-checkbox-group v-model="pkt_fjbx" style="width: 100%" disabled>
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="地表溫度"/>
|
|
|
+ <el-checkbox label="地表溫度" :value="0" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="地表和积雪"/>
|
|
|
+ <el-checkbox label="地表和积雪" :value="1" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="蒸发量组" />
|
|
|
+ <el-checkbox label="蒸发量组" :value="2" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="日照时数"/>
|
|
|
+ <el-checkbox label="日照时数" :value="3" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="电线结冰最大重量"/>
|
|
|
+ <el-checkbox label="电线结冰最大重量" :value="4" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-checkbox-group>
|
|
@@ -156,30 +156,30 @@
|
|
|
<el-checkbox-group v-model="pkt_rjz" style="width: 100%" disabled>
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="最高温度"/>
|
|
|
+ <el-checkbox label="最高温度" :value="0" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="最低温度" />
|
|
|
+ <el-checkbox label="最低温度" :value="1" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="地表最高温度"/>
|
|
|
+ <el-checkbox label="地表最高温度" :value="2" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="地表最低温度"/>
|
|
|
+ <el-checkbox label="地表最低温度" :value="3" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="最高潮高"/>
|
|
|
+ <el-checkbox label="最高潮高" :value="4" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="最高潮时"/>
|
|
|
+ <el-checkbox label="最高潮时" :value="5" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="最低潮高"/>
|
|
|
+ <el-checkbox label="最低潮高" :value="6" />
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-checkbox label="最低潮时"/>
|
|
|
+ <el-checkbox label="最低潮时" :value="7" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-checkbox-group>
|
|
@@ -187,22 +187,31 @@
|
|
|
<el-row :gutter="20" style="width: 100%;">
|
|
|
<el-col :span="4">
|
|
|
<el-form-item label="编报要素选择1" prop="element" style="width: 200px">
|
|
|
- <el-select v-model="formInline.element">
|
|
|
- <el-option label="漏点温度" value="1"></el-option>
|
|
|
+ <el-select v-model="pkt_bbys1" disabled>
|
|
|
+ <el-option label="露点温度" :value="109"></el-option>
|
|
|
+ <el-option label="相对湿度" :value="106"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
<el-form-item label="编报要素选择2" prop="element2" style="width: 200px">
|
|
|
- <el-select v-model="formInline.element2">
|
|
|
- <el-option label="场面气压" value="1"></el-option>
|
|
|
+ <el-select v-model="pkt_bbys2" disabled>
|
|
|
+ <el-option label="场面气压" :value="208"></el-option>
|
|
|
+ <el-option label="零点高度" :value="210"></el-option>
|
|
|
+ <el-option label="高度表拨正" :value="213"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
<el-form-item label="编报要素降水时段选择" prop="time" style="width: 200px">
|
|
|
- <el-select v-model="formInline.time">
|
|
|
- <el-option label="三小时" value="1"></el-option>
|
|
|
+ <el-select v-model="pkt_jssd" disabled>
|
|
|
+ <el-option label="三小时" :value="3"></el-option>
|
|
|
+ <el-option label="六小时" :value="6"></el-option>
|
|
|
+ <el-option label="十二小时" :value="12"></el-option>
|
|
|
+ <el-option label="十五小时" :value="15"></el-option>
|
|
|
+ <el-option label="十八小时" :value="18"></el-option>
|
|
|
+ <el-option label="二十一小时" :value="21"></el-option>
|
|
|
+ <el-option label="二十四小时" :value="24"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -218,7 +227,7 @@
|
|
|
</template>
|
|
|
<script setup lang="tsx">
|
|
|
import {defineProps, onMounted, ref} from "vue";
|
|
|
-import {getUserList, getYaspacketList} from "@/api/modules/allData";
|
|
|
+import {getQueryAllSysItem, getUserList, getYaspacketList} from "@/api/modules/allData";
|
|
|
|
|
|
const props = defineProps<{
|
|
|
selectData?: {};
|
|
@@ -245,30 +254,39 @@ const pkt_zywx = ref([])
|
|
|
const pkt_hysw = ref([])
|
|
|
const pkt_fjbx = ref([])
|
|
|
const pkt_rjz = ref([])
|
|
|
+const pkt_bbys1 = ref()
|
|
|
+const pkt_bbys2 = ref()
|
|
|
+const pkt_jssd = ref()
|
|
|
|
|
|
const findData=()=>{
|
|
|
const result = processTableData.value.find(item => item.pkt_type === searchPktType.value && item.pkt_fmt === searchPktFmt.value);
|
|
|
if(result){
|
|
|
- console.log(pkt_jbxm.value)
|
|
|
- pkt_jbxm.value = result.pkt_jbxm.split('|').map(val => val === '1');
|
|
|
- pkt_hkht.value =result.pkt_hkht.split('|').map(val => val === '1');
|
|
|
- pkt_zywx.value =result.pkt_zywx.split('|').map(val => val === '1');
|
|
|
- pkt_hysw.value =result.pkt_hysw.split('|').map(val => val === '1');
|
|
|
- pkt_fjbx.value=result.pkt_fjbx.split('|').map(val => val === '1');
|
|
|
- pkt_rjz.value = result.pkt_rjz.split('|').map(val => val === '1');
|
|
|
+ console.log(pkt_bbys1.value)
|
|
|
+ pkt_jbxm.value = result.pkt_jbxm.split('|').map((val, index) => val === '1' ? index : -1);
|
|
|
+ pkt_hkht.value =result.pkt_hkht.split('|').map((val, index) => val === '1' ? index : -1);
|
|
|
+ pkt_zywx.value =result.pkt_zywx.split('|').map((val, index) => val === '1' ? index : -1);
|
|
|
+ pkt_hysw.value =result.pkt_hysw.split('|').map((val, index) => val === '1' ? index : -1);
|
|
|
+ pkt_fjbx.value=result.pkt_fjbx.split('|').map((val, index) => val === '1' ? index : -1);
|
|
|
+ pkt_rjz.value = result.pkt_rjz.split('|').map((val, index) => val === '1' ? index : -1);
|
|
|
+ pkt_bbys1.value = result.pkt_bbys1
|
|
|
+ pkt_bbys2.value =result.pkt_bbys2
|
|
|
+ pkt_jssd.value = result.pkt_jssd
|
|
|
}else {
|
|
|
+ console.log("======")
|
|
|
pkt_jbxm.value = []
|
|
|
pkt_hkht.value = []
|
|
|
pkt_zywx.value = []
|
|
|
pkt_hysw.value =[]
|
|
|
pkt_fjbx.value =[]
|
|
|
pkt_rjz.value =[]
|
|
|
+ pkt_bbys1.value = undefined
|
|
|
+ pkt_bbys2.value =undefined
|
|
|
+ pkt_jssd.value = undefined
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
const searchPktTypetFmt = ()=>{
|
|
|
- console.log(pkt_jbxm.value)
|
|
|
findData()
|
|
|
}
|
|
|
|
|
@@ -301,8 +319,6 @@ const submitForm = () => {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|