Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
5e62f249
提交
5e62f249
authored
7月 16, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 清理无用代码并修复变量引用错误
上级
bdba14af
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
17 行增加
和
11 行删除
+17
-11
StepTwo.vue
src/modules/course/create/views/StepTwo.vue
+14
-10
Graph.vue
src/modules/course/my/views/Graph.vue
+3
-1
没有找到文件。
src/modules/course/create/views/StepTwo.vue
浏览文件 @
5e62f249
...
@@ -78,10 +78,10 @@ const btnList = [
...
@@ -78,10 +78,10 @@ const btnList = [
btn_name
:
'直播'
,
btn_name
:
'直播'
,
resource_type
:
'6'
,
resource_type
:
'6'
,
},
},
{
//
{
btn_name
:
'知识点'
,
//
btn_name: '知识点',
resource_type
:
'999'
,
//
resource_type: '999',
},
//
},
{
{
btn_name
:
'关联数字教材'
,
btn_name
:
'关联数字教材'
,
resource_type
:
'13'
,
resource_type
:
'13'
,
...
@@ -152,7 +152,7 @@ const setDefaultKnowledgePoints = (courseData: any) => {
...
@@ -152,7 +152,7 @@ const setDefaultKnowledgePoints = (courseData: any) => {
// 在knowledgeTree中查找匹配的知识点
// 在knowledgeTree中查找匹配的知识点
const
matchedKnowledge
=
knowledgeTree
.
find
(
const
matchedKnowledge
=
knowledgeTree
.
find
(
(
item
:
any
)
=>
(
item
:
any
)
=>
item
.
courseName
===
courseName
&&
item
.
chapterName
===
fullChapterName
&&
item
.
sectionName
===
sectionName
item
.
courseName
===
courseName
&&
item
.
chapterName
===
fullChapterName
&&
item
.
sectionName
===
sectionName
,
)
)
if
(
matchedKnowledge
)
{
if
(
matchedKnowledge
)
{
...
@@ -166,7 +166,7 @@ const setDefaultKnowledgePoints = (courseData: any) => {
...
@@ -166,7 +166,7 @@ const setDefaultKnowledgePoints = (courseData: any) => {
matchedKnowledge
.
children
,
matchedKnowledge
.
children
,
courseData
.
id
,
courseData
.
id
,
chapter
.
parent_id
,
chapter
.
parent_id
,
chapter
.
id
chapter
.
id
,
)
)
// 添加到现有数据中
// 添加到现有数据中
...
@@ -198,7 +198,7 @@ const convertKnowledgeToStorageFormat = (
...
@@ -198,7 +198,7 @@ const convertKnowledgeToStorageFormat = (
knowledgeNodes
:
any
[],
knowledgeNodes
:
any
[],
courseId
:
string
,
courseId
:
string
,
chapterId
:
string
,
chapterId
:
string
,
sectionId
:
string
sectionId
:
string
,
):
any
[]
=>
{
):
any
[]
=>
{
const
result
:
any
[]
=
[]
const
result
:
any
[]
=
[]
...
@@ -322,7 +322,7 @@ const handleConsult = (node: any) => {
...
@@ -322,7 +322,7 @@ const handleConsult = (node: any) => {
}
}
if
(
node
.
data
.
resource_type
===
'13'
)
{
if
(
node
.
data
.
resource_type
===
'13'
)
{
window
.
open
(
window
.
open
(
`https://zijingebook.ezijing.com/student/book?book_id=
${
route
.
query
.
bid
}
&chapter_id=
${
node
.
data
.
resource_id
}
`
`https://zijingebook.ezijing.com/student/book?book_id=
${
route
.
query
.
bid
}
&chapter_id=
${
node
.
data
.
resource_id
}
`
,
)
)
}
}
}
}
...
@@ -513,7 +513,7 @@ const handleShowCourseKnowledgeGraph = () => {
...
@@ -513,7 +513,7 @@ const handleShowCourseKnowledgeGraph = () => {
v-permission=
"'v1-course-create-chapter'"
v-permission=
"'v1-course-create-chapter'"
>
添加章
</el-button
>
添加章
</el-button
>
>
<el-button
type=
"primary"
round
style=
"margin-bottom: 20px"
@
click=
"handleShowCourseKnowledgeGraph"
<el-button
type=
"primary"
round
style=
"margin-bottom: 20px"
@
click=
"handleShowCourseKnowledgeGraph"
v-if=
"false"
>
知识点脑图
</el-button
>
知识点脑图
</el-button
>
>
<div
class=
"course_tip"
>
<div
class=
"course_tip"
>
...
@@ -603,7 +603,11 @@ const handleShowCourseKnowledgeGraph = () => {
...
@@ -603,7 +603,11 @@ const handleShowCourseKnowledgeGraph = () => {
<el-icon><Plus
/></el-icon>
<el-icon><Plus
/></el-icon>
添加小节
添加小节
</el-button>
</el-button>
<el-button
class=
"btn_operate"
v-if=
"data.depth === '1'"
@
click=
"handleShowKnowledgeGraph(node)"
>
<el-button
class=
"btn_operate"
v-if=
"data.depth === '1'"
@
click=
"handleShowKnowledgeGraph(node)"
v-show=
"false"
>
<el-icon><Plus
/></el-icon>
<el-icon><Plus
/></el-icon>
知识点脑图
知识点脑图
</el-button>
</el-button>
...
...
src/modules/course/my/views/Graph.vue
浏览文件 @
5e62f249
...
@@ -69,11 +69,13 @@ const addTagId = ref<any>('')
...
@@ -69,11 +69,13 @@ const addTagId = ref<any>('')
const
handleAddTagSame
=
(
scope
:
any
)
=>
{
const
handleAddTagSame
=
(
scope
:
any
)
=>
{
const
id
=
findParentIdById
(
tableData
.
value
,
scope
?.
row
?.
id
)
const
id
=
findParentIdById
(
tableData
.
value
,
scope
?.
row
?.
id
)
addTagId
.
value
=
id
||
''
addTagId
.
value
=
id
||
''
pName
.
value
=
''
isUpdate
.
value
=
false
isUpdate
.
value
=
false
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
}
}
const
handleAddTagChild
=
(
scope
:
any
)
=>
{
const
handleAddTagChild
=
(
scope
:
any
)
=>
{
addTagId
.
value
=
scope
?.
row
.
id
addTagId
.
value
=
scope
?.
row
.
id
pName
.
value
=
''
isUpdate
.
value
=
false
isUpdate
.
value
=
false
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
}
}
...
@@ -86,7 +88,7 @@ const handleUpdateTag = (scope: any) => {
...
@@ -86,7 +88,7 @@ const handleUpdateTag = (scope: any) => {
// 输入完名称点击输入框
// 输入完名称点击输入框
const
handleConfirm
=
()
=>
{
const
handleConfirm
=
()
=>
{
if
(
isUpdate
)
{
if
(
isUpdate
.
value
)
{
updateTagRequest
()
updateTagRequest
()
}
else
{
}
else
{
addTagRequest
()
addTagRequest
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论