Xxxu
2020-07-03 1ac6ef52a03f25f9def9f6a2594d2a8196aa77f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<template>
  <div class="streetlight-view">
    <el-row :gutter="13">
      <el-col :span="4">
        <streetlight-list></streetlight-list>
      </el-col>
      <el-col :span="8">
        <streetlight-light></streetlight-light>
      </el-col>
      <el-col :span="12">
        <div style="float: right;margin-right: 20px">
          <button class="btn-time" @click="streetlightTimeClick()">路灯定时</button>
          <button class="btn-time" @click="nbTimeClick()">NB定时</button>
        </div>
        <!-- <streetlight-time></streetlight-time> -->
        <streetlight-info></streetlight-info>
        <streetlight-lightdata></streetlight-lightdata>
      </el-col>
    </el-row>
    <time-streetlight v-if="timeStreetlightVisible" ref="timeStreetlight"></time-streetlight>
    <nb-time v-if="nbTimeVisible" ref="nbTime"></nb-time>
  </div>
</template>
 
<script>
import StreetlightList from './streetlight-list'
import StreetlightLight from './streetlight-light'
import StreetlightTime from './streetlight-time'
import StreetlightInfo from './streetlight-info'
import StreetlightLightdata from './streetlight-lightdata'
import TimeStreetlight from './time/time-streetlight'
import NbTime from './nb-time/nb-time'
export default {
  data () {
    return {
      timeStreetlightVisible: false,
      nbTimeVisible: false
    }
  },
  components: {
    StreetlightList,
    StreetlightLight,
    StreetlightTime,
    StreetlightInfo,
    StreetlightLightdata,
    TimeStreetlight,
    NbTime
  },
  methods: {
    streetlightTimeClick () {
      this.timeStreetlightVisible = true
      this.$nextTick(() => {
        this.$refs.timeStreetlight.init()
      })
    },
    nbTimeClick () {
      this.nbTimeVisible = true
      this.$nextTick(() => {
        this.$refs.nbTime.init()
      })
    }
  }
}
</script>
 
<style lang="scss" scoped>
.streetlight-view {
  background-image: url(~@/assets/img/camera/bg-content.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  /deep/ .title-text {
    padding: 8px;
    width: 200px;
    text-align: center;
    font-size: 1.4em;
    font-weight: 650
  };
  /deep/ .modeltop {
    margin-top: 15px
  };
  button:focus {
    outline:none;
  };
  .btn-time {
    padding: 6px 20px;
    background: url(~@/assets/img/streetlight/btn-time.png);
    background-repeat:no-repeat;
    border-style: none;
    background-size: 100%;
    color: #fff;
    font-size: 1.1em;
    font-weight: 550;
  }
}
div {
  /deep/ .el-dialog__header {
    background: url(~@/assets/img/streetlight/dialog-title.png);
    background-size:100% 100%;
  };
  /deep/ .el-dialog {
    background: #143251;
    border:3px solid #458aad
  };
}
</style>
 
<style lang="scss">
div{
  /deep/ .btn-config {
    background: url(~@/assets/img/btn-config.png);
    background-size:100% 100%;
    width:90px;
    height:30px;
    border: 0px;
  }
  /deep/ .btn-cancel {
    background: url(~@/assets/img/btn-cacel.png);
    background-size:100% 100%;
    width:90px;
    height:30px;
    border: 0px;
  }
  /deep/ .btn-add {
    background: url(~@/assets/img/btn-add.png);
    background-size:100% 100%;
    width:90px;
    height:30px;
    border: 0px;
  }
}
</style>