Compare commits
No commits in common. "222b0f54f88288530dbc32f8b51b133b716a200b" and "045bc5e1989d057b7689763f044a8e8095b722d1" have entirely different histories.
222b0f54f8
...
045bc5e198
|
@ -81,8 +81,5 @@ const initLoad: Function = () => {
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#app {
|
#app {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
svg, canvas, img, audio, video, iframe {
|
|
||||||
display: unset;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -35,7 +35,7 @@ const getFileTypeIcon = () => {
|
||||||
txt: 'icon-txt',
|
txt: 'icon-txt',
|
||||||
rar: 'icon-rar',
|
rar: 'icon-rar',
|
||||||
apt: 'icon-A',
|
apt: 'icon-A',
|
||||||
aippt: 'icon-A',
|
aptist: 'icon-A',
|
||||||
}
|
}
|
||||||
if (iconObj[name]) {
|
if (iconObj[name]) {
|
||||||
return '#' + iconObj[name]
|
return '#' + iconObj[name]
|
||||||
|
|
|
@ -87,12 +87,6 @@ const headerMenus = [
|
||||||
icon: 'icon-gongzuotai',
|
icon: 'icon-gongzuotai',
|
||||||
path: '/desktop'
|
path: '/desktop'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: '教学实践',
|
|
||||||
id: 4,
|
|
||||||
icon: 'icon-jiaoxueshijian',
|
|
||||||
path: '/prepare'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: '资源中心',
|
name: '资源中心',
|
||||||
id: 3,
|
id: 3,
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<el-button type="primary" @click="onchange('/model/newClassTaskAssign')">作业管理</el-button>
|
<el-button type="primary" @click="onchange('/model/newClassTaskAssign')">作业管理</el-button>
|
||||||
<el-button type="success" @click="onchange('/model/teaching')">教材研读</el-button>
|
<el-button type="success" @click="onchange('/model/teaching')">教材研读</el-button>
|
||||||
<el-button type="info" @click="onchange('/model/design')">教学框架设计</el-button>
|
<el-button type="info" @click="onchange('/model/design')">教学框架设计</el-button>
|
||||||
<!-- <el-button type="success" @click="openPPTist">打开PPTist</el-button>-->
|
<el-button type="success" @click="openPPTist">打开PPTist</el-button>
|
||||||
<el-button type="info" @click="onchange('/model/examination')">考试分析</el-button>
|
<el-button type="info" @click="onchange('/model/examination')">考试分析</el-button>
|
||||||
<el-button type="primary" v-menus="dt.menus">测试</el-button>
|
<el-button type="primary" v-menus="dt.menus">测试</el-button>
|
||||||
<el-button type="success" @click="onchange('/model/aiKolors')">文生图片</el-button>
|
<el-button type="success" @click="onchange('/model/aiKolors')">文生图片</el-button>
|
||||||
|
@ -230,7 +230,7 @@ const HTTP_SERVER_API = (type, params = {}) => {
|
||||||
ppttype: 'file',
|
ppttype: 'file',
|
||||||
title: enpt.coursetitle,
|
title: enpt.coursetitle,
|
||||||
fileurl: '',
|
fileurl: '',
|
||||||
filetype: 'aippt',
|
filetype: 'aptist',
|
||||||
datacontent: '',
|
datacontent: '',
|
||||||
filekey: '',
|
filekey: '',
|
||||||
filetag: '',
|
filetag: '',
|
||||||
|
@ -287,7 +287,7 @@ const handleAll = async(type, row) =>{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'open': { // 打开资源-pptist
|
case 'open': { // 打开资源-pptist
|
||||||
if (row.filetype != 'aippt') return msgUtils.msgWarning('暂不支持该类型文件操作!')
|
if (row.filetype != 'aptist') return msgUtils.msgWarning('暂不支持该类型文件操作!')
|
||||||
sessionStore.set('curr.resource', row) // 缓存当前资源信息
|
sessionStore.set('curr.resource', row) // 缓存当前资源信息
|
||||||
createWindow('open-win', {
|
createWindow('open-win', {
|
||||||
url: '/pptist', // 窗口关闭时,清除缓存
|
url: '/pptist', // 窗口关闭时,清除缓存
|
||||||
|
@ -312,7 +312,7 @@ const handleAll = async(type, row) =>{
|
||||||
// icons 处理 type 代表传递svg
|
// icons 处理 type 代表传递svg
|
||||||
const getIcon = (o, type) => {
|
const getIcon = (o, type) => {
|
||||||
let icon = typeof o == 'string' ? o : o?.filetype
|
let icon = typeof o == 'string' ? o : o?.filetype
|
||||||
if (['aippt'].includes(o?.filetype)) icon = 'pptx'
|
if (['aptist'].includes(o?.filetype)) icon = 'pptx'
|
||||||
if (!!type) { // 其他格式icon
|
if (!!type) { // 其他格式icon
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case 'svg': // 返回svg格式
|
case 'svg': // 返回svg格式
|
||||||
|
|
|
@ -158,7 +158,7 @@ const outlineCreatePPT = () => {
|
||||||
|
|
||||||
const checkProgress = () => {
|
const checkProgress = () => {
|
||||||
getProgressV2(res.sid).then(response => {
|
getProgressV2(res.sid).then(response => {
|
||||||
percentage.value = Math.round(response?.donePages*100/response?.totalPages);
|
percentage.value = Math.round(response?.donePages/response?.totalPages)*100;
|
||||||
if (response.pptStatus === "done") {
|
if (response.pptStatus === "done") {
|
||||||
emit('addSuccess',{...res,url:response.pptUrl})
|
emit('addSuccess',{...res,url:response.pptUrl})
|
||||||
ElMessage.success("生成成功");
|
ElMessage.success("生成成功");
|
||||||
|
@ -267,6 +267,7 @@ function webSocketSend(ws, data) {
|
||||||
|
|
||||||
function result1(resultData) {
|
function result1(resultData) {
|
||||||
let jsonData = JSON.parse(resultData);
|
let jsonData = JSON.parse(resultData);
|
||||||
|
console.log(jsonData)
|
||||||
outputText.value += jsonData.payload.choices.text[0].content;
|
outputText.value += jsonData.payload.choices.text[0].content;
|
||||||
const div = document.querySelector('.paragraphs');
|
const div = document.querySelector('.paragraphs');
|
||||||
if (div) {
|
if (div) {
|
||||||
|
|
|
@ -262,7 +262,7 @@ const createClasscourse = async () => {
|
||||||
// getClasscourseList('update') // 更新列表
|
// getClasscourseList('update') // 更新列表
|
||||||
ElMessage.success('创建课程-成功')
|
ElMessage.success('创建课程-成功')
|
||||||
// 新版-pptList 打开公屏
|
// 新版-pptList 打开公屏
|
||||||
if (myClassActive.value.filetype == 'aippt') {
|
if (myClassActive.value.filetype == 'aptist') {
|
||||||
const msgEl = ElMessage.warning({message:'正在打开公屏,请稍后...',duration: 0})
|
const msgEl = ElMessage.warning({message:'正在打开公屏,请稍后...',duration: 0})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
msgEl.close()
|
msgEl.close()
|
||||||
|
|
|
@ -341,7 +341,7 @@ export default {
|
||||||
cookieData: { ...configObj.data }
|
cookieData: { ...configObj.data }
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
} else if(items.fileFlag === 'aippt') { // aippt 被点击 打开PPT-List 课件
|
} else if(items.fileFlag === 'aptist') { // aptist 被点击 打开PPT-List 课件
|
||||||
return this.$emit('change', 'click', items)
|
return this.$emit('change', 'click', items)
|
||||||
}
|
}
|
||||||
if (!items||!items.fileSuffix) return;
|
if (!items||!items.fileSuffix) return;
|
||||||
|
|
|
@ -2,20 +2,8 @@
|
||||||
<div v-loading="isLoading" class="page-resource flex">
|
<div v-loading="isLoading" class="page-resource flex">
|
||||||
<ChooseTextbook @node-click="nodeClick" />
|
<ChooseTextbook @node-click="nodeClick" />
|
||||||
<div class="page-center-wrap">
|
<div class="page-center-wrap">
|
||||||
<el-dropdown class="prepare-center-dropdown">
|
|
||||||
<el-button type="primary">
|
|
||||||
新建<el-icon class="el-icon--right"><arrow-down /></el-icon>
|
|
||||||
</el-button>
|
|
||||||
<template #dropdown>
|
|
||||||
<el-dropdown-menu>
|
|
||||||
<el-dropdown-item @click="createAptFile">新建文枢课件</el-dropdown-item>
|
|
||||||
<el-dropdown-item>AI一键生成</el-dropdown-item>
|
|
||||||
<el-dropdown-item>导入PPT</el-dropdown-item>
|
|
||||||
</el-dropdown-menu>
|
|
||||||
</template>
|
|
||||||
</el-dropdown>
|
|
||||||
<el-tabs v-model="activeAptTab" style="height: 100%;">
|
<el-tabs v-model="activeAptTab" style="height: 100%;">
|
||||||
<el-tab-pane label="文枢课件" name="教学课件" class="prepare-center-jxkj">
|
<el-tab-pane label="教学课件" name="教学课件" class="prepare-center-jxkj">
|
||||||
<div class="prepare-center-header">
|
<div class="prepare-center-header">
|
||||||
<div class="center-create-btn" style="background-color: rgb(64,158,255)" @click="createAptFile">
|
<div class="center-create-btn" style="background-color: rgb(64,158,255)" @click="createAptFile">
|
||||||
<div class="create-btn-title"><el-icon><Plus /></el-icon><label>创建APT</label></div>
|
<div class="create-btn-title"><el-icon><Plus /></el-icon><label>创建APT</label></div>
|
||||||
|
@ -157,7 +145,7 @@
|
||||||
<!-- <button @click="test">test</button> -->
|
<!-- <button @click="test">test</button> -->
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import {Check, Plus, Position} from '@element-plus/icons-vue'
|
import { Check,Plus } from '@element-plus/icons-vue'
|
||||||
import Reserv from '@/views/prepare/container/reserv.vue'
|
import Reserv from '@/views/prepare/container/reserv.vue'
|
||||||
import { ArrowDown } from '@element-plus/icons-vue'
|
import { ArrowDown } from '@element-plus/icons-vue'
|
||||||
import PptDialog from '@/views/prepare/container/ppt-dialog.vue'
|
import PptDialog from '@/views/prepare/container/ppt-dialog.vue'
|
||||||
|
@ -265,11 +253,11 @@ export default {
|
||||||
},
|
},
|
||||||
currentKJFileList() {
|
currentKJFileList() {
|
||||||
// return this.currentFileList.filter((item) => item.fileFlag === 'apt' || item.fileFlag === '课件')
|
// return this.currentFileList.filter((item) => item.fileFlag === 'apt' || item.fileFlag === '课件')
|
||||||
return this.currentFileList.filter((item) => ['apt','aippt','课件'].includes(item.fileFlag))
|
return this.currentFileList.filter((item) => ['apt','aptist','课件'].includes(item.fileFlag))
|
||||||
},
|
},
|
||||||
currentSCFileList() {
|
currentSCFileList() {
|
||||||
// return this.currentFileList.filter((item) => item.fileFlag !== 'apt' && item.fileFlag !== '课件')
|
// return this.currentFileList.filter((item) => item.fileFlag !== 'apt' && item.fileFlag !== '课件')
|
||||||
return this.currentFileList.filter((item) => !['apt','aippt','课件'].includes(item.fileFlag))
|
return this.currentFileList.filter((item) => !['apt','aptist','课件'].includes(item.fileFlag))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -333,7 +321,7 @@ export default {
|
||||||
if(item.fileFlag === 'apt') {
|
if(item.fileFlag === 'apt') {
|
||||||
this.$refs.calssRef.open(item.fileId, classObj)
|
this.$refs.calssRef.open(item.fileId, classObj)
|
||||||
}
|
}
|
||||||
if(item.fileFlag === 'aippt') {
|
if(item.fileFlag === 'aptist') {
|
||||||
this.$refs.calssRef.open(item.fileId, classObj)
|
this.$refs.calssRef.open(item.fileId, classObj)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -390,8 +378,8 @@ export default {
|
||||||
}, 1000)
|
}, 1000)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case 'click': { // 点击-打开课件-aippt
|
case 'click': { // 点击-打开课件-aptist
|
||||||
if (row.fileFlag === 'aippt' && !!row.fileId) {
|
if (row.fileFlag === 'aptist' && !!row.fileId) {
|
||||||
const res = await getEntpcoursefile(row.fileId)
|
const res = await getEntpcoursefile(row.fileId)
|
||||||
if (res && res.code === 200) {
|
if (res && res.code === 200) {
|
||||||
sessionStore.set('curr.resource', res.data) // 缓存当前资源信息
|
sessionStore.set('curr.resource', res.data) // 缓存当前资源信息
|
||||||
|
@ -473,93 +461,6 @@ export default {
|
||||||
},500)
|
},500)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
createAIPPT() {
|
|
||||||
listEntpcourse({
|
|
||||||
evalid: this.currentNode.id,
|
|
||||||
edituserid: this.userStore.userId,
|
|
||||||
pageSize: 500
|
|
||||||
}).then((response) => {
|
|
||||||
if (response.rows.length <= 0) return
|
|
||||||
let resCourse = response.rows[0]
|
|
||||||
// 添加
|
|
||||||
let form = {
|
|
||||||
parentid: 0,
|
|
||||||
entpid: this.userStore.deptId,
|
|
||||||
entpcourseid: resCourse.id,
|
|
||||||
ppttype: 'file',
|
|
||||||
title: resCourse.coursetitle,
|
|
||||||
fileurl: '',
|
|
||||||
filetype: 'aippt',
|
|
||||||
datacontent: '',
|
|
||||||
filekey: '',
|
|
||||||
filetag: '',
|
|
||||||
fileidx: 0,
|
|
||||||
dflag: 0,
|
|
||||||
status: '',
|
|
||||||
edituserid: this.userStore.userId
|
|
||||||
}
|
|
||||||
addEntpcoursefileReturnId(form).then((slideid) => {
|
|
||||||
let pagearray = []
|
|
||||||
// 公屏
|
|
||||||
pagearray.push({
|
|
||||||
key: '公屏',
|
|
||||||
title: '公屏页',
|
|
||||||
slidedata: {
|
|
||||||
attrs: { width: 1333, height: 749.8125 },
|
|
||||||
className: 'Stage',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
attrs: {},
|
|
||||||
className: 'Layer',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
attrs: {
|
|
||||||
width: 1333,
|
|
||||||
height: 749.8125,
|
|
||||||
fill: 'white',
|
|
||||||
name: 'fixedbackground',
|
|
||||||
listening: true
|
|
||||||
},
|
|
||||||
className: 'Rect'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// 添加
|
|
||||||
var form = {
|
|
||||||
parentid: slideid,
|
|
||||||
entpid: resCourse.entpid,
|
|
||||||
entpcourseid: resCourse.id,
|
|
||||||
ppttype: 'file',
|
|
||||||
title: '第一页',
|
|
||||||
fileurl: '',
|
|
||||||
filetype: 'slide',
|
|
||||||
datacontent: JSON.stringify(pagearray),
|
|
||||||
filekey: '',
|
|
||||||
filetag: '',
|
|
||||||
fileidx: 0,
|
|
||||||
dflag: 0,
|
|
||||||
status: '',
|
|
||||||
edituserid: this.userStore.userId
|
|
||||||
}
|
|
||||||
addEntpcoursefileReturnId(form).then((res) => {
|
|
||||||
creatAPT({
|
|
||||||
...this.uploadData,
|
|
||||||
fileId: slideid,
|
|
||||||
fileShowName: this.currentNode.itemtitle + '.apt'
|
|
||||||
}).then((res) => {
|
|
||||||
this.currentFileList.unshift(res.resData)
|
|
||||||
setTimeout(()=>{
|
|
||||||
this.$refs['kjItemRef'+res.resData.id][0].openFileWin(res.resData);
|
|
||||||
},500)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
createAptFile() {
|
createAptFile() {
|
||||||
listEntpcourse({
|
listEntpcourse({
|
||||||
evalid: this.currentNode.id,
|
evalid: this.currentNode.id,
|
||||||
|
@ -752,7 +653,7 @@ export default {
|
||||||
for (let i = 0; i < this.currentFileList.length; i++) {
|
for (let i = 0; i < this.currentFileList.length; i++) {
|
||||||
let item = this.currentFileList[i]
|
let item = this.currentFileList[i]
|
||||||
if (item.fileFlag === 'apt') continue;
|
if (item.fileFlag === 'apt') continue;
|
||||||
if (item.fileFlag === 'aippt') continue;
|
if (item.fileFlag === 'aptist') continue;
|
||||||
await asyncLocalFile(item)
|
await asyncLocalFile(item)
|
||||||
}
|
}
|
||||||
this.asyncAllFileVisiable = false
|
this.asyncAllFileVisiable = false
|
||||||
|
@ -971,13 +872,6 @@ export default {
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
position: relative;
|
|
||||||
.prepare-center-dropdown{
|
|
||||||
z-index: 9999;
|
|
||||||
position: absolute;
|
|
||||||
right: 10px;
|
|
||||||
top: 4px;
|
|
||||||
}
|
|
||||||
.prepare-center-jxkj{
|
.prepare-center-jxkj{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -131,7 +131,6 @@ const params = reactive(
|
||||||
|
|
||||||
const addAiPPT = async(res) => {
|
const addAiPPT = async(res) => {
|
||||||
let node = courseObj.node
|
let node = courseObj.node
|
||||||
pptDialog.value = false;
|
|
||||||
if (!node) return msgUtils.msgWarning('请选择章节?')
|
if (!node) return msgUtils.msgWarning('请选择章节?')
|
||||||
pgDialog.visible = true
|
pgDialog.visible = true
|
||||||
pgDialog.pg.percentage = 0
|
pgDialog.pg.percentage = 0
|
||||||
|
@ -239,8 +238,8 @@ const HTTP_SERVER_API = (type, params = {}) => {
|
||||||
const node = courseObj.node || {}
|
const node = courseObj.node || {}
|
||||||
const def = {
|
const def = {
|
||||||
fileId: '', // 文件id - Entpcoursefile 对应id
|
fileId: '', // 文件id - Entpcoursefile 对应id
|
||||||
fileFlag: 'aippt',
|
fileFlag: 'aptist',
|
||||||
fileShowName: node.itemtitle + '.aippt',
|
fileShowName: node.itemtitle + '.aptist',
|
||||||
textbookId: node.rootid,
|
textbookId: node.rootid,
|
||||||
levelFirstId: node.parentid||node.id,
|
levelFirstId: node.parentid||node.id,
|
||||||
levelSecondId: node.parentid && node.id,
|
levelSecondId: node.parentid && node.id,
|
||||||
|
@ -299,7 +298,7 @@ const getDefParams = (params) => {
|
||||||
ppttype: 'file',
|
ppttype: 'file',
|
||||||
title: enpt.coursetitle,
|
title: enpt.coursetitle,
|
||||||
fileurl: '',
|
fileurl: '',
|
||||||
filetype: 'aippt',
|
filetype: 'aptist',
|
||||||
datacontent: '',
|
datacontent: '',
|
||||||
filekey: '',
|
filekey: '',
|
||||||
filetag: '',
|
filetag: '',
|
||||||
|
|
Loading…
Reference in New Issue