Skip to content

Commit 6f21336

Browse files
committed
Update Interface
1 parent 764c211 commit 6f21336

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
│ │
8585
│ ├─common
8686
│ │ └─js
87-
│ │ log.js(日志类)
87+
│ │ logger.js(日志类)
8888
│ │ util.js(工具类)
8989
│ │
9090
│ ├─components

src/components/Main.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
})
132132
break
133133
case 'setting':
134-
console.log(JSON.stringify(this.fastItem))
134+
135135
break
136136
}
137137
}
@@ -155,7 +155,9 @@
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
}

src/components/framework/HomePage.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,20 @@
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>

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Vuex from 'vuex'
99
import store from './vuex/index'
1010
import iView from 'iview'
1111
import util from './util/util'
12-
import log from './util/log'
12+
import log from './util/logger'
1313
import 'iview/dist/styles/iview.css'
1414
import 'element-ui/lib/theme-default/index.css'
1515
import VueSocketio from 'vue-socket.io';
File renamed without changes.

0 commit comments

Comments
 (0)