Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
3b91bf25
提交
3b91bf25
authored
10月 10, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
27c086ef
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
42 行增加
和
11 行删除
+42
-11
ViewCourseInfo.vue
src/modules/course/my/components/ViewCourseInfo.vue
+28
-9
ViewCourseInfoTop.vue
src/modules/course/my/components/ViewCourseInfoTop.vue
+14
-2
没有找到文件。
src/modules/course/my/components/ViewCourseInfo.vue
浏览文件 @
3b91bf25
...
...
@@ -11,7 +11,6 @@ const props: any = defineProps({
}
})
const
form
:
any
=
ref
({})
watch
(
()
=>
props
.
data
,
value
=>
{
...
...
@@ -165,20 +164,36 @@ const handleDetail = (row: any) => {
<img
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/course-view-icon12.png"
/>
<div>
<div
class=
"label"
>
课程公开信息
</div>
<div
class=
"value"
>
{{
props
.
data
.
department_public_name
}}
</div>
<div
class=
"value"
>
{{
props
.
data
.
platform_public_name
}}
</div>
<div
class=
"value"
>
<p>
{{
props
.
data
.
department_public_name
}}
</p>
<p>
{{
props
.
data
.
platform_public_name
}}
</p>
</div>
</div>
</div>
<div
class=
"item"
>
<img
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/course-view-icon15.png"
/>
<div>
<div
class=
"label"
>
课程授权信息
</div>
<div
v-if=
"props.data.auth_departments !== []"
>
<div
class=
"value"
v-for=
"(item, index) in props.data.auth_departments"
:key=
"index"
>
{{
item
.
department_name
}}
</div>
<div
class=
"value_list"
v-if=
"props.data.auth_departments !== []"
>
<el-popover
trigger=
"hover"
placement=
"right"
>
<template
#
reference
>
<div
class=
"value"
v-for=
"(item, index) in props.data.auth_departments"
:key=
"index"
>
<p>
{{
props
.
data
.
auth_departments
[
0
].
department_name
}}
</p>
<p
v-if=
"props.data.auth_departments.length > 1"
>
{{
props
.
data
.
auth_departments
[
1
].
department_name
+
'...'
}}
</p>
</div>
</
template
>
<div
class=
"value"
v-for=
"(item, index) in props.data.auth_departments"
:key=
"index"
>
{{ item.department_name }}
</div>
</el-popover>
</div>
<div
class=
"value"
v-else
>
暂无
</div>
</div>
</div>
</div>
...
...
@@ -279,13 +294,17 @@ const handleDetail = (row: any) => {
line-height
:
100%
;
color
:
#999999
;
}
.value
{
font-size
:
14px
;
line-height
:
1
00%
;
line-height
:
1
.5
;
color
:
#333333
;
margin-bottom
:
10px
;
text-align
:
left
;
margin-left
:
15px
;
cursor
:
pointer
;
display
:
flex
;
flex-direction
:
column
;
}
}
}
...
...
src/modules/course/my/components/ViewCourseInfoTop.vue
浏览文件 @
3b91bf25
...
...
@@ -139,7 +139,14 @@ const statusStyle = (item: any) => {
<div
class=
"item-right"
>
<div
class=
"label"
>
{{ item.label }}
</div>
<div
class=
"value"
:style=
"statusStyle(item)"
>
{{ item.value || '-' }}
<el-popover
trigger=
"hover"
placement=
"bottom"
>
<div
v-html=
"item.value"
></div>
<
template
#
reference
>
<div
class=
"cover-name"
>
{{
item
.
value
}}
</div>
</
template
>
</el-popover>
</div>
</div>
</div>
...
...
@@ -256,9 +263,14 @@ const statusStyle = (item: any) => {
}
.value
{
font-size
:
14px
;
line-height
:
1
00%
;
line-height
:
1
.5
;
color
:
#333333
;
font-family
:
Source
Han
Sans
CN
;
display
:
-
webkit-box
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论