资源修改
This commit is contained in:
parent
2a517bb272
commit
c03e8d4d2c
|
@ -123,7 +123,7 @@ const delRow = (item) => {
|
|||
const addLesson = ({ id }) => {
|
||||
let data = {
|
||||
id,
|
||||
fileRoot: '资源',
|
||||
fileRoot: '备课',
|
||||
...(toRaw(sourceStore.nodeData)),
|
||||
}
|
||||
// 过滤空值
|
||||
|
|
|
@ -37,22 +37,17 @@ const openDialog = () => {
|
|||
// 查询
|
||||
const getData = (data) => {
|
||||
const { textBook, node } = data
|
||||
|
||||
let textbookId = textBook.curBookId
|
||||
let levelSecondId = node.id
|
||||
let levelFirstId = node.parentNode ? node.parentNode.id : ''
|
||||
sourceStore.query = {
|
||||
levelFirstId,
|
||||
levelSecondId,
|
||||
...sourceStore.query
|
||||
}
|
||||
sourceStore.query.levelFirstId = levelFirstId
|
||||
sourceStore.query.levelSecondId = levelSecondId
|
||||
sourceStore.query.textbookId = textbookId
|
||||
sourceStore.nodeData = {
|
||||
textbookId,
|
||||
levelFirstId,
|
||||
levelSecondId,
|
||||
}
|
||||
|
||||
sourceStore.handleQuery()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue