Commit 00140346 authored by jingnan's avatar jingnan 👀

架次接口按架次升序排列

parent 871059fd
......@@ -208,7 +208,8 @@ export default {
searchItems: {
items: [{ 'fieldName': 'aircraftType.defName', operator: 'EQ', value: val }],
operator: 'AND'
}
},
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.$api.searchApi('AircraftSorties', params)
.then((res) => {
......
......@@ -1771,7 +1771,8 @@ export default {
'value': this.form.airModel
}
]
}
},
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.$api.searchApi('AircraftSorties', params).then(res => {
const SORTIES = this.formFileds[0].data.find(
......
......@@ -1773,7 +1773,8 @@ export default {
'value': this.form.airModel
}
]
}
},
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.$api.searchApi('AircraftSorties', params).then(res => {
const SORTIES = this.formFileds[0].data.find(
......
......@@ -1772,7 +1772,8 @@ export default {
'value': this.form.airModel
}
]
}
},
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.$api.searchApi('AircraftSorties', params).then(res => {
const SORTIES = this.formFileds[0].data.find(
......
......@@ -116,7 +116,7 @@ export default {
},
getSortiesList() {
this.sortiesData = []
const params = { 'searchItems': { 'items': [] }, 'sortItem': [{ 'fieldName': 'modifyTime', 'sortOrder': 'asc' }] }
const params = { 'searchItems': { 'items': [] }, 'sortItem': [{ 'fieldName': 'defCode', 'sortOrder': 'asc' }] }
this.$api.searchApi('AircraftSorties', params).then(res => {
if (res.items && res.items.content) {
this.sortiesData = res.items.content.map(row => {
......
......@@ -105,7 +105,8 @@ export default {
searchItems: {
items: [{ 'fieldName': 'aircraftType.defName', operator: 'EQ', value: val }],
operator: 'AND'
}
},
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.$api.searchApi('AircraftSorties', params).then(res => {
this.options = res.items.content.map(row => {
......
......@@ -97,7 +97,8 @@ export default {
searchItems: {
items: [{ 'fieldName': 'aircraftTypeId', operator: 'EQ', value: val }],
operator: 'AND'
}
},
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.$api.searchApi('AircraftSorties', params).then(res => {
this.options = res.items.content.map(row => {
......
......@@ -102,7 +102,8 @@ export default {
}
]
}
]
],
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.options = []
this.loading = true
......
......@@ -655,7 +655,8 @@ export default {
'value': this.form.airModel
}
]
}
},
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.$api.searchApi('AircraftSorties', params).then(res => {
const SORTIES = this.formFileds[0].data.find(
......
......@@ -102,7 +102,8 @@ export default {
searchItems: {
items: [{ 'fieldName': 'aircraftTypeId', operator: 'EQ', value: val.split('+')[0] }],
operator: 'AND'
}
},
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.$api.searchApi('AircraftSorties', params).then(res => {
this.options = res.items.content.map(row => {
......
......@@ -235,7 +235,7 @@ export default {
this.sortiesData = []
this.sorties = null
}
const params = { 'searchItems': { 'items': [{ 'fieldName': 'aircraftTypeId', 'operator': 'EQ', 'value': this.form.model }] }, 'sortItem': [{ 'fieldName': 'modifyTime', 'sortOrder': 'asc' }] }
const params = { 'searchItems': { 'items': [{ 'fieldName': 'aircraftTypeId', 'operator': 'EQ', 'value': this.form.model }] }, sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }] }
params.openProps = [{ name: 'aircraftType' }]
this.$api.searchApi('AircraftSorties', params)
.then((res) => {
......
......@@ -341,12 +341,7 @@ export default {
'operator': 'AND'
},
'openProps': [],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
],
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }],
'toValidateKeys': ''
}
this.$api.searchApi('AircraftSorties', params).then(res => {
......
......@@ -424,12 +424,7 @@ export default {
'operator': 'AND'
},
'openProps': [],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
],
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }],
'toValidateKeys': ''
}
this.$api.searchApi('AircraftSorties', params).then(res => {
......
......@@ -323,8 +323,8 @@ export default {
],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
'fieldName': 'defCode',
'sortOrder': 'asc'
}
],
'toValidateKeys': ''
......
......@@ -135,7 +135,7 @@ export default {
methods: {
getSortiesList() {
this.sortiesData = []
const params = { 'searchItems': { 'items': [{ 'fieldName': 'aircraftTypeId', 'operator': 'EQ', 'value': this.form.model }] }, 'sortItem': [{ 'fieldName': 'modifyTime', 'sortOrder': 'asc' }] }
const params = { 'searchItems': { 'items': [{ 'fieldName': 'aircraftTypeId', 'operator': 'EQ', 'value': this.form.model }] }, sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }] }
params.openProps = [{ name: 'aircraftType' }]
this.$api.searchApi('AircraftSorties', params).then(res => {
if (res.items && res.items.content) {
......
......@@ -142,7 +142,8 @@ export default {
searchItems: {
items: [{ 'fieldName': 'aircraftTypeId', operator: 'EQ', value: this.model }],
operator: 'AND'
}
},
sortItem: [{ fieldName: 'defCode', sortOrder: 'asc' }]
}
this.$api.searchApi('AircraftSorties', param).then((res) => {
this.sortiesData = []
......
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