Commit 31b89bf5 by 蒋勇

d

parent 23292006
...@@ -54,7 +54,7 @@ module.exports = function (app) { ...@@ -54,7 +54,7 @@ module.exports = function (app) {
app.use(session( app.use(session(
{ {
name:'pmsid', name:'pmsid',
cookie: {maxAge: 3600000}, cookie: {maxAge: 3600000,domain:'track.gongsibao.com'},
rolling:true, rolling:true,
resave: false, resave: false,
saveUninitialized: false, saveUninitialized: false,
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
return { return {
isdev:false, isdev:false,
multipleSelection: [], multipleSelection: [],
barref:null,
developerData:[], developerData:[],
problemBardata:{ problemBardata:{
title: { title: {
...@@ -56,7 +55,6 @@ ...@@ -56,7 +55,6 @@
} }
}, },
mounted:function(){ mounted:function(){
this.barref=this.$refs.problemBar;
setTimeout(()=>{ setTimeout(()=>{
var dev=this.$root.currentUser.roles.indexOf("002"); var dev=this.$root.currentUser.roles.indexOf("002");
var kfjl=this.$root.currentUser.roles.indexOf("001"); var kfjl=this.$root.currentUser.roles.indexOf("001");
...@@ -79,7 +77,7 @@ ...@@ -79,7 +77,7 @@
var d=await this.$root.postReq("/web/pm/pmquestionCtl/fetchQuestionForDev",obj); var d=await this.$root.postReq("/web/pm/pmquestionCtl/fetchQuestionForDev",obj);
if(d.status==0&&d.data){ if(d.status==0&&d.data){
this.developerData=d.data.obj1; this.developerData=d.data.obj1;
var data=this.barref.getEchartObj(); var data=this.$refs.problemBar.getEchartObj();
if(data){ if(data){
var option = data.getOption(); var option = data.getOption();
option.xAxis[0].data=d.data.obj2; option.xAxis[0].data=d.data.obj2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment