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

for test

上级 ef4ec7c0
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
series1Data = this.dataList.map((item) => { series1Data = this.dataList.map((item) => {
return ((item.afterRate || 0) * 100).toFixed(1); return ((item.afterRate || 0) * 100).toFixed(1);
}); });
if (process.client) { if (this.$rocNative.isWeb) {
const clientWidth = const clientWidth =
window.outerWidth || window.outerWidth ||
document.body.clientWidth || document.body.clientWidth ||
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
const clientWidth = const clientWidth =
window.outerWidth || window.outerWidth ||
document.body.clientWidth || document.body.clientWidth ||
......
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
const clientWidth = const clientWidth =
window.outerWidth || window.outerWidth ||
document.body.clientWidth || document.body.clientWidth ||
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
const clientWidth = const clientWidth =
window.outerWidth || window.outerWidth ||
document.body.clientWidth || document.body.clientWidth ||
......
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
const clientWidth = const clientWidth =
window.outerWidth || window.outerWidth ||
document.body.clientWidth || document.body.clientWidth ||
......
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
const clientWidth = const clientWidth =
window.outerWidth || window.outerWidth ||
document.body.clientWidth || document.body.clientWidth ||
......
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
vm = this; vm = this;
} }
}, },
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
vm = this; vm = this;
} }
}, },
......
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
this.isWeb = this.$rocNative.isWeb; this.isWeb = this.$rocNative.isWeb;
} }
}, },
......
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
this.isWeb = this.$rocNative.isWeb; this.isWeb = this.$rocNative.isWeb;
} }
}, },
......
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
this.isAndroid = this.$rocNative.isAndroid; this.isAndroid = this.$rocNative.isAndroid;
} }
}, },
......
...@@ -258,12 +258,6 @@ export default { ...@@ -258,12 +258,6 @@ export default {
this.value.provinceId = newVal[0].id; this.value.provinceId = newVal[0].id;
this.queryParams.regionId = newVal[0].id; this.queryParams.regionId = newVal[0].id;
this.value.provinceName = newVal[0].label; this.value.provinceName = newVal[0].label;
// this.areaList.provinceList = newVal;
// this.areaList.provinceList[0].selected = true;
// this.value.provinceName = this.areaList.provinceList[0].label;
// this.value.areaDegree = this.areaList.provinceList[0].degree;
// 包含所在机构 // 包含所在机构
if (newVal[0].containHospitalFlag == 1) { if (newVal[0].containHospitalFlag == 1) {
// this.value.provinceName = newVal[1].label; // this.value.provinceName = newVal[1].label;
...@@ -278,7 +272,7 @@ export default { ...@@ -278,7 +272,7 @@ export default {
}, },
}, },
created() { created() {
if (process.client) { 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 || '';
......
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
watch: { watch: {
processDataObj: { processDataObj: {
handler() { handler() {
if (process.client) { if (this.$rocNative.isWeb) {
const clientWidth = const clientWidth =
window.outerWidth || window.outerWidth ||
document.body.clientWidth || document.body.clientWidth ||
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}), }),
}, },
created() { created() {
if (process.client) { 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.queryGDParams.projectId = cQuery.projectId || ''; this.queryGDParams.projectId = cQuery.projectId || '';
......
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
}), }),
}, },
created() { created() {
if (process.client) { 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;
const hospitalIdList = cQuery.hospitalIdList || ''; const hospitalIdList = cQuery.hospitalIdList || '';
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}), }),
}, },
created() { created() {
if (process.client) { 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;
const hospitalIdList = cQuery.hospitalIdList || ''; const hospitalIdList = cQuery.hospitalIdList || '';
......
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
}; };
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
var _this = this; var _this = this;
if (this.$rocNative.isWeb) { if (this.$rocNative.isWeb) {
cookies.set('conslToken', _this.token); cookies.set('conslToken', _this.token);
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}), }),
}, },
created() { created() {
if (process.client) { if (this.$rocNative.isWeb) {
const cQuery = this.$route.query; const cQuery = this.$route.query;
const hospitalIdList = cQuery.hospitalIdList || ''; const hospitalIdList = cQuery.hospitalIdList || '';
this.queryGDParams.projectId = cQuery.projectId || ''; this.queryGDParams.projectId = cQuery.projectId || '';
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
}), }),
}, },
created() { created() {
if (process.client) { 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;
const hospitalIdList = cQuery.hospitalIdList || ''; const hospitalIdList = cQuery.hospitalIdList || '';
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册