fix: repair team create region select
This commit is contained in:
parent
474caa56e0
commit
aba2bf6281
@ -14,11 +14,12 @@ import {
|
|||||||
Radio,
|
Radio,
|
||||||
RadioGroup,
|
RadioGroup,
|
||||||
Select,
|
Select,
|
||||||
SelectOption,
|
|
||||||
TextArea,
|
TextArea,
|
||||||
message,
|
message,
|
||||||
} from 'antdv-next';
|
} from 'antdv-next';
|
||||||
|
|
||||||
|
import SystemRegionSelect from '#/views/operate/components/system-region-select.vue';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
TEAM_CONTACT_TYPE_OPTIONS,
|
TEAM_CONTACT_TYPE_OPTIONS,
|
||||||
} from '../shared';
|
} from '../shared';
|
||||||
@ -142,9 +143,12 @@ async function handleSubmit() {
|
|||||||
>
|
>
|
||||||
<Form layout="vertical">
|
<Form layout="vertical">
|
||||||
<FormItem v-if="bindBd === 'no'" label="区域">
|
<FormItem v-if="bindBd === 'no'" label="区域">
|
||||||
<Select option-label-prop="label" v-model:value="form.region" placeholder="区域">
|
<SystemRegionSelect
|
||||||
<slot name="regions" />
|
v-model:value="form.region"
|
||||||
</Select>
|
clearable
|
||||||
|
placeholder="区域"
|
||||||
|
:sys-origin="props.sysOrigin"
|
||||||
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="代理">
|
<FormItem label="代理">
|
||||||
<AccountInput
|
<AccountInput
|
||||||
@ -198,16 +202,12 @@ async function handleSubmit() {
|
|||||||
<div v-if="formContactAdd" class="section-card">
|
<div v-if="formContactAdd" class="section-card">
|
||||||
<div class="section-title">联系方式</div>
|
<div class="section-title">联系方式</div>
|
||||||
<FormItem label="类型">
|
<FormItem label="类型">
|
||||||
<Select option-label-prop="label" v-model:value="form.contact.type" placeholder="选择类型">
|
<Select
|
||||||
<SelectOption
|
option-label-prop="label"
|
||||||
v-for="item in TEAM_CONTACT_TYPE_OPTIONS"
|
v-model:value="form.contact.type"
|
||||||
:key="item.value"
|
placeholder="选择类型"
|
||||||
:label="item.name"
|
:options="TEAM_CONTACT_TYPE_OPTIONS.map((item) => ({ label: item.name, value: item.value }))"
|
||||||
:value="item.value"
|
/>
|
||||||
>
|
|
||||||
{{ item.name }}
|
|
||||||
</SelectOption>
|
|
||||||
</Select>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="联系">
|
<FormItem label="联系">
|
||||||
<Input
|
<Input
|
||||||
|
|||||||
@ -23,7 +23,6 @@ import {
|
|||||||
Input,
|
Input,
|
||||||
Modal,
|
Modal,
|
||||||
Select,
|
Select,
|
||||||
SelectOption,
|
|
||||||
Space,
|
Space,
|
||||||
Table,
|
Table,
|
||||||
Tag,
|
Tag,
|
||||||
@ -534,18 +533,7 @@ watch(
|
|||||||
:sys-origin="query.sysOrigin"
|
:sys-origin="query.sysOrigin"
|
||||||
@close="createOpen = false"
|
@close="createOpen = false"
|
||||||
@success="loadData(true)"
|
@success="loadData(true)"
|
||||||
>
|
/>
|
||||||
<template #regions>
|
|
||||||
<SelectOption
|
|
||||||
v-for="item in regionOptions"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.regionName"
|
|
||||||
:value="item.id"
|
|
||||||
>
|
|
||||||
{{ item.regionName }}
|
|
||||||
</SelectOption>
|
|
||||||
</template>
|
|
||||||
</TeamCreateDrawer>
|
|
||||||
|
|
||||||
<TeamEditDrawer
|
<TeamEditDrawer
|
||||||
:open="editOpen"
|
:open="editOpen"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user