Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
1238949e
提交
1238949e
authored
7月 22, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
9434982c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
11 行删除
+15
-11
AddLiveDialog.vue
...rse/create/components/stepTwoComponents/AddLiveDialog.vue
+9
-9
ViewCourseInfoTop.vue
src/modules/course/my/components/ViewCourseInfoTop.vue
+3
-1
List.vue
src/modules/resource/other/views/List.vue
+3
-1
没有找到文件。
src/modules/course/create/components/stepTwoComponents/AddLiveDialog.vue
浏览文件 @
1238949e
...
...
@@ -91,13 +91,15 @@ const handleLiveList = (query: string) => {
liveList
.
value
=
[]
}
}
const
changeLive
=
(
val
:
any
)
=>
{
if
(
val
!==
''
)
{
form
.
name
=
allLecturers
.
value
?.
filter
((
item
:
any
)
=>
item
.
id
===
val
)[
0
].
subject
}
else
{
form
.
name
=
''
watch
(
()
=>
form
.
resource_id
,
()
=>
{
if
(
form
.
resource_id
!==
''
)
{
form
.
name
=
allLecturers
.
value
?.
filter
((
item
:
any
)
=>
item
.
id
===
form
.
resource_id
)[
0
]?.
subject
}
}
}
)
</
script
>
<
template
>
<el-dialog
:model-value=
"isShowLiveDialog"
draggable
:before-close=
"handleCancel"
width=
"30%"
title=
"添加直播"
>
...
...
@@ -108,12 +110,10 @@ const changeLive = (val: any) => {
clearable
filterable
remote
multiple
placeholder=
"请输入直播名称或者直播id"
:remote-method=
"handleLiveList"
:loading=
"loading"
style=
"width: 230px"
@
change=
"changeLive"
style=
"width: 100%"
>
<el-option
v-for=
"item in liveList"
:key=
"item.id"
:label=
"item.subject"
:value=
"item.id"
/>
</el-select>
...
...
src/modules/course/my/components/ViewCourseInfoTop.vue
浏览文件 @
1238949e
...
...
@@ -4,6 +4,7 @@ const props: any = defineProps({
type
:
Object
}
})
console
.
log
(
props
?.
data
)
interface
IBasicInfo
{
icon
:
string
...
...
@@ -87,6 +88,7 @@ const basicInfo = computed((): IBasicInfo[] => {
border
:
'0'
}
]
basicList
.
map
((
item
:
any
)
=>
{
if
(
item
.
key
===
'specialty'
)
{
item
.
value
=
props
?.
data
.
specialty
?.
map
((
item
:
any
)
=>
item
.
name
).
toString
()
...
...
@@ -112,7 +114,7 @@ const basicInfo = computed((): IBasicInfo[] => {
<img
:src=
"item.icon"
/>
<div
class=
"item-right"
>
<div
class=
"label"
>
{{
item
.
label
}}
</div>
<div
class=
"value"
>
{{
item
.
value
.
toString
()
||
'-'
}}
</div>
<div
class=
"value"
>
{{
item
.
value
||
'-'
}}
</div>
</div>
</div>
</div>
...
...
src/modules/resource/other/views/List.vue
浏览文件 @
1238949e
...
...
@@ -31,7 +31,7 @@ const tabChange = () => {
const
departmentList
:
any
=
useProjectList
(
''
,
'79806610719731712'
).
departmentList
// 下拉选择tree 视频分类
let
{
list
:
selectTree
}
=
useGetCategoryList
()
let
{
list
:
selectTree
}
:
any
=
useGetCategoryList
()
const
defaultProps
=
{
children
:
'children'
,
label
:
'category_name'
,
...
...
@@ -121,11 +121,13 @@ const typeFilter = () => {
<template
#
header-aside
></
template
>
<
template
#
filter-type=
"{ params }"
>
<el-tree-select
node-key=
"id"
@
change=
"typeFilter"
clearable
:props=
"defaultProps"
v-model=
"params.classification"
:data=
"selectTree"
:default-expanded-keys=
"selectTree.length ? [selectTree[0]?.id] : []"
/>
</
template
>
<
template
v-if=
"tabValue == '3' && isAdmin"
#
filter-department=
"{ params }"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论