提交 897f18a3 authored 作者: lihuihui's avatar lihuihui

update

上级 e731555f
<script setup lang="ts">
import { Files } from '@element-plus/icons-vue'
const props: any = defineProps<{ data: object }>()
const props: any = defineProps<{ data: object, path: string }>()
</script>
<template>
<div class="card-item">
......@@ -17,10 +18,10 @@ const props: any = defineProps<{ data: object }>()
<Files />
</el-icon>
<div class="tool-pop-btn">
<router-link :to="`/resource/courseware/update?id=${props.data.id}`">
<router-link :to="`${props.path}/update?id=${props.data.id}`">
<div class="edit-btn">编辑</div>
</router-link>
<router-link :to="`/resource/courseware/view?id=${props.data.id}`">
<router-link :to="`${props.path}/view?id=${props.data.id}`">
<div class="view-btn">查看</div>
</router-link>
</div>
......
......@@ -102,7 +102,7 @@ const listOptions = $computed(() => {
<!-- 卡片 -->
<template #body="{ data }" v-if="isCard">
<div class="card-list" v-if="data.length">
<CardListItem v-for="(item, index) in data" :data="item" :key="index"></CardListItem>
<CardListItem path="/resource/courseware" v-for="(item, index) in data" :data="item" :key="index"></CardListItem>
</div>
<el-empty v-else description="暂无数据" />
</template>
......
......@@ -41,7 +41,7 @@ const listOptions = $computed(() => {
type: 'select',
prop: 'audit_status',
label: '状态',
options: store.mapList?.filter((item: any) => item.key === 'system_status')[0]?.values
options: store.getMapValuesByKey('system_status')
},
{ type: 'select', prop: 'authorized', label: '项目', options: projectList.value, labelKey: 'name', valueKey: 'id' },
{ prop: 'classification', label: '类别', slots: 'filter-type' },
......@@ -101,7 +101,7 @@ const listOptions = $computed(() => {
<!-- 卡片 -->
<template #body="{ data }" v-if="isCard">
<div class="card-list" v-if="data.length">
<CardListItem v-for="(item, index) in data" :data="item" :key="index"></CardListItem>
<CardListItem path="/resource/lessonplan" v-for="(item, index) in data" :data="item" :key="index"></CardListItem>
</div>
<el-empty v-else description="暂无数据" />
</template>
......
......@@ -103,7 +103,7 @@ const listOptions = $computed(() => {
<!-- 卡片 -->
<template #body="{ data }" v-if="isCard">
<div class="card-list" v-if="data.length">
<CardListItem v-for="(item, index) in data" :data="item" :key="index"></CardListItem>
<CardListItem path="/resource/other" v-for="(item, index) in data" :data="item" :key="index"></CardListItem>
</div>
<el-empty v-else description="暂无数据" />
</template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论