This commit is contained in:
parent
e2d9b61fbe
commit
7b804f9e62
|
@ -25,6 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<el-button color="#349d44" @click="openFileLink(item)">推送</el-button>
|
||||||
</li>
|
</li>
|
||||||
<!--作业-->
|
<!--作业-->
|
||||||
<li class="item flex" v-for="item in dataList" :key="item.id">
|
<li class="item flex" v-for="item in dataList" :key="item.id">
|
||||||
|
@ -82,8 +83,9 @@ import { useToolState } from '@/store/modules/tool'
|
||||||
import { asyncLocalFile } from '@/utils/talkFile'
|
import { asyncLocalFile } from '@/utils/talkFile'
|
||||||
import Lesson from './lesson.vue';
|
import Lesson from './lesson.vue';
|
||||||
import { parseCataByNode } from '@/utils/talkFile'
|
import { parseCataByNode } from '@/utils/talkFile'
|
||||||
|
import outLink from '@/utils/linkConfig'
|
||||||
|
|
||||||
const { ipcRenderer } = window.electron || {}
|
import { ipcMsgSend2 } from '@/utils/tool'
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const usertore = useUserStore().user
|
const usertore = useUserStore().user
|
||||||
const toolStore = useToolState()
|
const toolStore = useToolState()
|
||||||
|
@ -127,6 +129,19 @@ const changeChapter = async (data)=>{
|
||||||
getResource()
|
getResource()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 文件资源打开web AIX 布置作业
|
||||||
|
const openFileLink = (item) =>{
|
||||||
|
// key 对应的 linkConfig.js 外部链接配置
|
||||||
|
let key = 'filehomework'
|
||||||
|
let configObj = outLink()[key]
|
||||||
|
ipcMsgSend2('openWindow', {
|
||||||
|
key,
|
||||||
|
fullPath: configObj.fullPath + `&fileShowName=${item.fileShowName}&fileFullPath=${item.fileFullPath}`,
|
||||||
|
cookieData: { ...configObj.data }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 获取资源数据
|
// 获取资源数据
|
||||||
const getResource = () => {
|
const getResource = () => {
|
||||||
let querySearch = toRaw(toolStore.curSubjectNode).querySearch
|
let querySearch = toRaw(toolStore.curSubjectNode).querySearch
|
||||||
|
@ -233,7 +248,7 @@ onMounted(() => {
|
||||||
getHomework()
|
getHomework()
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
getResource()
|
getResource()
|
||||||
},5000)
|
},1000)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue