Compare commits

...

7 Commits

Author SHA1 Message Date
zouyf 34cfcf5a6f Merge pull request 'zouyf_dev' (#102) from zouyf_dev into main
Reviewed-on: #102
2024-12-10 11:10:55 +08:00
“zouyf” 9603406a0b 1 2024-12-10 11:09:32 +08:00
“zouyf” 10a7e73c64 Merge branch 'main' into zouyf_dev 2024-12-10 10:59:48 +08:00
“zouyf” 2c238b5706 1 2024-12-10 10:54:21 +08:00
“zouyf” b47feb4a3a 1 2024-12-10 10:46:22 +08:00
“zouyf” c79911cc99 Merge branch 'main' into zouyf_dev 2024-12-10 10:40:07 +08:00
“zouyf” 755cfc615a 试题分页查询回顶部 2024-12-10 10:39:39 +08:00
4 changed files with 18 additions and 9 deletions

View File

@ -163,7 +163,7 @@ import QuestToPPTist from '@/views/classTask/newClassTaskAssign/questToPPTist/in
import MaterialDialog from './MaterialDialog.vue' import MaterialDialog from './MaterialDialog.vue'
import { PPTApi } from '../../../api' import { PPTApi } from '../../../api'
import TextCreateImg from '@/components/ai-kolors/index.vue' import TextCreateImg from '@/components/ai-kolors/index.vue'
import { toPng, toJpeg } from 'html-to-image' // html-to-image import { toPng } from 'html-to-image' // html-to-image
const mainStore = useMainStore() const mainStore = useMainStore()
const { creatingElement, creatingCustomShape, showSelectPanel, showSearchPanel, showNotesPanel } = storeToRefs(mainStore) const { creatingElement, creatingCustomShape, showSelectPanel, showSearchPanel, showNotesPanel } = storeToRefs(mainStore)
@ -209,8 +209,7 @@ const insertImageElement = (files: FileList) => {
} }
const onhtml2canvas = async (html: HTMLElement) => { const onhtml2canvas = async (html: HTMLElement) => {
//createImageElement(imgbs64); const ele = await toPng(html);
const ele = await toPng(html)
createImageElement(ele); createImageElement(ele);
} }

View File

@ -949,11 +949,11 @@ const showExamAnalyseDrawer = (row) => {
} }
const tableRef = ref(); const tableRef = ref();
const getPaginationList = ( page, limit ) => { const getPaginationList = async ( page, limit ) => {
paginationParams.pageNum = page; paginationParams.pageNum = page;
paginationParams.pageSize = limit; paginationParams.pageSize = limit;
//console.log(page, limit) //console.log(page, limit)
handleQueryFromEntpCourseWork(0); await handleQueryFromEntpCourseWork(0);
// //
tableRef.value.setScrollTop(0); tableRef.value.setScrollTop(0);
} }

View File

@ -49,6 +49,7 @@
:data="workResource.entpCourseWorkList" :data="workResource.entpCourseWorkList"
style="width: 100%; height: calc(100% - 55px);" style="width: 100%; height: calc(100% - 55px);"
v-loading="pageParams.loading" v-loading="pageParams.loading"
ref="tableRef"
> >
<el-table-column type="index" width="60" /> <el-table-column type="index" width="60" />
<el-table-column align="left" > <el-table-column align="left" >
@ -364,11 +365,15 @@ const showExamAnalyseDrawer = (row) => {
proxy.$refs.examDetailsDrawerRef.acceptParams(activeParams); proxy.$refs.examDetailsDrawerRef.acceptParams(activeParams);
}) })
} }
const getPaginationList = ( page, limit ) => {
const tableRef = ref();
const getPaginationList = async ( page, limit ) => {
paginationParams.pageNum = page; paginationParams.pageNum = page;
paginationParams.pageSize = limit; paginationParams.pageSize = limit;
console.log(page, limit) console.log(page, limit)
handleQueryFromEntpCourseWork(0); await handleQueryFromEntpCourseWork(0);
//
tableRef.value.setScrollTop(0);
} }
/** 单题上传弹出框----纠错修改框 */ /** 单题上传弹出框----纠错修改框 */

View File

@ -62,6 +62,7 @@
:data="workResource.entpCourseWorkList" :data="workResource.entpCourseWorkList"
style="width: 100%; height: calc(100% - 50px);" style="width: 100%; height: calc(100% - 50px);"
v-loading="pageParams.loading" v-loading="pageParams.loading"
ref="tableRef"
> >
<el-table-column type="index" width="60" /> <el-table-column type="index" width="60" />
<el-table-column align="left" > <el-table-column align="left" >
@ -396,11 +397,15 @@ const showExamAnalyseDrawer = (row) => {
proxy.$refs.examDetailsDrawerRef.acceptParams(activeParams); proxy.$refs.examDetailsDrawerRef.acceptParams(activeParams);
}) })
} }
const getPaginationList = ( page, limit ) => {
const tableRef = ref();
const getPaginationList = async ( page, limit ) => {
paginationParams.pageNum = page; paginationParams.pageNum = page;
paginationParams.pageSize = limit; paginationParams.pageSize = limit;
console.log(page, limit) console.log(page, limit)
handleQueryFromEntpCourseWork(0); await handleQueryFromEntpCourseWork(0);
//
tableRef.value.setScrollTop(0);
} }