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
提交
fb8ae893
提交
fb8ae893
编写于
12月 24, 2019
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
项目列表接口联调
上级
9b7fface
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
211 行增加
和
133 行删除
+211
-133
coop-list-item.vue
src/components/business/coop-list-item.vue
+62
-51
no-content.vue
src/components/business/no-content.vue
+9
-3
cme-step.vue
src/components/cme/cme-step.vue
+52
-26
index.vue
src/views/index.vue
+53
-38
merge-detail.vue
src/views/merge-detail.vue
+35
-15
未找到文件。
src/components/business/coop-list-item.vue
浏览文件 @
fb8ae893
...
@@ -10,36 +10,37 @@
...
@@ -10,36 +10,37 @@
>
>
<div
class=
"coop-item-left"
>
<div
class=
"coop-item-left"
>
<img
:src=
"item.imgUrl"
>
<img
:src=
"item.imgUrl"
>
<span
v-if=
"item.projectStatus"
<span
v-if=
"item.projectStatus
Value
"
class=
"coop-container-status"
class=
"coop-container-status"
:style=
"
{'background': cBgColor(item)}"
:style=
"
{'background': cBgColor(item)}"
>
{{
item
.
projectStatus
|
statusText
}}
</span>
>
{{
item
.
projectStatus
Value
|
statusText
}}
</span>
</div>
</div>
<div
class=
"coop-item-right"
>
<div
class=
"coop-item-right"
>
<span
class=
"coop-item-right-title"
>
{{
item
.
projectN
ame
}}
</span>
<span
class=
"coop-item-right-title"
>
{{
item
.
n
ame
}}
</span>
<span
class=
"coop-item-right-other"
>
发起机构
{{
item
.
organizationNam
e
}}
</span>
<span
class=
"coop-item-right-other"
>
{{
item
.
level
}}
|
{{
item
.
credit
}}
|
{{
item
.
scop
e
}}
</span>
<span
v-if=
"item.pType == 1"
<
!--
<
span
v-if=
"item.pType == 1"
class=
"coop-item-right-other"
class=
"coop-item-right-other"
>
起止日期
{{
item
.
oldTime
}}
</span>
>
起止日期
{{
item
.
oldTime
}}
</span>
-->
<span
v-else
<
!--
<
span
v-else
class=
"coop-item-right-other"
class=
"coop-item-right-other"
>
起止日期
{{
item
.
projectBegintimeLong
|
formatTime
}}
-
{{
item
.
projectEndtimeLong
|
formatTime
}}
</span>
>
起止日期
{{
item
.
projectBegintimeLong
|
formatTime
}}
-
{{
item
.
projectEndtimeLong
|
formatTime
}}
</span>
-->
<span
class=
"coop-item-right-other"
>
{{
item
.
startDate
}}
至
{{
item
.
endTime
}}
</span>
</div>
</div>
</div>
</div>
<NoMoreContent
v-show=
"paramData.length > 9"
></NoMoreContent>
<NoMoreContent
v-show=
"paramData.length > 9"
></NoMoreContent>
<NoContent
v-show=
"!paramData.length && isShow"
></NoContent>
<NoContent
v-show=
"!paramData.length && isShow"
:tabNum=
"tabTo"
></NoContent>
<!--
<UpdateDialog
:showGoUpdate=
"showGoUpdate"
@
goUpdateHandler=
"goUpdateHandler"
></UpdateDialog>
-->
<!--
<UpdateDialog
:showGoUpdate=
"showGoUpdate"
@
goUpdateHandler=
"goUpdateHandler"
></UpdateDialog>
-->
<van-popup
<
!--
<
van-popup
v-model=
"showGoUpdate"
v-model=
"showGoUpdate"
position=
"bottom"
position=
"bottom"
:style=
"
{ height: '4.427rem' }"
:style=
"
{ height: '4.427rem' }"
>
>
<div
class=
"update-dialog-content"
>
<div
class=
"update-dialog-content"
>
<p
class=
"title"
>
本项目需要更新至最新版本才能参加哦
</p>
<p
class=
"title"
>
该项目仅对河北石家庄市的用户开放
</p>
<p
class=
"update-btn v-hairline-top confirm-btn"
@
click=
"goUpdateHandler"
>
立即更新
</p>
<p
class=
"update-btn v-hairline-top confirm-btn"
@
click=
"goUpdateHandler"
>
确定
</p>
<p
class=
"update-btn v-hairline-top"
@
click=
"showGoUpdate = false"
>
取消
</p>
<p
class=
"update-btn v-hairline-top"
@
click=
"showGoUpdate = false"
>
取消
</p>
</div>
</div>
</van-popup>
</van-popup>
-->
</section>
</section>
</
template
>
</
template
>
...
@@ -78,6 +79,10 @@ export default {
...
@@ -78,6 +79,10 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
1
default
:
1
},
},
userMobile
:
{
type
:
String
,
default
:
""
}
},
},
computed
:
{
computed
:
{
...
mapGetters
([
"userInfo"
])
...
mapGetters
([
"userInfo"
])
...
@@ -117,51 +122,57 @@ export default {
...
@@ -117,51 +122,57 @@ export default {
}
}
},
},
coopDetails
(
item
)
{
coopDetails
(
item
)
{
if
(
this
.
userMobile
)
{
this
.
$router
.
push
({
path
:
'/coop'
,
query
:
{
id
:
item
.
id
}});
}
else
{
rocNative
.
gotoLogin
();
}
this
.
$sendBuriedData
({
this
.
$sendBuriedData
({
component_tag
:
'089#400081#0#'
+
item
.
projectName
component_tag
:
'089#400081#0#'
+
item
.
projectName
});
});
if
(
item
.
courseRequire
==
1
)
{
//对课程完成度有控制,需判断版本号
//
if (item.courseRequire == 1) { //对课程完成度有控制,需判断版本号
let
appVersion
=
getAppVersion
(
this
.
userInfo
.
appVersion
);
//
let appVersion = getAppVersion(this.userInfo.appVersion);
// alert('版本'+appVersion)
//
// alert('版本'+appVersion)
let
flag
=
appVersion
<
315
;
//
let flag = appVersion
<
315
;
if
(
flag
===
true
)
{
//
if (flag === true) {
// 小于315版本,添加去更新弹层
//
// 小于315版本,添加去更新弹层
this
.
showGoUpdate
=
true
;
//
this.showGoUpdate = true;
}
else
{
//
}else {
// 跳转到老项目
//
// 跳转到老项目
if
(
this
.
tabTo
!=
3
)
{
//
if(this.tabTo != 3) {
this
.
setProjectTabIndex
(
this
.
tabTo
)
//
this.setProjectTabIndex(this.tabTo)
}
//
}
if
(
item
.
pType
==
1
)
{
//
if (item.pType == 1) {
this
.
goToPage
(
item
);
//
this.goToPage(item);
// 跳转到新项目
//
// 跳转到新项目
}
else
{
//
} else {
this
.
showModule
(
item
,
this
.
coopType
,
this
.
tabTo
,
item
.
courseRequire
)
//
this.showModule(item, this.coopType, this.tabTo, item.courseRequire)
}
//
}
}
//
}
}
else
{
//
} else {
// 跳转到老项目
//
// 跳转到老项目
if
(
this
.
tabTo
!=
3
)
{
//
if(this.tabTo != 3) {
this
.
setProjectTabIndex
(
this
.
tabTo
)
//
this.setProjectTabIndex(this.tabTo)
}
//
}
if
(
item
.
pType
==
1
)
{
//
if (item.pType == 1) {
this
.
goToPage
(
item
);
//
this.goToPage(item);
// 跳转到新项目
//
// 跳转到新项目
}
else
{
//
} else {
this
.
showModule
(
item
,
this
.
coopType
,
this
.
tabTo
,
item
.
courseRequire
)
//
this.showModule(item, this.coopType, this.tabTo, item.courseRequire)
// this.$router.push({
//
// this.$router.push({
// path: "/coop",
//
// path: "/coop",
// query: {
//
// query: {
// id: item.id,
//
// id: item.id,
// coopType: this.coopType
//
// coopType: this.coopType
// }
//
// }
// });
//
// });
}
//
}
}
//
}
},
},
// 跳转到新项目
// 跳转到新项目
showModule
(
item
,
coopType
,
tabTo
,
courseRequire
)
{
showModule
(
item
,
coopType
,
tabTo
,
courseRequire
)
{
...
...
src/components/business/no-content.vue
浏览文件 @
fb8ae893
...
@@ -3,15 +3,21 @@
...
@@ -3,15 +3,21 @@
<section
class=
"nc-container"
>
<section
class=
"nc-container"
>
<img
<img
class=
"nc-container-img"
class=
"nc-container-img"
src=
"
https://pica-pro.oss-cn-shanghai.aliyuncs.com/2019/03/07/cooperation
/no-content.png"
src=
"
../../images/cme
/no-content.png"
>
>
<span
class=
"nc-container-text"
>
暂无内容
</span>
<span
v-if=
"tabNum == 1"
class=
"nc-container-text"
>
您还未参加CME项目哦~
</span>
<span
v-if=
"tabNum == 2"
class=
"nc-container-text"
>
当前无可学CME项目哦~
</span>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"no-content"
,
name
:
"no-content"
,
props
:
{
tabNum
:
{
default
:
1
}
},
data
()
{
data
()
{
return
{};
return
{};
}
}
...
@@ -26,7 +32,7 @@ export default {
...
@@ -26,7 +32,7 @@ export default {
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
align-content
:
center
;
align-content
:
center
;
margin-top
:
px2rem
(
2
0px
);
margin-top
:
px2rem
(
15
0px
);
margin-bottom
:
px2rem
(
20px
);
margin-bottom
:
px2rem
(
20px
);
text-align
:
center
;
text-align
:
center
;
// margin: 0 auto;
// margin: 0 auto;
...
...
src/components/cme/cme-step.vue
浏览文件 @
fb8ae893
...
@@ -12,13 +12,13 @@
...
@@ -12,13 +12,13 @@
<p
:class=
"
{'actived': step2 || step3 || step4}">申请学分
</p>
<p
:class=
"
{'actived': step2 || step3 || step4}">申请学分
</p>
</div>
</div>
<div
class=
"step-line step-two-line"
:class=
"
{'actived': step3 || step4}">
</div>
<div
class=
"step-line step-two-line"
:class=
"
{'actived': step3 || step4}">
</div>
<p
class=
"step-text step3-text"
v-if=
"step3"
@
click=
"verifyResult"
>
审核中
>
</p>
<p
class=
"step-text step3-text"
v-if=
"step3"
@
click=
"verifyResult"
>
{{
progressText
}}
>
</p>
<div
class=
"step-item"
>
<div
class=
"step-item"
>
<span
:class=
"
{'actived': step3 || step4}">3
</span>
<span
:class=
"
{'actived': step3 || step4}">3
</span>
<p
:class=
"
{'actived': step3 || step4}">学分审核
</p>
<p
:class=
"
{'actived': step3 || step4}">学分审核
</p>
</div>
</div>
<div
class=
"step-line step-three-line"
:class=
"
{'actived': step4}">
</div>
<div
class=
"step-line step-three-line"
:class=
"
{'actived': step4}">
</div>
<p
class=
"step-text step4-text"
v-if=
"step4"
>
获得3
学分>
</p>
<p
class=
"step-text step4-text"
v-if=
"step4"
@
click=
"getScore"
>
获得
{{
credit
}}
学分>
</p>
<div
class=
"step-item"
>
<div
class=
"step-item"
>
<span
:class=
"
{'actived': step4}">4
</span>
<span
:class=
"
{'actived': step4}">4
</span>
<p
:class=
"
{'actived': step4}">申请成功
</p>
<p
:class=
"
{'actived': step4}">申请成功
</p>
...
@@ -35,46 +35,72 @@ export default {
...
@@ -35,46 +35,72 @@ export default {
studyProgress
:
{
studyProgress
:
{
type
:
String
,
type
:
String
,
default
:
"0%"
default
:
"0%"
},
credit
:
{
type
:
String
,
default
:
""
}
}
},
},
data
()
{
data
()
{
return
{
return
{
step1
:
false
,
step1
:
false
,
step2
:
fals
e
,
step2
:
tru
e
,
step3
:
false
,
step3
:
false
,
step4
:
false
step4
:
false
,
progressText
:
""
}
}
},
},
created
()
{
watch
:
{
if
(
this
.
currentProgress
==
1
)
{
// 项目学习
currentProgress
(
n
,
o
)
{
this
.
step1
=
true
;
if
(
o
==
1
)
{
// 项目学习
this
.
step2
=
false
;
this
.
step1
=
true
;
this
.
step3
=
false
;
this
.
step2
=
false
;
this
.
step4
=
false
;
this
.
step3
=
false
;
}
else
if
(
this
.
currentProgress
==
2
)
{
// 申请学分
this
.
step4
=
false
;
this
.
step1
=
false
;
}
else
if
(
o
==
2
)
{
// 申请学分
this
.
step2
=
true
;
this
.
step1
=
false
;
this
.
step3
=
false
;
this
.
step2
=
true
;
this
.
step4
=
false
;
this
.
step3
=
false
;
}
else
if
(
this
.
currentProgress
==
3
)
{
// 学分审核
this
.
step4
=
false
;
this
.
step1
=
false
;
}
else
if
(
o
==
3
)
{
// 学分审核
this
.
step2
=
false
;
this
.
step1
=
false
;
this
.
step3
=
true
;
this
.
step2
=
false
;
this
.
step4
=
false
;
this
.
step3
=
true
;
}
else
if
(
this
.
currentProgress
==
4
)
{
// 申请成功
this
.
step4
=
false
;
this
.
step1
=
false
;
this
.
progressText
=
"审核中"
;
this
.
step2
=
false
;
}
else
if
(
o
==
4
)
{
// 审核失败
this
.
step3
=
false
;
this
.
step1
=
false
;
this
.
step4
=
true
;
this
.
step2
=
false
;
this
.
step3
=
true
;
this
.
step4
=
false
;
this
.
progressText
=
"审核失败"
;
}
else
if
(
o
==
5
)
{
// 申请成功
this
.
step1
=
false
;
this
.
step2
=
false
;
this
.
step3
=
false
;
this
.
step4
=
true
;
}
}
}
},
created
()
{
},
},
methods
:
{
methods
:
{
// 立即申请
// 立即申请
applyFor
()
{
applyFor
()
{
this
.
$emit
(
"applicationCredit"
);
this
.
$emit
(
"applicationCredit"
);
},
},
// 审核
verifyResult
()
{
verifyResult
()
{
if
(
this
.
currentProgress
==
3
)
{
// 审核中
this
.
$router
.
push
({
path
:
'/credit-detail'
,
query
:
{
flag
:
false
}})
}
else
if
(
this
.
currentProgress
==
4
)
{
// 审核失败
this
.
$router
.
push
({
path
:
'/credit-detail'
,
query
:
{
flag
:
true
}})
}
},
// 获得学分
getScore
()
{
}
}
}
}
}
}
...
...
src/views/index.vue
浏览文件 @
fb8ae893
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<td
@
click=
"changeTab(2)"
:class=
"
{'active': tabIndex === 2}">
<td
@
click=
"changeTab(2)"
:class=
"
{'active': tabIndex === 2}">
<div
class=
"tap-title"
>
<div
class=
"tap-title"
>
<!--
<span>
其它项目
</span>
-->
<!--
<span>
其它项目
</span>
-->
<span
:style=
"
{'color': tabIndex === 2 ? '#333' : '#999'}">
其它
项目
</span>
<span
:style=
"
{'color': tabIndex === 2 ? '#333' : '#999'}">
全部
项目
</span>
<span></span>
<span></span>
</div>
</div>
</td>
</td>
...
@@ -30,10 +30,19 @@
...
@@ -30,10 +30,19 @@
</table>
</table>
<article
class=
"page-content-list"
>
<article
class=
"page-content-list"
>
<section
v-if=
"tabIndex === 1"
>
<section
v-if=
"tabIndex === 1"
>
<CoopListItem
:paramData=
"joinProjectList"
:coopType=
"1"
:tabTo=
"1"
:isShow=
"isShow"
></CoopListItem>
<CoopListItem
:paramData=
"joinProjectList"
:coopType=
"1"
:tabTo=
"1"
:isShow=
"isShow"
></CoopListItem>
</section>
</section>
<section
v-if=
"tabIndex === 2"
>
<section
v-if=
"tabIndex === 2"
>
<CoopListItem
:paramData=
"otherProjectList"
:coopType=
"1"
:tabTo=
"2"
:isShow=
"isShow"
></CoopListItem>
<CoopListItem
:paramData=
"otherProjectList"
:coopType=
"1"
:tabTo=
"2"
:isShow=
"isShow"
:userMobile=
"userMobile"
></CoopListItem>
</section>
</section>
</article>
</article>
</section>
</section>
...
@@ -65,8 +74,8 @@ export default {
...
@@ -65,8 +74,8 @@ export default {
pointStyle
:
"activity"
,
pointStyle
:
"activity"
,
descTitle
:
"规定从何处开始选取。如果是负数"
,
descTitle
:
"规定从何处开始选取。如果是负数"
,
tabIndex
:
1
,
tabIndex
:
1
,
joinProjectList
:
[],
joinProjectList
:
[],
// 我的项目
otherProjectList
:
[],
otherProjectList
:
[],
// 全部项目
token
:
""
,
token
:
""
,
toastTitle
:
""
,
toastTitle
:
""
,
userMobile
:
""
userMobile
:
""
...
@@ -96,8 +105,8 @@ export default {
...
@@ -96,8 +105,8 @@ export default {
_this
.
getCoopData
();
_this
.
getCoopData
();
}
}
window
.
__refresh
=
function
()
{
window
.
__refresh
=
function
()
{
_this
.
tabIndex
=
_this
.
projectTabIndex
;
//
_this.tabIndex = _this.projectTabIndex;
//
_this.getUserInfo();
_this
.
getUserInfo
();
// document.documentElement.scrollTop = 0;
// document.documentElement.scrollTop = 0;
// document.body.scrollTop = 0;
// document.body.scrollTop = 0;
};
};
...
@@ -124,8 +133,11 @@ export default {
...
@@ -124,8 +133,11 @@ export default {
},
},
changeTab
(
index
)
{
changeTab
(
index
)
{
let
tag
=
index
==
1
?
'089#400079'
:
'089#400080'
;
let
tag
=
index
==
1
?
'089#400079'
:
'089#400080'
;
this
.
tabIndex
=
index
;
this
.
tabIndex
=
index
;
if
(
index
==
1
&&
!
this
.
userMobile
)
{
rocNative
.
gotoLogin
();
this
.
tabIndex
=
2
;
}
this
.
$sendBuriedData
({
this
.
$sendBuriedData
({
component_tag
:
tag
component_tag
:
tag
});
});
...
@@ -142,45 +154,48 @@ export default {
...
@@ -142,45 +154,48 @@ export default {
let
cachedOtherProjectList
=
[]
let
cachedOtherProjectList
=
[]
_this
.
otherProjectList
=
[]
_this
.
otherProjectList
=
[]
_this
.
showLoading
=
true
;
_this
.
showLoading
=
true
;
this
.
GET
(
"
portal/portalApp/queryProjectCooperationInfoV2
"
,
param
).
then
(
this
.
GET
(
"
cme/project/list
"
,
param
).
then
(
res
=>
{
res
=>
{
_this
.
showLoading
=
false
;
_this
.
showLoading
=
false
;
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
let
oldProjects1
=
[];
//
let oldProjects1 = [];
let
oldProjects2
=
[];
//
let oldProjects2 = [];
for
(
let
i
=
0
;
i
<
res
.
data
.
oldProjects
.
length
;
i
++
)
{
// for(let i = 0; i
<
res
.
data
.
oldProjects
.
length
;
i
++
)
{
if
(
res
.
data
.
oldProjects
[
i
].
roleFlag
==
1
)
{
//
if(res.data.oldProjects[i].roleFlag == 1) {
oldProjects1
.
push
(
res
.
data
.
oldProjects
[
i
]);
//
oldProjects1.push(res.data.oldProjects[i]);
}
else
if
(
res
.
data
.
oldProjects
[
i
].
roleFlag
==
0
)
{
//
} else if (res.data.oldProjects[i].roleFlag == 0) {
oldProjects2
.
push
(
res
.
data
.
oldProjects
[
i
]);
//
oldProjects2.push(res.data.oldProjects[i]);
}
//
}
}
//
}
// console.log('项目1',oldProjects1,'项目2',oldProjects2);
// console.log('项目1',oldProjects1,'项目2',oldProjects2);
// cachedJoinProjectList = res.data.myProjectList;
cachedJoinProjectList
=
res
.
data
.
myCMEProjectListDtoList
;
// _this.joinProjectList = res.data.myProjectList;
cachedOtherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
// _this.otherProjectList = res.data.otherProjectList;
_this
.
joinProjectList
=
res
.
data
.
myCMEProjectListDtoList
;
cachedJoinProjectList
=
_this
.
handleOldProject
(
_this
.
otherProjectList
=
res
.
data
.
allCMEProjectListDtoList
;
oldProjects1
,
// cachedJoinProjectList = _this.handleOldProject(
res
.
data
.
myProjectList
// oldProjects1,
);
// res.data.myProjectList
cachedOtherProjectList
=
_this
.
handleOldProject
(
// );
oldProjects2
,
// cachedOtherProjectList = _this.handleOldProject(
res
.
data
.
otherProjectList
// oldProjects2,
);
// res.data.otherProjectList
// );
// 如果用户已经登陆,则将"至今"的几个项目移到我的列表中
// 如果用户已经登陆,则将"至今"的几个项目移到我的列表中
if
(
_this
.
userMobile
)
{
if
(
_this
.
userMobile
)
{
cachedOtherProjectList
.
map
(
item
=>
{
// cachedOtherProjectList.map(item => {
if
(
item
.
projectName
&&
item
.
projectName
.
indexOf
(
'国家基本公共卫生服务项目基层高血压管理办公室'
)
>=
0
)
{
// if(item.projectName && item.projectName.indexOf('国家基本公共卫生服务项目基层高血压管理办公室') >= 0) {
cachedJoinProjectList
.
unshift
(
item
);
// cachedJoinProjectList.unshift(item);
}
else
{
// } else {
_this
.
otherProjectList
.
push
(
item
);
// _this.otherProjectList.push(item);
}
// }
})
// })
_this
.
tabIndex
=
1
;
}
else
{
}
else
{
_this
.
otherProjectList
=
cachedOtherProjectList
_this
.
tabIndex
=
2
;
// _this.otherProjectList = cachedOtherProjectList
}
}
_this
.
joinProjectList
=
cachedJoinProjectList
;
//
_this.joinProjectList = cachedJoinProjectList;
if
(
_this
.
joinProjectList
&&
_this
.
joinProjectList
.
length
===
0
)
{
if
(
_this
.
joinProjectList
&&
_this
.
joinProjectList
.
length
===
0
)
{
_this
.
tabIndex
=
2
;
_this
.
tabIndex
=
2
;
}
}
...
...
src/views/merge-detail.vue
浏览文件 @
fb8ae893
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
<CmeStep
<CmeStep
:currentProgress=
"project.currentProgress"
:currentProgress=
"project.currentProgress"
:studyProgress=
"project.studyProgress"
:studyProgress=
"project.studyProgress"
:credit=
"project.credit"
@
applicationCredit=
"applicationCredit"
/>
@
applicationCredit=
"applicationCredit"
/>
<!-- 简介和目录 -->
<!-- 简介和目录 -->
<div
class=
"intro-catalogue-container"
>
<div
class=
"intro-catalogue-container"
>
...
@@ -70,8 +71,10 @@
...
@@ -70,8 +71,10 @@
<Loading
v-show=
"showLoading"
/>
<Loading
v-show=
"showLoading"
/>
<CommonDialog
<CommonDialog
:isShowDialog=
"isShowDialog"
:isShowDialog=
"isShowDialog"
:isSingle=
"isSingle"
:confirmBtnText=
"confirmBtnText"
:confirmBtnText=
"confirmBtnText"
:content=
"dialogContent"
></CommonDialog>
:content=
"dialogContent"
@
handlerAction=
"handlerAction"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -102,6 +105,7 @@ import vueFilters from '@/utils/filter';
...
@@ -102,6 +105,7 @@ import vueFilters from '@/utils/filter';
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
isSingle
:
false
,
dialogContent
:
""
,
// 弹框内容
dialogContent
:
""
,
// 弹框内容
confirmBtnText
:
""
,
// 弹框按钮
confirmBtnText
:
""
,
// 弹框按钮
isShowDialog
:
false
,
isShowDialog
:
false
,
...
@@ -182,7 +186,7 @@ export default {
...
@@ -182,7 +186,7 @@ export default {
this
.
from
=
this
.
$route
.
query
.
from
||
this
.
from
||
"native"
;
this
.
from
=
this
.
$route
.
query
.
from
||
this
.
from
||
"native"
;
this
.
projectId
=
this
.
$route
.
query
.
id
||
1
;
this
.
projectId
=
this
.
$route
.
query
.
id
||
1
;
//this.componentId = this.$route.query.componentId;
//this.componentId = this.$route.query.componentId;
this
.
moduleId
=
this
.
$route
.
query
.
moduleId
;
//
this.moduleId = this.$route.query.moduleId;
this
.
moduleName
=
this
.
$route
.
query
.
moduleName
;
this
.
moduleName
=
this
.
$route
.
query
.
moduleName
;
this
.
courseRequire
=
this
.
$route
.
query
.
courseRequire
;
this
.
courseRequire
=
this
.
$route
.
query
.
courseRequire
;
...
@@ -191,6 +195,7 @@ export default {
...
@@ -191,6 +195,7 @@ export default {
_this
.
setUserInfo
(
param
);
_this
.
setUserInfo
(
param
);
_this
.
checkToken
();
_this
.
checkToken
();
_this
.
getProjectParticularsV2
();
_this
.
getProjectParticularsV2
();
_this
.
permission
();
};
};
_this
.
getUserInfo
();
_this
.
getUserInfo
();
if
(
__isWeb
&&
process
.
env
.
BUILD_ENV
==
"development"
)
{
if
(
__isWeb
&&
process
.
env
.
BUILD_ENV
==
"development"
)
{
...
@@ -240,8 +245,8 @@ export default {
...
@@ -240,8 +245,8 @@ export default {
this
.
tabFlag
=
true
;
this
.
tabFlag
=
true
;
}
}
},
},
//
立即申请学分
(判断是否加入机构,是否为认证用户,是否在申请范围内)
//(判断是否加入机构,是否为认证用户,是否在申请范围内)
applicationCredit
()
{
permission
()
{
let
_this
=
this
;
let
_this
=
this
;
let
param
=
{
let
param
=
{
id
:
_this
.
projectId
,
id
:
_this
.
projectId
,
...
@@ -251,24 +256,39 @@ export default {
...
@@ -251,24 +256,39 @@ export default {
};
};
_this
.
NEW_POST
(
"cme/credit/applyCheck"
,
param
).
then
(
res
=>
{
_this
.
NEW_POST
(
"cme/credit/applyCheck"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
data
==
"219004"
)
{
// 未加入机构
if
(
res
.
data
==
"219004"
||
res
.
data
==
"219012"
)
{
// 未加入机构 219004 未身份认证 219005 不在申请范围 219012
this
.
dialogContent
=
"您暂未加入机构,加入机构后且认证身份后可申请学分"
;
this
.
dialogContent
=
`该项目仅对
${
_this
.
project
.
scope
}
的用户开放`
;
this
.
confirmBtnText
=
"加入机构"
;
this
.
isShowDialog
=
true
;
}
else
if
(
res
.
data
==
"219005"
)
{
// 未身份认证
this
.
dialogContent
=
"您暂未认证身份,完成认证身份后可申请学分"
;
this
.
confirmBtnText
=
"去认证"
;
this
.
isShowDialog
=
true
;
}
else
if
(
res
.
data
==
"219006"
)
{
// 不在申请范围
this
.
dialogContent
=
"您的所属机构不在可申请范围(河北石家庄内)"
;
this
.
confirmBtnText
=
"我知道了"
;
this
.
confirmBtnText
=
"我知道了"
;
this
.
isShowDialog
=
true
;
this
.
isShowDialog
=
true
;
this
.
isSingle
=
true
;
}
else
{
}
else
{
this
.
isShowDialog
=
false
;
//this.$router.push('/credit-edit');
}
}
}
}
});
});
},
},
// 立即申请学分
applicationCredit
()
{
},
// 弹框按钮事件
handlerAction
(
data
)
{
if
(
data
==
2
)
{
if
(
this
.
confirmBtnText
==
'加入机构'
)
{
let
params
=
{
type
:
1
,
url
:
"https://dev-m.yunqueyi.com/resident/#/patients-manage/choose-patients?bizType=1&projectId=df7756fd2b2dedf74b373decbd57e595"
,
param
:
""
};
rocNative
.
gotoActivityHospital
(
params
)
}
else
if
(
this
.
confirmBtnText
==
'去认证'
)
{
rocNative
.
gotoAuthentication
();
}
}
else
{
this
.
isShowDialog
=
false
;
}
},
// 锚点到简介
// 锚点到简介
jumpIntro
()
{
jumpIntro
()
{
this
.
tabFlag
=
true
;
this
.
tabFlag
=
true
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录