Skip to content

Commit 7d66c3e

Browse files
committed
【fix】 删除自然资源模板中的导航栏组件; review by luoxiao
1 parent a51e6fb commit 7d66c3e

File tree

1 file changed

+17
-101
lines changed

1 file changed

+17
-101
lines changed

examples/component/components_natureResource_vue.html

Lines changed: 17 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@
2020
box-sizing: border-box;
2121
}
2222

23-
#iframe {
24-
width: 100%;
25-
height: 91%;
26-
27-
}
28-
2923
@media screen and (max-width: 992px) {
3024
#main {
3125
overflow: auto;
@@ -44,11 +38,25 @@
4438
<div id="main">
4539
<sm-layout-header>
4640
<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>
4856
</div>
4957
</sm-layout-header>
5058

51-
<sm-layout-content v-if="!isIframe">
59+
<sm-layout-content>
5260
<a-row>
5361
<a-col :span="6">
5462
<sm-border
@@ -254,9 +262,6 @@
254262
</a-col>
255263
</a-row>
256264
</sm-layout-content>
257-
<sm-layout-content v-else>
258-
<iframe id="iframe" :src="iframeSrc" frameborder="0" scrolling="auto"></iframe>
259-
</sm-layout-content>
260265
</div>
261266

262267
<script>
@@ -265,83 +270,6 @@
265270
el: '#main',
266271
data() {
267272
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-
},
345273
headerTitleProps: {
346274
frequency: 2,
347275
startTiming: false,
@@ -1405,18 +1333,6 @@
14051333
if (screenWidth <= 540) {
14061334
this.showMap = false;
14071335
}
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-
}
14201336
}
14211337
});
14221338
</script>
@@ -1514,7 +1430,6 @@
15141430
}
15151431

15161432
.sm-component-layout-content {
1517-
height: 100%;
15181433
margin-top: 20px;
15191434
}
15201435

@@ -1635,6 +1550,7 @@
16351550
}
16361551

16371552
.dashboard-header {
1553+
background-image: url('../img/background/image1.png');
16381554
height: 72px;
16391555
display: flex;
16401556
align-items: center;

0 commit comments

Comments
 (0)