提交 8e94c939 编写于 作者: huangwensu's avatar huangwensu

跳转添加参数

上级 99167f48
...@@ -102,54 +102,7 @@ export default { ...@@ -102,54 +102,7 @@ export default {
hocImg: require("../../images/has-owner-cert.png"), hocImg: require("../../images/has-owner-cert.png"),
activeNames: [], activeNames: [],
dialogState: false, dialogState: false,
projectId: 1, projectId: 1
componentList: [
{
name: '教培考核-必修部分',
introduce: '本次培训工作以指南为依据,本次培训工作以指南为依据。 <br>必修部分共10门课程,需全部考核通过,单门课程成绩总60-79分为合格,80-100分为优秀,每门考试共可考2次,支持中途退出后继续答题。',
portalModuleDTOS: [
{
moduleName: '1 总论篇',
expandKey: '1',
value: '共3节',
disabled: false,
},
{
moduleName: '2 诊断篇',
expandKey: '2',
value: '共3节',
disabled: false,
},
{
moduleName: '3 老年高血压篇',
expandKey: '3',
value: '尚未开始',
disabled: true,
},
],
},
{
name: '教培考核-选修部分',
introduce: '本次培训工作以指南为依据。 \n必修部分共11门课,需全部通过',
portalModuleDTOS: [
{
moduleName: '1 高血压慢病资格',
expandKey: 'abc',
value: '共3节',
},
{
moduleName: '2 诊断篇',
expandKey: '6',
value: '共3节',
},
{
moduleName: '3 老年高血压篇',
expandKey: '7',
value: '共3节',
},
],
}
],
}; };
}, },
props: { props: {
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</div> </div>
</template> </template>
<script> <script>
import { getWebPageUrl } from "@/utils/index"; import { getWebPageUrl, gotoPage } from "@/utils/index";
export default { export default {
props: { props: {
currentProgress: { currentProgress: {
...@@ -59,6 +59,10 @@ export default { ...@@ -59,6 +59,10 @@ export default {
certificateUrl: { certificateUrl: {
type: String, type: String,
default: "" default: ""
},
projectId: {
type: String,
default: "1"
} }
}, },
data() { data() {
...@@ -119,18 +123,7 @@ export default { ...@@ -119,18 +123,7 @@ export default {
}, },
// 审核 // 审核
verifyResult() { verifyResult() {
let paramList = [ gotoPage(this,`cme/#/credit-detail?creditId=${this.creditId}&projectId=${this.projectId}`)
{
key: "pageUrl",
value: getWebPageUrl(`cme/#/credit-detail?id=${this.creditId}`),
type: 4,
seqNo: 1
}
];
rocNative.dispatchEventByModuleCode({
modeCode: "M300",
jsonString: paramList
});
}, },
// 获得学分--下载证书 // 获得学分--下载证书
getScore() { getScore() {
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
:credit="project.credit" :credit="project.credit"
:creditId="project.creditId" :creditId="project.creditId"
:certificateUrl="project.certificateUrl" :certificateUrl="project.certificateUrl"
:projectId="projectId"
@applicationCredit="applicationCredit" @applicationCredit="applicationCredit"
/> />
<!-- 简介和目录 --> <!-- 简介和目录 -->
...@@ -105,7 +106,7 @@ import ItemLeader from "@/components/cme/item-leader"; ...@@ -105,7 +106,7 @@ import ItemLeader from "@/components/cme/item-leader";
import TeacterIntro from "@/components/cme/teacter-intro"; import TeacterIntro from "@/components/cme/teacter-intro";
import CommonDialog from "@/components/cme/common-dialog"; import CommonDialog from "@/components/cme/common-dialog";
import { getWebPageUrl } from "@/utils/index"; import { getWebPageUrl, gotoPage } from "@/utils/index";
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from "vuex";
import vueFilters from "@/utils/filter"; import vueFilters from "@/utils/filter";
...@@ -145,7 +146,7 @@ export default { ...@@ -145,7 +146,7 @@ export default {
from: "inner", from: "inner",
isBlack: false, isBlack: false,
showLoading: false, showLoading: false,
projectId: 1, projectId: "1",
//componentId: 1, //componentId: 1,
//moduleId: 1, //moduleId: 1,
contentList: [], contentList: [],
...@@ -302,23 +303,12 @@ export default { ...@@ -302,23 +303,12 @@ export default {
let param = { let param = {
id: _this.projectId, id: _this.projectId,
creditId: _this.project.creditId || 1, creditId: _this.project.creditId || 1,
token: _this.userInfo.userToken || "AAA613F74B7A4746AEE8354458FF4896", token: _this.userInfo.userToken || "FA4BB8D91DA442119C517C40A0536583",
setEntry: true setEntry: true
}; };
_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") {
let paramList = [ gotoPage(_this,`cme/#/credit-edit?creditId=${_this.project.creditId}`);
{
key: "pageUrl",
value: getWebPageUrl(`cme/#/credit-edit?id=${_this.project.creditId}`),
type: 4,
seqNo: 1
}
];
rocNative.dispatchEventByModuleCode({
modeCode: "M300",
jsonString: paramList
});
} else if (res.code == "219004" || res.code == "219005") { } else if (res.code == "219004" || res.code == "219005") {
// 未加入机构 219004 未身份认证 219005 不在申请范围 219012 // 未加入机构 219004 未身份认证 219005 不在申请范围 219012
let params = { let params = {
...@@ -336,13 +326,7 @@ export default { ...@@ -336,13 +326,7 @@ export default {
}, },
// 弹框按钮事件 // 弹框按钮事件
handlerAction(data) { handlerAction(data) {
if (data == 2) {
if (this.confirmBtnText == "去认证") {
rocNative.gotoAuthentication();
}
} else {
this.isShowDialog = false; this.isShowDialog = false;
}
}, },
// 锚点到简介 // 锚点到简介
jumpIntro() { jumpIntro() {
...@@ -369,7 +353,7 @@ export default { ...@@ -369,7 +353,7 @@ export default {
getProjectParticularsV2() { getProjectParticularsV2() {
let _this = this; let _this = this;
let param = { let param = {
token: _this.userInfo.userToken || "AAA613F74B7A4746AEE8354458FF4896", token: _this.userInfo.userToken || "FA4BB8D91DA442119C517C40A0536583",
setEntry: true setEntry: true
}; };
// _this.showLoading = true; // _this.showLoading = true;
...@@ -390,12 +374,6 @@ export default { ...@@ -390,12 +374,6 @@ export default {
_this.project = res.data; _this.project = res.data;
_this.projectLeader = res.data.projectLeader; _this.projectLeader = res.data.projectLeader;
_this.doctorList = res.data.doctorList; _this.doctorList = res.data.doctorList;
if (_this.project.currentProgress == 2) {
// this.dialogContent =
// "恭喜您已经完成该项目学习及考试,快去申请学分吧";
// this.confirmBtnText = "立即申请";
// this.isShowDialog = true;
}
//_this.projectStatus = res.data.projectStatus; //_this.projectStatus = res.data.projectStatus;
_this.projectComponentDTOS = _this.setListData( _this.projectComponentDTOS = _this.setListData(
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册