|
@@ -393,9 +393,13 @@ export default {
|
|
|
this.cardLoading = true;
|
|
|
this.selectCard = [];
|
|
|
const pa = {
|
|
|
- filters: `categoryId="${this.curCategory.code}"`,
|
|
|
- orders: `${this.selVal} desc`,
|
|
|
+ filters: `categoryId="${this.curCategory.code}"`
|
|
|
};
|
|
|
+ if (this.selVal == 'name') {
|
|
|
+ pa.orders = `${this.selVal} asc`;
|
|
|
+ } else {
|
|
|
+ pa.orders = `${this.selVal} desc`;
|
|
|
+ }
|
|
|
if (this.queryText) {
|
|
|
pa.filters += `;name contain "${this.queryText}"`;
|
|
|
}
|
|
@@ -426,9 +430,13 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
const pa = {
|
|
|
- filters: `categoryId="${this.curCategory.code}"`,
|
|
|
- orders: `${this.selVal} desc`,
|
|
|
+ filters: `categoryId="${this.curCategory.code}"`
|
|
|
};
|
|
|
+ if (this.selVal == 'name') {
|
|
|
+ pa.orders = `${this.selVal} asc`;
|
|
|
+ } else {
|
|
|
+ pa.orders = `${this.selVal} desc`;
|
|
|
+ }
|
|
|
if (this.queryText) {
|
|
|
pa.filters += `;name contain ""`;
|
|
|
}
|