Commit ede9945b authored by “lixuyan”'s avatar “lixuyan”

修改站位计划的默认值

parent e4a41e18
...@@ -205,7 +205,12 @@ export default { ...@@ -205,7 +205,12 @@ export default {
.searchApi('AircraftSorties', params) .searchApi('AircraftSorties', params)
.then((res) => { .then((res) => {
this.sortiesData = [] this.sortiesData = []
if (res) { if (res.items && res.items.content) {
res.items.content.map((item, index) => {
if (item.defCode === 'NA') {
res.items.content.unshift(res.items.content.splice(index, 1)[0])
}
})
this.sortiesData = res.items.content.map((row) => { this.sortiesData = res.items.content.map((row) => {
return { return {
value: row.id, value: row.id,
......
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