|
@@ -17,11 +17,11 @@
|
|
|
|
|
|
<el-table v-loading="loading" :data="dataDownList" border @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="批次" align="center" prop="batch" />
|
|
|
- <el-table-column label="机型" align="center" prop="airType" />
|
|
|
- <el-table-column label="机号" align="center" prop="airNumber" />
|
|
|
- <el-table-column label="架次号" align="center" prop="sortie" />
|
|
|
- <el-table-column label="下载状态" align="center" prop="downloadStatus" />
|
|
|
+ <el-table-column label="批次" align="center" prop="batchNo" />
|
|
|
+ <!-- <el-table-column label="机型" align="center" prop="airType" />
|
|
|
+ <el-table-column label="机号" align="center" prop="airNumber" /> -->
|
|
|
+ <el-table-column label="架次号" align="center" prop="sortieNo" />
|
|
|
+ <!-- <el-table-column label="下载状态" align="center" prop="downloadStatus" /> -->
|
|
|
<el-table-column label="下载方式" align="center" prop="downloadMethod" />
|
|
|
<el-table-column label="解析状态" align="center" prop="analysisStatus" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
@@ -42,13 +42,13 @@
|
|
|
<el-form-item prop="dataSource">
|
|
|
<template>
|
|
|
<el-radio v-model="onlineForm.dataSource" label="1">机载phm</el-radio>
|
|
|
- <el-radio v-model="onlineForm.dataSource" label="2">数链仿真</el-radio>
|
|
|
+ <el-radio v-model="onlineForm.dataSource" label="0">数链仿真</el-radio>
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="架次信息" prop="sortie">
|
|
|
- <el-select v-model="onlineForm.order" placeholder="请选择架次" style="width:100%">
|
|
|
+ <el-select v-model="onlineForm.sortieNumber" placeholder="请选择架次" style="width:100%">
|
|
|
<el-option v-for="item in sortieList" :key="item.id" :label="item.sortieNumber"
|
|
|
- :value="item.id">
|
|
|
+ :value="item.sortieNumber">
|
|
|
<span style="float: left">{{ item.sortieNumber }}</span>
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.aircraftNumber }}</span>
|
|
|
</el-option>
|
|
@@ -69,7 +69,7 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button type="primary" @click="offlineSubmitForm">确 定</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -83,8 +83,11 @@ import {
|
|
|
delDataDown,
|
|
|
addDataDown,
|
|
|
updateDataDown,
|
|
|
+ airborneDataDown,
|
|
|
+ simulationDataDown
|
|
|
} from '@/api/manage/dataDown'
|
|
|
import { listInstructionInfo } from '@/api/manage/instructionInfo'
|
|
|
+import { listSortieParameter,getSortieParameter } from '@/api/manage/data'
|
|
|
import dataDownDialog from '@/views/manage/dataDown/dataDownDialog'
|
|
|
import { listSortie } from '@/api/manage/sortie'
|
|
|
|
|
@@ -122,10 +125,11 @@ export default {
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- batch: null,
|
|
|
+ type:0,
|
|
|
+ batchNo: null,
|
|
|
airType: null,
|
|
|
airNumber: null,
|
|
|
- sortie: null,
|
|
|
+ sortieNo: null,
|
|
|
downloadStatus: null,
|
|
|
downloadMethod: null,
|
|
|
analysisStatus: null,
|
|
@@ -138,6 +142,7 @@ export default {
|
|
|
// 在线下载表单参数
|
|
|
onlineForm: {
|
|
|
dataSource:'1',
|
|
|
+ sortieNumber:null
|
|
|
},
|
|
|
// 表单校验
|
|
|
rules: {},
|
|
@@ -182,15 +187,12 @@ export default {
|
|
|
/** 查询数据下载列表 */
|
|
|
getList() {
|
|
|
this.loading = true
|
|
|
- listDataDown(this.queryParams).then(response => {
|
|
|
+ listSortieParameter(this.queryParams).then(response => {
|
|
|
this.dataDownList = response.rows;
|
|
|
console.log("dataDownList",this.dataDownList);
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
- // this.dataDownList = JSON.parse(localStorage.getItem('data-down')) || []
|
|
|
- // this.total = this.dataDownList?.length || 0
|
|
|
- // this.loading = false
|
|
|
},
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
@@ -204,7 +206,12 @@ export default {
|
|
|
order: null,
|
|
|
remark: null,
|
|
|
}
|
|
|
+ this.onlineForm = {
|
|
|
+ dataSource : '1',
|
|
|
+ sortieNumber : null
|
|
|
+ },
|
|
|
this.resetForm('form')
|
|
|
+ this.resetForm('onlineForm')
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
@@ -236,6 +243,14 @@ export default {
|
|
|
// 详情
|
|
|
handleDetail(row) {
|
|
|
console.log(row)
|
|
|
+ getSortieParameter(row.id).then(response => {
|
|
|
+ console.log("response",response);
|
|
|
+ // this.dataDownList = response.rows;
|
|
|
+ // this.total = response.total;
|
|
|
+ // this.getList()
|
|
|
+ // this.loading = false;
|
|
|
+ // this.reset()
|
|
|
+ });
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
@@ -247,36 +262,34 @@ export default {
|
|
|
this.title = '修改数据下载'
|
|
|
})
|
|
|
},
|
|
|
- /** 提交按钮 */
|
|
|
+ /** 在线下载提交按钮 */
|
|
|
submitForm() {
|
|
|
- this.butLoading = true
|
|
|
- this.butText = '下载中'
|
|
|
- setTimeout(() => {
|
|
|
- // 方法区
|
|
|
- if (this.form.order === 'error') {
|
|
|
- this.$modal.msgError('下载异常')
|
|
|
- this.butLoading = false
|
|
|
- this.butText = '点击下载'
|
|
|
- return
|
|
|
- }
|
|
|
- // 服务获取文件
|
|
|
- let dataObj = {
|
|
|
- order: this.form.order,
|
|
|
- name: `固定格式_${new Date().getTime()}.xlsx`,
|
|
|
- path: '/phm/uploadPath',
|
|
|
- remark: this.form.remark,
|
|
|
- }
|
|
|
- let data = JSON.parse(localStorage.getItem('data-down')) || []
|
|
|
- data.push(dataObj)
|
|
|
- localStorage.setItem('data-down', JSON.stringify(data))
|
|
|
- // this.open?
|
|
|
- this.getList()
|
|
|
- // 保存指定路径
|
|
|
- this.butLoading = false
|
|
|
- this.butText = '点击下载'
|
|
|
- this.$modal.msgSuccess('下载成功')
|
|
|
- this.cancel()
|
|
|
- }, 1000)
|
|
|
+ this.loading = true
|
|
|
+ console.log("this.onlineForm",this.onlineForm);
|
|
|
+ if(this.onlineForm.dataSource ==='1'){
|
|
|
+ airborneDataDown(this.onlineForm.sortieNumber).then(response => {
|
|
|
+ console.log("response",response);
|
|
|
+
|
|
|
+ // this.dataDownList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.getList()
|
|
|
+ this.loading = false;
|
|
|
+ this.reset()
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ simulationDataDown(this.onlineForm.sortieNumber).then(response => {
|
|
|
+ console.log("response",response);
|
|
|
+ // this.dataDownList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.getList()
|
|
|
+ this.loading = false;
|
|
|
+ this.reset()
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 离线下载提交
|
|
|
+ offlineSubmitForm(){
|
|
|
+ // TODO
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|