fix: repair team application filters
This commit is contained in:
parent
f7e92e440f
commit
7278d806bc
@ -11,7 +11,6 @@ import {
|
|||||||
Drawer,
|
Drawer,
|
||||||
Empty,
|
Empty,
|
||||||
Select,
|
Select,
|
||||||
SelectOption,
|
|
||||||
Space,
|
Space,
|
||||||
Tag,
|
Tag,
|
||||||
} from 'antdv-next';
|
} from 'antdv-next';
|
||||||
@ -45,6 +44,14 @@ const statusLabelMap = TEAM_APPLICATION_PROCESS_STATUS_OPTIONS.reduce<Record<str
|
|||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
);
|
);
|
||||||
|
const statusOptions = TEAM_APPLICATION_PROCESS_STATUS_OPTIONS.map((item) => ({
|
||||||
|
label: item.name,
|
||||||
|
value: item.value,
|
||||||
|
}));
|
||||||
|
const reasonOptions = TEAM_REASON_OPTIONS.map((item) => ({
|
||||||
|
label: item.name,
|
||||||
|
value: item.value,
|
||||||
|
}));
|
||||||
|
|
||||||
const query = reactive({
|
const query = reactive({
|
||||||
associateId: '',
|
associateId: '',
|
||||||
@ -103,34 +110,18 @@ async function loadData(reset = false) {
|
|||||||
>
|
>
|
||||||
<div class="drawer-toolbar">
|
<div class="drawer-toolbar">
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Select option-label-prop="label"
|
<Select
|
||||||
v-model:value="query.status"
|
v-model:value="query.status"
|
||||||
|
:options="statusOptions"
|
||||||
style="width: 140px"
|
style="width: 140px"
|
||||||
@change="loadData(true)"
|
@change="loadData(true)"
|
||||||
>
|
/>
|
||||||
<SelectOption
|
<Select
|
||||||
v-for="item in TEAM_APPLICATION_PROCESS_STATUS_OPTIONS"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.value"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
|
||||||
</SelectOption>
|
|
||||||
</Select>
|
|
||||||
<Select option-label-prop="label"
|
|
||||||
v-model:value="query.reason"
|
v-model:value="query.reason"
|
||||||
|
:options="reasonOptions"
|
||||||
style="width: 140px"
|
style="width: 140px"
|
||||||
@change="loadData(true)"
|
@change="loadData(true)"
|
||||||
>
|
/>
|
||||||
<SelectOption
|
|
||||||
v-for="item in TEAM_REASON_OPTIONS"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.value"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
|
||||||
</SelectOption>
|
|
||||||
</Select>
|
|
||||||
<Button :loading="loading" type="primary" @click="loadData(true)">
|
<Button :loading="loading" type="primary" @click="loadData(true)">
|
||||||
查询
|
查询
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@ -32,7 +32,7 @@ export const TEAM_CONTACT_TYPE_OPTIONS = [
|
|||||||
export const TEAM_APPLICATION_PROCESS_STATUS_OPTIONS = [
|
export const TEAM_APPLICATION_PROCESS_STATUS_OPTIONS = [
|
||||||
{ value: 'WAIT', name: '待处理' },
|
{ value: 'WAIT', name: '待处理' },
|
||||||
{ value: 'AGREE', name: '同意' },
|
{ value: 'AGREE', name: '同意' },
|
||||||
{ value: 'REJECT', name: '拒绝' },
|
{ value: 'REJECT', name: '驳回' },
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export const TEAM_REASON_OPTIONS = [
|
export const TEAM_REASON_OPTIONS = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user