|
20 | 20 | box-sizing: border-box; |
21 | 21 | } |
22 | 22 |
|
23 | | - #iframe { |
24 | | - width: 100%; |
25 | | - height: 91%; |
26 | | - |
27 | | - } |
28 | | - |
29 | 23 | @media screen and (max-width: 992px) { |
30 | 24 | #main { |
31 | 25 | overflow: auto; |
|
44 | 38 | <div id="main"> |
45 | 39 | <sm-layout-header> |
46 | 40 | <div class="dashboard-header"> |
47 | | - <sm-nav v-bind="navProps" @change="changeScreen"></sm-nav> |
| 41 | + <div class="left-header"> |
| 42 | + <sm-text class="btn-active" v-bind="textPropsCommon" title="指标总览"></sm-text> |
| 43 | + <sm-text v-bind="textPropsCommon" title="调查监测"></sm-text> |
| 44 | + <sm-text v-bind="textPropsCommon" title="耕地保护"></sm-text> |
| 45 | + <sm-text v-bind="textPropsCommon" title="空间规划"></sm-text> |
| 46 | + <sm-text v-bind="textPropsCommon" title="用途管制"></sm-text> |
| 47 | + </div> |
| 48 | + <sm-text class="middle-header" v-bind="headerTitleProps"></sm-text> |
| 49 | + <div class="right-header"> |
| 50 | + <sm-text v-bind="textPropsCommon" title="权益保护"></sm-text> |
| 51 | + <sm-text v-bind="textPropsCommon" title="地质矿产"></sm-text> |
| 52 | + <sm-text v-bind="textPropsCommon" title="生态修复"></sm-text> |
| 53 | + <sm-text v-bind="textPropsCommon" title="确权登记"></sm-text> |
| 54 | + <sm-text v-bind="textPropsCommon" title="执法监察"></sm-text> |
| 55 | + </div> |
48 | 56 | </div> |
49 | 57 | </sm-layout-header> |
50 | 58 |
|
51 | | - <sm-layout-content v-if="!isIframe"> |
| 59 | + <sm-layout-content> |
52 | 60 | <a-row> |
53 | 61 | <a-col :span="6"> |
54 | 62 | <sm-border |
|
254 | 262 | </a-col> |
255 | 263 | </a-row> |
256 | 264 | </sm-layout-content> |
257 | | - <sm-layout-content v-else> |
258 | | - <iframe id="iframe" :src="iframeSrc" frameborder="0" scrolling="auto"></iframe> |
259 | | - </sm-layout-content> |
260 | 265 | </div> |
261 | 266 |
|
262 | 267 | <script> |
|
265 | 270 | el: '#main', |
266 | 271 | data() { |
267 | 272 | return { |
268 | | - isIframe: false, |
269 | | - iframeSrc: '', |
270 | | - navProps: { |
271 | | - title: { |
272 | | - title: "自然资源承载能力监管决策平台", |
273 | | - position: "center", |
274 | | - target: "_blank", |
275 | | - style: { |
276 | | - width: "29%", |
277 | | - height: "100%", |
278 | | - letterSpacing: "1px", |
279 | | - fontSize: "32px", |
280 | | - color: "#fff", |
281 | | - fontWeight: "normal", |
282 | | - fontFamily: "微软雅黑" |
283 | | - } |
284 | | - }, |
285 | | - items: [ |
286 | | - { |
287 | | - key: 0, |
288 | | - title: "指标总览" |
289 | | - }, |
290 | | - { |
291 | | - key: 1, |
292 | | - title: "调查监测" |
293 | | - }, |
294 | | - { |
295 | | - key: 2, |
296 | | - title: "耕地保护" |
297 | | - }, |
298 | | - { |
299 | | - key: 3, |
300 | | - title: "空间规划" |
301 | | - }, |
302 | | - { |
303 | | - key: 4, |
304 | | - title: "用途管制" |
305 | | - }, |
306 | | - { |
307 | | - key: 5, |
308 | | - title: "权益保护", |
309 | | - }, |
310 | | - { |
311 | | - key: 6, |
312 | | - title: "地质矿产" |
313 | | - }, |
314 | | - { |
315 | | - key: 7, |
316 | | - title: "生态修复" |
317 | | - }, |
318 | | - { |
319 | | - key: 8, |
320 | | - title: "确权登记" |
321 | | - }, |
322 | | - { |
323 | | - key: 9, |
324 | | - title: "执法监察" |
325 | | - } |
326 | | - ], |
327 | | - itemStyle: function() { |
328 | | - return { |
329 | | - fontSize: "16px", |
330 | | - fontWeight: "normal", |
331 | | - fontFamily: "微软雅黑", |
332 | | - color: "rgba(255, 255, 255, 0.65)" |
333 | | - } |
334 | | - }, |
335 | | - itemActiveStyle: function() { |
336 | | - return { |
337 | | - backgroundImage: "url('../img/background/image8.png')", |
338 | | - backgroundRepeat: 'no-repeat', |
339 | | - backgroundPosition: 'center', |
340 | | - backgroundSize: 'contain', |
341 | | - color: "rgba(255, 255, 255)" |
342 | | - } |
343 | | - }, |
344 | | - }, |
345 | 273 | headerTitleProps: { |
346 | 274 | frequency: 2, |
347 | 275 | startTiming: false, |
|
1405 | 1333 | if (screenWidth <= 540) { |
1406 | 1334 | this.showMap = false; |
1407 | 1335 | } |
1408 | | - }, |
1409 | | - methods: { |
1410 | | - changeScreen(item, index) { |
1411 | | - this.isIframe = true; |
1412 | | - if (index === 1) { |
1413 | | - this.iframeSrc = window.location.href.replace(/editor/, 'components_demo_vue'); |
1414 | | - } else if (index === 2) { |
1415 | | - this.iframeSrc = window.location.href.replace(/editor/, 'components_estateMonitoringPlatform_vue'); |
1416 | | - } else { |
1417 | | - this.isIframe = false; |
1418 | | - } |
1419 | | - } |
1420 | 1336 | } |
1421 | 1337 | }); |
1422 | 1338 | </script> |
|
1514 | 1430 | } |
1515 | 1431 |
|
1516 | 1432 | .sm-component-layout-content { |
1517 | | - height: 100%; |
1518 | 1433 | margin-top: 20px; |
1519 | 1434 | } |
1520 | 1435 |
|
|
1635 | 1550 | } |
1636 | 1551 |
|
1637 | 1552 | .dashboard-header { |
| 1553 | + background-image: url('../img/background/image1.png'); |
1638 | 1554 | height: 72px; |
1639 | 1555 | display: flex; |
1640 | 1556 | align-items: center; |
|
0 commit comments