资源模块修改 #32

Merged
lyc merged 7 commits from lyc-dev into main 2024-07-18 09:32:37 +08:00
2 changed files with 3 additions and 8 deletions
Showing only changes of commit c03e8d4d2c - Show all commits

View File

@ -123,7 +123,7 @@ const delRow = (item) => {
const addLesson = ({ id }) => { const addLesson = ({ id }) => {
let data = { let data = {
id, id,
fileRoot: '资源', fileRoot: '备课',
...(toRaw(sourceStore.nodeData)), ...(toRaw(sourceStore.nodeData)),
} }
// //

View File

@ -37,22 +37,17 @@ const openDialog = () => {
// //
const getData = (data) => { const getData = (data) => {
const { textBook, node } = data const { textBook, node } = data
let textbookId = textBook.curBookId let textbookId = textBook.curBookId
let levelSecondId = node.id let levelSecondId = node.id
let levelFirstId = node.parentNode ? node.parentNode.id : '' let levelFirstId = node.parentNode ? node.parentNode.id : ''
sourceStore.query = { sourceStore.query.levelFirstId = levelFirstId
levelFirstId, sourceStore.query.levelSecondId = levelSecondId
levelSecondId,
...sourceStore.query
}
sourceStore.query.textbookId = textbookId sourceStore.query.textbookId = textbookId
sourceStore.nodeData = { sourceStore.nodeData = {
textbookId, textbookId,
levelFirstId, levelFirstId,
levelSecondId, levelSecondId,
} }
sourceStore.handleQuery() sourceStore.handleQuery()
} }