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