This commit is contained in:
“zouyf” 2024-12-09 17:14:37 +08:00
parent f936e726c0
commit d90b7c695a
3 changed files with 1 additions and 18 deletions

View File

@ -185,7 +185,6 @@ const applyCanvasPresetScale = (value: number) => {
} }
const { const {
createTextElement,
createImageElement, createImageElement,
createChartElement, createChartElement,
createTableElement, createTableElement,
@ -201,14 +200,7 @@ const insertImageElement = (files: FileList) => {
} }
const onhtml2canvas = (imgbs64: string) => { const onhtml2canvas = (imgbs64: string) => {
//createImageElement(imgbs64) createImageElement(imgbs64)
console.log('imgbs64->',imgbs64)
createTextElement({
left: 200,
top: 200,
width: 500,
height: 500,
}, { content: imgbs64 })
} }
const shapePoolVisible = ref(false) const shapePoolVisible = ref(false)
@ -424,8 +416,3 @@ const imgVisible = ref(false)
} }
} }
</style> </style>
<style>
::v-deep {
@import "@/assets/styles/JYStyle.css";
}
</style>

View File

@ -439,9 +439,6 @@ const getPaginationList = ( page, limit ) => {
*/ */
const captureScreenshot = (id) => { const captureScreenshot = (id) => {
const targetElement = document.getElementById('screenshot-target-' + id); const targetElement = document.getElementById('screenshot-target-' + id);
emit('addQuizImgBs64', targetElement.outerHTML);
return;
html2canvas(targetElement).then(canvas => { html2canvas(targetElement).then(canvas => {
// canvasURL // canvasURL
const screenshotUrl = canvas.toDataURL('image/png'); const screenshotUrl = canvas.toDataURL('image/png');

View File

@ -34,7 +34,6 @@ import {getDept } from '@/api/login'
import { listEvaluation } from '@/api/subject/index' import { listEvaluation } from '@/api/subject/index'
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'
import {ElMessage} from 'element-plus' import {ElMessage} from 'element-plus'
import { clearBookInfo } from '@/utils/ruoyi'
import { sessionStore } from '@/utils/store' import { sessionStore } from '@/utils/store'
import {listClassmain} from '@/api/classManage/index' import {listClassmain} from '@/api/classManage/index'
// //