diff --git a/src/renderer/src/components/choose-textbook/experimentBook.vue b/src/renderer/src/components/choose-textbook/experimentBook.vue new file mode 100644 index 0000000..cf14940 --- /dev/null +++ b/src/renderer/src/components/choose-textbook/experimentBook.vue @@ -0,0 +1,333 @@ + + + + + + \ No newline at end of file diff --git a/src/renderer/src/utils/resourceDict.js b/src/renderer/src/utils/resourceDict.js index 07d1d44..9d42b3c 100644 --- a/src/renderer/src/utils/resourceDict.js +++ b/src/renderer/src/utils/resourceDict.js @@ -57,24 +57,31 @@ export const resourceFormat = [ // 资源类型 export const resourceType = [ { + id:1, label: '课例库', value: "'apt','课件','教案'" }, - { - label: '作业库', - value: '作业', - disabled: true - }, + // { + // label: '作业库', + // value: '作业', + // disabled: true + // }, { + id:2, label: '素材库', value: "'素材'" }, { - label: '习题库', - value: '习题', - disabled: true - } + id:3, + label: '实验室', + value: "'素材'" + }, + // { + // label: '习题库', + // value: '习题', + // disabled: true + // } ] // 年级划分 export const gradeList = [ diff --git a/src/renderer/src/views/resource/container/components/VideoLog.vue b/src/renderer/src/views/resource/container/components/VideoLog.vue new file mode 100644 index 0000000..3842f41 --- /dev/null +++ b/src/renderer/src/views/resource/container/components/VideoLog.vue @@ -0,0 +1,25 @@ + + + \ No newline at end of file diff --git a/src/renderer/src/views/resource/container/exper-list.vue b/src/renderer/src/views/resource/container/exper-list.vue new file mode 100644 index 0000000..96ce1ca --- /dev/null +++ b/src/renderer/src/views/resource/container/exper-list.vue @@ -0,0 +1,214 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/resource/container/resoure-search.vue b/src/renderer/src/views/resource/container/resoure-search.vue index 97c3bf2..a74fbbb 100644 --- a/src/renderer/src/views/resource/container/resoure-search.vue +++ b/src/renderer/src/views/resource/container/resoure-search.vue @@ -3,19 +3,21 @@ {{ item.label + :type="sourceStore.activeIndex == item.id ? 'primary' : ''" + @click="sourceStore.changeType(item)" :disabled="item.disabled">{{ item.label }} - - - - - - + @@ -34,22 +36,24 @@
- - - +
@@ -63,7 +67,10 @@ import {watch,ref,onMounted} from 'vue' import useResoureStore from '../store' import {coursewareTypeList} from '@/utils/resourceDict' +// 是否是第三方资源 const isThird = ref(false) +//判断是不是进入实验室 +const isExper = ref(false) const sourceStore = useResoureStore() // 防抖函数 const debounce = (fn, t) => { @@ -85,6 +92,9 @@ onMounted(() => { watch(() => sourceStore.query.fileSource,() => { sourceStore.query.fileSource === '第三方'?isThird.value = true:isThird.value = false }) +watch(() => sourceStore.query.orderByColumn,() => { + sourceStore.query.orderByColumn === 'uploadTime'?isExper.value = true:isExper.value = false +})