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

change prod env

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