Merge remote-tracking branch 'origin/main' into yangws
This commit is contained in:
commit
e36ede941c
|
@ -114,6 +114,7 @@ const emitChangeBook = async () => {
|
||||||
*/
|
*/
|
||||||
let levelFirstId = null
|
let levelFirstId = null
|
||||||
let levelSecondId = null
|
let levelSecondId = null
|
||||||
|
let bookeId = curBook.data.id
|
||||||
if (curData.parentNode) {
|
if (curData.parentNode) {
|
||||||
levelFirstId = curData.parentNode.id
|
levelFirstId = curData.parentNode.id
|
||||||
levelSecondId = curData.id
|
levelSecondId = curData.id
|
||||||
|
@ -121,7 +122,7 @@ const emitChangeBook = async () => {
|
||||||
levelFirstId = curData.id
|
levelFirstId = curData.id
|
||||||
levelSecondId = ''
|
levelSecondId = ''
|
||||||
}
|
}
|
||||||
localStorage.setItem('unitId', JSON.stringify({ levelFirstId, levelSecondId}))
|
localStorage.setItem('unitId', JSON.stringify({ levelFirstId, levelSecondId, bookeId}))
|
||||||
emit('changeBook', data)
|
emit('changeBook', data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -206,6 +207,7 @@ const handleNodeClick = (data, node) => {
|
||||||
*/
|
*/
|
||||||
let levelFirstId = null
|
let levelFirstId = null
|
||||||
let levelSecondId = null
|
let levelSecondId = null
|
||||||
|
let bookeId = curBook.data.id
|
||||||
if (nodeData.parentNode) {
|
if (nodeData.parentNode) {
|
||||||
levelFirstId = nodeData.parentNode.id
|
levelFirstId = nodeData.parentNode.id
|
||||||
levelSecondId = nodeData.id
|
levelSecondId = nodeData.id
|
||||||
|
@ -213,7 +215,7 @@ const handleNodeClick = (data, node) => {
|
||||||
levelFirstId = nodeData.id
|
levelFirstId = nodeData.id
|
||||||
levelSecondId = ''
|
levelSecondId = ''
|
||||||
}
|
}
|
||||||
localStorage.setItem('unitId', JSON.stringify({ levelFirstId, levelSecondId}))
|
localStorage.setItem('unitId', JSON.stringify({ levelFirstId, levelSecondId, bookeId}))
|
||||||
|
|
||||||
emit('nodeClick', curData)
|
emit('nodeClick', curData)
|
||||||
|
|
||||||
|
|
|
@ -102,8 +102,9 @@ const getTreeData = () => {
|
||||||
levelFirstId = curNode.id
|
levelFirstId = curNode.id
|
||||||
levelSecondId = ''
|
levelSecondId = ''
|
||||||
}
|
}
|
||||||
|
let bookeId = curBookId
|
||||||
// 头部 教材分析、作业设计:打开外部链接需要当前章节ID
|
// 头部 教材分析、作业设计:打开外部链接需要当前章节ID
|
||||||
localStorage.setItem('unitId', JSON.stringify({ levelFirstId, levelSecondId}))
|
localStorage.setItem('unitId', JSON.stringify({ levelFirstId, levelSecondId, bookeId}))
|
||||||
|
|
||||||
// const data = {
|
// const data = {
|
||||||
// textBook: {
|
// textBook: {
|
||||||
|
|
|
@ -168,10 +168,11 @@ const clickMenu = ({isOuter, path, disabled}) =>{
|
||||||
let fullPath = configObj.fullPath + path
|
let fullPath = configObj.fullPath + path
|
||||||
if(path == '/teaching/classtaskassign?titleName=作业布置&openDialog=newClassTask' || path == '/teaching/classtaskassign?titleName=作业布置'){
|
if(path == '/teaching/classtaskassign?titleName=作业布置&openDialog=newClassTask' || path == '/teaching/classtaskassign?titleName=作业布置'){
|
||||||
// 头部 教材分析打开外部链接需要当前章节ID
|
// 头部 教材分析打开外部链接需要当前章节ID
|
||||||
const { levelFirstId, levelSecondId } = JSON.parse(localStorage.getItem('unitId'))
|
const { levelFirstId, levelSecondId, bookeId } = JSON.parse(localStorage.getItem('unitId'))
|
||||||
|
|
||||||
let unitId = levelSecondId ? levelSecondId : levelFirstId
|
let unitId = levelSecondId ? levelSecondId : levelFirstId
|
||||||
fullPath = fullPath + `&unitId=${unitId}`
|
|
||||||
|
fullPath = fullPath + `&unitId=${unitId}&bookeId=${bookeId}`
|
||||||
|
|
||||||
console.log(fullPath)
|
console.log(fullPath)
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,7 +208,8 @@ export default {
|
||||||
openFileWin(items) {
|
openFileWin(items) {
|
||||||
if (items.fileFlag === 'apt') {
|
if (items.fileFlag === 'apt') {
|
||||||
console.log(this.curNode);
|
console.log(this.curNode);
|
||||||
const path="/teaching/aptindex?id="+items.fileId + "&cataId=" + this.curNode.id;
|
let curBook = JSON.parse(localStorage.getItem('curBook'))
|
||||||
|
const path="/teaching/aptindex?id="+items.fileId + "&unitId=" + this.curNode.id + "&bookId=" + curBook.id;
|
||||||
let configObj = outLink().getBaseData()
|
let configObj = outLink().getBaseData()
|
||||||
let fullPath = configObj.fullPath + path
|
let fullPath = configObj.fullPath + path
|
||||||
fullPath = fullPath.replaceAll('//', '/')
|
fullPath = fullPath.replaceAll('//', '/')
|
||||||
|
|
Loading…
Reference in New Issue