lyc-dev #125
|
@ -47,6 +47,12 @@ export default () => {
|
||||||
data: { ...baseConfig() },
|
data: { ...baseConfig() },
|
||||||
fullPath: `${baseConfig().url}/platofai`
|
fullPath: `${baseConfig().url}/platofai`
|
||||||
},
|
},
|
||||||
|
// 文件资源 布置作业
|
||||||
|
filehomework: {
|
||||||
|
data: { ...baseConfig() },
|
||||||
|
|
||||||
|
fullPath: `${baseConfig().url}/teaching/classtaskassign?titleName=作业布置`
|
||||||
|
},
|
||||||
|
|
||||||
getBaseData: () => {
|
getBaseData: () => {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -95,6 +95,12 @@
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<!-- 判断是不是自己创建的课件-->
|
<!-- 判断是不是自己创建的课件-->
|
||||||
|
<div class="item-popover-item">
|
||||||
|
<el-button text @click="openFileLink(item)">
|
||||||
|
<i class="iconfont icon-arrangement"></i>
|
||||||
|
<span>布置</span>
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
<div class="item-popover-item" v-if="userInfo.userId === Number(item.createUserId)">
|
<div class="item-popover-item" v-if="userInfo.userId === Number(item.createUserId)">
|
||||||
<el-button text @click="editTalk(item, index)">
|
<el-button text @click="editTalk(item, index)">
|
||||||
<i class="iconfont icon-bianji"></i>
|
<i class="iconfont icon-bianji"></i>
|
||||||
|
@ -142,6 +148,7 @@ import { toTimeText } from '@/utils/date'
|
||||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||||
import { deleteSmarttalk, updateSmarttalk, getPrepareById } from '@/api/file'
|
import { deleteSmarttalk, updateSmarttalk, getPrepareById } from '@/api/file'
|
||||||
import useUserStore from '@/store/modules/user'
|
import useUserStore from '@/store/modules/user'
|
||||||
|
import outLink from '@/utils/linkConfig'
|
||||||
|
|
||||||
const { ipcRenderer } = window.electron || {}
|
const { ipcRenderer } = window.electron || {}
|
||||||
export default {
|
export default {
|
||||||
|
@ -256,6 +263,18 @@ export default {
|
||||||
// 删除作业
|
// 删除作业
|
||||||
deleteHomework(item){
|
deleteHomework(item){
|
||||||
this.$emit('on-delhomework', item)
|
this.$emit('on-delhomework', item)
|
||||||
|
},
|
||||||
|
// 文件资源打开web AIX 布置作业
|
||||||
|
openFileLink(item){
|
||||||
|
// key 对应的 linkConfig.js 外部链接配置
|
||||||
|
let key = 'filehomework'
|
||||||
|
let configObj = outLink()[key]
|
||||||
|
// 通知主进程
|
||||||
|
ipcRenderer.send('openWindow', {
|
||||||
|
key,
|
||||||
|
fullPath: configObj.fullPath + `&fileShowName=${item.fileShowName}&fileFullPath=${item.fileFullPath}`,
|
||||||
|
cookieData: { ...configObj.data }
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
Loading…
Reference in New Issue