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