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

add arms

上级 f472d14d
...@@ -33,3 +33,6 @@ VUE_APP_ARMS='' ...@@ -33,3 +33,6 @@ VUE_APP_ARMS=''
VUE_APP_CACHE_CONTROL=1 VUE_APP_CACHE_CONTROL=1
VUE_APP_WEB_URL=https://phome.yunqueyi.com/lreport_ssr VUE_APP_WEB_URL=https://phome.yunqueyi.com/lreport_ssr
#arms日志监控脚本
VUE_APP_ARMS=!(function(c,b,d,a){c[a]||(c[a]={});c[a].config={pid:"bj53rb58f5@3579bc50e0d05db",appType:"web",imgUrl:"https://arms-retcode.aliyuncs.com/r.png?",sendResource:true,enableLinkTrace:true,behavior:true,enableSPA:true,useFmp:true};with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d)})(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl");
...@@ -27,3 +27,6 @@ VUE_APP_BUCKET_NAME='pica-app-uat' ...@@ -27,3 +27,6 @@ VUE_APP_BUCKET_NAME='pica-app-uat'
VUE_APP_CACHE_CONTROL=1 VUE_APP_CACHE_CONTROL=1
VUE_APP_WEB_URL=https://uat-phome.yunqueyi.com/lreport_ssr VUE_APP_WEB_URL=https://uat-phome.yunqueyi.com/lreport_ssr
#arms日志监控脚本
VUE_APP_ARMS=!(function(c,b,d,a){c[a]||(c[a]={});c[a].config={pid:"bj53rb58f5@3579bc50e0d05db",appType:"web",imgUrl:"https://arms-retcode.aliyuncs.com/r.png?",sendResource:true,enableLinkTrace:true,behavior:true,enableSPA:true,useFmp:true};with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d)})(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl");
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
</head> </head>
<body> <body>
<script>
<%= process.env.VUE_APP_ARMS %>
</script>
<noscript> <noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript> </noscript>
......
...@@ -136,6 +136,8 @@ export default { ...@@ -136,6 +136,8 @@ export default {
}, },
// 绘制图表 // 绘制图表
drawColumn() { drawColumn() {
console.log('--this', this);
console.log('--this.$echarts', this.$echarts);
const chartColumn = this.$echarts.init(document.getElementById(this.id)); const chartColumn = this.$echarts.init(document.getElementById(this.id));
const options = { const options = {
color: [ color: [
......
...@@ -4,5 +4,6 @@ import { Toast } from 'vant'; ...@@ -4,5 +4,6 @@ import { Toast } from 'vant';
const echarts = window.echarts; const echarts = window.echarts;
Vue.use(Toast); Vue.use(Toast);
console.log('--echarts', echarts);
Vue.prototype.$echarts = echarts; Vue.prototype.$echarts = echarts;
Vue.prototype.$rocNative = new rocNative(); Vue.prototype.$rocNative = new rocNative();
...@@ -325,7 +325,7 @@ export default { ...@@ -325,7 +325,7 @@ export default {
studyRankList: [], studyRankList: [],
costRankList: [], costRankList: [],
projectId: '', projectId: '',
token: '', token: '626A0B2B4CE2410FB77E63E1CF3B3C91',
isOrgStat: false, isOrgStat: false,
// 区域选择通用接口参数 // 区域选择通用接口参数
queryParams: { queryParams: {
...@@ -416,7 +416,6 @@ export default { ...@@ -416,7 +416,6 @@ export default {
}), }),
}, },
created() { created() {
console.log('-this.$rocNative.isWeb', this.$rocNative.isWeb);
this.projectId = this.projectId =
(this.$route && this.$route.query && this.$route.query.projectId) || ''; (this.$route && this.$route.query && this.$route.query.projectId) || '';
this.queryGDParams.projectId = this.projectId; this.queryGDParams.projectId = this.projectId;
...@@ -432,7 +431,7 @@ export default { ...@@ -432,7 +431,7 @@ export default {
this.getUserInfo(); this.getUserInfo();
}, },
mounted() { mounted() {
this.getProjectInfo(this.queryParams); // this.getProjectInfo(this.queryParams);
window.addEventListener( window.addEventListener(
'scroll', 'scroll',
......
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
// 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 {
// //
// } // }
...@@ -60,7 +60,6 @@ export default { ...@@ -60,7 +60,6 @@ export default {
getUserInfo() { getUserInfo() {
this.$rocNative.getUserInfo && this.$rocNative.getUserInfo &&
this.$rocNative.getUserInfo().then((params) => { this.$rocNative.getUserInfo().then((params) => {
console.log('--this.getUserInfo', params);
this.token = params.userToken; this.token = params.userToken;
cookies.set('conslToken', this.token); cookies.set('conslToken', this.token);
this.getProjectList(); this.getProjectList();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册