refactor: edit select
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s
This commit is contained in:
parent
77f66ca302
commit
67ca569ad1
9 changed files with 32 additions and 32 deletions
|
|
@ -3,7 +3,7 @@ import { ref, onMounted } from 'vue';
|
|||
import { getRole } from 'src/services/keycloak';
|
||||
|
||||
import { createSelect, SelectProps } from './select';
|
||||
import SelectInput from '../SelectInput.vue';
|
||||
import SelectBase from './SelectBase.vue';
|
||||
|
||||
import { User } from 'src/stores/user/types';
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ function setDefaultValue() {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<SelectInput
|
||||
<SelectBase
|
||||
v-model="value"
|
||||
incremental
|
||||
option-value="id"
|
||||
|
|
@ -85,7 +85,7 @@ function setDefaultValue() {
|
|||
:placeholder
|
||||
:readonly
|
||||
:disable="disabled"
|
||||
:option="selectOptions"
|
||||
:options="selectOptions"
|
||||
:hide-selected="false"
|
||||
:fill-input="false"
|
||||
:rules="[
|
||||
|
|
@ -123,5 +123,5 @@ function setDefaultValue() {
|
|||
class="cursor-pointer clear-btn"
|
||||
/>
|
||||
</template>
|
||||
</SelectInput>
|
||||
</SelectBase>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { ref, onMounted } from 'vue';
|
|||
import { getRole } from 'src/services/keycloak';
|
||||
|
||||
import { createSelect, SelectProps } from './select';
|
||||
import SelectInput from '../SelectInput.vue';
|
||||
import SelectBase from './SelectBase.vue';
|
||||
|
||||
import { Branch } from 'src/stores/branch/types';
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ function setDefaultValue() {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<SelectInput
|
||||
<SelectBase
|
||||
for="select-hq-id"
|
||||
v-model="value"
|
||||
incremental
|
||||
|
|
@ -82,7 +82,7 @@ function setDefaultValue() {
|
|||
:placeholder
|
||||
:readonly
|
||||
:disable="disabled"
|
||||
:option="
|
||||
:options="
|
||||
selectOptions.map((v) => {
|
||||
const ret = {
|
||||
label: codeOnly
|
||||
|
|
@ -114,5 +114,5 @@ function setDefaultValue() {
|
|||
class="cursor-pointer clear-btn"
|
||||
/>
|
||||
</template>
|
||||
</SelectInput>
|
||||
</SelectBase>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { ref, onMounted } from 'vue';
|
||||
|
||||
import { createSelect, SelectProps } from './select';
|
||||
import SelectInput from '../SelectInput.vue';
|
||||
import SelectBase from './SelectBase.vue';
|
||||
import SelectCustomerItem from './SelectCustomerItem.vue';
|
||||
|
||||
import useStore, { Customer, CustomerBranch } from 'src/stores/customer';
|
||||
|
|
@ -70,7 +70,7 @@ onMounted(async () => {
|
|||
});
|
||||
</script>
|
||||
<template>
|
||||
<SelectInput
|
||||
<SelectBase
|
||||
v-model="value"
|
||||
option-value="id"
|
||||
incremental
|
||||
|
|
@ -79,7 +79,7 @@ onMounted(async () => {
|
|||
:placeholder
|
||||
:readonly
|
||||
:disable="disabled"
|
||||
:option="selectOptions"
|
||||
:options="selectOptions"
|
||||
:hide-selected="false"
|
||||
:fill-input="false"
|
||||
:rules="[(v: string) => !!v || $t('form.error.required')]"
|
||||
|
|
@ -175,5 +175,5 @@ onMounted(async () => {
|
|||
class="cursor-pointer clear-btn"
|
||||
/>
|
||||
</template>
|
||||
</SelectInput>
|
||||
</SelectBase>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { ref, onMounted } from 'vue';
|
||||
|
||||
import { createSelect, SelectProps } from './select';
|
||||
import SelectInput from '../SelectInput.vue';
|
||||
import SelectBase from './SelectBase.vue';
|
||||
|
||||
import { WorkflowTemplate } from 'src/stores/workflow-template/types';
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ function setDefaultValue() {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<SelectInput
|
||||
<SelectBase
|
||||
for="select-work-flow-template"
|
||||
v-model="value"
|
||||
incremental
|
||||
|
|
@ -80,7 +80,7 @@ function setDefaultValue() {
|
|||
:placeholder
|
||||
:readonly
|
||||
:disable="disabled"
|
||||
:option="
|
||||
:options="
|
||||
selectOptions.map((v) => {
|
||||
const ret = {
|
||||
label: v.name,
|
||||
|
|
@ -105,5 +105,5 @@ function setDefaultValue() {
|
|||
class="cursor-pointer clear-btn"
|
||||
/>
|
||||
</template>
|
||||
</SelectInput>
|
||||
</SelectBase>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { ref, onMounted } from 'vue';
|
||||
|
||||
import { createSelect, SelectProps } from './select';
|
||||
import SelectInput from '../SelectInput.vue';
|
||||
import SelectBase from './SelectBase.vue';
|
||||
|
||||
import { Institution } from 'src/stores/institution/types';
|
||||
|
||||
|
|
@ -72,14 +72,14 @@ function setDefaultValue() {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<SelectInput
|
||||
<SelectBase
|
||||
v-model="value"
|
||||
incremental
|
||||
:label
|
||||
:placeholder
|
||||
:readonly
|
||||
:disable="disabled"
|
||||
:option="
|
||||
:options="
|
||||
selectOptions.map((v) => {
|
||||
const ret = {
|
||||
label: v.name,
|
||||
|
|
@ -104,5 +104,5 @@ function setDefaultValue() {
|
|||
class="cursor-pointer clear-btn"
|
||||
/>
|
||||
</template>
|
||||
</SelectInput>
|
||||
</SelectBase>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { ref, onMounted } from 'vue';
|
||||
|
||||
import { createSelect, SelectProps } from './select';
|
||||
import SelectInput from '../SelectInput.vue';
|
||||
import SelectBase from './SelectBase.vue';
|
||||
|
||||
import { ProductGroup } from 'stores/product-service/types';
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ function setDefaultValue() {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<SelectInput
|
||||
<SelectBase
|
||||
v-model="value"
|
||||
incremental
|
||||
option-label="code"
|
||||
|
|
@ -80,7 +80,7 @@ function setDefaultValue() {
|
|||
:placeholder
|
||||
:readonly
|
||||
:disable="disabled"
|
||||
:option="selectOptions"
|
||||
:options="selectOptions"
|
||||
:hide-selected="false"
|
||||
:fill-input="false"
|
||||
:rules="[
|
||||
|
|
@ -120,5 +120,5 @@ function setDefaultValue() {
|
|||
</span>
|
||||
</q-item-section>
|
||||
</template>
|
||||
</SelectInput>
|
||||
</SelectBase>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { ref, onMounted } from 'vue';
|
||||
|
||||
import { createSelect, SelectProps } from './select';
|
||||
import SelectInput from '../SelectInput.vue';
|
||||
import SelectBase from './SelectBase.vue';
|
||||
|
||||
import useOptionStore from 'src/stores/options';
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ function setDefaultValue() {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<SelectInput
|
||||
<SelectBase
|
||||
v-model="value"
|
||||
option-value="id"
|
||||
incremental
|
||||
|
|
@ -111,7 +111,7 @@ function setDefaultValue() {
|
|||
:readonly
|
||||
:hide-input="value !== ''"
|
||||
:disable="disabled"
|
||||
:option="selectOptions"
|
||||
:options="selectOptions"
|
||||
:hide-selected="false"
|
||||
:fill-input="false"
|
||||
:rules="[
|
||||
|
|
@ -219,5 +219,5 @@ function setDefaultValue() {
|
|||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</SelectInput>
|
||||
</SelectBase>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { ref, onMounted } from 'vue';
|
||||
|
||||
import { createSelect, SelectProps } from './select';
|
||||
import SelectInput from '../SelectInput.vue';
|
||||
import SelectBase from './SelectBase.vue';
|
||||
|
||||
import useStore, { User } from 'src/stores/user';
|
||||
import { Lang } from 'src/utils/ui';
|
||||
|
|
@ -68,14 +68,14 @@ function setDefaultValue() {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<SelectInput
|
||||
<SelectBase
|
||||
v-model="value"
|
||||
incremental
|
||||
:label
|
||||
:placeholder
|
||||
:readonly
|
||||
:disable="disabled"
|
||||
:option="
|
||||
:options="
|
||||
selectOptions.map((v) => {
|
||||
const ret = {
|
||||
label: (
|
||||
|
|
@ -106,5 +106,5 @@ function setDefaultValue() {
|
|||
class="cursor-pointer clear-btn"
|
||||
/>
|
||||
</template>
|
||||
</SelectInput>
|
||||
</SelectBase>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue