提交 1c4b6f5f authored 作者: matian's avatar matian

chore:列表增加项目

上级 f26214dd
...@@ -32,8 +32,7 @@ const handleGetClassList = () => { ...@@ -32,8 +32,7 @@ const handleGetClassList = () => {
}) })
} }
const listOptions = $computed(() => { const listOptions = {
return {
remote: { remote: {
httpRequest: getAlumniList, httpRequest: getAlumniList,
params: { params: {
...@@ -95,14 +94,26 @@ const listOptions = $computed(() => { ...@@ -95,14 +94,26 @@ const listOptions = $computed(() => {
} }
}, },
{ label: '班级', prop: 'class.name', align: 'center' }, { label: '班级', prop: 'class.name', align: 'center' },
{
label: '项目',
prop: 'project_prefix',
align: 'center',
computed(row: any) {
return allPrefixList.filter((item: any) => {
console.log(item, row.row, 'item')
if (item.prefix === row.row.project_prefix) {
return item
}
})[0].name
}
},
{ label: '省份', prop: 'province', align: 'center' }, { label: '省份', prop: 'province', align: 'center' },
{ label: '城市', prop: 'city', align: 'center' }, { label: '城市', prop: 'city', align: 'center' },
{ label: '所在行业', prop: 'industry', align: 'center' }, { label: '所在行业', prop: 'industry', align: 'center' },
{ label: '工作单位', prop: 'workplace', align: 'center' }, { label: '工作单位', prop: 'workplace', align: 'center' },
{ label: '操作', slots: 'table-operate', width: 230, align: 'center' } { label: '操作', slots: 'table-operate', width: 230, align: 'center' }
] ]
} }
})
const handleFresh = () => { const handleFresh = () => {
appList.value.refetch() appList.value.refetch()
} }
......
<script setup lang="ts"> <script setup lang="ts">
import { getAlumniView } from '../api' import { getAlumniView } from '../api'
import allPrefixList from '../prefix' import {allPrefixList} from '../prefix'
const route = useRoute() const route = useRoute()
const detailList: any = ref({}) const detailList: any = ref({})
let project: any = ref([]) let project: any = ref([])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论