|
@@ -43,6 +43,9 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="架次号" prop="sortieNo">
|
|
<el-form-item label="架次号" prop="sortieNo">
|
|
<el-input v-model="form.sortieNo" placeholder="请输入架次号" />
|
|
<el-input v-model="form.sortieNo" placeholder="请输入架次号" />
|
|
|
|
+ <!-- <el-select v-model="form.sortieNo" placeholder="请选择架次号">
|
|
|
|
+ <el-option v-for="item in flyTaskTree" :key="item.taskId" :label="item.taskName" :value="item.taskId"> </el-option>
|
|
|
|
+ </el-select> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="飞行日期" prop="flightDate">
|
|
<el-form-item label="飞行日期" prop="flightDate">
|
|
<el-date-picker v-model="form.flightDate" type="date" value-format="yyyy-MM-dd" placement="bottom-start" placeholder="请选择飞行日期"> </el-date-picker>
|
|
<el-date-picker v-model="form.flightDate" type="date" value-format="yyyy-MM-dd" placement="bottom-start" placeholder="请选择飞行日期"> </el-date-picker>
|
|
@@ -80,7 +83,7 @@
|
|
<script>
|
|
<script>
|
|
import { getDataImport, addDataImport, updateDataImport, removeDataImport } from '@/api/als/dataImport'
|
|
import { getDataImport, addDataImport, updateDataImport, removeDataImport } from '@/api/als/dataImport'
|
|
import { getAircaftCatalogTree, getAircaftTypeAndModelTree } from '@/api/als/sideTree'
|
|
import { getAircaftCatalogTree, getAircaftTypeAndModelTree } from '@/api/als/sideTree'
|
|
-import { getAircaftModelAll, getAircaftCatalogAll } from '@/api/als/aircraft'
|
|
|
|
|
|
+import { getAircaftModelAll, getAircaftCatalogAll, getflyTaskAll } from '@/api/als/aircraft'
|
|
import { deepClone, debounce } from '@/utils/index'
|
|
import { deepClone, debounce } from '@/utils/index'
|
|
import { getItem } from '@/utils/index'
|
|
import { getItem } from '@/utils/index'
|
|
import FileUpload from '@/views/als/components/FileUpload'
|
|
import FileUpload from '@/views/als/components/FileUpload'
|
|
@@ -114,7 +117,7 @@ export default {
|
|
},
|
|
},
|
|
searchValue: '',
|
|
searchValue: '',
|
|
columns: [
|
|
columns: [
|
|
- { prop: 'id', label: '唯一编号' },
|
|
|
|
|
|
+ // { prop: 'id', label: '唯一编号' },
|
|
{
|
|
{
|
|
prop: 'ossId',
|
|
prop: 'ossId',
|
|
label: '文件编号'
|
|
label: '文件编号'
|
|
@@ -210,6 +213,7 @@ export default {
|
|
debounceFn: debounce(this.fetch, 500),
|
|
debounceFn: debounce(this.fetch, 500),
|
|
aircaftModelAll: [],
|
|
aircaftModelAll: [],
|
|
aircaftCatalogAll: [],
|
|
aircaftCatalogAll: [],
|
|
|
|
+ flyTaskTree: [],
|
|
upload: {
|
|
upload: {
|
|
open: false,
|
|
open: false,
|
|
title: '',
|
|
title: '',
|
|
@@ -236,29 +240,36 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async getAircaftCatalogTreeAPI(params) {
|
|
async getAircaftCatalogTreeAPI(params) {
|
|
- const { data } = await getAircaftCatalogTree(params)
|
|
|
|
- this.menuTreeData = data
|
|
|
|
- const getAircaftModelAllParams = {
|
|
|
|
- aircaftTypeCode: '',
|
|
|
|
- aircaftTypeId: '',
|
|
|
|
- queryParam: ''
|
|
|
|
- }
|
|
|
|
- const { data: data1 } = await getAircaftModelAll(getAircaftModelAllParams)
|
|
|
|
- this.aircaftModelAll = data1
|
|
|
|
- const getAircaftCatalogAllParams = {
|
|
|
|
- keyWord: '',
|
|
|
|
- aircaftModelIdList: []
|
|
|
|
- }
|
|
|
|
- const { data: data2 } = await getAircaftCatalogAll(getAircaftCatalogAllParams)
|
|
|
|
- this.aircaftCatalogAll = data2
|
|
|
|
- if (data.length) {
|
|
|
|
- this.currentNodeKey = data[0].id
|
|
|
|
- this.currentNode = data[0]
|
|
|
|
- this.aircaftModelIdList = this.getTreeLeafData(data[0]?.children)
|
|
|
|
- .map((e) => e.id)
|
|
|
|
- .toString()
|
|
|
|
- this.getDataImportAPI({ aircraftId: this.aircaftModelIdList })
|
|
|
|
- }
|
|
|
|
|
|
+ try {
|
|
|
|
+ const { data } = await getAircaftCatalogTree(params)
|
|
|
|
+ this.menuTreeData = data
|
|
|
|
+ const getAircaftModelAllParams = {
|
|
|
|
+ aircaftTypeCode: '',
|
|
|
|
+ aircaftTypeId: '',
|
|
|
|
+ queryParam: ''
|
|
|
|
+ }
|
|
|
|
+ const { data: data1 } = await getAircaftModelAll(getAircaftModelAllParams)
|
|
|
|
+ this.aircaftModelAll = data1
|
|
|
|
+ const getAircaftCatalogAllParams = {
|
|
|
|
+ keyWord: '',
|
|
|
|
+ aircaftModelIdList: []
|
|
|
|
+ }
|
|
|
|
+ const { data: data2 } = await getAircaftCatalogAll(getAircaftCatalogAllParams)
|
|
|
|
+ this.aircaftCatalogAll = data2
|
|
|
|
+ if (data.length) {
|
|
|
|
+ this.currentNodeKey = data[0].id
|
|
|
|
+ this.currentNode = data[0]
|
|
|
|
+ this.aircaftModelIdList = this.getTreeLeafData(data[0]?.children)
|
|
|
|
+ .map((e) => e.id)
|
|
|
|
+ .toString()
|
|
|
|
+ this.getDataImportAPI({ aircraftId: this.aircaftModelIdList })
|
|
|
|
+ }
|
|
|
|
+ const res = await getflyTaskAll({
|
|
|
|
+ status: null, //状态
|
|
|
|
+ queryParam: '' //查询条件
|
|
|
|
+ })
|
|
|
|
+ this.flyTaskTree = res.data
|
|
|
|
+ } catch (error) {}
|
|
},
|
|
},
|
|
|
|
|
|
async removeDataImportAPI(params) {
|
|
async removeDataImportAPI(params) {
|
|
@@ -298,7 +309,7 @@ export default {
|
|
const { pageSize, pageIndex } = this.tableRequset
|
|
const { pageSize, pageIndex } = this.tableRequset
|
|
const {
|
|
const {
|
|
data: { list, total }
|
|
data: { list, total }
|
|
- } = await getDataImport({ pageSize, pageIndex, ...params, source: 2 })
|
|
|
|
|
|
+ } = await getDataImport({ pageSize, pageNum: pageIndex, ...params, source: 2 })
|
|
this.tableData = list
|
|
this.tableData = list
|
|
this.tableRequset.total = total
|
|
this.tableRequset.total = total
|
|
},
|
|
},
|