提交 f472d14d 编写于 作者: 张磊's avatar 张磊

change prod env

上级 c2370cba
......@@ -59,7 +59,7 @@ export default {
height: 44px;
line-height: 44px;
margin: 2px 0 0px;
flex-direction: row nowrap;
flex-direction: row;
align-content: center;
align-items: center;
text-align: center;
......
......@@ -248,6 +248,7 @@ export default {
watch: {
projectId(newVal) {
this.queryParams.projectId = newVal;
// this.getProvinceData(this.queryParams);
},
provinceList(newVal) {
newVal[0].selected = true;
......@@ -272,11 +273,10 @@ export default {
},
},
created() {
if (this.$rocNative.isWeb) {
if (this.$route && this.$route.query) {
const cQuery = this.$route.query;
this.queryParams.projectId = cQuery.projectId || '';
}
if (this.$route && this.$route.query) {
const cQuery = this.$route.query;
this.queryParams.projectId = cQuery.projectId || '';
this.getProvinceData(this.queryParams);
}
},
mounted() {},
......
......@@ -325,7 +325,7 @@ export default {
studyRankList: [],
costRankList: [],
projectId: '',
token: '5A8C8B5D697941C8A0303DBFD6247E55',
token: '',
isOrgStat: false,
// 区域选择通用接口参数
queryParams: {
......@@ -417,21 +417,19 @@ export default {
},
created() {
console.log('-this.$rocNative.isWeb', this.$rocNative.isWeb);
this.token =
(this.$route && this.$route.query && this.$route.query.token) ||
this.token;
this.projectId =
(this.$route && this.$route.query && this.$route.query.projectId) || 374;
(this.$route && this.$route.query && this.$route.query.projectId) || '';
this.queryGDParams.projectId = this.projectId;
this.CNTParams.projectId = this.projectId;
this.queryParams.projectId = this.projectId;
if (this.$rocNative.isWeb) {
this.setUserToken(this.token);
cookies.set('conslToken', this.token);
this.setProjectId(this.projectId);
// this.setUserToken(this.token);
// cookies.set('conslToken', this.token);
// this.setProjectId(this.projectId);
} else {
this.getUserInfo();
// this.getUserInfo();
}
this.getUserInfo();
},
mounted() {
this.getProjectInfo(this.queryParams);
......
......@@ -28,7 +28,7 @@ export default {
title: '学情报告',
backMethod: 'native',
},
token: '0434E93C02524BE1BA103658B2BFC835',
token: '',
projectList: [],
isShowKf: true,
headerEl: null,
......@@ -36,13 +36,14 @@ export default {
},
created() {
const _this = this;
if (this.$rocNative.isWeb) {
cookies.set('conslToken', _this.token);
_this.headerInfo.backMethod = '';
_this.getProjectList();
} else {
_this.getUserInfo();
}
// if (this.$rocNative.isWeb) {
// cookies.set('conslToken', _this.token);
// _this.headerInfo.backMethod = '';
_this.getProjectList();
// } else {
//
// }
_this.getUserInfo();
},
mounted() {
this.$sendBuriedData &&
......@@ -72,16 +73,8 @@ export default {
token: this.token,
};
getProjectList(params).then((res) => {
// this.showLoading = true;
if (res.code === '000000') {
this.projectList = (res.data && res.data.data) || [];
setTimeout(() => {
// this.showLoading = false;
}, 100);
// this.$forceUpdate();
// this.$nextTick( () => {
// this.showLoading = false;
// })
}
});
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册