增加部分功能和优化
Showing
5 changed files
with
86 additions
and
42 deletions
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html lang="en"> | 2 | <html lang="en"> |
3 | <head> | ||
4 | <meta charset="utf-8"> | ||
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
6 | <meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
7 | <link rel="icon" href="<%= BASE_URL %>favicon.ico"> | ||
8 | <title><%= htmlWebpackPlugin.options.title %></title> | ||
9 | <script src="https://cesium.com/downloads/cesiumjs/releases/1.71/Build/Cesium/Cesium.js"></script> | ||
10 | <link href="https://cesium.com/downloads/cesiumjs/releases/1.71/Build/Cesium/Widgets/widgets.css" | ||
11 | rel="stylesheet"> | ||
12 | 3 | ||
13 | <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script> | 4 | <head> |
14 | </head> | 5 | <meta charset="utf-8"> |
15 | <body> | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
16 | <noscript> | 7 | <meta name="viewport" content="width=device-width,initial-scale=1.0"> |
17 | <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | 8 | <link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
18 | </noscript> | 9 | <title><%= htmlWebpackPlugin.options.title %></title> |
19 | <div id="app"></div> | 10 | <script src="https://cesium.com/downloads/cesiumjs/releases/1.71/Build/Cesium/Cesium.js"></script> |
20 | <!-- built files will be auto injected --> | 11 | <link href="https://cesium.com/downloads/cesiumjs/releases/1.71/Build/Cesium/Widgets/widgets.css" rel="stylesheet"> |
21 | </body> | 12 | |
22 | </html> | 13 | <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script> |
14 | </head> | ||
15 | |||
16 | <body> | ||
17 | <noscript> | ||
18 | <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. | ||
19 | Please enable it to continue.</strong> | ||
20 | </noscript> | ||
21 | <div id="app"></div> | ||
22 | <!-- built files will be auto injected --> | ||
23 | </body> | ||
24 | |||
25 | </html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -123,7 +123,7 @@ | ... | @@ -123,7 +123,7 @@ |
123 | components: {}, | 123 | components: {}, |
124 | props: ['isReturn', 'enlarge', 'narrow', 'coordinate', 'distance', | 124 | props: ['isReturn', 'enlarge', 'narrow', 'coordinate', 'distance', |
125 | 'area', 'marker', 'rollerShutter', 'splitScreen', 'toNorth', | 125 | 'area', 'marker', 'rollerShutter', 'splitScreen', 'toNorth', |
126 | 'topSee', 'roundSee', 'horizon', 'allSee','ymAnslysis', | 126 | 'topSee', 'roundSee', 'horizon', 'allSee', 'ymAnslysis', |
127 | 'tjxAnslysis', 'yyAnslysis', 'kgAnalusis', 'visualField' | 127 | 'tjxAnslysis', 'yyAnslysis', 'kgAnalusis', 'visualField' |
128 | ], | 128 | ], |
129 | data() { | 129 | data() { |
... | @@ -189,7 +189,6 @@ | ... | @@ -189,7 +189,6 @@ |
189 | this.$emit('kgAnalusis', val, this.kgAnalusis); | 189 | this.$emit('kgAnalusis', val, this.kgAnalusis); |
190 | }, | 190 | }, |
191 | handlevisualField(val) { | 191 | handlevisualField(val) { |
192 | debugger | ||
193 | this.$emit('visualField', val, this.visualField); | 192 | this.$emit('visualField', val, this.visualField); |
194 | } | 193 | } |
195 | } | 194 | } | ... | ... |
... | @@ -10,7 +10,6 @@ | ... | @@ -10,7 +10,6 @@ |
10 | <span>可视域分析</span> | 10 | <span>可视域分析</span> |
11 | <span @click="closePop" class="close">×</span> | 11 | <span @click="closePop" class="close">×</span> |
12 | </div> | 12 | </div> |
13 | |||
14 | <div class="func-input"> | 13 | <div class="func-input"> |
15 | <span class="width-class">方向</span> | 14 | <span class="width-class">方向</span> |
16 | <el-input-number v-model="direction" controls-position="right" | 15 | <el-input-number v-model="direction" controls-position="right" |
... | @@ -18,7 +17,6 @@ | ... | @@ -18,7 +17,6 @@ |
18 | </el-input-number> | 17 | </el-input-number> |
19 | <span style="margin-left: 12px;">度</span> | 18 | <span style="margin-left: 12px;">度</span> |
20 | </div> | 19 | </div> |
21 | |||
22 | <div class="func-input"> | 20 | <div class="func-input"> |
23 | <span class="width-class">翻转</span> | 21 | <span class="width-class">翻转</span> |
24 | <el-input-number v-model="flip" controls-position="right" | 22 | <el-input-number v-model="flip" controls-position="right" |
... | @@ -33,7 +31,6 @@ | ... | @@ -33,7 +31,6 @@ |
33 | </el-input-number> | 31 | </el-input-number> |
34 | <span style="margin-left: 12px;">米</span> | 32 | <span style="margin-left: 12px;">米</span> |
35 | </div> | 33 | </div> |
36 | |||
37 | <div class="func-input"> | 34 | <div class="func-input"> |
38 | <span class="width-class">水平视场角</span> | 35 | <span class="width-class">水平视场角</span> |
39 | <el-input-number v-model="level" controls-position="right" | 36 | <el-input-number v-model="level" controls-position="right" |
... | @@ -48,13 +45,16 @@ | ... | @@ -48,13 +45,16 @@ |
48 | </el-input-number> | 45 | </el-input-number> |
49 | <span style="margin-left: 12px;">度</span> | 46 | <span style="margin-left: 12px;">度</span> |
50 | </div> | 47 | </div> |
51 | 48 | <div class="select-color"> | |
52 | 49 | <div class="block"> | |
53 | <!-- <div> | 50 | <div class="demonstration">可见区域颜色</div> |
54 | <div></div> | 51 | <el-color-picker v-model="yesColor"></el-color-picker> |
55 | </div> --> | 52 | </div> |
56 | 53 | <div class="block"> | |
57 | 54 | <div class="demonstration">不可见区域颜色</div> | |
55 | <el-color-picker v-model="noColor"></el-color-picker> | ||
56 | </div> | ||
57 | </div> | ||
58 | </div> | 58 | </div> |
59 | </div> | 59 | </div> |
60 | </template> | 60 | </template> |
... | @@ -67,11 +67,13 @@ | ... | @@ -67,11 +67,13 @@ |
67 | return { | 67 | return { |
68 | step: 1, | 68 | step: 1, |
69 | num: 1, | 69 | num: 1, |
70 | direction: '', | 70 | direction: '', // 方向 |
71 | flip: '', | 71 | flip: '', // 翻转 |
72 | distance: '', | 72 | distance: '', // 距离 |
73 | level: '', | 73 | level: '', // 水平视场角 |
74 | vertical: '', | 74 | vertical: '', // 垂直视场角 |
75 | yesColor: 'red', // 可见区域颜色 | ||
76 | noColor: 'rgba(255, 69, 0, 0.68)', // 不可见区域颜色 | ||
75 | 77 | ||
76 | isXmbj: true, | 78 | isXmbj: true, |
77 | // isAnalysis: true | 79 | // isAnalysis: true |
... | @@ -223,6 +225,19 @@ | ... | @@ -223,6 +225,19 @@ |
223 | 225 | ||
224 | .width-class { | 226 | .width-class { |
225 | width: 90px; | 227 | width: 90px; |
228 | font-size: 16px; | ||
229 | } | ||
230 | |||
231 | .select-color { | ||
232 | display: flex; | ||
233 | justify-content: space-around; | ||
234 | text-align: center; | ||
235 | padding: 30px 0px; | ||
236 | } | ||
237 | |||
238 | .demonstration { | ||
239 | margin-bottom: 10px; | ||
240 | font-size: 16px; | ||
226 | } | 241 | } |
227 | 242 | ||
228 | >>>input::-webkit-input-placeholder { | 243 | >>>input::-webkit-input-placeholder { |
... | @@ -236,6 +251,10 @@ | ... | @@ -236,6 +251,10 @@ |
236 | color: #fff; | 251 | color: #fff; |
237 | } | 252 | } |
238 | 253 | ||
254 | >>>.el-input-number.is-controls-right .el-input__inner { | ||
255 | text-align: left; | ||
256 | } | ||
257 | |||
239 | >>>.el-input__suffix { | 258 | >>>.el-input__suffix { |
240 | color: #fff; | 259 | color: #fff; |
241 | font-size: 17px; | 260 | font-size: 17px; | ... | ... |
... | @@ -19,6 +19,19 @@ | ... | @@ -19,6 +19,19 @@ |
19 | </div> | 19 | </div> |
20 | 20 | ||
21 | <div class="func-input"> | 21 | <div class="func-input"> |
22 | <span>开始时间</span> | ||
23 | <el-time-picker style="margin:0 12px; width: 245px;" v-model="staTime" | ||
24 | :picker-options="pickerOptions" placeholder="选择开始时间"> | ||
25 | </el-time-picker> | ||
26 | </div> | ||
27 | <div class="func-input"> | ||
28 | <span>结束时间</span> | ||
29 | <el-time-picker style="margin:0 12px; width: 245px;" v-model="endTime" | ||
30 | :picker-options="pickerOptions" placeholder="选择结束时间"> | ||
31 | </el-time-picker> | ||
32 | </div> | ||
33 | |||
34 | <!-- <div class="func-input"> | ||
22 | <div class="btn-wrapper2" :class="[isCF?'add-bg2': '']" @click="handleIsXmbj('isCF')"> | 35 | <div class="btn-wrapper2" :class="[isCF?'add-bg2': '']" @click="handleIsXmbj('isCF')"> |
23 | <span class="center">春分</span> | 36 | <span class="center">春分</span> |
24 | </div> | 37 | </div> |
... | @@ -34,7 +47,7 @@ | ... | @@ -34,7 +47,7 @@ |
34 | <div class="btn-wrapper2" :class="[isDZ?'add-bg2': '']" @click="handleIsXmbj('isDZ')"> | 47 | <div class="btn-wrapper2" :class="[isDZ?'add-bg2': '']" @click="handleIsXmbj('isDZ')"> |
35 | <span class="center">冬至</span> | 48 | <span class="center">冬至</span> |
36 | </div> | 49 | </div> |
37 | </div> | 50 | </div> --> |
38 | 51 | ||
39 | <div class="func-input"> | 52 | <div class="func-input"> |
40 | <span>时间间隔 </span> | 53 | <span>时间间隔 </span> |
... | @@ -79,7 +92,7 @@ | ... | @@ -79,7 +92,7 @@ |
79 | anslysisTime: '', | 92 | anslysisTime: '', |
80 | timeS: 30, // 时间间隔 | 93 | timeS: 30, // 时间间隔 |
81 | time: 0 * 60 * 60 * 1000, // 滑块时间 | 94 | time: 0 * 60 * 60 * 1000, // 滑块时间 |
82 | max: (24 * 60 * 60 * 1000 - 1* 60 * 1000), | 95 | max: (24 * 60 * 60 * 1000 - 1 * 60 * 1000), |
83 | marks: { | 96 | marks: { |
84 | 0: '0:00', | 97 | 0: '0:00', |
85 | [maxW]: '23:59', | 98 | [maxW]: '23:59', |
... | @@ -89,9 +102,17 @@ | ... | @@ -89,9 +102,17 @@ |
89 | // }, | 102 | // }, |
90 | // label: this.$createElement('strong', '50%') | 103 | // label: this.$createElement('strong', '50%') |
91 | // } | 104 | // } |
92 | } | 105 | }, |
106 | pickerOptions: { // 时间选择器 时间范围限制 | ||
107 | selectableRange: '00:00:00 - 23:59:59' | ||
108 | }, | ||
109 | staTime: '', // 开始时间 | ||
110 | endTime: '', // 结束时间 | ||
93 | } | 111 | } |
94 | }, | 112 | }, |
113 | watch: { | ||
114 | |||
115 | }, | ||
95 | mounted() {}, | 116 | mounted() {}, |
96 | methods: { | 117 | methods: { |
97 | closePop() { | 118 | closePop() { |
... | @@ -127,7 +148,7 @@ | ... | @@ -127,7 +148,7 @@ |
127 | formatTooltip(val) { | 148 | formatTooltip(val) { |
128 | let nowTime = this.commons.dateZhuan('yyyy-MM-dd 00:00:00', new Date()); | 149 | let nowTime = this.commons.dateZhuan('yyyy-MM-dd 00:00:00', new Date()); |
129 | let nowSjc = new Date(nowTime).getTime(); | 150 | let nowSjc = new Date(nowTime).getTime(); |
130 | nowSjc+=val; | 151 | nowSjc += val; |
131 | let sfd = this.commons.dateZhuan('hh:mm', new Date(nowSjc)); | 152 | let sfd = this.commons.dateZhuan('hh:mm', new Date(nowSjc)); |
132 | return sfd; | 153 | return sfd; |
133 | } | 154 | } |
... | @@ -298,6 +319,7 @@ | ... | @@ -298,6 +319,7 @@ |
298 | >>>.el-icon-arrow-up:before, | 319 | >>>.el-icon-arrow-up:before, |
299 | >>>.el-icon-arrow-down:before { | 320 | >>>.el-icon-arrow-down:before { |
300 | color: #fff; | 321 | color: #fff; |
322 | cursor: pointer; | ||
301 | } | 323 | } |
302 | 324 | ||
303 | >>>.el-input-number.is-controls-right .el-input-number__increase { | 325 | >>>.el-input-number.is-controls-right .el-input-number__increase { |
... | @@ -310,7 +332,7 @@ | ... | @@ -310,7 +332,7 @@ |
310 | box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.20); | 332 | box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.20); |
311 | } | 333 | } |
312 | 334 | ||
313 | >>> .el-slider__marks-text { | 335 | >>>.el-slider__marks-text { |
314 | color: #fff; | 336 | color: #fff; |
315 | } | 337 | } |
316 | </style> | 338 | </style> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -47,6 +47,7 @@ | ... | @@ -47,6 +47,7 @@ |
47 | :allSee='allSee' | 47 | :allSee='allSee' |
48 | :ymAnslysis='ymAnslysis' | 48 | :ymAnslysis='ymAnslysis' |
49 | :tjxAnslysis='tjxAnslysis' | 49 | :tjxAnslysis='tjxAnslysis' |
50 | :visualField='visualField' | ||
50 | :yyAnslysis='yyAnslysis' | 51 | :yyAnslysis='yyAnslysis' |
51 | :kgAnalusis='kgAnalusis'></rightFunc> | 52 | :kgAnalusis='kgAnalusis'></rightFunc> |
52 | </div> | 53 | </div> |
... | @@ -291,7 +292,7 @@ | ... | @@ -291,7 +292,7 @@ |
291 | })).screen({ | 292 | })).screen({ |
292 | slider: this.$refs.slider, | 293 | slider: this.$refs.slider, |
293 | viewer: this.viewer | 294 | viewer: this.viewer |
294 | }) | 295 | }); |
295 | this.$refs.slider.className = (this.roll.b = !this.roll.b) ? 'slider' : ''; | 296 | this.$refs.slider.className = (this.roll.b = !this.roll.b) ? 'slider' : ''; |
296 | this.viewer.scene.imagerySplitPosition = this.roll.b && this.$refs.slider.offsetLeft / this.$refs.slider.parentElement.offsetWidth | 297 | this.viewer.scene.imagerySplitPosition = this.roll.b && this.$refs.slider.offsetLeft / this.$refs.slider.parentElement.offsetWidth |
297 | } | 298 | } | ... | ... |
-
Please register or sign in to post a comment