refactor: refs #7524 update sort-by parameters to include ASC for consistent ordering
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
dd958fffd0
commit
23d6c18ebd
|
@ -2,7 +2,6 @@
|
|||
import { reactive, ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
import FetchData from 'components/FetchData.vue';
|
||||
import VnRow from 'components/ui/VnRow.vue';
|
||||
import VnSelect from 'src/components/common/VnSelect.vue';
|
||||
import VnSelectProvince from 'src/components/VnSelectProvince.vue';
|
||||
|
|
|
@ -149,7 +149,7 @@ const selectItem = ({ id }) => {
|
|||
v-model="itemFilterParams.producerFk"
|
||||
url="Producers"
|
||||
:fields="['id', 'name']"
|
||||
sort-by="name"
|
||||
sort-by="name ASC"
|
||||
/>
|
||||
<VnSelect
|
||||
:label="t('globals.type')"
|
||||
|
|
|
@ -29,7 +29,7 @@ const tagValues = ref([]);
|
|||
url="TicketRequests/getItemTypeWorker"
|
||||
option-label="nickname"
|
||||
:fields=" ['id', 'nickname']"
|
||||
sort-by="nickname"
|
||||
sort-by="nickname ASC"
|
||||
dense
|
||||
outlined
|
||||
rounded
|
||||
|
@ -45,7 +45,7 @@ const tagValues = ref([]);
|
|||
v-model="params.supplierFk"
|
||||
url="Suppliers"
|
||||
:fields="['id', 'name', 'nickname']"
|
||||
sort-by="name"
|
||||
sort-by="name ASC"
|
||||
dense
|
||||
outlined
|
||||
rounded
|
||||
|
|
|
@ -103,6 +103,7 @@ async function insert() {
|
|||
v-model="row[col.model]"
|
||||
:url="col.url"
|
||||
:option-label="col.optionLabel"
|
||||
:option-value="col.optionValue"
|
||||
>
|
||||
<template #option="scope">
|
||||
<QItem v-bind="scope.itemProps">
|
||||
|
|
|
@ -32,7 +32,7 @@ const props = defineProps({
|
|||
rounded
|
||||
use-input
|
||||
@update:model-value="searchFn()"
|
||||
sort-by="nickname"
|
||||
sort-by="nickname ASC"
|
||||
/>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
|
|
|
@ -119,7 +119,7 @@ const exprBuilder = (param, value) => {
|
|||
v-model="params.supplierFk"
|
||||
url="Suppliers"
|
||||
:fields="['name']"
|
||||
sort-by="name"
|
||||
sort-by="name ASC"
|
||||
option-value="name"
|
||||
option-label="name"
|
||||
dense
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import FetchData from 'components/FetchData.vue';
|
||||
import VnFilterPanel from 'components/ui/VnFilterPanel.vue';
|
||||
import VnSelect from 'components/common/VnSelect.vue';
|
||||
import VnInputDate from 'components/common/VnInputDate.vue';
|
||||
|
@ -17,7 +15,6 @@ const props = defineProps({
|
|||
|
||||
const emit = defineEmits(['search']);
|
||||
|
||||
const supplierList = ref([]);
|
||||
const exprBuilder = (param, value) => {
|
||||
switch (param) {
|
||||
case 'tractorPlate':
|
||||
|
@ -87,6 +84,7 @@ const exprBuilder = (param, value) => {
|
|||
:fields="['id', 'nickname']"
|
||||
v-model="params.supplierFk"
|
||||
url="Suppliers"
|
||||
sort-by="nickname ASC"
|
||||
option-label="nickname"
|
||||
dense
|
||||
outlined
|
||||
|
|
Loading…
Reference in New Issue