Commit 00140346 authored by jingnan's avatar jingnan 👀

架次接口按架次升序排列

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