添加忽略

This commit is contained in:
zhonghua 2026-03-11 17:38:47 +08:00
parent dbac0cca95
commit 6d62195a1f
4 changed files with 42 additions and 17 deletions

View File

@ -4,3 +4,4 @@ dist/
# api-spec.json 是 api:fetch 的中间产物,转成 yml 后删除 # api-spec.json 是 api:fetch 的中间产物,转成 yml 后删除
api-spec.json api-spec.json
/src/components.d.ts

View File

@ -7,27 +7,57 @@ export {}
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
AAlert: typeof import('ant-design-vue/es')['Alert']
AAvatar: typeof import('ant-design-vue/es')['Avatar'] AAvatar: typeof import('ant-design-vue/es')['Avatar']
ABadge: typeof import('ant-design-vue/es')['Badge'] ABadge: typeof import('ant-design-vue/es')['Badge']
AButton: typeof import('ant-design-vue/es')['Button'] AButton: typeof import('ant-design-vue/es')['Button']
ACard: typeof import('ant-design-vue/es')['Card'] ACard: typeof import('ant-design-vue/es')['Card']
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
ACol: typeof import('ant-design-vue/es')['Col'] ACol: typeof import('ant-design-vue/es')['Col']
ADatePicker: typeof import('ant-design-vue/es')['DatePicker']
ADescriptions: typeof import('ant-design-vue/es')['Descriptions']
ADescriptionsItem: typeof import('ant-design-vue/es')['DescriptionsItem']
ADrawer: typeof import('ant-design-vue/es')['Drawer']
ADropdown: typeof import('ant-design-vue/es')['Dropdown'] ADropdown: typeof import('ant-design-vue/es')['Dropdown']
AEmpty: typeof import('ant-design-vue/es')['Empty'] AEmpty: typeof import('ant-design-vue/es')['Empty']
AForm: typeof import('ant-design-vue/es')['Form'] AForm: typeof import('ant-design-vue/es')['Form']
AFormItem: typeof import('ant-design-vue/es')['FormItem'] AFormItem: typeof import('ant-design-vue/es')['FormItem']
AImage: typeof import('ant-design-vue/es')['Image']
AImagePreviewGroup: typeof import('ant-design-vue/es')['ImagePreviewGroup']
AInput: typeof import('ant-design-vue/es')['Input'] AInput: typeof import('ant-design-vue/es')['Input']
AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] AInputPassword: typeof import('ant-design-vue/es')['InputPassword']
AInputSearch: typeof import('ant-design-vue/es')['InputSearch']
ALayout: typeof import('ant-design-vue/es')['Layout'] ALayout: typeof import('ant-design-vue/es')['Layout']
ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent'] ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent']
ALayoutHeader: typeof import('ant-design-vue/es')['LayoutHeader'] ALayoutHeader: typeof import('ant-design-vue/es')['LayoutHeader']
ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider'] ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider']
AList: typeof import('ant-design-vue/es')['List']
AListItem: typeof import('ant-design-vue/es')['ListItem']
AListItemMeta: typeof import('ant-design-vue/es')['ListItemMeta']
AMenu: typeof import('ant-design-vue/es')['Menu'] AMenu: typeof import('ant-design-vue/es')['Menu']
AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider'] AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider']
AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
AModal: typeof import('ant-design-vue/es')['Modal']
APagination: typeof import('ant-design-vue/es')['Pagination']
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
AProgress: typeof import('ant-design-vue/es')['Progress']
ARadio: typeof import('ant-design-vue/es')['Radio']
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
ARangePicker: typeof import('ant-design-vue/es')['RangePicker']
ARate: typeof import('ant-design-vue/es')['Rate']
ARow: typeof import('ant-design-vue/es')['Row'] ARow: typeof import('ant-design-vue/es')['Row']
ASelect: typeof import('ant-design-vue/es')['Select']
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
ASpace: typeof import('ant-design-vue/es')['Space'] ASpace: typeof import('ant-design-vue/es')['Space']
ASpin: typeof import('ant-design-vue/es')['Spin']
ASubMenu: typeof import('ant-design-vue/es')['SubMenu']
ATable: typeof import('ant-design-vue/es')['Table']
ATag: typeof import('ant-design-vue/es')['Tag'] ATag: typeof import('ant-design-vue/es')['Tag']
ATextarea: typeof import('ant-design-vue/es')['Textarea']
ATimeRangePicker: typeof import('ant-design-vue/es')['TimeRangePicker']
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
ATypographyText: typeof import('ant-design-vue/es')['TypographyText']
AUpload: typeof import('ant-design-vue/es')['Upload']
FilePreviewModal: typeof import('./components/FilePreviewModal.vue')['default'] FilePreviewModal: typeof import('./components/FilePreviewModal.vue')['default']
FileUploader: typeof import('./components/course/FileUploader.vue')['default'] FileUploader: typeof import('./components/course/FileUploader.vue')['default']
LessonConfigPanel: typeof import('./components/course/LessonConfigPanel.vue')['default'] LessonConfigPanel: typeof import('./components/course/LessonConfigPanel.vue')['default']

View File

@ -6,25 +6,18 @@
</template> </template>
<template #extra> <template #extra>
<a-button type="primary" @click="handleCreate"> <a-button type="primary" @click="handleCreate">
<template #icon><PlusOutlined /></template> <template #icon>
<PlusOutlined />
</template>
创建校本课程包 创建校本课程包
</a-button> </a-button>
</template> </template>
<a-table <a-table :columns="columns" :data-source="dataSource" :loading="loading" row-key="id">
:columns="columns"
:data-source="dataSource"
:loading="loading"
row-key="id"
>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'sourceCourse'"> <template v-if="column.key === 'sourceCourse'">
<div class="source-info"> <div class="source-info">
<img <img v-if="record.sourceCourse?.coverImagePath" :src="record.sourceCourse.coverImagePath" class="cover" />
v-if="record.sourceCourse?.coverImagePath"
:src="record.sourceCourse.coverImagePath"
class="cover"
/>
<span>{{ record.sourceCourse?.name }}</span> <span>{{ record.sourceCourse?.name }}</span>
</div> </div>
</template> </template>
@ -74,8 +67,8 @@ const columns = [
const fetchData = async () => { const fetchData = async () => {
loading.value = true; loading.value = true;
try { try {
const res = await getTeacherSchoolCourseList() as any; const { items } = await getTeacherSchoolCourseList() as any;
dataSource.value = res || []; dataSource.value = items || [];
} catch (error) { } catch (error) {
console.error('获取校本课程包列表失败', error); console.error('获取校本课程包列表失败', error);
} finally { } finally {

View File

@ -46,12 +46,13 @@ export default defineConfig({
host: true, host: true,
proxy: { proxy: {
"/api": { "/api": {
// target: 'http://localhost:8080', target: "http://localhost:8080",
target: "http://192.168.1.110:8080", // target: "http://192.168.1.110:8080",
changeOrigin: true, changeOrigin: true,
}, },
"/uploads": { "/uploads": {
target: "http://192.168.1.110:8080", target: "http://localhost:8080",
// target: "http://192.168.1.110:8080",
changeOrigin: true, changeOrigin: true,
}, },
}, },