File tree Expand file tree Collapse file tree 5 files changed +20
-18
lines changed
Expand file tree Collapse file tree 5 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 8484│ │
8585│ ├─common
8686│ │ └─js
87- │ │ log .js(日志类)
87+ │ │ logger .js(日志类)
8888│ │ util.js(工具类)
8989│ │
9090│ ├─components
Original file line number Diff line number Diff line change 131131 })
132132 break
133133 case ' setting' :
134- console . log ( JSON . stringify ( this . fastItem ))
134+
135135 break
136136 }
137137 }
155155 + " " + (date .getHours ()> 9 ? date .getHours (): (' 0' + date .getHours ()))
156156 + " :" + (date .getMinutes ()> 9 ? date .getMinutes (): (' 0' + date .getMinutes ()))
157157 + " :" + (date .getSeconds ()> 9 ? date .getSeconds (): (' 0' + date .getSeconds ()))
158- document .getElementById (" time" ).innerHTML = now
158+ if ( document .getElementById (" time" )){
159+ document .getElementById (" time" ).innerHTML = now
160+ }
159161 },1000 );
160162 }
161163 }
Original file line number Diff line number Diff line change 110110 if (this .HOST == " static" ){
111111 url+= " .json"
112112 }
113- // this.$http.get(url).then((response) => {
114- // if(response.status == 200){
115- // let accessList = response.body.data.accessList
116- // option.xAxis.data = accessList.map(function (item) {return item[0]})
117- // option.series.data = accessList.map(function (item) {return item[1]})
118- // option.title.text = "系统访问量统计"
119- // this.accessChars.setOption(option)
120- // let dataList = response.body.data.dataList
121- // option.xAxis.data = dataList.map(function (item) {return item[0]})
122- // option.series.data = dataList.map(function (item) {return item[1]})
123- // option.title.text = "系统总数据量统计"
124- // this.dataChars.setOption(option)
125- // }
126- // })
113+ this .$http .get (url).then ((response ) => {
114+ if (response .status == 200 ){
115+ let accessList = response .body .data .accessList
116+ option .xAxis .data = accessList .map (function (item ) {return item[0 ]})
117+ option .series .data = accessList .map (function (item ) {return item[1 ]})
118+ option .title .text = " 系统访问量统计"
119+ this .accessChars .setOption (option)
120+ let dataList = response .body .data .dataList
121+ option .xAxis .data = dataList .map (function (item ) {return item[0 ]})
122+ option .series .data = dataList .map (function (item ) {return item[1 ]})
123+ option .title .text = " 系统总数据量统计"
124+ this .dataChars .setOption (option)
125+ }
126+ })
127127 }
128128 }
129129 </script >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Vuex from 'vuex'
99import store from './vuex/index'
1010import iView from 'iview'
1111import util from './util/util'
12- import log from './util/log '
12+ import log from './util/logger '
1313import 'iview/dist/styles/iview.css'
1414import 'element-ui/lib/theme-default/index.css'
1515import VueSocketio from 'vue-socket.io' ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments