This commit is contained in:
Silent YANG 2024-02-15 23:20:48 +08:00
parent 94fdcdc78c
commit 37622160c7

View file

@ -5,10 +5,10 @@
<a-col :span="24"> <a-col :span="24">
<a-card class="general-card" title="卫星写入"> <a-card class="general-card" title="卫星写入">
<a-spin :loading="loading" style="width: 100%;" tip="正在处理 ..."> <a-spin :loading="loading" style="width: 100%;" tip="正在处理 ...">
<a-form-item :label-col-style="{ width: '25%' }" field="dt" label="浏览器时间" @click="showHide"> <a-form-item :label-col-style="{ width: '25%' }" field="dt" label="浏览器时间" @click="()=>{state.showHide += 1}">
{{ state.dt }} {{ state.dt }}
</a-form-item> </a-form-item>
<a-form-item v-show="state.showh >= 5" :label-col-style="{ width: '25%' }" field="dtCustom" label="自定义时间"> <a-form-item v-show="state.showHide >= 5" :label-col-style="{ width: '25%' }" field="dtCustom" label="自定义时间">
<div> <div>
<a-date-picker <a-date-picker
style="width: 220px; margin: 0 24px 24px 0;" style="width: 220px; margin: 0 24px 24px 0;"
@ -46,7 +46,7 @@
:value="item[0] + '|' + item[1]">{{ item[0] + " - " + item[1] }}</a-option> :value="item[0] + '|' + item[1]">{{ item[0] + " - " + item[1] }}</a-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item v-show="state.showh >= 5" :label-col-style="{ width: '25%' }" field="passCustom" label="自定义过境时间"> <a-form-item v-show="state.showHide >= 5" :label-col-style="{ width: '25%' }" field="passCustom" label="自定义过境时间">
<a-range-picker <a-range-picker
style="width: 360px; margin: 0 24px 24px 0;" style="width: 360px; margin: 0 24px 24px 0;"
show-time show-time
@ -98,7 +98,7 @@ const { loading, setLoading } = useLoading(true);
const appStore = useAppStore(); const appStore = useAppStore();
const state: { const state: {
showh: number, showHide: number,
status: string, status: string,
sat: string, sat: string,
satData: any[], satData: any[],
@ -118,7 +118,7 @@ const state: {
dtCustom: any, dtCustom: any,
freqDb: any freqDb: any
} = reactive({ } = reactive({
showh: 0, showHide: 0,
status: "点击写入按钮写入卫星数据到设备<br/><br/>", status: "点击写入按钮写入卫星数据到设备<br/><br/>",
sat: '', sat: '',
satData: [], satData: [],
@ -159,10 +159,6 @@ onUnmounted(()=>{
}catch{} }catch{}
}) })
const showHide = () => {
state.showh += 1;
}
const writeTime = async () => { const writeTime = async () => {
if (appStore.connectState != true) { alert('请先连接手台!'); return; }; if (appStore.connectState != true) { alert('请先连接手台!'); return; };
setLoading(true) setLoading(true)