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

add arms

上级 f472d14d
......@@ -33,3 +33,6 @@ VUE_APP_ARMS=''
VUE_APP_CACHE_CONTROL=1
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'
VUE_APP_CACHE_CONTROL=1
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 @@
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<script>
<%= process.env.VUE_APP_ARMS %>
</script>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
......
......@@ -136,6 +136,8 @@ export default {
},
// 绘制图表
drawColumn() {
console.log('--this', this);
console.log('--this.$echarts', this.$echarts);
const chartColumn = this.$echarts.init(document.getElementById(this.id));
const options = {
color: [
......
......@@ -4,5 +4,6 @@ import { Toast } from 'vant';
const echarts = window.echarts;
Vue.use(Toast);
console.log('--echarts', echarts);
Vue.prototype.$echarts = echarts;
Vue.prototype.$rocNative = new rocNative();
......@@ -325,7 +325,7 @@ export default {
studyRankList: [],
costRankList: [],
projectId: '',
token: '',
token: '626A0B2B4CE2410FB77E63E1CF3B3C91',
isOrgStat: false,
// 区域选择通用接口参数
queryParams: {
......@@ -416,7 +416,6 @@ export default {
}),
},
created() {
console.log('-this.$rocNative.isWeb', this.$rocNative.isWeb);
this.projectId =
(this.$route && this.$route.query && this.$route.query.projectId) || '';
this.queryGDParams.projectId = this.projectId;
......@@ -432,7 +431,7 @@ export default {
this.getUserInfo();
},
mounted() {
this.getProjectInfo(this.queryParams);
// this.getProjectInfo(this.queryParams);
window.addEventListener(
'scroll',
......
......@@ -39,7 +39,7 @@ export default {
// if (this.$rocNative.isWeb) {
// cookies.set('conslToken', _this.token);
// _this.headerInfo.backMethod = '';
_this.getProjectList();
// _this.getProjectList();
// } else {
//
// }
......@@ -60,7 +60,6 @@ export default {
getUserInfo() {
this.$rocNative.getUserInfo &&
this.$rocNative.getUserInfo().then((params) => {
console.log('--this.getUserInfo', params);
this.token = params.userToken;
cookies.set('conslToken', this.token);
this.getProjectList();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册