Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
c54e9af7
提交
c54e9af7
authored
7月 04, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
df991c9f
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
11 行增加
和
19 行删除
+11
-19
useQuestionList.ts
src/composables/useQuestionList.ts
+2
-2
AddChapterDialog.vue
.../create/components/stepTwoComponents/AddChapterDialog.vue
+1
-2
AddLiveDialog.vue
...rse/create/components/stepTwoComponents/AddLiveDialog.vue
+2
-1
AddSectionDialog.vue
.../create/components/stepTwoComponents/AddSectionDialog.vue
+2
-2
CardListItem.vue
...urse/create/components/stepTwoComponents/CardListItem.vue
+2
-2
StepTwo.vue
src/modules/course/create/views/StepTwo.vue
+2
-10
没有找到文件。
src/composables/useQuestionList.ts
浏览文件 @
c54e9af7
...
...
@@ -6,7 +6,7 @@ export function useQuestionList() {
getQuestionCategory
(
params
).
then
((
res
:
any
)
=>
{
list
.
value
=
res
.
data
.
filter
((
item
:
any
)
=>
{
item
.
children
=
detailChild
(
item
.
children
)
return
parseInt
(
item
.
status
)
//
return parseInt(item.status)
})
})
...
...
@@ -14,7 +14,7 @@ export function useQuestionList() {
if
(
!
child
)
return
[]
return
child
.
filter
((
item
:
any
)
=>
{
item
.
children
=
detailChild
(
item
.
children
)
return
parseInt
(
item
.
status
)
//
return parseInt(item.status)
})
}
return
{
list
}
...
...
src/modules/course/create/components/stepTwoComponents/AddChapterDialog.vue
浏览文件 @
c54e9af7
...
...
@@ -3,7 +3,6 @@ import { createCharacter, editCharacter } from '../../api'
import
type
{
FormInstance
,
FormRules
}
from
'element-plus'
import
{
useMapStore
}
from
'@/stores/map'
const
store
=
useMapStore
()
const
emit
=
defineEmits
<
Emits
>
()
const
ruleFormRef
=
ref
<
FormInstance
>
()
// 封面状态
...
...
@@ -80,7 +79,7 @@ onMounted(() => {
:title=
"isEdit ? '编辑:章' : '新增:章'"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"ruleFormRef"
label-width=
"80px"
>
<el-form-item
label=
"章-名称:"
prop=
"
typ
e"
>
<el-form-item
label=
"章-名称:"
prop=
"
nam
e"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-form>
...
...
src/modules/course/create/components/stepTwoComponents/AddLiveDialog.vue
浏览文件 @
c54e9af7
...
...
@@ -61,10 +61,11 @@ const handleConfirm = () => {
course_id
:
props
.
course_id
,
resource_type
:
props
.
btnInfo
.
resource_type
,
parent_id
:
props
.
chapterID
,
resource_id
:
lecturerValue
.
value
[
0
]
resource_id
:
lecturerValue
.
value
},
form
)
console
.
log
(
lecturerValue
.
value
,
'lecturerValue'
)
createCharacter
(
params
).
then
(()
=>
{
emit
(
'update:isShowLiveDialog'
,
false
)
emit
(
'create'
)
...
...
src/modules/course/create/components/stepTwoComponents/AddSectionDialog.vue
浏览文件 @
c54e9af7
...
...
@@ -79,10 +79,10 @@ onMounted(() => {
:title=
"props.isEdit ? '编辑:节' : '新增:节'"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"ruleFormRef"
label-width=
"80px"
>
<el-form-item
label=
"所属章:"
prop=
"
typ
e"
>
<el-form-item
label=
"所属章:"
prop=
"
chapterNam
e"
>
<p>
{{
chapterName
}}
</p>
</el-form-item>
<el-form-item
label=
"节-名称:"
prop=
"
typ
e"
>
<el-form-item
label=
"节-名称:"
prop=
"
nam
e"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-form>
...
...
src/modules/course/create/components/stepTwoComponents/CardListItem.vue
浏览文件 @
c54e9af7
...
...
@@ -9,7 +9,7 @@ const props: any = defineProps<{ data: object; tabIndex: string }>()
<!--
<img
:src=
"props.data.cover"
/>
-->
<div
class=
"cover-img"
:style=
"`background-image:url($
{props.data.cover})`">
</div>
<div
class=
"tool-pop-btn"
>
<div
style=
"min-width: 100%"
>
<
!--
<
div
style=
"min-width: 100%"
>
<router-link
v-if=
"props.data.auth_edit"
:to=
"`/resource/video/update?id=$
{props.data.id}`">
<div
class=
"edit-btn"
>
编辑
</div>
</router-link>
...
...
@@ -18,7 +18,7 @@ const props: any = defineProps<{ data: object; tabIndex: string }>()
<router-link
v-if=
"props.data.auth_view"
:to=
"`/resource/video/view?id=$
{props.data.id}`">
<div
class=
"view-btn"
>
查看
</div>
</router-link>
</div>
</div>
-->
</div>
</div>
<div
class=
"card-item-bottom"
>
...
...
src/modules/course/create/views/StepTwo.vue
浏览文件 @
c54e9af7
<
script
lang=
"ts"
setup
>
import
{
Plus
}
from
'@element-plus/icons-vue'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
getCharacter
,
delCharacter
,
...
...
@@ -11,7 +10,6 @@ import {
dragChapterList
,
getOtherDetails
}
from
'../api'
import
AddSectionDialog
from
'../components/stepTwoComponents/AddSectionDialog.vue'
import
AddLiveDialog
from
'../components/stepTwoComponents/AddLiveDialog.vue'
import
AddVideoDialog
from
'../components/stepTwoComponents/AddVideoDialog.vue'
...
...
@@ -34,8 +32,6 @@ const chapterID = ref('')
const
btnInfo
=
ref
({})
// 按钮信息
const
isEdit
=
ref
(
false
)
const
videoUrl
=
ref
(
''
)
// const courseUrl = ref('')
// const lessonPlanUrl = ref('')
const
otherUrl
=
ref
(
''
)
const
btnList
=
[
{
...
...
@@ -84,7 +80,6 @@ const handleChapterList = () => {
// 新增章节
const
handleAddChapter
=
()
=>
{
isShowDialog
.
value
=
true
console
.
log
(
isShowDialog
.
value
)
isEdit
.
value
=
false
}
// 页面刷新
...
...
@@ -93,10 +88,8 @@ const handleFresh = () => {
}
// 添加小节
const
handleAddSection
=
(
node
:
any
)
=>
{
console
.
log
(
node
,
'oooo'
)
chapterName
.
value
=
node
.
label
chapterID
.
value
=
node
.
key
console
.
log
(
isShowSectionDialog
.
value
)
isShowSectionDialog
.
value
=
true
}
//编辑章节
...
...
@@ -115,7 +108,6 @@ const handleEdit = (node: any) => {
const
handleDel
=
(
node
:
any
)
=>
{
ElMessageBox
.
confirm
(
'确定要删除吗?'
,
'提示'
).
then
(()
=>
{
const
params
=
{
id
:
node
.
key
,
course_id
:
id
}
delCharacter
(
params
).
then
(()
=>
{
ElMessage
.
success
(
'删除成功'
)
handleFresh
()
...
...
@@ -141,9 +133,7 @@ const handleAddDialog = (node: any, item: any) => {
isShowExamDialog
.
value
=
true
}
}
//查阅
const
handleConsult
=
(
node
:
any
)
=>
{
console
.
log
(
node
.
data
.
resource_type
,
'000'
)
// 视频
...
...
@@ -175,6 +165,7 @@ const handleDownload = (node: any) => {
})
}
}
//拖拽
const
allowDrop
=
(
draggingNode
:
any
,
dropNode
:
any
,
type
:
any
)
=>
{
console
.
log
(
draggingNode
.
data
,
dropNode
,
type
)
if
(
draggingNode
.
data
.
depth
===
dropNode
.
data
.
depth
)
{
...
...
@@ -188,6 +179,7 @@ const allowDrop = (draggingNode: any, dropNode: any, type: any) => {
return
false
}
}
//拖拽列表
const
handleDrop
=
(
startNode
:
any
,
endNode
:
any
,
position
:
any
,
event
:
any
)
=>
{
console
.
log
(
startNode
,
endNode
,
position
,
event
)
const
params
=
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论