Compare commits
No commits in common. "c2a4f2c70876444f2eb77a96ab198d1663d4c7a1" and "546c8ad72fb50d8a1ee2137bd4f0e66e9844224b" have entirely different histories.
c2a4f2c708
...
546c8ad72f
|
@ -33,7 +33,6 @@ export default defineConfig({
|
||||||
proxy: {
|
proxy: {
|
||||||
'/dev-api': {
|
'/dev-api': {
|
||||||
target: 'http://27.128.240.72:7865',
|
target: 'http://27.128.240.72:7865',
|
||||||
// target: 'https://prev.ysaix.com:7868/prod-api/',
|
|
||||||
// target: 'http://36.134.181.164:7863',
|
// target: 'http://36.134.181.164:7863',
|
||||||
// target: 'http://192.168.0.102:7865',
|
// target: 'http://192.168.0.102:7865',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "aix-win-ws",
|
"name": "aix-win-ws",
|
||||||
"version": "2.5.6",
|
"version": "2.5.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "上海交大重庆人工智能研究院",
|
"author": "上海交大重庆人工智能研究院",
|
||||||
|
|
|
@ -28,8 +28,8 @@ import msgUtils from '@/plugins/modal' // 消息工具
|
||||||
import * as API_entpcoursefile from '@/api/education/entpcoursefile' // 相关api
|
import * as API_entpcoursefile from '@/api/education/entpcoursefile' // 相关api
|
||||||
import { PPTApi } from './api'
|
import { PPTApi } from './api'
|
||||||
import { sessionStore } from '@/utils/store' // electron-store 状态管理
|
import { sessionStore } from '@/utils/store' // electron-store 状态管理
|
||||||
|
// import './api/watcher' // 监听
|
||||||
import watcher from './api/watcher' // 监听
|
import watcher from './api/watcher' // 监听
|
||||||
import emitter from '@/utils/mitt' //mitt 事件总线
|
|
||||||
watcher() // 监听启动
|
watcher() // 监听启动
|
||||||
const loading = ref(true)
|
const loading = ref(true)
|
||||||
const _isPC = isPC()
|
const _isPC = isPC()
|
||||||
|
@ -74,8 +74,6 @@ const initLoad: Function = () => {
|
||||||
!!(opt.ratio??null) && slidesStore.setViewportRatio(opt.ratio)// 有比例配置项
|
!!(opt.ratio??null) && slidesStore.setViewportRatio(opt.ratio)// 有比例配置项
|
||||||
}
|
}
|
||||||
return PPTApi.getSlideList(resource.id)
|
return PPTApi.getSlideList(resource.id)
|
||||||
// PPTApi.updateWorkList()
|
|
||||||
// return Promise.resolve()
|
|
||||||
}
|
}
|
||||||
return Promise.resolve()
|
return Promise.resolve()
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { sessionStore } from '@/utils/store' // electron-store 状态管理
|
||||||
import * as useStore from '../store' // pptist-状态管理
|
import * as useStore from '../store' // pptist-状态管理
|
||||||
import ChatWs from '@/plugins/socket' // 聊天socket
|
import ChatWs from '@/plugins/socket' // 聊天socket
|
||||||
import msgUtils from '@/plugins/modal' // 消息工具
|
import msgUtils from '@/plugins/modal' // 消息工具
|
||||||
|
import * as Fullscreen from '../utils/fullscreen' // 全屏
|
||||||
import useExecPlay from '../views/Screen/hooks/useExecPlay' // 播放控制
|
import useExecPlay from '../views/Screen/hooks/useExecPlay' // 播放控制
|
||||||
|
|
||||||
const slidesStore = useStore.useSlidesStore() // 幻灯片-状态管理
|
const slidesStore = useStore.useSlidesStore() // 幻灯片-状态管理
|
||||||
|
@ -30,9 +31,10 @@ export class Classcourse {
|
||||||
console.log('classcourse-load', classcourse)
|
console.log('classcourse-load', classcourse)
|
||||||
// 打开全屏
|
// 打开全屏
|
||||||
const isCourse = !!classcourse
|
const isCourse = !!classcourse
|
||||||
|
if (isCourse) Fullscreen.enterFullscreen()
|
||||||
screenStore.setScreening(isCourse)
|
screenStore.setScreening(isCourse)
|
||||||
// 如果课堂信息有值,则连接socket
|
// 如果课堂信息有值,则连接socket
|
||||||
if (isCourse) {
|
if (!!classcourse) {
|
||||||
// 连接socket
|
// 连接socket
|
||||||
if (!ChatWs.ws) ChatWs.init()
|
if (!ChatWs.ws) ChatWs.init()
|
||||||
ChatWs.id = classcourse.timgroupid // 群组id
|
ChatWs.id = classcourse.timgroupid // 群组id
|
||||||
|
|
|
@ -3,18 +3,16 @@
|
||||||
* @author zdg
|
* @author zdg
|
||||||
* @date 2024-11-26
|
* @date 2024-11-26
|
||||||
*/
|
*/
|
||||||
import { toRaw, nextTick } from 'vue'
|
import { toRaw } from 'vue'
|
||||||
import type { Result } from './types' // 接口类型
|
import type { Result } from './types' // 接口类型
|
||||||
import msgUtils from '@/plugins/modal' // 消息工具
|
import msgUtils from '@/plugins/modal' // 消息工具
|
||||||
import * as API_entpcoursefile from '@/api/education/entpcoursefile' // 相关api
|
import * as API_entpcoursefile from '@/api/education/entpcoursefile' // 相关api
|
||||||
import * as API_smarttalk from '@/api/file' // 相关api
|
import * as API_smarttalk from '@/api/file' // 相关api
|
||||||
import * as API_classwork from '@/api/teaching/classwork' // 相关api
|
|
||||||
import * as useStore from '../store' // pptist-状态管理
|
import * as useStore from '../store' // pptist-状态管理
|
||||||
import { sessionStore } from '@/utils/store' // electron-store 状态管理
|
import { sessionStore } from '@/utils/store' // electron-store 状态管理
|
||||||
import useUserStore from '@/store/modules/user' // 外部-用户信息
|
import useUserStore from '@/store/modules/user' // 外部-用户信息
|
||||||
import * as Api_server from '@/api/apiService' // 相关api
|
import * as Api_server from '@/api/apiService' // 相关api
|
||||||
import * as commUtils from '@/utils/comm.js' // 工具
|
import * as commUtils from '@/utils/comm.js'
|
||||||
import { toPng, toJpeg } from 'html-to-image' // 引入html-to-image库
|
|
||||||
const slidesStore = useStore.useSlidesStore()
|
const slidesStore = useStore.useSlidesStore()
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
|
@ -77,14 +75,12 @@ export class PPTApi {
|
||||||
slidesStore.setSlides(slides) // 写入数据
|
slidesStore.setSlides(slides) // 写入数据
|
||||||
}
|
}
|
||||||
// 活动列表处理
|
// 活动列表处理
|
||||||
// const workList = (res.rows || []).map(o => o.activityContent)
|
const workList = (res.rows || []).map(o => o.activityContent)
|
||||||
const workItem = res.rows ? [...res.rows] : []
|
const workItem = res.rows ? [...res.rows] : []
|
||||||
// 写入作业列表数据
|
// 写入作业列表数据
|
||||||
// slidesStore.setWorkList(workList)
|
slidesStore.setWorkList(workList)
|
||||||
// 获取所有的pptlist的数据
|
// 获取所有的pptlist的数据
|
||||||
slidesStore.setWorkItem(workItem)
|
slidesStore.setWorkItem(workItem)
|
||||||
|
|
||||||
this.updateWorkList()
|
|
||||||
resolve(true)
|
resolve(true)
|
||||||
} else msgUtils.msgError(res.msg || '获取数据失败');resolve(false)
|
} else msgUtils.msgError(res.msg || '获取数据失败');resolve(false)
|
||||||
})
|
})
|
||||||
|
@ -137,9 +133,6 @@ export class PPTApi {
|
||||||
|
|
||||||
const currentSlide = toRaw(slidesStore.currentSlide)
|
const currentSlide = toRaw(slidesStore.currentSlide)
|
||||||
const isAdd = !/^\d+$/.test(currentSlide.id) // 是否新增
|
const isAdd = !/^\d+$/.test(currentSlide.id) // 是否新增
|
||||||
const currInd = toRaw(slidesStore.slideIndex) // 当前页索引-new
|
|
||||||
const oldInd = oldData.findIndex(o => o.id == currentSlide.id) // 当前页索引-old
|
|
||||||
const isBatch = oldVal && oldVal.length && currInd != oldInd // 是否批量更新-排序
|
|
||||||
if (isAdd) { // 新增的幻灯片(id 为非数字,说明是新增的幻灯片)
|
if (isAdd) { // 新增的幻灯片(id 为非数字,说明是新增的幻灯片)
|
||||||
const bool = await this.addSlide(currentSlide)
|
const bool = await this.addSlide(currentSlide)
|
||||||
bool && await this.batchUpdateSlides(newData, true) // 批量更新-排序
|
bool && await this.batchUpdateSlides(newData, true) // 批量更新-排序
|
||||||
|
@ -147,24 +140,16 @@ export class PPTApi {
|
||||||
await PPTApi.getSlideList(resource.id)
|
await PPTApi.getSlideList(resource.id)
|
||||||
} else { // 防抖-更新
|
} else { // 防抖-更新
|
||||||
if (!this.isUpdate) return this.isUpdate = true // 下次更新数据
|
if (!this.isUpdate) return this.isUpdate = true // 下次更新数据
|
||||||
if (isBatch) { // 批量更新-排序
|
const params = {
|
||||||
this.batchUpdateSlides(newData, true)
|
id: currentSlide.id,
|
||||||
} else { // 更新当前页幻灯片
|
datacontent: JSON.stringify(currentSlide),
|
||||||
const params = {
|
|
||||||
id: currentSlide.id,
|
|
||||||
datacontent: JSON.stringify(currentSlide),
|
|
||||||
}
|
|
||||||
Utils.mxThrottle(() => {this.updateSlide(params)}, 200, 2)
|
|
||||||
}
|
}
|
||||||
|
Utils.mxThrottle(() => {this.updateSlide(params)}, 200, 2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 更新幻灯片 isThum 是否更新缩略图
|
// 更新幻灯片
|
||||||
static updateSlide(data: object, isThum = true): Promise<Boolean> {
|
static updateSlide(data: object): Promise<Boolean> {
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
if (isThum) { // 更新缩略图
|
|
||||||
const thumUrl = await this.getSlideThumUrl()
|
|
||||||
data.base64Code = thumUrl // 更新缩略图
|
|
||||||
}
|
|
||||||
const res: Result = await API_entpcoursefile.updateEntpcoursefileNew(data)
|
const res: Result = await API_entpcoursefile.updateEntpcoursefileNew(data)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
resolve(true)
|
resolve(true)
|
||||||
|
@ -208,42 +193,6 @@ export class PPTApi {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新-活动列表
|
|
||||||
static async updateWorkList(): Promise<Boolean> {
|
|
||||||
const resolveData = (resolve, data = []) => {
|
|
||||||
slidesStore.setWorkList(data)
|
|
||||||
return resolve()
|
|
||||||
}
|
|
||||||
return new Promise(async (resolve, reject) => {
|
|
||||||
const workItem = slidesStore.workItem // 所有的pptlist的数据-原始数据
|
|
||||||
const currentSlide = slidesStore.currentSlide // 当前页幻灯片
|
|
||||||
const slideId = currentSlide.id // 当前页幻灯片id
|
|
||||||
if (!slideId) return resolveData(resolve)
|
|
||||||
// slide详情获取-作业id
|
|
||||||
// const res = await API_entpcoursefile.getEntpcoursefile(slideId)
|
|
||||||
// const workIds = res?.data?.activityContent||''
|
|
||||||
// workItem-获取作业id
|
|
||||||
const workIds = workItem.find(o => o.id == slideId)?.activityContent
|
|
||||||
if (!workIds) return resolveData(resolve)
|
|
||||||
// 获取作业列表
|
|
||||||
const resW = await API_classwork.homeworklist({ ids: workIds, pageSize: 1000 })
|
|
||||||
if (resW && resW.rows) return resolveData(resolve, resW.rows)
|
|
||||||
else msgUtils.msgError(resW.msg || '更新失败');return resolveData(resolve)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// thumbnail-slide thumbnail 缩略图
|
|
||||||
static getSlideThumUrl(): Promise<Boolean> {
|
|
||||||
return nextTick().then(async() => {
|
|
||||||
const slideIndex = slidesStore.slideIndex
|
|
||||||
const elements = document.querySelectorAll('.thumbnail-slide')
|
|
||||||
if (elements.length && slideIndex >= 0) {
|
|
||||||
const element = elements[slideIndex]
|
|
||||||
return await toPng(element)
|
|
||||||
}
|
|
||||||
return null
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 图片|音频|视频 转换为在线地址
|
// 图片|音频|视频 转换为在线地址
|
||||||
static toRousrceUrl =async (o:any) => {
|
static toRousrceUrl =async (o:any) => {
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
|
@ -254,7 +203,8 @@ export class PPTApi {
|
||||||
url &&(o.src = url)
|
url &&(o.src = url)
|
||||||
return url
|
return url
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Homework{
|
export class Homework{
|
||||||
|
|
|
@ -7,13 +7,13 @@ import msgUtils from '@/plugins/modal' // 消息工具
|
||||||
import * as API_entpcoursefile from '@/api/education/entpcoursefile' // 相关api
|
import * as API_entpcoursefile from '@/api/education/entpcoursefile' // 相关api
|
||||||
|
|
||||||
export default class {
|
export default class {
|
||||||
// 删除幻灯片
|
// 删除幻灯片
|
||||||
static delSlide(id: string): Promise<Boolean> {
|
static delSlide(id: string): Promise<Boolean> {
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
const res: Result = await API_entpcoursefile.delEntpcoursefile(id)
|
const res: Result = await API_entpcoursefile.delEntpcoursefile(id)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
resolve(true)
|
resolve(true)
|
||||||
} else msgUtils.msgError(res.msg || '删除失败');resolve(false)
|
} else msgUtils.msgError(res.msg || '删除失败');resolve(false)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -35,11 +35,6 @@ export default () => {
|
||||||
updatePPT({title: newVal})
|
updatePPT({title: newVal})
|
||||||
})
|
})
|
||||||
|
|
||||||
// 监听幻灯片下标变化
|
|
||||||
watch(() => slidesStore.slideIndex, (newVal, oldVal) => {
|
|
||||||
PPTApi.updateWorkList()
|
|
||||||
})
|
|
||||||
|
|
||||||
// 消息监听ws
|
// 消息监听ws
|
||||||
// console.log('监听器已开启', ChatWs)
|
// console.log('监听器已开启', ChatWs)
|
||||||
if (!!ChatWs.ws) {
|
if (!!ChatWs.ws) {
|
||||||
|
@ -91,8 +86,8 @@ export default () => {
|
||||||
case MsgEnum.HEADS.MSG_slideFlapping: // 幻灯片翻页
|
case MsgEnum.HEADS.MSG_slideFlapping: // 幻灯片翻页
|
||||||
const slideIndex = content?.current || 0
|
const slideIndex = content?.current || 0
|
||||||
const type = content?.animation
|
const type = content?.animation
|
||||||
if (type === 'Nextsteps') emitter.emit('useExecPlay', 'execNext') // 下一步
|
if (type === 'Nextsteps') execPlay.execNext() // 下一步
|
||||||
else if (type === 'Previoustep') emitter.emit('useExecPlay', 'turnPrevSlide') // 上一步清空-动画
|
else if (type === 'Previoustep') execPlay.execPrev() // 上一步
|
||||||
else slidesStore.updateSlideIndex(slideIndex) // 更新幻灯片下标
|
else slidesStore.updateSlideIndex(slideIndex) // 更新幻灯片下标
|
||||||
break
|
break
|
||||||
case MsgEnum.HEADS.MSG_homework: // 作业|活动-布置
|
case MsgEnum.HEADS.MSG_homework: // 作业|活动-布置
|
||||||
|
|
|
@ -151,9 +151,9 @@ export const useSlidesStore = defineStore('slides', {
|
||||||
for (const slide of slides) {
|
for (const slide of slides) {
|
||||||
if (slide.sectionTag) delete slide.sectionTag
|
if (slide.sectionTag) delete slide.sectionTag
|
||||||
}
|
}
|
||||||
const addIndex = this.slideIndex + 1
|
// const addIndex = this.slideIndex + 1
|
||||||
this.slides.splice(addIndex, 0, ...slides)
|
this.slides.splice(this.slideIndex, 0, ...slides)
|
||||||
this.slideIndex = addIndex
|
// this.slideIndex = addIndex
|
||||||
},
|
},
|
||||||
updateSlide(props: Partial<Slide>, slideId?: string) {
|
updateSlide(props: Partial<Slide>, slideId?: string) {
|
||||||
const slideIndex = slideId ? this.slides.findIndex(item => item.id === slideId) : this.slideIndex
|
const slideIndex = slideId ? this.slides.findIndex(item => item.id === slideId) : this.slideIndex
|
||||||
|
|
|
@ -32,22 +32,22 @@
|
||||||
<!-- 作业列表 -->
|
<!-- 作业列表 -->
|
||||||
<div class="c-apt-r" v-loading='loadingActive'>
|
<div class="c-apt-r" v-loading='loadingActive'>
|
||||||
<!-- 显示-作业内容 -->
|
<!-- 显示-作业内容 -->
|
||||||
<template v-for="(item, index) in slidesStore.workList" :key="index">
|
<template v-for="(item, index) in workList" :key="index">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="item-title">
|
<div class="item-title">
|
||||||
<el-tag :type="getTagType(item.worktype) || 'primary'">{{item.worktype}}</el-tag>
|
<el-tag :type="getTagType(item.worktype) || 'primary'">{{item.worktype}}</el-tag>
|
||||||
<el-tooltip :content="item.uniquekey" placement="top">
|
<el-tooltip :content="item.uniquekey" placement="top">
|
||||||
<div class="tt">{{item.uniquekey}}</div>
|
<div class="tt">{{item.uniquekey}}</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-button class="btn-del" type="danger" link @click="removeWork(item, index)">删除</el-button>
|
<el-button class="btn-del" type="danger" link @click="handleRemoveDemoActivityClassWork(item)">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<!-- // 推送作业 -->
|
<!-- // 推送作业 -->
|
||||||
<el-dialog v-model="dialogVisible" append-to-body :show-close="false" width="85%" height="500">
|
<el-dialog v-model="dialogVisible" append-to-body :show-close="false" width="90%" height="500">
|
||||||
<el-scrollbar>
|
<el-scrollbar height="550">
|
||||||
<div style="height: 75vh;">
|
<div style="height: 550px;">
|
||||||
<NewClassTsakAssign :currentCourse='currentCourse' @getData="getData" />
|
<NewClassTsakAssign :currentCourse='currentCourse' @getData="getData" />
|
||||||
</div>
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
@ -80,13 +80,21 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, onMounted, nextTick, watch } from 'vue'
|
import { ref, reactive, onMounted, nextTick, watch } from 'vue'
|
||||||
import Divider from '../../../../../components/Divider.vue'
|
import Divider from '../../../../../components/Divider.vue'
|
||||||
|
import { listEntpcoursefile } from '@/api/education/entpcoursefile'
|
||||||
|
import { homeworklist } from '@/api/teaching/classwork'
|
||||||
|
import { processList } from "@/hooks/useProcessList";
|
||||||
|
import { listEntpcoursework } from "@/api/classTask/index";
|
||||||
import { ElMessageBox,ElMessage } from 'element-plus'
|
import { ElMessageBox,ElMessage } from 'element-plus'
|
||||||
import NewClassTsakAssign from '@/views/classTask/newClassTaskAssign/index.vue'
|
import NewClassTsakAssign from '@/views/classTask/newClassTaskAssign/index.vue'
|
||||||
import { sessionStore } from '@/utils/store'
|
import { sessionStore } from '@/utils/store'
|
||||||
import { useGetHomework } from '@/hooks/useGetHomework'
|
import { useGetHomework } from '@/hooks/useGetHomework'
|
||||||
import { PPTApi } from '../../../../../api/index'
|
import { PPTApi } from '../../../../../api/index'
|
||||||
|
import { storeToRefs } from 'pinia'
|
||||||
import {useSlidesStore} from '../../../../../store'
|
import {useSlidesStore} from '../../../../../store'
|
||||||
|
import { updateEntpcoursefileNew } from '@/api/education/entpcoursefile'
|
||||||
const slidesStore = useSlidesStore()
|
const slidesStore = useSlidesStore()
|
||||||
|
const { slides, slideIndex, currentSlide, workItem } = storeToRefs(slidesStore)
|
||||||
|
|
||||||
interface CourseNode {
|
interface CourseNode {
|
||||||
rootid: number;
|
rootid: number;
|
||||||
parentNode: { id: number };
|
parentNode: { id: number };
|
||||||
|
@ -104,6 +112,12 @@ interface CurrentCourse {
|
||||||
worktype: string;
|
worktype: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Params {
|
||||||
|
parentid: number;
|
||||||
|
pageSize: number;
|
||||||
|
orderby: string;
|
||||||
|
}
|
||||||
|
|
||||||
interface WorkType {
|
interface WorkType {
|
||||||
label: string;
|
label: string;
|
||||||
value: string;
|
value: string;
|
||||||
|
@ -160,27 +174,63 @@ const type = ref<WorkType[]>([
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
|
const objItem = ref<any>({})
|
||||||
|
// 作业列表
|
||||||
|
const workList = ref<WorkItem[]>([])
|
||||||
|
|
||||||
// 获取所选择的作业列表
|
// 获取所选择的作业列表
|
||||||
const selectedWorkList = ref<WorkItem[]>([])
|
const selectedWorkList = ref<WorkItem[]>([])
|
||||||
// 活动页面的loading框
|
// 活动页面的loading框
|
||||||
const loadingActive = ref<boolean>(false)
|
const loadingActive = ref<boolean>(false)
|
||||||
|
|
||||||
// 选择活动列表
|
|
||||||
|
const paramData = ref<{ id: number, activityContent: string }>({} as { id: number, activityContent: string })
|
||||||
|
|
||||||
const selectable = (row: WorkItem, index: number): boolean => {
|
const selectable = (row: WorkItem, index: number): boolean => {
|
||||||
return row.status === '10';
|
return row.status === '10';
|
||||||
};
|
};
|
||||||
|
|
||||||
// 删除作业
|
|
||||||
const removeWork = (item: WorkItem, index: number) => {
|
const formatClassWorkFile = async (postData: WorkItem[]): Promise<void> => {
|
||||||
|
for (let i = 0; i < postData.length; i++) {
|
||||||
|
let item = postData[i];
|
||||||
|
switch (item.worktype) {
|
||||||
|
case '框架梳理': {
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case '习题训练': {
|
||||||
|
// let workIds = item.quizlist!.map(items => items.id).join(',');
|
||||||
|
// let ress = await listEntpcoursework({ ids: workIds });
|
||||||
|
// const arr = ress.rows.map((item:{id:number}) => {
|
||||||
|
// return item.id
|
||||||
|
// })
|
||||||
|
|
||||||
|
// processList(ress.rows);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case '课堂展示': {
|
||||||
|
// item.base64 = JSON.parse(item.workcodes).base64;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case '常规作业': {
|
||||||
|
// item.prevData = JSON.parse(item.workcodes);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
workList.value.push(item)
|
||||||
|
loadingActive.value = false
|
||||||
|
}
|
||||||
|
await nextTick();
|
||||||
|
}// 删除作业
|
||||||
|
const handleRemoveDemoActivityClassWork = (item: WorkItem) => {
|
||||||
ElMessageBox.confirm('是否确认删除?')
|
ElMessageBox.confirm('是否确认删除?')
|
||||||
.then(async() => {
|
.then(() => {
|
||||||
// 从workList中删除
|
workList.value = []
|
||||||
// slidesStore.workList.splice(index, 1)
|
const arr = paramData.value.activityContent.split(',')
|
||||||
console.log('删除作业', item)
|
const filterArr = arr.filter(itemId => itemId!== item.id.toString())
|
||||||
await upDateData('del', [item.id])
|
paramData.value.activityContent = filterArr.join(',')
|
||||||
ElMessage.success('删除成功')
|
upDateData()
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => { });
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取tag的样式
|
// 获取tag的样式
|
||||||
|
@ -207,7 +257,6 @@ const showDialog = (item: string) => {
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 打开活动引用列表
|
|
||||||
const openList = () => {
|
const openList = () => {
|
||||||
activeVisible.value = true
|
activeVisible.value = true
|
||||||
initHomeWork()
|
initHomeWork()
|
||||||
|
@ -215,44 +264,65 @@ const openList = () => {
|
||||||
|
|
||||||
// 添加活动引用列表作业
|
// 添加活动引用列表作业
|
||||||
const savePPtData = async () => {
|
const savePPtData = async () => {
|
||||||
if (!selectedWorkList.value.length) {
|
if (selectedWorkList.value.length === 0) {
|
||||||
ElMessage.warning('请选择活动')
|
ElMessage.warning('请选择活动')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const arr = selectedWorkList.value.map(item => item.id)
|
workList.value = []
|
||||||
await upDateData('add', arr)
|
const arr = selectedWorkList.value.map(item => item.id)
|
||||||
activeVisible.value = false
|
// 应该是新加而不是覆盖
|
||||||
|
const existingIds = paramData.value.activityContent ? paramData.value.activityContent.split(',') : []
|
||||||
|
paramData.value.activityContent = Array.from(new Set([...existingIds, ...arr])).join(',')
|
||||||
|
upDateData()
|
||||||
|
activeVisible.value = false
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取当前ppt页的数据
|
||||||
|
const getCurrentPPtData = async () => {
|
||||||
|
workList.value = []
|
||||||
|
objItem.value = workItem.value[slideIndex.value]
|
||||||
|
paramData.value.id = objItem.value.id
|
||||||
|
|
||||||
|
paramData.value.activityContent = objItem.value?.activityContent
|
||||||
|
if (objItem.value?.activityContent) {
|
||||||
|
loadingActive.value = true
|
||||||
|
const res = await homeworklist({ ids: objItem.value?.activityContent, pageSize: 100 })
|
||||||
|
await formatClassWorkFile(res.rows)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 接收习题训练的值
|
// 接收习题训练的值
|
||||||
const getData = async (data: WorkItem) => {
|
const getData = async (data: WorkItem) => {
|
||||||
await upDateData('add', [data.id])
|
workList.value = []
|
||||||
dialogVisible.value = false
|
if(paramData.value.activityContent){
|
||||||
}
|
const arr = paramData.value.activityContent.split(',')
|
||||||
// 更新数据-活动 type add/增加 | del/删除 ids 作业id
|
arr.push(data.id.toString())
|
||||||
const upDateData = (type: string, ids: number[]): Promise<any> => {
|
const unitArr = Array.from(new Set(arr))
|
||||||
return new Promise(async (resolve, reject) => {
|
paramData.value.activityContent = unitArr.join(',')
|
||||||
loadingActive.value = true
|
}else{
|
||||||
// 更新本地数据
|
paramData.value.activityContent = data.id.toString()
|
||||||
let workIds = slidesStore.workList.map((o:any) => o.id)
|
|
||||||
const id = slidesStore.currentSlide.id
|
|
||||||
if (type === 'del') { // 删除
|
|
||||||
workIds = workIds.filter(id => !ids.includes(id))
|
|
||||||
} else { // 增加
|
|
||||||
workIds = Array.from(new Set([...workIds, ...ids]))
|
|
||||||
}
|
}
|
||||||
// 保存到本地
|
upDateData()
|
||||||
const wItem:any = slidesStore.workItem.find((o:any) => o.id === id)
|
dialogVisible.value = false
|
||||||
const workIdsStr = workIds.join(',') // 作业id->字符串
|
}
|
||||||
if (!!wItem) wItem.activityContent = workIdsStr
|
const upDateData = async () => {
|
||||||
const data = { id, activityContent: workIdsStr }
|
loadingActive.value = true
|
||||||
// 修改数据库
|
await PPTApi.updateSlide(paramData.value)
|
||||||
await PPTApi.updateSlide(data, false)
|
// await updateEntpcoursefileNew(paramData.value)
|
||||||
// 刷新活动列表
|
const resource = sessionStore.get('curr.resource')
|
||||||
await PPTApi.updateWorkList()
|
await PPTApi.getSlideList(resource.id)
|
||||||
loadingActive.value = false
|
const res = await homeworklist({ ids: paramData.value.activityContent, pageSize: 100 })
|
||||||
resolve(true)
|
await formatClassWorkFile(res.rows)
|
||||||
})
|
}
|
||||||
|
// 判断是否做操作
|
||||||
|
const objectsAreEqual = (obj1: Record<string, any>, obj2: Record<string, any>) => {
|
||||||
|
const keys1 = Object.keys(obj1);
|
||||||
|
const keys2 = Object.keys(obj2);
|
||||||
|
if (keys1.length !== keys2.length) return false;
|
||||||
|
for (const key of keys1) {
|
||||||
|
if (obj1[key] !== obj2[key]) return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -262,8 +332,16 @@ onMounted(() => {
|
||||||
currentCourse.levelSecondId = curNode.id
|
currentCourse.levelSecondId = curNode.id
|
||||||
currentCourse.coursetitle = curNode.itemtitle
|
currentCourse.coursetitle = curNode.itemtitle
|
||||||
currentCourse.node = curNode
|
currentCourse.node = curNode
|
||||||
|
objItem.value = workItem.value[slideIndex.value]
|
||||||
|
getCurrentPPtData()
|
||||||
})
|
})
|
||||||
|
watch(() => [workItem.value.length,slideIndex.value], (newVal,oldVal) => {
|
||||||
|
if(!objectsAreEqual(newVal,oldVal))
|
||||||
|
getCurrentPPtData()
|
||||||
|
})
|
||||||
|
// watch(() => workItem.value.length, () => {
|
||||||
|
// getCurrentPPtData()
|
||||||
|
// })
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.buttonDiv{
|
.buttonDiv{
|
||||||
|
|
|
@ -100,6 +100,7 @@ const {
|
||||||
execNext,
|
execNext,
|
||||||
animationIndex,
|
animationIndex,
|
||||||
} = useExecPlay()
|
} = useExecPlay()
|
||||||
|
|
||||||
const { slideWidth, slideHeight } = useSlideSize()
|
const { slideWidth, slideHeight } = useSlideSize()
|
||||||
const { exitScreening } = useScreening()
|
const { exitScreening } = useScreening()
|
||||||
const { fullscreenState, manualExitFullscreen } = useFullscreen()
|
const { fullscreenState, manualExitFullscreen } = useFullscreen()
|
||||||
|
@ -196,37 +197,6 @@ const contextmenus = (): ContextmenuItem[] => {
|
||||||
emitter.on('upvoteTrigger', (type) => {
|
emitter.on('upvoteTrigger', (type) => {
|
||||||
upvoteRef.value?.trigger(type)
|
upvoteRef.value?.trigger(type)
|
||||||
});
|
});
|
||||||
// zdg: 使用方法才生效
|
|
||||||
const execPlay = {
|
|
||||||
autoPlayTimer,
|
|
||||||
autoPlay,
|
|
||||||
closeAutoPlay,
|
|
||||||
autoPlayInterval,
|
|
||||||
setAutoPlayInterval,
|
|
||||||
loopPlay,
|
|
||||||
setLoopPlay,
|
|
||||||
mousewheelListener,
|
|
||||||
touchStartListener,
|
|
||||||
touchEndListener,
|
|
||||||
turnPrevSlide,
|
|
||||||
turnNextSlide,
|
|
||||||
turnSlideToIndex,
|
|
||||||
turnSlideToId,
|
|
||||||
execPrev,
|
|
||||||
execNext,
|
|
||||||
animationIndex,
|
|
||||||
}
|
|
||||||
emitter.on('useExecPlay', (data: string|any) => {
|
|
||||||
if (!data) throw new Error('参数错误')
|
|
||||||
if (typeof data === 'string') { // 字符串
|
|
||||||
if (execPlay[data]) execPlay[data]()
|
|
||||||
else throw new Error('方法不存在')
|
|
||||||
} else { // 对象
|
|
||||||
const { method, ...params } = data || {}
|
|
||||||
if (execPlay[method]) execPlay[method](...params)
|
|
||||||
else throw new Error('方法不存在')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -174,8 +174,9 @@ export default () => {
|
||||||
|
|
||||||
// 鼠标滚动翻页
|
// 鼠标滚动翻页
|
||||||
const mousewheelListener = throttle(function(e: WheelEvent) {
|
const mousewheelListener = throttle(function(e: WheelEvent) {
|
||||||
if (e.deltaY < 0) turning(e, 'prev')
|
e.preventDefault() // 阻止默认事件
|
||||||
else if (e.deltaY > 0) turning(e, 'next')
|
if (e.deltaY < 0) execPrev()
|
||||||
|
else if (e.deltaY > 0) execNext()
|
||||||
}, 500, { leading: true, trailing: false })
|
}, 500, { leading: true, trailing: false })
|
||||||
|
|
||||||
// 触摸屏上下滑动翻页
|
// 触摸屏上下滑动翻页
|
||||||
|
@ -196,28 +197,24 @@ export default () => {
|
||||||
const offsetY = e.changedTouches[0].clientY - touchInfo.value.y
|
const offsetY = e.changedTouches[0].clientY - touchInfo.value.y
|
||||||
if ( Math.abs(offsetY) > offsetX && Math.abs(offsetY) > 50 ) {
|
if ( Math.abs(offsetY) > offsetX && Math.abs(offsetY) > 50 ) {
|
||||||
touchInfo.value = null
|
touchInfo.value = null
|
||||||
if (offsetY > 0) turning(e, 'prev')
|
if (offsetY > 0) execPrev()
|
||||||
else turning(e, 'next')
|
else execNext()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 向上翻页/向下翻页
|
|
||||||
const turning = (e, type) => {
|
|
||||||
e.preventDefault() // 阻止默认事件
|
|
||||||
if (type === 'prev') execPrev()
|
|
||||||
else if (type === 'next') execNext()
|
|
||||||
}
|
|
||||||
// 快捷键翻页
|
// 快捷键翻页
|
||||||
const keydownListener = (e: KeyboardEvent) => {
|
const keydownListener = (e: KeyboardEvent) => {
|
||||||
|
e.preventDefault() // 阻止默认事件
|
||||||
const key = e.key.toUpperCase()
|
const key = e.key.toUpperCase()
|
||||||
|
|
||||||
if (key === KEYS.UP || key === KEYS.LEFT || key === KEYS.PAGEUP) turning(e, 'prev')
|
if (key === KEYS.UP || key === KEYS.LEFT || key === KEYS.PAGEUP) execPrev()
|
||||||
else if (
|
else if (
|
||||||
key === KEYS.DOWN ||
|
key === KEYS.DOWN ||
|
||||||
key === KEYS.RIGHT ||
|
key === KEYS.RIGHT ||
|
||||||
key === KEYS.SPACE ||
|
key === KEYS.SPACE ||
|
||||||
key === KEYS.ENTER ||
|
key === KEYS.ENTER ||
|
||||||
key === KEYS.PAGEDOWN
|
key === KEYS.PAGEDOWN
|
||||||
) turning(e, 'next')
|
) execNext()
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => document.addEventListener('keydown', keydownListener))
|
onMounted(() => document.addEventListener('keydown', keydownListener))
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "iconfont"; /* Project id 4723712 */
|
font-family: "iconfont"; /* Project id 4723712 */
|
||||||
src: url('iconfont.woff2?t=1734337029245') format('woff2'),
|
src: url('iconfont.woff2?t=1733880548695') format('woff2'),
|
||||||
url('iconfont.woff?t=1734337029245') format('woff'),
|
url('iconfont.woff?t=1733880548695') format('woff'),
|
||||||
url('iconfont.ttf?t=1734337029245') format('truetype');
|
url('iconfont.ttf?t=1733880548695') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconfont {
|
.iconfont {
|
||||||
|
@ -13,10 +13,6 @@
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-yinle:before {
|
|
||||||
content: "\e6c9";
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-yuyin:before {
|
.icon-yuyin:before {
|
||||||
content: "\e648";
|
content: "\e648";
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,13 +5,6 @@
|
||||||
"css_prefix_text": "icon-",
|
"css_prefix_text": "icon-",
|
||||||
"description": "",
|
"description": "",
|
||||||
"glyphs": [
|
"glyphs": [
|
||||||
{
|
|
||||||
"icon_id": "11819186",
|
|
||||||
"name": "音乐",
|
|
||||||
"font_class": "yinle",
|
|
||||||
"unicode": "e6c9",
|
|
||||||
"unicode_decimal": 59081
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"icon_id": "6338162",
|
"icon_id": "6338162",
|
||||||
"name": "语音生成",
|
"name": "语音生成",
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -41,7 +41,6 @@ const getFileTypeIcon = () => {
|
||||||
airobot: 'icon-jiqirenfushi', // 数字人生成
|
airobot: 'icon-jiqirenfushi', // 数字人生成
|
||||||
aiimg: 'icon-xiangmuicon_maobishufa', // 文生图片
|
aiimg: 'icon-xiangmuicon_maobishufa', // 文生图片
|
||||||
aidraw: 'icon-meishu-F', // 文生连环画
|
aidraw: 'icon-meishu-F', // 文生连环画
|
||||||
aiyinyue: 'icon-yinle' //文生音乐
|
|
||||||
}
|
}
|
||||||
if (iconObj[name]) {
|
if (iconObj[name]) {
|
||||||
return '#' + iconObj[name]
|
return '#' + iconObj[name]
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<el-popover ref="popoverRef" placement="right" trigger="hover" popper-class="popoverStyle" :tabindex="999" >
|
<el-popover ref="popoverRef" placement="right" trigger="hover" popper-class="popoverStyle" :tabindex="999" >
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<div class="user-info">
|
<div class="user-info">
|
||||||
<el-image class="user-img" :src="userStore.user.avatar ==='/img/avatar-default.jpg' || '/images/img-avatar.png' ? defaultUserImg : dev_api + userStore.user.avatar" />
|
<el-image class="user-img" :src="userStore.user.avatar ==='/img/avatar-default.jpg' ? defaultUserImg : dev_api + userStore.user.avatar" />
|
||||||
<span>{{ userStore.user.nickName }}</span>
|
<span>{{ userStore.user.nickName }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -422,19 +422,6 @@ export const toLinkWeb = (path) => {
|
||||||
cookieData: { ...config }
|
cookieData: { ...config }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @description 外部跳转-web网页
|
|
||||||
* @param {*} url
|
|
||||||
*/
|
|
||||||
export const toLinkLeftWeb = (url) => {
|
|
||||||
// 通知主进程
|
|
||||||
ipcRenderer.send('openWindow', {
|
|
||||||
key: `win-${Date.now()}`,
|
|
||||||
fullPath: url
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 外部跳转-web网页
|
* @description 外部跳转-web网页
|
||||||
* @param {*} path
|
* @param {*} path
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div style="font-size: 18px; display: flex; flex-wrap: nowrap">
|
<div style="font-size: 18px; display: flex; flex-wrap: nowrap">
|
||||||
<div style="flex: 1">
|
<div style="flex: 1">
|
||||||
{{ classWorkAnalysis.title }}完成情况
|
{{ classWorkAnalysis.title }}完成情况
|
||||||
<el-tag :type="classWorkAnalysis.workclass||'info'" size="large" style="height: 25px">{{
|
<el-tag :type="classWorkAnalysis.workclass" size="large" style="height: 25px">{{
|
||||||
classWorkAnalysis.worktype
|
classWorkAnalysis.worktype
|
||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
@ -726,7 +726,6 @@ const msgHandle = (msg) => {
|
||||||
openDialog(data, false);
|
openDialog(data, false);
|
||||||
break
|
break
|
||||||
case MsgEnum.HEADS.MSG_slideFlapping: // 切换页面
|
case MsgEnum.HEADS.MSG_slideFlapping: // 切换页面
|
||||||
console.log('切换页面-关闭窗口')
|
|
||||||
window.close() // 关闭窗口
|
window.close() // 关闭窗口
|
||||||
break
|
break
|
||||||
// case 'TIMAddRecvNewMsgCallback': // 收到新消息 data=[]
|
// case 'TIMAddRecvNewMsgCallback': // 收到新消息 data=[]
|
||||||
|
@ -766,7 +765,6 @@ onMounted(() => {
|
||||||
|
|
||||||
// im监听消息
|
// im监听消息
|
||||||
if (ChatWs.ws) {
|
if (ChatWs.ws) {
|
||||||
console.log('socket监听消息')
|
|
||||||
ChatWs.watch((msg, e) => {
|
ChatWs.watch((msg, e) => {
|
||||||
try {
|
try {
|
||||||
msgHandle(JSON.parse(msg))
|
msgHandle(JSON.parse(msg))
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<el-input v-model="ruleForm.username" placeholder="请输入手机号" />
|
<el-input v-model="ruleForm.username" placeholder="请输入手机号" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="验证码" prop="smsCode" style="display: flex">
|
<el-form-item label="验证码" prop="smsCode" style="display: flex">
|
||||||
<el-input style="width:185px" v-model="ruleForm.smsCode" placeholder="请输入验证码" /><el-button style="margin-left:10px;width:100px" :disabled="codeName=='发送验证码'?false:true" type="primary" @click="sendyzm">{{ codeName }}</el-button>
|
<el-input style="width:185px" v-model="ruleForm.smsCode" placeholder="请输入验证码" /><el-button style="margin-left:10px;width:100px" type="primary" @click="sendyzm">发送验证码</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="密码" prop="password" >
|
<el-form-item label="密码" prop="password" >
|
||||||
<el-input autocomplete="on" type="password" v-model="ruleForm.password" placeholder="请输入密码" />
|
<el-input autocomplete="on" type="password" v-model="ruleForm.password" placeholder="请输入密码" />
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
width="500"
|
width="500"
|
||||||
style=" -webkit-app-region: no-drag;"
|
style=" -webkit-app-region: no-drag;"
|
||||||
>
|
>
|
||||||
<span>根据图片回答相关问题1</span>
|
<span>根据图片回答相关问题</span>
|
||||||
<div style="display: flex;align-items: center;;margin-top:30px">
|
<div style="display: flex;align-items: center;;margin-top:30px">
|
||||||
<img :src="isPeopleImg" style="width:200px;height:60px;cursor: pointer;" alt="" srcset="" @click="refreshImg">
|
<img :src="isPeopleImg" style="width:200px;height:60px;cursor: pointer;" alt="" srcset="" @click="refreshImg">
|
||||||
<el-input v-model="ruleForm.imgCode" style="width: 250px;height:40px;margin-left:20px" placeholder="请根据图片填入答案" />
|
<el-input v-model="ruleForm.imgCode" style="width: 250px;height:40px;margin-left:20px" placeholder="请根据图片填入答案" />
|
||||||
|
@ -162,14 +162,6 @@ const sbmitImg=()=>{
|
||||||
ElMessage.success('短信发送成功')
|
ElMessage.success('短信发送成功')
|
||||||
ruleForm.Code=res.data
|
ruleForm.Code=res.data
|
||||||
isImg.value=false
|
isImg.value=false
|
||||||
codeName.value=60
|
|
||||||
timer.value=setInterval(()=>{
|
|
||||||
codeName.value--
|
|
||||||
if(codeName.value==0){
|
|
||||||
codeName.value='发送验证码'
|
|
||||||
clearInterval(timer.value);
|
|
||||||
}
|
|
||||||
},1000)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -190,14 +182,14 @@ const sendyzm=()=>{
|
||||||
isPeopleImg.value='data:image/jpg;base64,'+res.img
|
isPeopleImg.value='data:image/jpg;base64,'+res.img
|
||||||
isImg.value=true
|
isImg.value=true
|
||||||
resImg.imgData=res
|
resImg.imgData=res
|
||||||
// codeName.value=60
|
codeName.value=60
|
||||||
// timer.value=setInterval(()=>{
|
timer.value=setInterval(()=>{
|
||||||
// codeName.value--
|
codeName.value--
|
||||||
// if(codeName.value==0){
|
if(codeName.value==0){
|
||||||
// codeName.value='发送验证码'
|
codeName.value='发送验证码'
|
||||||
// clearInterval(timer.value);
|
clearInterval(timer.value);
|
||||||
// }
|
}
|
||||||
// },1000)
|
},1000)
|
||||||
}else{
|
}else{
|
||||||
ElMessage.error(res.msg)
|
ElMessage.error(res.msg)
|
||||||
}
|
}
|
||||||
|
@ -286,9 +278,6 @@ const setCookie = (name, value) => {
|
||||||
}
|
}
|
||||||
const gotoLogin = () => {
|
const gotoLogin = () => {
|
||||||
codeName.value='发送验证码'
|
codeName.value='发送验证码'
|
||||||
if (timer.value){
|
|
||||||
clearInterval(timer.value);
|
|
||||||
}
|
|
||||||
if (ruleFormRef.value) ruleFormRef.value.resetFields()
|
if (ruleFormRef.value) ruleFormRef.value.resetFields()
|
||||||
isRegister.value = true
|
isRegister.value = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="content-header-title">{{item.name}}</div>
|
<div class="content-header-title">{{item.name}}</div>
|
||||||
<div class="content-header-body">
|
<div class="content-header-body">
|
||||||
<div class="content-header-num">{{item.num}}</div>
|
<div class="content-header-num">{{item.num}}</div>
|
||||||
<div class="content-header-text">{{item.type}}</div>
|
<div class="content-header-text">分析结果</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -90,7 +90,7 @@ import { dataSetJson } from '@/utils/comm' // 数据集id文生图
|
||||||
import { sessionStore } from '@/utils/store'
|
import { sessionStore } from '@/utils/store'
|
||||||
import {listEntpcourse} from "@/api/teaching/classwork";
|
import {listEntpcourse} from "@/api/teaching/classwork";
|
||||||
import {addEntpcoursefileReturnId, getEntpcoursefile} from "@/api/education/entpcoursefile";
|
import {addEntpcoursefileReturnId, getEntpcoursefile} from "@/api/education/entpcoursefile";
|
||||||
import {createWindow, toLinkLeftWeb} from "@/utils/tool";
|
import {createWindow, ipcMsgSend} from "@/utils/tool";
|
||||||
import {ElMessage} from "element-plus";
|
import {ElMessage} from "element-plus";
|
||||||
import {PPTXFileToJson} from "@/AixPPTist/src/hooks/useImport";
|
import {PPTXFileToJson} from "@/AixPPTist/src/hooks/useImport";
|
||||||
import * as API_entpcoursefile from "@/api/education/entpcoursefile";
|
import * as API_entpcoursefile from "@/api/education/entpcoursefile";
|
||||||
|
@ -112,33 +112,27 @@ const collectRef = (key) => {
|
||||||
const tags = reactive([{
|
const tags = reactive([{
|
||||||
name: '课标分析',
|
name: '课标分析',
|
||||||
path: '/model/curriculum',
|
path: '/model/curriculum',
|
||||||
bgcolor: 'rgb(241,65,108)',
|
bgcolor: 'rgb(241,65,108)'
|
||||||
type: '分析结果'
|
|
||||||
},{
|
},{
|
||||||
name: '教材分析',
|
name: '教材分析',
|
||||||
path: '/model/teaching',
|
path: '/model/teaching',
|
||||||
bgcolor: 'rgb(114,57,234)',
|
bgcolor: 'rgb(114,57,234)'
|
||||||
type: '分析结果'
|
|
||||||
},{
|
},{
|
||||||
name: '考试分析',
|
name: '考试分析',
|
||||||
path: '/model/examination',
|
path: '/model/examination',
|
||||||
bgcolor: 'rgb(251,132,4)',
|
bgcolor: 'rgb(251,132,4)'
|
||||||
type: '分析结果'
|
|
||||||
},{
|
},{
|
||||||
name: '素材设计',
|
name: '素材设计',
|
||||||
path: '/model/aiKolors',
|
path: '/model/aiKolors',
|
||||||
bgcolor: 'rgb(25,123,237)',
|
bgcolor: 'rgb(25,123,237)'
|
||||||
type: '素材'
|
|
||||||
},{
|
},{
|
||||||
name: '作业设计',
|
name: '作业设计',
|
||||||
path: '/model/newClassTaskAssign',
|
path: '/model/newClassTaskAssign',
|
||||||
bgcolor: 'rgb(23,198,83)',
|
bgcolor: 'rgb(23,198,83)'
|
||||||
type: '作业'
|
|
||||||
},{
|
},{
|
||||||
name: '框架设计',
|
name: '框架设计',
|
||||||
path: '/model/design',
|
path: '/model/design',
|
||||||
bgcolor: 'rgb(34,35,43)',
|
bgcolor: 'rgb(34,35,43)'
|
||||||
type: '设计框架'
|
|
||||||
}])
|
}])
|
||||||
|
|
||||||
const tools = reactive([{
|
const tools = reactive([{
|
||||||
|
@ -161,11 +155,6 @@ const tools = reactive([{
|
||||||
name: '视频生成',
|
name: '视频生成',
|
||||||
path: '',
|
path: '',
|
||||||
img: 'aivideo'
|
img: 'aivideo'
|
||||||
},{
|
|
||||||
name: '音乐生成',
|
|
||||||
path: 'https://ai.ysaix.com:7845/',
|
|
||||||
type: 'link',
|
|
||||||
img: 'aiyinyue'
|
|
||||||
}])
|
}])
|
||||||
|
|
||||||
const uploadData = ref({
|
const uploadData = ref({
|
||||||
|
@ -178,11 +167,6 @@ const uploadData = ref({
|
||||||
const currentFileList = ref([])
|
const currentFileList = ref([])
|
||||||
|
|
||||||
const gotoRoute = (item) => {
|
const gotoRoute = (item) => {
|
||||||
if (item.type === 'link') {
|
|
||||||
//link方式
|
|
||||||
toLinkLeftWeb(item.path);
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (item.path) {
|
if (item.path) {
|
||||||
if (item.path === '/model/aiKolors') {
|
if (item.path === '/model/aiKolors') {
|
||||||
gotoAiKolors(item.path)
|
gotoAiKolors(item.path)
|
||||||
|
|
|
@ -33,7 +33,7 @@ const dev_api = ref(import.meta.env.VITE_APP_BASE_API)
|
||||||
|
|
||||||
//图片裁剪数据
|
//图片裁剪数据
|
||||||
const options = reactive({
|
const options = reactive({
|
||||||
img: userStore.user.avatar ==='/img/avatar-default.jpg' || '/images/img-avatar.png' ? defaultUserImg : dev_api.value + userStore.user.avatar, // 裁剪图片的地址
|
img: userStore.user.avatar ==='/img/avatar-default.jpg' ? defaultUserImg : dev_api.value + userStore.user.avatar, // 裁剪图片的地址
|
||||||
autoCrop: true, // 是否默认生成截图框
|
autoCrop: true, // 是否默认生成截图框
|
||||||
autoCropWidth: 400, // 默认生成截图框宽度
|
autoCropWidth: 400, // 默认生成截图框宽度
|
||||||
autoCropHeight: 400, // 默认生成截图框高度
|
autoCropHeight: 400, // 默认生成截图框高度
|
||||||
|
@ -69,7 +69,7 @@ function uploadImg(data) {
|
||||||
|
|
||||||
/** 关闭窗口 */
|
/** 关闭窗口 */
|
||||||
function closeDialog() {
|
function closeDialog() {
|
||||||
options.img = userStore.user.avatar ==='/img/avatar-default.jpg' || '/images/img-avatar.png' ? defaultUserImg : dev_api.value + userStore.user.avatar
|
options.img = userStore.user.avatar ==='/img/avatar-default.jpg' ? defaultUserImg : dev_api.value + userStore.user.avatar
|
||||||
options.visible = false
|
options.visible = false
|
||||||
}
|
}
|
||||||
const cancle = () => {
|
const cancle = () => {
|
||||||
|
|
Loading…
Reference in New Issue