Commit 2267a216 by 周田

Merge branch 'liucan' into 'main'

fix:调整数据展示页面搜索栏NoradCatID字段搜索条件位置

See merge request !30
parents 3b63ab86 2be07211
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
<el-input placeholder="请输入目标名称" v-model="searchTargetName" style="width: 180px" /> <el-input placeholder="请输入目标名称" v-model="searchTargetName" style="width: 180px" />
</div> </div>
<div> <div>
<span style="color: white">站点名称:</span>
<el-input placeholder="请输入" v-model="searchStation" style="width: 170.5px" />
</div>
<div>
<span style="color: white">采集时间:</span> <span style="color: white">采集时间:</span>
<el-config-provider :locale="zhCn"> <el-config-provider :locale="zhCn">
<el-date-picker <el-date-picker
...@@ -23,12 +27,7 @@ ...@@ -23,12 +27,7 @@
/> />
</el-config-provider> </el-config-provider>
</div> </div>
<div>
<span style="color: white">站点名称:</span>
<el-input placeholder="请输入" v-model="searchStation" style="width: 170.5px" />
</div>
</div> </div>
<div class="btns"> <div class="btns">
<el-button plain type="primary" @click="getData">查询</el-button> <el-button plain type="primary" @click="getData">查询</el-button>
<el-button plain @click="resetForm">重置</el-button> <el-button plain @click="resetForm">重置</el-button>
......
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
<div class="form-content"> <div class="form-content">
<div class="left"> <div class="left">
<div> <div>
<span style="color: white">Norad Cat ID:</span>
<el-input placeholder="请输入ID" style="width: 170.5px" v-model="noradCatId" />
</div>
<div>
<span style="color: white">目标名称:</span> <span style="color: white">目标名称:</span>
<el-input placeholder="请输入目标名称" style="width: 180px" v-model="searchTargetName" /> <el-input placeholder="请输入目标名称" style="width: 180px" v-model="searchTargetName" />
</div> </div>
...@@ -23,10 +27,6 @@ ...@@ -23,10 +27,6 @@
/> />
</el-config-provider> </el-config-provider>
</div> </div>
<div>
<span style="color: white">Norad Cat ID:</span>
<el-input placeholder="请输入ID" style="width: 170.5px" v-model="noradCatId" />
</div>
</div> </div>
<div class="btns"> <div class="btns">
<el-button plain type="primary" @click="getData">查询</el-button> <el-button plain type="primary" @click="getData">查询</el-button>
...@@ -214,159 +214,159 @@ ...@@ -214,159 +214,159 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, ref } from "vue"; import { onMounted, ref } from 'vue'
import Pagination from "@/components/pagination/index.vue"; import Pagination from '@/components/pagination/index.vue'
import exportDialog from "@/components/Export/index.vue"; import exportDialog from '@/components/Export/index.vue'
import { getStList, getStDetail } from "@/api/spiderData"; import { getStList, getStDetail } from '@/api/spiderData'
import { ElMessage } from "element-plus"; import { ElMessage } from 'element-plus'
// ElConfigProvider 组件 // ElConfigProvider 组件
import { ElConfigProvider } from "element-plus"; import { ElConfigProvider } from 'element-plus'
import TableSearch from "@/components/TableSearch.vue"; import TableSearch from '@/components/TableSearch.vue'
// 引入中文包 // 引入中文包
import zhCn from "element-plus/es/locale/lang/zh-cn"; import zhCn from 'element-plus/es/locale/lang/zh-cn'
defineOptions({ name: "Pagination" }); defineOptions({ name: 'Pagination' })
// 更改分页文字 // 更改分页文字
zhCn.el.pagination.total = "共 `{total} 条`"; zhCn.el.pagination.total = '共 `{total} 条`'
zhCn.el.pagination.goto = "跳至"; zhCn.el.pagination.goto = '跳至'
zhCn.el.pagination.pagesize = "条/页"; zhCn.el.pagination.pagesize = '条/页'
zhCn.el.pagination.pageClassifier = "页"; zhCn.el.pagination.pageClassifier = '页'
const searchTargetName = ref(""); const searchTargetName = ref('')
const noradCatId = ref(""); const noradCatId = ref('')
const showDeleteDialog = ref(false); const showDeleteDialog = ref(false)
const timeValue = ref(""); const timeValue = ref('')
const detailVisibleValue = ref(false); const detailVisibleValue = ref(false)
// NoradCatID // NoradCatID
const NoradCatID = ref(""); const NoradCatID = ref('')
// 目标名称 // 目标名称
const targetName = ref(""); const targetName = ref('')
const objectType = ref(""); const objectType = ref('')
// INTLDES // INTLDES
const intleds = ref(""); const intleds = ref('')
// 类型 // 类型
const type = ref(""); const type = ref('')
// 记录时间 // 记录时间
const recordTime = ref(""); const recordTime = ref('')
// 所属国家 // 所属国家
const belongCountry = ref(""); const belongCountry = ref('')
// 近地点 // 近地点
const perigee = ref(""); const perigee = ref('')
// 远地点 // 远地点
const apogee = ref(""); const apogee = ref('')
// 周期 // 周期
const period = ref(""); const period = ref('')
// RCS // RCS
const rcs = ref(""); const rcs = ref('')
// SITE // SITE
const site = ref(""); const site = ref('')
// TLE // TLE
const tle = ref(""); const tle = ref('')
//近地点幅角 //近地点幅角
const argOfPericenter = ref(""); const argOfPericenter = ref('')
//弹道系数 //弹道系数
const bStar = ref(""); const bStar = ref('')
//备注 //备注
const comment = ref(""); const comment = ref('')
//偏心率 ECCENTRICITY //偏心率 ECCENTRICITY
const eccentricity = ref(""); const eccentricity = ref('')
//倾斜角 INCLINATION //倾斜角 INCLINATION
const inclination = ref(""); const inclination = ref('')
//升交点赤经 RA_OF_ASC_NODE //升交点赤经 RA_OF_ASC_NODE
const raOfAscNode = ref(""); const raOfAscNode = ref('')
//平近点角 MEAN_ANOMALY //平近点角 MEAN_ANOMALY
const meanAnomaly = ref(""); const meanAnomaly = ref('')
//RCS_SIZE //RCS_SIZE
const rcsSize = ref(""); const rcsSize = ref('')
//LAUNCH_DATE //LAUNCH_DATE
const launchDate = ref(""); const launchDate = ref('')
const countryCode = ref(""); const countryCode = ref('')
const meanMotionDot = ref(""); const meanMotionDot = ref('')
const meanMotionDdot = ref(""); const meanMotionDdot = ref('')
const revAtEpoch = ref(""); const revAtEpoch = ref('')
//半长轴SEMIMAJOR_AXIS //半长轴SEMIMAJOR_AXIS
const semimajorAxis = ref(""); const semimajorAxis = ref('')
//第一行数据 TLE_LINE0 //第一行数据 TLE_LINE0
const tleLine0 = ref(""); const tleLine0 = ref('')
//第二行数据 TLE_LINE0 //第二行数据 TLE_LINE0
const tleLine1 = ref(""); const tleLine1 = ref('')
//第三行数据 TLE_LINE0 //第三行数据 TLE_LINE0
const tleLine2 = ref(""); const tleLine2 = ref('')
const tableData = ref([]); const tableData = ref([])
const pageObj = ref({ const pageObj = ref({
total: 10, total: 10,
pageSize: 10, pageSize: 10,
pageNo: 1, pageNo: 1
}); })
// 查看数据详情的方法 // 查看数据详情的方法
const handleDetails = async (row: any) => { const handleDetails = async (row: any) => {
const res = await getStDetail({ id: row._id }); const res = await getStDetail({ id: row._id })
console.log(res); console.log(res)
NoradCatID.value = res.data.NORAD_CAT_ID; NoradCatID.value = res.data.NORAD_CAT_ID
rcsSize.value = res.data.RCS_SIZE; rcsSize.value = res.data.RCS_SIZE
launchDate.value = res.data.LAUNCH_DATE; launchDate.value = res.data.LAUNCH_DATE
semimajorAxis.value = res.data.SEMIMAJOR_AXIS; semimajorAxis.value = res.data.SEMIMAJOR_AXIS
targetName.value = res.data.OBJECT_NAME; targetName.value = res.data.OBJECT_NAME
tleLine0.value = res.data.TLE_LINE0; tleLine0.value = res.data.TLE_LINE0
tleLine1.value = res.data.TLE_LINE1; tleLine1.value = res.data.TLE_LINE1
tleLine2.value = res.data.TLE_LINE2; tleLine2.value = res.data.TLE_LINE2
inclination.value = res.data.INCLINATION; inclination.value = res.data.INCLINATION
meanAnomaly.value = res.data.MEAN_ANOMALY; meanAnomaly.value = res.data.MEAN_ANOMALY
eccentricity.value = res.data.ECCENTRICITY; eccentricity.value = res.data.ECCENTRICITY
raOfAscNode.value = res.data.RA_OF_ASC_NODE; raOfAscNode.value = res.data.RA_OF_ASC_NODE
comment.value = res.data.COMMENT; comment.value = res.data.COMMENT
type.value = res.data.OBJECT_TYPE; type.value = res.data.OBJECT_TYPE
argOfPericenter.value = res.data.ARG_OF_PERICENTER; argOfPericenter.value = res.data.ARG_OF_PERICENTER
bStar.value = res.data.BSTAR; bStar.value = res.data.BSTAR
period.value = res.data.PERIOD; period.value = res.data.PERIOD
intleds.value = res.data.INTLDES; intleds.value = res.data.INTLDES
recordTime.value = res.data.CREATION_DATE; recordTime.value = res.data.CREATION_DATE
belongCountry.value = res.data.COUNTRY_CODE; belongCountry.value = res.data.COUNTRY_CODE
perigee.value = res.data.PERIAPSIS; perigee.value = res.data.PERIAPSIS
apogee.value = res.data.APOAPSIS; apogee.value = res.data.APOAPSIS
rcs.value = res.data.RCS_SIZE; rcs.value = res.data.RCS_SIZE
site.value = res.data.SITE; site.value = res.data.SITE
tle.value = `${res.data.TLE_LINE0} tle.value = `${res.data.TLE_LINE0}
${res.data.TLE_LINE1} ${res.data.TLE_LINE1}
${res.data.TLE_LINE2}`; ${res.data.TLE_LINE2}`
detailVisibleValue.value = true; detailVisibleValue.value = true
countryCode.value = res.data.COUNTRY_CODE; countryCode.value = res.data.COUNTRY_CODE
meanMotionDot.value = res.data.MEAN_MOTION_DOT; meanMotionDot.value = res.data.MEAN_MOTION_DOT
meanMotionDdot.value = res.data.MEAN_MOTION_DDOT; meanMotionDdot.value = res.data.MEAN_MOTION_DDOT
revAtEpoch.value = res.data.REV_AT_EPOCH; revAtEpoch.value = res.data.REV_AT_EPOCH
objectType.value = res.data.OBJECT_TYPE; objectType.value = res.data.OBJECT_TYPE
}; }
//表单loading标记 //表单loading标记
const tableLoading = ref(false); const tableLoading = ref(false)
//重置搜索条件 //重置搜索条件
const resetForm = () => { const resetForm = () => {
noradCatId.value = ""; noradCatId.value = ''
searchTargetName.value = ""; searchTargetName.value = ''
timeValue.value = ""; timeValue.value = ''
getData(); getData()
}; }
// 获取st数据列表的方法 // 获取st数据列表的方法
const getData = async () => { const getData = async () => {
tableLoading.value = true; tableLoading.value = true
const res = await getStList({ const res = await getStList({
norad_cat_id: noradCatId.value, norad_cat_id: noradCatId.value,
object_name: searchTargetName.value, object_name: searchTargetName.value,
times: timeValue.value, times: timeValue.value,
page: pageObj.value.pageNo, page: pageObj.value.pageNo,
size: pageObj.value.pageSize, size: pageObj.value.pageSize
}); })
pageObj.value.total = res.data.total; pageObj.value.total = res.data.total
tableData.value = res.data.list; tableData.value = res.data.list
tableLoading.value = false; tableLoading.value = false
}; }
const handleClose = () => { const handleClose = () => {
detailVisibleValue.value = false; detailVisibleValue.value = false
}; }
onMounted(() => { onMounted(() => {
getData(); getData()
}); })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
...@@ -386,7 +386,7 @@ onMounted(() => { ...@@ -386,7 +386,7 @@ onMounted(() => {
/* 工具栏样式 */ /* 工具栏样式 */
.toolbarStyle { .toolbarStyle {
background-image: url("@/assets/picture/box3.png"); background-image: url('@/assets/picture/box3.png');
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
......
...@@ -192,11 +192,9 @@ const getTaskList = async () => { ...@@ -192,11 +192,9 @@ const getTaskList = async () => {
jobNameOptions.value = taskList.value jobNameOptions.value = taskList.value
.filter((task: any) => task.id) .filter((task: any) => task.id)
.map((task: any) => ({ .map((task: any) => ({
label: task.kwargs.spider, label: JSON.parse(task.kwargs.options).jobName,
value: task.id value: task.id
})) }))
console.log(taskList.value)
} }
// 获取任务执行记录列表 // 获取任务执行记录列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment