openatc-components 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/.babelrc +18 -18
  2. package/.editorconfig +9 -9
  3. package/.eslintignore +5 -5
  4. package/.eslintrc.js +29 -29
  5. package/.postcssrc.js +10 -10
  6. package/README.md +30 -30
  7. package/build/build.js +41 -41
  8. package/build/check-versions.js +54 -54
  9. package/build/package.config.js +58 -58
  10. package/build/package.dev.config.js +25 -25
  11. package/build/package.prod.config.js +60 -60
  12. package/build/utils.js +101 -101
  13. package/build/vue-loader.conf.js +22 -22
  14. package/build/webpack.base.conf.js +109 -109
  15. package/build/webpack.dev.conf.js +95 -95
  16. package/build/webpack.prod.conf.js +149 -149
  17. package/config/dev.env.js +7 -7
  18. package/config/index.js +76 -76
  19. package/config/prod.env.js +4 -4
  20. package/config/test.env.js +7 -7
  21. package/index.html +12 -12
  22. package/package/kisscomps/components/CircleMenu/KissCircleMenu.vue +398 -398
  23. package/package/kisscomps/components/CircleMenu/index.js +2 -2
  24. package/package/kisscomps/components/DashBoard/MakeGradientColor.js +84 -84
  25. package/package/kisscomps/components/DashBoard/dashboard.js +471 -471
  26. package/package/kisscomps/components/DashBoard/dashboard.vue +57 -57
  27. package/package/kisscomps/components/DashBoard/index.js +2 -2
  28. package/package/kisscomps/components/Horizontal/KissHorizontal.vue +146 -146
  29. package/package/kisscomps/components/Horizontal/index.js +2 -2
  30. package/package/kisscomps/components/HorizontalChildren/KissHorizontalChildren.vue +196 -196
  31. package/package/kisscomps/components/HorizontalChildren/index.js +2 -2
  32. package/package/kisscomps/components/KissCircleMenu/CircleMenu.vue +113 -113
  33. package/package/kisscomps/components/KissCircleMenu/index.js +2 -2
  34. package/package/kisscomps/components/KissCircleMenu/style/index.less +1 -1
  35. package/package/kisscomps/components/KissCircleMenu/style/main/core.less +161 -161
  36. package/package/kisscomps/components/KissCircleMenu/style/main/other.less +94 -94
  37. package/package/kisscomps/components/KissCircleMenu/style/mixin/mixin.less +36 -36
  38. package/package/kisscomps/components/KissCircleMenu/style/var/var.less +21 -21
  39. package/package/kisscomps/components/KissCircleMenu/utils/colorRE.js +5 -5
  40. package/package/kisscomps/components/KissMessageBox/KissMessageBox.vue +108 -108
  41. package/package/kisscomps/components/KissMessageBox/index.js +2 -2
  42. package/package/kisscomps/components/KissSearchInput/index.js +2 -2
  43. package/package/kisscomps/components/KissSearchInput/kisssearchinput.vue +77 -77
  44. package/package/kisscomps/components/KissSimulationProgress/KissSimulationProgress.vue +294 -294
  45. package/package/kisscomps/components/KissSimulationProgress/index.js +2 -2
  46. package/package/kisscomps/components/StatusBar/StatusBar.vue +222 -222
  47. package/package/kisscomps/components/StatusBar/index.js +2 -2
  48. package/package/kisscomps/components/TragResize/index.js +2 -2
  49. package/package/kisscomps/components/TragResize/kissdragresize.vue +536 -536
  50. package/package/kisscomps/components/TragResize/util/dom.js +23 -23
  51. package/package/kisscomps/components/TragResize/util/fns.js +3 -3
  52. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.1.vue +320 -320
  53. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +345 -345
  54. package/package/kisscomps/components/XRDDirSelector/index.js +2 -2
  55. package/package/kisscomps/components/button/index.js +2 -2
  56. package/package/kisscomps/components/button/kissbutton.vue +168 -168
  57. package/package/kisscomps/components/compass3D/compass.vue +180 -180
  58. package/package/kisscomps/components/compass3D/index.js +2 -2
  59. package/package/kisscomps/components/header/index.js +2 -2
  60. package/package/kisscomps/components/header/kissHead.vue +83 -83
  61. package/package/kisscomps/components/horizontalMenu/index.js +2 -2
  62. package/package/kisscomps/components/horizontalMenu/kissHorizontalMenu.vue +254 -254
  63. package/package/kisscomps/components/input/index.js +2 -2
  64. package/package/kisscomps/components/input/kissinput.vue +57 -57
  65. package/package/kisscomps/components/menu/index.js +2 -2
  66. package/package/kisscomps/components/menu/kissmenu.vue +324 -324
  67. package/package/kisscomps/components/mutipletips/Tdrag.js +585 -585
  68. package/package/kisscomps/components/mutipletips/index.js +2 -2
  69. package/package/kisscomps/components/mutipletips/kissmutipletips.vue +192 -192
  70. package/package/kisscomps/components/panel/index.js +2 -2
  71. package/package/kisscomps/components/panel/kissPanel.vue +151 -151
  72. package/package/kisscomps/components/select/chosen.jquery.min.js +3 -3
  73. package/package/kisscomps/components/select/index.js +2 -2
  74. package/package/kisscomps/components/select/kissselect.vue +527 -527
  75. package/package/kisscomps/components/tablebutton/index.js +2 -2
  76. package/package/kisscomps/components/tablebutton/tablebutton.vue +97 -97
  77. package/package/kisscomps/components/timectrl/KissTimeCtrl.vue +67 -67
  78. package/package/kisscomps/components/timectrl/index.js +2 -2
  79. package/package/kisscomps/components/timectrl/timectrl.css +851 -851
  80. package/package/kisscomps/components/tip/Tdrag.js +585 -585
  81. package/package/kisscomps/components/tip/index.js +2 -2
  82. package/package/kisscomps/components/tip/kisstips.1.vue +154 -154
  83. package/package/kisscomps/components/tip/kisstips.vue +154 -154
  84. package/package/kisscomps/components/tip/kisstips.vue.bak +211 -211
  85. package/package/kisscomps/index.js +71 -71
  86. package/package/kissui.js +203 -203
  87. package/package/kissui.min.js +203 -203
  88. package/package.json +1 -1
  89. package/src/App.vue +25 -25
  90. package/src/kisscomps/components/CircleMenu/KissCircleMenu.vue +398 -398
  91. package/src/kisscomps/components/CircleMenu/index.js +2 -2
  92. package/src/kisscomps/components/DashBoard/MakeGradientColor.js +84 -84
  93. package/src/kisscomps/components/DashBoard/dashboard.js +471 -471
  94. package/src/kisscomps/components/DashBoard/dashboard.vue +57 -57
  95. package/src/kisscomps/components/DashBoard/index.js +2 -2
  96. package/src/kisscomps/components/KissCircleMenu/CircleMenu.vue +113 -113
  97. package/src/kisscomps/components/KissCircleMenu/index.js +2 -2
  98. package/src/kisscomps/components/KissCircleMenu/style/index.less +1 -1
  99. package/src/kisscomps/components/KissCircleMenu/style/main/core.less +161 -161
  100. package/src/kisscomps/components/KissCircleMenu/style/main/other.less +94 -94
  101. package/src/kisscomps/components/KissCircleMenu/style/mixin/mixin.less +36 -36
  102. package/src/kisscomps/components/KissCircleMenu/style/var/var.less +21 -21
  103. package/src/kisscomps/components/KissCircleMenu/utils/colorRE.js +5 -5
  104. package/src/kisscomps/components/KissSearchInput/index.js +2 -2
  105. package/src/kisscomps/components/KissSearchInput/kisssearchinput.vue +77 -77
  106. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +193 -0
  107. package/src/kisscomps/components/SchemeConfig/index.js +2 -0
  108. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +214 -0
  109. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +176 -0
  110. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +294 -0
  111. package/src/kisscomps/components/SchemeConfig/schemeconfig.vue +711 -0
  112. package/src/kisscomps/components/StatusBar/StatusBar.vue +222 -222
  113. package/src/kisscomps/components/StatusBar/index.js +2 -2
  114. package/src/kisscomps/components/TragResize/index.js +2 -2
  115. package/src/kisscomps/components/TragResize/kissdragresize.vue +536 -536
  116. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.1.vue +320 -320
  117. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +345 -345
  118. package/src/kisscomps/components/XRDDirSelector/index.js +2 -2
  119. package/src/kisscomps/components/button/index.js +2 -2
  120. package/src/kisscomps/components/button/kissbutton.vue +168 -168
  121. package/src/kisscomps/components/compass3D/compass.vue +180 -180
  122. package/src/kisscomps/components/compass3D/index.js +2 -2
  123. package/src/kisscomps/components/horizontalMenu/index.js +2 -2
  124. package/src/kisscomps/components/horizontalMenu/kissHorizontalMenu.vue +254 -254
  125. package/src/kisscomps/components/input/index.js +2 -2
  126. package/src/kisscomps/components/input/kissinput.vue +57 -57
  127. package/src/kisscomps/components/menu/index.js +2 -2
  128. package/src/kisscomps/components/menu/kissmenu.vue +324 -324
  129. package/src/kisscomps/components/mutipletips/Tdrag.js +585 -585
  130. package/src/kisscomps/components/mutipletips/index.js +2 -2
  131. package/src/kisscomps/components/mutipletips/kissmutipletips.vue +192 -192
  132. package/src/kisscomps/components/select/chosen.jquery.min.js +3 -3
  133. package/src/kisscomps/components/select/index.js +2 -2
  134. package/src/kisscomps/components/select/kissselect.vue +527 -527
  135. package/src/kisscomps/components/timectrl/KissTimeCtrl.vue +67 -67
  136. package/src/kisscomps/components/timectrl/index.js +2 -2
  137. package/src/kisscomps/components/tip/Tdrag.js +585 -585
  138. package/src/kisscomps/components/tip/index.js +2 -2
  139. package/src/kisscomps/components/tip/kisstips.1.vue +154 -154
  140. package/src/kisscomps/components/tip/kisstips.vue +154 -154
  141. package/src/kisscomps/components/tip/kisstips.vue.bak +211 -211
  142. package/src/kisscomps/index.js +73 -71
  143. package/src/main.js +23 -23
  144. package/src/router/index.js +15 -15
  145. package/src/views/home.1.vue +479 -479
  146. package/src/views/home.vue +196 -196
  147. package/test/e2e/custom-assertions/elementCount.js +27 -27
  148. package/test/e2e/nightwatch.conf.js +46 -46
  149. package/test/e2e/runner.js +48 -48
  150. package/test/e2e/specs/test.js +19 -19
  151. package/test/unit/.eslintrc +7 -7
  152. package/test/unit/jest.conf.js +30 -30
  153. package/test/unit/setup.js +3 -3
  154. package/test/unit/specs/HelloWorld.spec.js +11 -11
@@ -1,479 +1,479 @@
1
- <template>
2
- <div class="wrap">
3
- <!-- <kiss-map mapWidth="1922px" mapHeight="1080px" class="zindex"></kiss-map> -->
4
- <div style="width: 800px; height: 800px; margin: 0; padding:0; display: inline-block">
5
- <kiss-button @click="handleClick">submit</kiss-button>
6
- <kiss-button btn-type="kiss-btn-left-bk">submit</kiss-button>
7
- <kiss-button btn-type="kiss-btn-center-bk"
8
- :disabled=true>submit</kiss-button>
9
- <kiss-button btn-type="kiss-btn-right-bk"
10
- FontSize="14px">submit</kiss-button>
11
- <kiss-button @click="openMessageBox">openMessBox</kiss-button>
12
- <kiss-input />
13
- <kiss-search-input />
14
- <input type="text"
15
- v-model="Height">
16
- <input type="text"
17
- v-model="Width">
18
- <div style=" width:1200px;">
19
- <div style="height: 600px; width: 300px; border: 1px solid red;">
20
- <kiss-nav-menu @click="menuClick"></kiss-nav-menu>
21
- </div>
22
- <div style="height: 105px; width: 100%; border: 1px solid red;box-sizing:border-box;">
23
- <kiss-horizontal-menu @click="horizontalMenuClick"></kiss-horizontal-menu>
24
- </div>
25
- <div style="height: 600px; width: 300px; float:left;">
26
- <kiss-select :list="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]" />
27
- </div>
28
- <div style="height: 600px; width: 300px; float:left;">
29
- <kiss-tip v-model="showTips"
30
- type="alarm">
31
- <h2>asdfasdaaaaaaaa</h2><input type="text"
32
- style="width: 50px; height: 30px; margin: none;">
33
- <div style="width:200px; height:100px;"></div>
34
- </kiss-tip>
35
- </div>
36
- <div style="height: 600px; width: 300px; float:left;">
37
- <kiss-tip v-if="showTips1"
38
- v-model="showTips1"
39
- :dragable="true"
40
- :resizeable="true"
41
- type="default"
42
- :width="Width"
43
- :height="Height"
44
- :zindex=9999>
45
- <span style="float: left">jjjjjjjj</span>
46
- <input type="number"
47
- name=""
48
- id="">
49
- <input type="text">
50
- <div style="width:80%; height:100px; background: yellow; float: left; opacity: 0.1"></div>
51
- <div style="width:200px; height:100px;"></div>
52
- </kiss-tip>
53
- </div>
54
- <div style="height: 600px; width: 300px; float:left;">
55
- <kiss-mutiple-tips :btn-id="2">
56
- <div class='header'></div>
57
- </kiss-mutiple-tips>
58
- </div>
59
- <kiss-compass />
60
- <div style="clear:both;"></div>
61
- </div>
62
- </div>
63
- <kiss-date-picker />
64
-
65
- <xdr-dir-selector Width="300px"
66
- Height="300px"
67
- :showlist="dirshow"></xdr-dir-selector>
68
- <!-- <div class="test">
69
- <CirleMenu type="middle-around" :number="4" :colors="colorsArr">
70
- <button type="button" slot="item_btn"></button>
71
- <a slot="item_1" class="fa fa-twitter fa-lg" herf="#" ></a>
72
- <a slot="item_2" class="fa fa-weixin fa-lg" herf="#" ></a>
73
- <a slot="item_3" class="fa fa-weibo fa-lg" herf="#" ></a>
74
- <a slot="item_4" class="fa fa-github fa-lg" herf="#" ></a>
75
- </CirleMenu>
76
- </div> -->
77
- <SatausBar :LevelsInfo="StatusBarTetsInfoList"
78
- ArrowColor="#ffffff"
79
- Width="300px"
80
- Height="100px"
81
- :TotalLevel="10"
82
- :ViewBox="ViewBoxCut"
83
- :CurLevel="curlevel"></SatausBar>
84
- <div style="width:800px;height:500px;">
85
- <kiss-panel tittle="kiss-panel">
86
- kisspanel test
87
- </kiss-panel>
88
- <kiss-tablebutton :tabList="tabletittle"
89
- :defaultCheckedName="'table3'"
90
- @leaveStates="onTableButtonLeave"
91
- @entryStates="onTableButtonEntry"
92
- width="90px">
93
- </kiss-tablebutton>
94
- </div>
95
- <kiss-head title="XXX路口"
96
- Width="1920">
97
- <div slot="left"
98
- class="leftpart">
99
- <div>leftPart1</div>
100
- <div>leftPart2</div>
101
- </div>
102
- <div slot="right">
103
- <kiss-button>button1</kiss-button>
104
- <kiss-button>button2</kiss-button>
105
- </div>
106
- </kiss-head>
107
- <dash-board style="width: 170px; height: 170px;"
108
- :curPercent="percent"
109
- :option="dashboardOpt"
110
- id="test1" />
111
- <dash-board style="width: 170px; height: 170px;"
112
- :curPercent="percent"
113
- :option="dashboardOpt"
114
- id="test2" />
115
- <div style="height:100px">
116
- <kiss-horizontal :datalist="datalist"
117
- :mainwidth="mainwidth1"
118
- :mainheight="mainheight1"
119
- :display="display"
120
- horizontalDistance="3px">
121
- <div class="phase-description"
122
- slot="fatherslot">
123
- <xdr-dir-selector Width="23px"
124
- Height="23px"
125
- :showlist="dirshow"></xdr-dir-selector>
126
- </div>
127
- </kiss-horizontal>
128
- </div>
129
- <div style="height:100%">
130
- <kiss-horizontalchildren
131
- :name="name[2]"
132
- :dataList="list1"
133
- :display="display"
134
- mainheight="50px"
135
- backColor="#366069"
136
- horizontalDistance="3px">
137
- <div class="phase-description"
138
- slot="leftslot">
139
- <xdr-dir-selector Width="23px"
140
- Height="23px"
141
- :showlist="dirshow"></xdr-dir-selector>
142
- </div>
143
- <!-- <div slot="leftslot" style="color: #fff; text-align:center; background: #0a4958; width: 25px; height: 23px;">55</div> -->
144
- </kiss-horizontalchildren>
145
- <kiss-horizontalchildren :name="name[0]"
146
- :dataList="list2"
147
- :display="display"
148
- mainheight="50px"
149
- backColor="rgba(87, 108, 113, 0.2)"
150
- horizontalDistance="3px">
151
- <div class="phase-description"
152
- slot="leftslot">
153
- <xdr-dir-selector Width="23px"
154
- Height="23px"
155
- :showlist="dirshow"></xdr-dir-selector>
156
- </div>
157
- <!-- <div slot="leftslot" style="color: #fff; text-align:center; background: #0a4958; width: 25px; height: 23px;">55</div> -->
158
- </kiss-horizontalchildren>
159
- <kiss-horizontalchildren :name="name[1]"
160
- :dataList="list3"
161
- :display="display"
162
- mainheight="50px"
163
- horizontalDistance="10px">
164
- <div style="position: relative" slot="leftslot">
165
- <div class="phase-description">
166
- <xdr-dir-selector Width="23px"
167
- Height="23px"
168
- :showlist="dirshow"></xdr-dir-selector>
169
- </div>
170
- </div>
171
- <!-- <div slot="leftslot" style="color: #fff; text-align:center; background: #0a4958; width: 25px; height: 23px;">55</div> -->
172
- </kiss-horizontalchildren>
173
- <kiss-simulation-progress :curseconds="curseconds" :totalseconds="totalseconds" :starttime="starttime" :endtime="endtime"></kiss-simulation-progress>
174
- <kiss-message-box :visible="messageboxVisible" text="是否返回场景列表?" @cancle="handleMessageboxCancle" @ok="handleMessageboxOk"/>
175
- </div>
176
- </div>
177
- </template>
178
-
179
- <script>
180
- export default {
181
- data () {
182
- return {
183
- showTips: true,
184
- Tragable: false,
185
- showTips1: false,
186
- Width: '',
187
- Height: '',
188
- count: 4,
189
- percent: 0,
190
- icons: [],
191
- dirshow: [
192
- {
193
- id: 1,
194
- color: 'yellow'
195
- }, {
196
- id: 2,
197
- color: 'red'
198
- }
199
- ],
200
- list: [{ 'isLink': false }, { 'isLink': true, url: '/doo' }, { 'isLink': true, url: '/foo' }, { 'isLink': false }],
201
- position: 'bottom-left',
202
- colorsArr: ['#0a4958', '#42daff', '#42daff', '#42daff', '#42daff'],
203
- colorsList: ['#9AFF9A', '#42daff', '#545454', '#00FF00', '#EEEE00', '#FF0000',
204
- '#C1FFC1', '#BF3EFF', '#9AFF9A', '#42daff', '#545454', '#00FF00', '#EEEE00', '#FF0000', '#C1FFC1', '#BF3EFF'],
205
- colorsList2: ['#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff'],
206
- StatusBarTetsInfoList: [
207
- {
208
- level: 1,
209
- levelname: '可以飙车了',
210
- color: '#00841C'
211
- },
212
- {
213
- level: 2,
214
- levelname: '还好吧',
215
- color: '#31C750'
216
- },
217
- {
218
- level: 3,
219
- levelname: '有点拥堵',
220
- color: '#F6D40A'
221
- },
222
- {
223
- level: 4,
224
- levelname: '不行了受不了了',
225
- color: '#FCA824'
226
- },
227
- {
228
- level: 5,
229
- levelname: '堵死了',
230
- color: '#EA423B'
231
- }
232
- ],
233
- curlevel: 0,
234
- ViewBoxCut:
235
- {
236
- x: 0,
237
- y: 380,
238
- w: 1024,
239
- h: 350
240
- },
241
- tabletittle: ['table1', 'table2', 'table3'],
242
- dashboardOpt: {
243
- style: 'bar',
244
- bar_radius: 200,
245
- bar_bg_w: 20,
246
- bar_w: 18,
247
- bar_bg_color: '#193b43',
248
- bar_bg_ring_color: '#193b43',
249
- bar_start_color: '#42daff',
250
- bar_stop_color: 'red',
251
- title: '交通强度',
252
- sides_show: true,
253
- title_show: true,
254
- title_font_color: '#FFFFFF',
255
- title_font_size: 40,
256
- title_font_family: 'HanHei SC, PingFang SC, Helvetica Neue Thin, Helvetica, STHeitiSC-Light, Arial, sans-serif',
257
- sides_font_color: '#FFFFFF',
258
- sides_font_size: 30,
259
- sides_font_family: 'HanHei SC, PingFang SC, Helvetica Neue Thin, Helvetica, STHeitiSC-Light, Arial, sans-serif',
260
- show_center_num: true,
261
- center_font_size: 100,
262
- center_font_color: '#FFFFFF'
263
- },
264
- mainwidth1: '400px',
265
- mainheight1: '25px',
266
- mainwidth: '400px',
267
- mainheight: '25px',
268
- display: true,
269
- datalist: [
270
- {
271
- value: 5,
272
- name: '测试',
273
- color: 'yellow'
274
- },
275
- {
276
- value: 1,
277
- name: '吃饭'
278
- }
279
- ],
280
- name: ['曹操', '刘备', '孙权'],
281
- value: [55, 80, 39],
282
- maxNum: 50,
283
- maxNum1: 50,
284
- maxNum2: 10,
285
- // horizontalDistance: '10px'
286
- list1: [{value: 39, maxNum: 50}],
287
- list2: [{value: 55, maxNum: 50}],
288
- list3: [{value: 7, maxNum: 10, color: 'red'}, {value: 80, maxNum: 100}],
289
- progressPercentage: 0,
290
- curseconds: 0,
291
- totalseconds: 86400,
292
- starttime: '2019-04-25 00:00:00',
293
- endtime: '2019-04-26 00:00:00',
294
- messageboxVisible: false
295
- }
296
- },
297
- methods: {
298
- handleClick () {
299
- if (this.showTips) {
300
- this.showTips = false
301
- console.log('close')
302
- } else {
303
- this.showTips = true
304
- console.log('show')
305
- }
306
- },
307
- menuClick (event, index) {
308
- console.log(event)
309
- console.log(index)
310
- },
311
- horizontalMenuClick (event, index) {
312
- console.log(event)
313
- console.log(index)
314
- },
315
- showRandom () {
316
- /** max - 期望的最大值
317
- * min - 期望的最小值
318
- * parseInt(Math.random()*(max-min+1)+min,10);
319
- * Math.floor(Math.random()*(max-min+1)+min);
320
- **/
321
- let num1 = parseInt(Math.random() * (16 - 1 + 1) + 1)
322
- let num2 = parseInt(Math.random() * (16 - 1 + 1) + 1)
323
- // this.curlevel = parseInt(Math.random() * (10 - 1 + 1) + 1)
324
- this.curlevel = 0
325
- // console.log(this.curlevel)
326
- // let num3 = parseInt(Math.random() * (16 - 1 + 1) + 1)
327
- // let num4 = parseInt(Math.random() * (16 - 1 + 1) + 1)
328
- // this.dirshow = []
329
- this.dirshow[0].id = num1
330
- this.dirshow[0].color = this.colorsList[num1 - 1]
331
- this.dirshow[1].id = num2
332
- this.dirshow[1].color = this.colorsList[num2 - 1]
333
-
334
- this.Width = parseInt(Math.random() * (300 - 1 + 1) + 1) + 'px'
335
- this.Height = parseInt(Math.random() * (300 - 1 + 1) + 1) + 'px'
336
- this.datalist[0].value = num1
337
- this.datalist[1].value = num2
338
- this.maxNum1 = num2
339
- // this.dirshow.push(
340
- // {
341
- // id: num1,
342
- // color: this.colorsList2[num1 - 1]
343
- // }, {
344
- // id: num2,
345
- // color: this.colorsList2[num2 - 1]
346
- // },
347
- // {
348
- // id: num3,
349
- // color: this.colorsList2[num3 - 1]
350
- // }, {
351
- // id: num4,
352
- // color: this.colorsList2[num4 - 1]
353
- // }
354
- // )
355
- // }
356
- },
357
- onTableButtonLeave (index) {
358
- console.log(`onTableButtonLeave`)
359
- console.log(index)
360
- },
361
- onTableButtonEntry (index) {
362
- console.log(`onTableButtonEntry`)
363
- console.log(index)
364
- },
365
- getPercentage (nowProgress) {
366
- const step = 864
367
- return nowProgress + step
368
- },
369
- openMessageBox () {
370
- this.messageboxVisible = true
371
- },
372
- handleMessageboxCancle () {
373
- this.messageboxVisible = false
374
- },
375
- handleMessageboxOk () {
376
- this.messageboxVisible = false
377
- }
378
- },
379
- watch: {
380
- showTips: function (val) {
381
- this.showTips1 = !val
382
- },
383
- showTips1: function (val) {
384
- this.showTips = !val
385
- }
386
- },
387
- mounted () {
388
- const timer = setInterval(() => {
389
- this.showRandom()
390
- this.percent = 130
391
- if (this.percent === 100) this.percent = 0
392
- if (this.curseconds < this.totalseconds) {
393
- this.curseconds = this.getPercentage(this.curseconds)
394
- } else {
395
- clearInterval(timer)
396
- }
397
- }, 1000)
398
- }
399
- }
400
- </script>
401
- <style scoped>
402
- .wrap {
403
- background: #333333;
404
- width: 100%;
405
- height: 100%;
406
- }
407
- .zindex {
408
- position: absolute;
409
- z-index: -1;
410
- }
411
- .select-containaer {
412
- float: left;
413
- margin: 0;
414
- padding: 0;
415
- width: 200px;
416
- height: 300px;
417
- }
418
-
419
- .functionLayout {
420
- position: fixed;
421
- top: 100px;
422
- width: 80px;
423
- height: 550px;
424
- }
425
- .test {
426
- width: 100px;
427
- height: 100px;
428
- left: 300px;
429
- top: 300xp;
430
- margin-left: 300px;
431
- }
432
- .leftpart > div {
433
- float: left;
434
- line-height: 50px;
435
- }
436
- .phase-description {
437
- /* background: #43b4cf;
438
- width: 25px;
439
- height: 23px; */
440
-
441
- /* width: 18px;
442
- height: 30px;
443
- background: yellow;
444
- position: absolute;
445
- top: 0;
446
- left: 9px; */
447
- width: 34px;
448
- height: 30px;
449
- background: url('../kisscomps/components/image/phaseHexagon/phasebg.png');
450
- background-size: 34px 30px;
451
- box-sizing: border-box;
452
- padding-left: 5px;
453
- padding-top: 4px;
454
- }
455
- /* .phase-description::before {
456
- content: "";
457
- width: 0;
458
- height: 0;
459
- border-right: 9px yellow solid;
460
- border-left: none;
461
- border-top: 15px solid transparent;
462
- border-bottom: 15px solid transparent;
463
- position: absolute;
464
- top: 0;
465
- left: -9px;
466
- }
467
- .phase-description::after {
468
- content: "";
469
- width: 0;
470
- height: 0;
471
- border-left: 9px yellow solid;
472
- border-right: none;
473
- border-top: 15px solid transparent;
474
- border-bottom: 15px solid transparent;
475
- position: absolute;
476
- top: 0;
477
- right: -9px;
478
- } */
479
- </style>
1
+ <template>
2
+ <div class="wrap">
3
+ <!-- <kiss-map mapWidth="1922px" mapHeight="1080px" class="zindex"></kiss-map> -->
4
+ <div style="width: 800px; height: 800px; margin: 0; padding:0; display: inline-block">
5
+ <kiss-button @click="handleClick">submit</kiss-button>
6
+ <kiss-button btn-type="kiss-btn-left-bk">submit</kiss-button>
7
+ <kiss-button btn-type="kiss-btn-center-bk"
8
+ :disabled=true>submit</kiss-button>
9
+ <kiss-button btn-type="kiss-btn-right-bk"
10
+ FontSize="14px">submit</kiss-button>
11
+ <kiss-button @click="openMessageBox">openMessBox</kiss-button>
12
+ <kiss-input />
13
+ <kiss-search-input />
14
+ <input type="text"
15
+ v-model="Height">
16
+ <input type="text"
17
+ v-model="Width">
18
+ <div style=" width:1200px;">
19
+ <div style="height: 600px; width: 300px; border: 1px solid red;">
20
+ <kiss-nav-menu @click="menuClick"></kiss-nav-menu>
21
+ </div>
22
+ <div style="height: 105px; width: 100%; border: 1px solid red;box-sizing:border-box;">
23
+ <kiss-horizontal-menu @click="horizontalMenuClick"></kiss-horizontal-menu>
24
+ </div>
25
+ <div style="height: 600px; width: 300px; float:left;">
26
+ <kiss-select :list="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]" />
27
+ </div>
28
+ <div style="height: 600px; width: 300px; float:left;">
29
+ <kiss-tip v-model="showTips"
30
+ type="alarm">
31
+ <h2>asdfasdaaaaaaaa</h2><input type="text"
32
+ style="width: 50px; height: 30px; margin: none;">
33
+ <div style="width:200px; height:100px;"></div>
34
+ </kiss-tip>
35
+ </div>
36
+ <div style="height: 600px; width: 300px; float:left;">
37
+ <kiss-tip v-if="showTips1"
38
+ v-model="showTips1"
39
+ :dragable="true"
40
+ :resizeable="true"
41
+ type="default"
42
+ :width="Width"
43
+ :height="Height"
44
+ :zindex=9999>
45
+ <span style="float: left">jjjjjjjj</span>
46
+ <input type="number"
47
+ name=""
48
+ id="">
49
+ <input type="text">
50
+ <div style="width:80%; height:100px; background: yellow; float: left; opacity: 0.1"></div>
51
+ <div style="width:200px; height:100px;"></div>
52
+ </kiss-tip>
53
+ </div>
54
+ <div style="height: 600px; width: 300px; float:left;">
55
+ <kiss-mutiple-tips :btn-id="2">
56
+ <div class='header'></div>
57
+ </kiss-mutiple-tips>
58
+ </div>
59
+ <kiss-compass />
60
+ <div style="clear:both;"></div>
61
+ </div>
62
+ </div>
63
+ <kiss-date-picker />
64
+
65
+ <xdr-dir-selector Width="300px"
66
+ Height="300px"
67
+ :showlist="dirshow"></xdr-dir-selector>
68
+ <!-- <div class="test">
69
+ <CirleMenu type="middle-around" :number="4" :colors="colorsArr">
70
+ <button type="button" slot="item_btn"></button>
71
+ <a slot="item_1" class="fa fa-twitter fa-lg" herf="#" ></a>
72
+ <a slot="item_2" class="fa fa-weixin fa-lg" herf="#" ></a>
73
+ <a slot="item_3" class="fa fa-weibo fa-lg" herf="#" ></a>
74
+ <a slot="item_4" class="fa fa-github fa-lg" herf="#" ></a>
75
+ </CirleMenu>
76
+ </div> -->
77
+ <SatausBar :LevelsInfo="StatusBarTetsInfoList"
78
+ ArrowColor="#ffffff"
79
+ Width="300px"
80
+ Height="100px"
81
+ :TotalLevel="10"
82
+ :ViewBox="ViewBoxCut"
83
+ :CurLevel="curlevel"></SatausBar>
84
+ <div style="width:800px;height:500px;">
85
+ <kiss-panel tittle="kiss-panel">
86
+ kisspanel test
87
+ </kiss-panel>
88
+ <kiss-tablebutton :tabList="tabletittle"
89
+ :defaultCheckedName="'table3'"
90
+ @leaveStates="onTableButtonLeave"
91
+ @entryStates="onTableButtonEntry"
92
+ width="90px">
93
+ </kiss-tablebutton>
94
+ </div>
95
+ <kiss-head title="XXX路口"
96
+ Width="1920">
97
+ <div slot="left"
98
+ class="leftpart">
99
+ <div>leftPart1</div>
100
+ <div>leftPart2</div>
101
+ </div>
102
+ <div slot="right">
103
+ <kiss-button>button1</kiss-button>
104
+ <kiss-button>button2</kiss-button>
105
+ </div>
106
+ </kiss-head>
107
+ <dash-board style="width: 170px; height: 170px;"
108
+ :curPercent="percent"
109
+ :option="dashboardOpt"
110
+ id="test1" />
111
+ <dash-board style="width: 170px; height: 170px;"
112
+ :curPercent="percent"
113
+ :option="dashboardOpt"
114
+ id="test2" />
115
+ <div style="height:100px">
116
+ <kiss-horizontal :datalist="datalist"
117
+ :mainwidth="mainwidth1"
118
+ :mainheight="mainheight1"
119
+ :display="display"
120
+ horizontalDistance="3px">
121
+ <div class="phase-description"
122
+ slot="fatherslot">
123
+ <xdr-dir-selector Width="23px"
124
+ Height="23px"
125
+ :showlist="dirshow"></xdr-dir-selector>
126
+ </div>
127
+ </kiss-horizontal>
128
+ </div>
129
+ <div style="height:100%">
130
+ <kiss-horizontalchildren
131
+ :name="name[2]"
132
+ :dataList="list1"
133
+ :display="display"
134
+ mainheight="50px"
135
+ backColor="#366069"
136
+ horizontalDistance="3px">
137
+ <div class="phase-description"
138
+ slot="leftslot">
139
+ <xdr-dir-selector Width="23px"
140
+ Height="23px"
141
+ :showlist="dirshow"></xdr-dir-selector>
142
+ </div>
143
+ <!-- <div slot="leftslot" style="color: #fff; text-align:center; background: #0a4958; width: 25px; height: 23px;">55</div> -->
144
+ </kiss-horizontalchildren>
145
+ <kiss-horizontalchildren :name="name[0]"
146
+ :dataList="list2"
147
+ :display="display"
148
+ mainheight="50px"
149
+ backColor="rgba(87, 108, 113, 0.2)"
150
+ horizontalDistance="3px">
151
+ <div class="phase-description"
152
+ slot="leftslot">
153
+ <xdr-dir-selector Width="23px"
154
+ Height="23px"
155
+ :showlist="dirshow"></xdr-dir-selector>
156
+ </div>
157
+ <!-- <div slot="leftslot" style="color: #fff; text-align:center; background: #0a4958; width: 25px; height: 23px;">55</div> -->
158
+ </kiss-horizontalchildren>
159
+ <kiss-horizontalchildren :name="name[1]"
160
+ :dataList="list3"
161
+ :display="display"
162
+ mainheight="50px"
163
+ horizontalDistance="10px">
164
+ <div style="position: relative" slot="leftslot">
165
+ <div class="phase-description">
166
+ <xdr-dir-selector Width="23px"
167
+ Height="23px"
168
+ :showlist="dirshow"></xdr-dir-selector>
169
+ </div>
170
+ </div>
171
+ <!-- <div slot="leftslot" style="color: #fff; text-align:center; background: #0a4958; width: 25px; height: 23px;">55</div> -->
172
+ </kiss-horizontalchildren>
173
+ <kiss-simulation-progress :curseconds="curseconds" :totalseconds="totalseconds" :starttime="starttime" :endtime="endtime"></kiss-simulation-progress>
174
+ <kiss-message-box :visible="messageboxVisible" text="是否返回场景列表?" @cancle="handleMessageboxCancle" @ok="handleMessageboxOk"/>
175
+ </div>
176
+ </div>
177
+ </template>
178
+
179
+ <script>
180
+ export default {
181
+ data () {
182
+ return {
183
+ showTips: true,
184
+ Tragable: false,
185
+ showTips1: false,
186
+ Width: '',
187
+ Height: '',
188
+ count: 4,
189
+ percent: 0,
190
+ icons: [],
191
+ dirshow: [
192
+ {
193
+ id: 1,
194
+ color: 'yellow'
195
+ }, {
196
+ id: 2,
197
+ color: 'red'
198
+ }
199
+ ],
200
+ list: [{ 'isLink': false }, { 'isLink': true, url: '/doo' }, { 'isLink': true, url: '/foo' }, { 'isLink': false }],
201
+ position: 'bottom-left',
202
+ colorsArr: ['#0a4958', '#42daff', '#42daff', '#42daff', '#42daff'],
203
+ colorsList: ['#9AFF9A', '#42daff', '#545454', '#00FF00', '#EEEE00', '#FF0000',
204
+ '#C1FFC1', '#BF3EFF', '#9AFF9A', '#42daff', '#545454', '#00FF00', '#EEEE00', '#FF0000', '#C1FFC1', '#BF3EFF'],
205
+ colorsList2: ['#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff', '#42daff'],
206
+ StatusBarTetsInfoList: [
207
+ {
208
+ level: 1,
209
+ levelname: '可以飙车了',
210
+ color: '#00841C'
211
+ },
212
+ {
213
+ level: 2,
214
+ levelname: '还好吧',
215
+ color: '#31C750'
216
+ },
217
+ {
218
+ level: 3,
219
+ levelname: '有点拥堵',
220
+ color: '#F6D40A'
221
+ },
222
+ {
223
+ level: 4,
224
+ levelname: '不行了受不了了',
225
+ color: '#FCA824'
226
+ },
227
+ {
228
+ level: 5,
229
+ levelname: '堵死了',
230
+ color: '#EA423B'
231
+ }
232
+ ],
233
+ curlevel: 0,
234
+ ViewBoxCut:
235
+ {
236
+ x: 0,
237
+ y: 380,
238
+ w: 1024,
239
+ h: 350
240
+ },
241
+ tabletittle: ['table1', 'table2', 'table3'],
242
+ dashboardOpt: {
243
+ style: 'bar',
244
+ bar_radius: 200,
245
+ bar_bg_w: 20,
246
+ bar_w: 18,
247
+ bar_bg_color: '#193b43',
248
+ bar_bg_ring_color: '#193b43',
249
+ bar_start_color: '#42daff',
250
+ bar_stop_color: 'red',
251
+ title: '交通强度',
252
+ sides_show: true,
253
+ title_show: true,
254
+ title_font_color: '#FFFFFF',
255
+ title_font_size: 40,
256
+ title_font_family: 'HanHei SC, PingFang SC, Helvetica Neue Thin, Helvetica, STHeitiSC-Light, Arial, sans-serif',
257
+ sides_font_color: '#FFFFFF',
258
+ sides_font_size: 30,
259
+ sides_font_family: 'HanHei SC, PingFang SC, Helvetica Neue Thin, Helvetica, STHeitiSC-Light, Arial, sans-serif',
260
+ show_center_num: true,
261
+ center_font_size: 100,
262
+ center_font_color: '#FFFFFF'
263
+ },
264
+ mainwidth1: '400px',
265
+ mainheight1: '25px',
266
+ mainwidth: '400px',
267
+ mainheight: '25px',
268
+ display: true,
269
+ datalist: [
270
+ {
271
+ value: 5,
272
+ name: '测试',
273
+ color: 'yellow'
274
+ },
275
+ {
276
+ value: 1,
277
+ name: '吃饭'
278
+ }
279
+ ],
280
+ name: ['曹操', '刘备', '孙权'],
281
+ value: [55, 80, 39],
282
+ maxNum: 50,
283
+ maxNum1: 50,
284
+ maxNum2: 10,
285
+ // horizontalDistance: '10px'
286
+ list1: [{value: 39, maxNum: 50}],
287
+ list2: [{value: 55, maxNum: 50}],
288
+ list3: [{value: 7, maxNum: 10, color: 'red'}, {value: 80, maxNum: 100}],
289
+ progressPercentage: 0,
290
+ curseconds: 0,
291
+ totalseconds: 86400,
292
+ starttime: '2019-04-25 00:00:00',
293
+ endtime: '2019-04-26 00:00:00',
294
+ messageboxVisible: false
295
+ }
296
+ },
297
+ methods: {
298
+ handleClick () {
299
+ if (this.showTips) {
300
+ this.showTips = false
301
+ console.log('close')
302
+ } else {
303
+ this.showTips = true
304
+ console.log('show')
305
+ }
306
+ },
307
+ menuClick (event, index) {
308
+ console.log(event)
309
+ console.log(index)
310
+ },
311
+ horizontalMenuClick (event, index) {
312
+ console.log(event)
313
+ console.log(index)
314
+ },
315
+ showRandom () {
316
+ /** max - 期望的最大值
317
+ * min - 期望的最小值
318
+ * parseInt(Math.random()*(max-min+1)+min,10);
319
+ * Math.floor(Math.random()*(max-min+1)+min);
320
+ **/
321
+ let num1 = parseInt(Math.random() * (16 - 1 + 1) + 1)
322
+ let num2 = parseInt(Math.random() * (16 - 1 + 1) + 1)
323
+ // this.curlevel = parseInt(Math.random() * (10 - 1 + 1) + 1)
324
+ this.curlevel = 0
325
+ // console.log(this.curlevel)
326
+ // let num3 = parseInt(Math.random() * (16 - 1 + 1) + 1)
327
+ // let num4 = parseInt(Math.random() * (16 - 1 + 1) + 1)
328
+ // this.dirshow = []
329
+ this.dirshow[0].id = num1
330
+ this.dirshow[0].color = this.colorsList[num1 - 1]
331
+ this.dirshow[1].id = num2
332
+ this.dirshow[1].color = this.colorsList[num2 - 1]
333
+
334
+ this.Width = parseInt(Math.random() * (300 - 1 + 1) + 1) + 'px'
335
+ this.Height = parseInt(Math.random() * (300 - 1 + 1) + 1) + 'px'
336
+ this.datalist[0].value = num1
337
+ this.datalist[1].value = num2
338
+ this.maxNum1 = num2
339
+ // this.dirshow.push(
340
+ // {
341
+ // id: num1,
342
+ // color: this.colorsList2[num1 - 1]
343
+ // }, {
344
+ // id: num2,
345
+ // color: this.colorsList2[num2 - 1]
346
+ // },
347
+ // {
348
+ // id: num3,
349
+ // color: this.colorsList2[num3 - 1]
350
+ // }, {
351
+ // id: num4,
352
+ // color: this.colorsList2[num4 - 1]
353
+ // }
354
+ // )
355
+ // }
356
+ },
357
+ onTableButtonLeave (index) {
358
+ console.log(`onTableButtonLeave`)
359
+ console.log(index)
360
+ },
361
+ onTableButtonEntry (index) {
362
+ console.log(`onTableButtonEntry`)
363
+ console.log(index)
364
+ },
365
+ getPercentage (nowProgress) {
366
+ const step = 864
367
+ return nowProgress + step
368
+ },
369
+ openMessageBox () {
370
+ this.messageboxVisible = true
371
+ },
372
+ handleMessageboxCancle () {
373
+ this.messageboxVisible = false
374
+ },
375
+ handleMessageboxOk () {
376
+ this.messageboxVisible = false
377
+ }
378
+ },
379
+ watch: {
380
+ showTips: function (val) {
381
+ this.showTips1 = !val
382
+ },
383
+ showTips1: function (val) {
384
+ this.showTips = !val
385
+ }
386
+ },
387
+ mounted () {
388
+ const timer = setInterval(() => {
389
+ this.showRandom()
390
+ this.percent = 130
391
+ if (this.percent === 100) this.percent = 0
392
+ if (this.curseconds < this.totalseconds) {
393
+ this.curseconds = this.getPercentage(this.curseconds)
394
+ } else {
395
+ clearInterval(timer)
396
+ }
397
+ }, 1000)
398
+ }
399
+ }
400
+ </script>
401
+ <style scoped>
402
+ .wrap {
403
+ background: #333333;
404
+ width: 100%;
405
+ height: 100%;
406
+ }
407
+ .zindex {
408
+ position: absolute;
409
+ z-index: -1;
410
+ }
411
+ .select-containaer {
412
+ float: left;
413
+ margin: 0;
414
+ padding: 0;
415
+ width: 200px;
416
+ height: 300px;
417
+ }
418
+
419
+ .functionLayout {
420
+ position: fixed;
421
+ top: 100px;
422
+ width: 80px;
423
+ height: 550px;
424
+ }
425
+ .test {
426
+ width: 100px;
427
+ height: 100px;
428
+ left: 300px;
429
+ top: 300xp;
430
+ margin-left: 300px;
431
+ }
432
+ .leftpart > div {
433
+ float: left;
434
+ line-height: 50px;
435
+ }
436
+ .phase-description {
437
+ /* background: #43b4cf;
438
+ width: 25px;
439
+ height: 23px; */
440
+
441
+ /* width: 18px;
442
+ height: 30px;
443
+ background: yellow;
444
+ position: absolute;
445
+ top: 0;
446
+ left: 9px; */
447
+ width: 34px;
448
+ height: 30px;
449
+ background: url('../kisscomps/components/image/phaseHexagon/phasebg.png');
450
+ background-size: 34px 30px;
451
+ box-sizing: border-box;
452
+ padding-left: 5px;
453
+ padding-top: 4px;
454
+ }
455
+ /* .phase-description::before {
456
+ content: "";
457
+ width: 0;
458
+ height: 0;
459
+ border-right: 9px yellow solid;
460
+ border-left: none;
461
+ border-top: 15px solid transparent;
462
+ border-bottom: 15px solid transparent;
463
+ position: absolute;
464
+ top: 0;
465
+ left: -9px;
466
+ }
467
+ .phase-description::after {
468
+ content: "";
469
+ width: 0;
470
+ height: 0;
471
+ border-left: 9px yellow solid;
472
+ border-right: none;
473
+ border-top: 15px solid transparent;
474
+ border-bottom: 15px solid transparent;
475
+ position: absolute;
476
+ top: 0;
477
+ right: -9px;
478
+ } */
479
+ </style>