提交 edf12d91 authored 作者: matian's avatar matian

chore:校友管理增加筛选项项目

上级 5bb3494f
<script setup lang="ts"> <script setup lang="ts">
import allPrefixList from '../prefix'
import { ref } from 'vue' import { ref } from 'vue'
import { getAlumniList, getClassList } from '../api' import { getAlumniList, getClassList } from '../api'
const appList = ref() const appList = ref()
...@@ -65,6 +67,10 @@ const listOptions = $computed(() => { ...@@ -65,6 +67,10 @@ const listOptions = $computed(() => {
prop: 'class_id', prop: 'class_id',
slots: 'filter-class' slots: 'filter-class'
}, },
{
prop: 'project_prefix',
slots: 'filter-project'
},
{ type: 'input', prop: 'province', placeholder: '省份' }, { type: 'input', prop: 'province', placeholder: '省份' },
{ type: 'input', prop: 'city', placeholder: '城市' }, { type: 'input', prop: 'city', placeholder: '城市' },
{ type: 'input', prop: 'industry', placeholder: '所在行业' }, { type: 'input', prop: 'industry', placeholder: '所在行业' },
...@@ -106,10 +112,15 @@ const handleFresh = () => { ...@@ -106,10 +112,15 @@ const handleFresh = () => {
<AppCard> <AppCard>
<AppList v-bind="listOptions" ref="appList"> <AppList v-bind="listOptions" ref="appList">
<template #filter-class="{ params }"> <template #filter-class="{ params }">
<el-select @change="handleFresh" clearable v-model="params.class_id" placeholder="班级" ref="el"> <el-select @change="handleFresh" clearable v-model="params.class_id" placeholder="班级">
<el-option v-for="item in classListItem.list" :key="item.id" :label="item.name" :value="item.class_id" /> <el-option v-for="item in classListItem.list" :key="item.id" :label="item.name" :value="item.class_id" />
</el-select> </el-select>
</template> </template>
<template #filter-project="{ params }">
<el-select @change="handleFresh" clearable v-model="params.project_prefix" placeholder="项目">
<el-option v-for="item in allPrefixList" :key="item.prefix" :label="item.name" :value="item.prefix" />
</el-select>
</template>
<template #table-operate="{ row }"> <template #table-operate="{ row }">
<el-space> <el-space>
<router-link :to="`/alumni/view?id=${row.id}`" target="_blank"> <router-link :to="`/alumni/view?id=${row.id}`" target="_blank">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论