diff --git a/src/views/counter/components/screen.vue b/src/views/counter/components/screen.vue index 3944c0e..c01790c 100644 --- a/src/views/counter/components/screen.vue +++ b/src/views/counter/components/screen.vue @@ -2,7 +2,7 @@
@@ -11,22 +11,14 @@ - - - - - - - - - - - - - - - - + + + +
2018-08-22 11:33 + {{item}} +
+ {{item}} +
@@ -38,13 +30,26 @@ @@ -59,7 +64,7 @@ export default { ul { padding: 0; li { - font-size: .9rem; + font-size: 1.1rem; list-style-type: none; display: inline-block; } @@ -75,11 +80,14 @@ export default { border: 1px solid #666; border-collapse: collapse; text-align: center; + margin: 2rem 0 2rem 0; td { border: 1px solid #666; width: 1rem; height: 1.5rem; line-height: 1.5rem; + font-weight: 600; + padding: .2rem; } } } diff --git a/src/views/counter/detail.vue b/src/views/counter/detail.vue index b036b1d..a0d4a68 100644 --- a/src/views/counter/detail.vue +++ b/src/views/counter/detail.vue @@ -2,7 +2,11 @@
- + 配置管理 @@ -70,7 +74,9 @@ export default { listLoading: true, deviceLogs: [], activeName: 'screen', - total: 0 + total: 0, + lastItem: {}, + flag: false } }, methods: { @@ -79,6 +85,8 @@ export default { this.deviceLogs = response.data.results this.total = response.data.count this.listLoading = false + this.lastItem = this.deviceLogs[0] + this.flag = true }) }, coordinate(row, column) { @@ -101,7 +109,6 @@ export default { created() { const device_id = this.$store.getters.deviceID this.getDeviceLogs({ device_id }) - console.log(this.$store.getters.deviceID) } }