baigl #46

Merged
baigl merged 21 commits from baigl into main 2024-11-21 10:38:10 +08:00
2 changed files with 37 additions and 10 deletions
Showing only changes of commit b8224dedd8 - Show all commits

View File

@ -78,6 +78,7 @@
"mitt": "^3.0.1",
"nanoid": "^5.0.7",
"number-precision": "^1.6.0",
"vue-cropper": "1.0.3",
"pptxgenjs": "^3.12.0",
"pptxtojson": "^1.0.3",
"prosemirror-commands": "^1.6.0",

View File

@ -53,6 +53,8 @@
</template>
<script setup>
import { onMounted, ref,watch, reactive, getCurrentInstance,nextTick } from 'vue'
import "vue-cropper/dist/index.css";
import { VueCropper } from "vue-cropper";
import { ElMessage } from 'element-plus'
import { cloneDeep } from 'lodash'
@ -80,8 +82,32 @@ const courseObj = reactive({
//
})
const activeAptTab = ref("自主搜题");
const taskList = ref([]); //
const tasklist_loading = ref(false); //
// const taskList = ref([]); //
// const tasklist_loading = ref(false); //
// []
const cropOption = reactive({
img: '', // url , base64, blob
outputSize: 1, //
outputType: 'jpeg', // jpeg, png, webp
info: true, //
canScale: true, //
autoCrop: true, //
autoCropWidth: 1000, //
autoCropHeight: 600, //
fixedNumber: [1, 1], // [ , ]
fixedBox: false, //
fixed: false, // truefalse
canMove: true, //
canMoveBox: true, //
original: false, //
centerBox: true, //
infoTrue: true, // true false
maxImgSize: 3000, //
full: true, //
enlarge: '1', //
mode: 'contain', // contain , cover, 100px, 100% auto
})
onMounted(() => {
@ -101,14 +127,14 @@ onMounted(() => {
* 获取 entpcourseid 获取作业列表
*/
const initHomeWork = async()=> {
tasklist_loading.value = true;
// const { res, chapterId } = await useGetHomework(courseObj.node);
const { res, chapterId } = await useGetHomework(sessionStore.get('subject.curNode'));
console.log('entpcourseid', chapterId);
console.log('res', res);
// entpcourseid.value = chapterId;
taskList.value = res;
tasklist_loading.value = false;
// tasklist_loading.value = true;
// // const { res, chapterId } = await useGetHomework(courseObj.node);
// const { res, chapterId } = await useGetHomework(sessionStore.get('subject.curNode'));
// console.log('entpcourseid', chapterId);
// console.log('res', res);
// // entpcourseid.value = chapterId;
// taskList.value = res;
// tasklist_loading.value = false;
}