Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cooperation-cme
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-cooperation-cme
提交
151912a5
提交
151912a5
编写于
1月 02, 2020
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
收起和详情修改
上级
3a09d323
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
57 行增加
和
36 行删除
+57
-36
item-intro.vue
src/components/cme/item-intro.vue
+12
-16
item-leader.vue
src/components/cme/item-leader.vue
+10
-18
merge-detail.vue
src/views/merge-detail.vue
+35
-2
未找到文件。
src/components/cme/item-intro.vue
浏览文件 @
151912a5
...
...
@@ -2,7 +2,7 @@
<div
class=
"item-intro-container"
>
<div
class=
"basic-title"
>
项目介绍
</div>
<div
class=
"content"
>
<div
class=
"text"
>
{{
newTex
t
}}
</div>
<div
class=
"text"
>
{{
textConten
t
}}
</div>
<div
class=
"desc"
@
click=
"allText"
>
<span>
{{
btnText
}}
</span>
<img
v-if=
"!allTextFlag"
src=
"../../images/down.png"
/>
...
...
@@ -25,22 +25,17 @@ export default {
allTextFlag
:
false
}
},
computed
:
{
newText
:
function
()
{
return
this
.
textContent
.
length
>
69
?
this
.
textContent
.
slice
(
0
,
69
)
+
"..."
:
this
.
textContent
;
}
},
methods
:
{
allText
()
{
if
(
!
this
.
allTextFlag
)
{
this
.
newText
=
this
.
textContent
;
this
.
btnText
=
'收起'
;
this
.
allTextFlag
=
true
;
let
_this
=
this
;
if
(
!
_this
.
allTextFlag
)
{
_
this
.
btnText
=
'收起'
;
_
this
.
allTextFlag
=
true
;
}
else
{
this
.
newText
=
this
.
textContent
.
length
>
69
?
this
.
textContent
.
slice
(
0
,
69
)
+
"..."
:
this
.
textContent
;
this
.
btnText
=
'详情'
;
this
.
allTextFlag
=
false
;
_this
.
btnText
=
'详情'
;
_this
.
allTextFlag
=
false
;
}
_this
.
$emit
(
"itemIntroText"
,
{
allTextFlag
:
_this
.
allTextFlag
});
}
}
}
...
...
@@ -66,9 +61,10 @@ export default {
color
:
#676869
;
}
.desc
{
position
:
absolute
;
right
:
0
;
bottom
:
px2rem
(
1px
);
// position: absolute;
// right: 0;
// bottom: px2rem(1px);
text-align
:
right
;
background
:
#fff
;
line-height
:
px2rem
(
14px
);
z-index
:
99
;
...
...
src/components/cme/item-leader.vue
浏览文件 @
151912a5
...
...
@@ -10,7 +10,7 @@
</div>
</div>
<div
class=
"content"
>
<div
class=
"text"
>
{{
new
Text
}}
</div>
<div
class=
"text"
>
{{
leader
Text
}}
</div>
<div
class=
"desc"
@
click=
"allText"
>
<span>
{{
btnText
}}
</span>
<img
v-if=
"!allTextFlag"
src=
"../../images/down.png"
/>
...
...
@@ -25,6 +25,10 @@ export default {
projectLeader
:
{
type
:
Object
,
default
:
()
=>
{}
},
leaderText
:
{
type
:
String
,
default
:
""
}
},
data
()
{
...
...
@@ -33,29 +37,16 @@ export default {
allTextFlag
:
false
};
},
computed
:
{
newText
:
function
()
{
if
(
this
.
projectLeader
.
info
)
{
return
this
.
projectLeader
.
info
.
length
>
66
?
this
.
projectLeader
.
info
.
slice
(
0
,
66
)
+
"..."
:
this
.
projectLeader
.
info
;
}
}
},
methods
:
{
allText
()
{
if
(
!
this
.
allTextFlag
)
{
this
.
newText
=
this
.
projectLeader
.
info
;
this
.
btnText
=
"收起"
;
this
.
allTextFlag
=
true
;
}
else
{
this
.
newText
=
this
.
projectLeader
.
info
.
length
>
66
?
this
.
projectLeader
.
info
.
slice
(
0
,
66
)
+
"..."
:
this
.
projectLeader
.
info
;
this
.
btnText
=
"详情"
;
this
.
allTextFlag
=
false
;
}
this
.
$emit
(
"changeLeaderText"
,{
allTextFlag
:
this
.
allTextFlag
});
}
}
};
...
...
@@ -110,9 +101,10 @@ export default {
color
:
#676869
;
}
.desc
{
position
:
absolute
;
right
:
0
;
bottom
:
px2rem
(
1px
);
// position: absolute;
// right: 0;
// bottom: px2rem(1px);
text-align
:
right
;
background
:
#fff
;
line-height
:
px2rem
(
14px
);
z-index
:
99
;
...
...
src/views/merge-detail.vue
浏览文件 @
151912a5
...
...
@@ -60,8 +60,11 @@
/>
<LearnKnow
:mustKnow=
"project.mustKnow"
></LearnKnow>
<CommonSpliteLine></CommonSpliteLine>
<ItemIntro
:textContent=
"project.projectIntro"
></ItemIntro>
<ItemLeader
:projectLeader=
"projectLeader"
></ItemLeader>
<ItemIntro
:textContent=
"textContent"
@
itemIntroText=
"itemIntroText"
></ItemIntro>
<ItemLeader
:projectLeader=
"projectLeader"
:leaderText=
"leaderText"
@
changeLeaderText=
"changeLeaderText"
/>
<TeacterIntro
:doctorList=
"doctorList"
></TeacterIntro>
</div>
<CommonSpliteLine></CommonSpliteLine>
...
...
@@ -117,6 +120,8 @@ export default {
data
()
{
return
{
// token: "9B62E5874DA94979A54DB3E9DFC1443F",
textContent
:
""
,
leaderText
:
""
,
pageTitle
:
""
,
isShowShare
:
true
,
premissionFlag
:
false
,
...
...
@@ -387,7 +392,13 @@ export default {
// 先设置视频URL再显示视频组件 ------------ END
_this
.
project
=
res
.
data
;
if
(
_this
.
project
.
projectIntro
)
{
_this
.
textContent
=
_this
.
project
.
projectIntro
.
length
>
66
?
_this
.
project
.
projectIntro
.
slice
(
0
,
66
)
+
"..."
:
this
.
project
.
projectIntro
;
}
_this
.
projectLeader
=
res
.
data
.
projectLeader
||
{};
if
(
_this
.
projectLeader
.
info
)
{
_this
.
leaderText
=
_this
.
projectLeader
.
info
.
length
>
66
?
_this
.
projectLeader
.
info
.
slice
(
0
,
66
)
+
"..."
:
this
.
projectLeader
.
info
;
}
_this
.
doctorList
=
res
.
data
.
doctorList
;
//_this.projectStatus = res.data.projectStatus;
...
...
@@ -398,6 +409,28 @@ export default {
//_this.showLoading = false;
});
},
// 项目负责人--详情(收起)
changeLeaderText
(
data
)
{
let
_this
=
this
;
if
(
_this
.
projectLeader
.
info
)
{
if
(
!
data
.
allTextFlag
)
{
_this
.
leaderText
=
_this
.
projectLeader
.
info
.
length
>
66
?
_this
.
projectLeader
.
info
.
slice
(
0
,
66
)
+
"..."
:
this
.
projectLeader
.
info
;
}
else
{
_this
.
leaderText
=
_this
.
projectLeader
.
info
;
}
}
},
// 项目介绍
itemIntroText
(
data
)
{
let
_this
=
this
;
if
(
_this
.
project
.
projectIntro
)
{
if
(
!
data
.
allTextFlag
)
{
_this
.
textContent
=
_this
.
project
.
projectIntro
.
length
>
66
?
_this
.
project
.
projectIntro
.
slice
(
0
,
66
)
+
"..."
:
this
.
project
.
projectIntro
;
}
else
{
_this
.
textContent
=
_this
.
project
.
projectIntro
;
}
}
},
setListData
(
data
)
{
let
_this
=
this
;
let
list
=
data
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录