diff --git a/src/renderer/src/components/ai-chart/container/text.vue b/src/renderer/src/components/ai-chart/container/text.vue index 68524ae..3372051 100644 --- a/src/renderer/src/components/ai-chart/container/text.vue +++ b/src/renderer/src/components/ai-chart/container/text.vue @@ -16,7 +16,7 @@ import { ref, onMounted, nextTick } from 'vue' default: 50, // 默认每字符间隔100毫秒 }, }) - const emit = defineEmits(['loaded']) + const emit = defineEmits(['loaded', 'onSuccess']) const displayedText = ref('') diff --git a/src/renderer/src/components/ai-chart/index.vue b/src/renderer/src/components/ai-chart/index.vue index 03bb26b..8d95703 100644 --- a/src/renderer/src/components/ai-chart/index.vue +++ b/src/renderer/src/components/ai-chart/index.vue @@ -65,7 +65,7 @@ diff --git a/src/renderer/src/components/upload-dialog/index.vue b/src/renderer/src/components/upload-dialog/index.vue index ea86172..358ab5c 100644 --- a/src/renderer/src/components/upload-dialog/index.vue +++ b/src/renderer/src/components/upload-dialog/index.vue @@ -49,7 +49,6 @@ import { ref, watch } from 'vue' import FileImage from '@/components/file-image/index.vue' import { ElMessage } from 'element-plus' -import { resourceType } from '@/utils/resourceDict' import { getFileSuffix, getFileName } from '@/utils/ruoyi' const props = defineProps({ @@ -58,6 +57,22 @@ const props = defineProps({ default: false }, }) +const resourceType = ref([ + { + label: '素材', + value: '素材' + }, + + { + label: '课件', + value: '课件' + }, + + { + label: '教案', + value: '教案' + } +]) const dialogValue = ref(false) const limit = ref(5) // 定义要发送的emit事件 diff --git a/src/renderer/src/utils/resourceDict.js b/src/renderer/src/utils/resourceDict.js index 9a26a2b..c86aaf8 100644 --- a/src/renderer/src/utils/resourceDict.js +++ b/src/renderer/src/utils/resourceDict.js @@ -1,14 +1,14 @@ export const tabs = [ { - label: '平台资源', + label: '平台', value: '平台' }, { - label: '校本资源', + label: '校本', value: '校本' }, { - label: '第三方资源', + label: '第三方', value: '第三方' }, ] @@ -57,18 +57,23 @@ export const resourceFormat = [ // 资源类型 export const resourceType = [ { - label: '素材', - value: '素材' + label: '课例库', + value: "'apt','课件','教案'" + }, + { + label: '作业库', + value: '作业', + disabled: true }, { - label: '课件', - value: '课件' + label: '素材库', + value: "'素材'" }, - { - label: '教案', - value: '教案' + label: '习题库', + value: '习题', + disabled: true } ] // 年级划分 diff --git a/src/renderer/src/views/desktop/container/work-trend.vue b/src/renderer/src/views/desktop/container/work-trend.vue index b9a77c6..5bc917c 100644 --- a/src/renderer/src/views/desktop/container/work-trend.vue +++ b/src/renderer/src/views/desktop/container/work-trend.vue @@ -1,54 +1,29 @@