提交 d188146b 编写于 作者: guangjun.yang's avatar guangjun.yang

修改几个小bug

上级 368b0b32
......@@ -5,7 +5,7 @@
class="nc-container-img"
src="../../assets/images/no-content.png"
>
<span class="nc-container-text">暂无内容</span>
<span class="nc-container-text">暂无数据</span>
</section>
</template>
......
......@@ -99,6 +99,7 @@ export default {
this.queryGDParams.regionId = cQuery.regionId || '';
let hospitalIdList = cQuery.hospitalIdList || ''
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
cookies.remove("token");
cookies.set("token", cQuery.token || '');
this.getGeneralExam(this.queryGDParams);
}
......
......@@ -86,6 +86,7 @@ export default {
this.queryGDParams.projectId = cQuery.projectId || '';
this.queryGDParams.regionId = cQuery.regionId || '';
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
cookies.remove("token");
cookies.set("token", cQuery.token || '');
this.getGeneralExam(this.queryGDParams);
}
......
......@@ -341,6 +341,7 @@ export default {
this.queryParams.projectId = this.projectId;
if (this.$rocNative.isWeb) {
this.setUserToken(this.token);
cookies.remove("token");
cookies.set("token", this.token);
this.setProjectId(this.projectId);
} else {
......@@ -639,7 +640,7 @@ export default {
this.$rocNative.getUserInfo &&
this.$rocNative.getUserInfo().then(params => {
this.token = params.userToken;
// this.userMobile = params.userMobile;
cookies.remove("token");
cookies.set("token", this.token);
this.setUserToken(this.token);
this.setProjectId(this.projectId);
......
......@@ -56,6 +56,7 @@ export default {
this.queryGDParams.projectId = cQuery.projectId || "";
this.queryGDParams.regionId = cQuery.regionId || "";
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
cookies.remove("token");
cookies.set("token", cQuery.token || "");
this.getStudyEffect(this.queryGDParams);
}
......
......@@ -63,6 +63,7 @@ export default {
this.queryGDParams.regionId = cQuery.regionId || "";
this.queryGDParams.hospitalIdList =
(hospitalIdList && hospitalIdList.split(",")) || [];
cookies.remove("token");
cookies.set("token", cQuery.token || "");
this.getStudyTimeData(this.queryGDParams);
}
......
......@@ -37,16 +37,6 @@ export default {
type: 1
}
},
// dropdownList: [{
// desc: '按获证比例排名',
// type: 1
// },{
// desc: '按获证人数排名',
// type: 2
// },{
// desc: '按参与人数排名',
// type: 3
// }],
dropdownList: [{
desc: '按获证人数排名',
type: 2
......@@ -69,23 +59,14 @@ export default {
created() {
if(process.client) {
if(this.$route && this.$route.query) {
debugger
let cQuery = this.$route.query
let hospitalIdList = cQuery.hospitalIdList || ''
this.queryGDParams.projectId = cQuery.projectId || '';
this.queryGDParams.regionId = cQuery.regionId || '';
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
this.certFlag = cQuery.certFlag;
if(!this.certFlag) {
// this.dropdownList = [{
// desc: '按完成比例排名',
// type: 1
// },{
// desc: '按完成人数排名',
// type: 2
// },{
// desc: '按参与人数排名',
// type: 3
// }]
this.certFlag = cQuery.certFlag - 0
if(!this.certFlag) {
this.dropdownList = [{
desc: '按完成人数排名',
type: 2
......@@ -97,6 +78,7 @@ export default {
type: 3
}]
}
cookies.remove("token");
cookies.set("token", cQuery.token || '');
this.getStudyRankData(this.queryGDParams);
console.log(this.queryGDParams)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册