This commit is contained in:
dong_bo0602 2021-04-14 18:32:06 +08:00
parent 3846dcac44
commit 0cb5a8ac4a
4 changed files with 60 additions and 33 deletions

View File

@ -121,6 +121,7 @@
.assessment-search-container button{width:110px;height:35px;border:none;background:#1f9fff;cursor:pointer;border-radius:20px;display:block;float:left;color:#fff;outline: none}
.main-list{margin-top:10px;min-height: 400px}
.main-list ul li{background:#fff;padding:20px;box-shadow:0 0 10px #eee;border-radius:5px;margin-bottom:10px}
.main-list ul li:last-child{margin-bottom: 0}
.main-list ul li .line{margin-bottom:10px;font-size:14px;color:#333}
.main-list ul li .line:last-child{margin-bottom:0}
.main-list ul li .line span{font-weight:700;color:#3d41b7}

View File

@ -16,7 +16,7 @@
<div class="nav">
<ul class="clearFloat">
<li>
<a href="index.html">
<a href="indexweb">
<div class="left fl">
<span>首页</span>
<p>众力监督平台</p>

View File

@ -50,17 +50,17 @@
</div>
</a>
</li>
<li>
<a href="route/web/assessment.html">
<div class="left fl">
<span>记实考核</span>
<p>各类记实考核</p>
</div>
<div class="right fr">
<img src="assets/web/images/nav-icon4.png" alt="">
</div>
</a>
</li>
<!-- <li>-->
<!-- <a href="route/web/assessment.html">-->
<!-- <div class="left fl">-->
<!-- <span>记实考核</span>-->
<!-- <p>各类记实考核</p>-->
<!-- </div>-->
<!-- <div class="right fr">-->
<!-- <img src="assets/web/images/nav-icon4.png" alt="">-->
<!-- </div>-->
<!-- </a>-->
<!-- </li>-->
</ul>
</div>
</div>
@ -212,10 +212,8 @@
</div>
<div class="bottom-nav">
<div class="nav-title">门户导航</div>
<div class="nav-list">
<a href="javascript: void(0);">中央纪委监察部</a>
<a href="javascript: void(0);">河北省纪委监察厅</a>
<a href="javascript: void(0);">沧州市纪委监察局</a>
<div class="nav-list" v-cloak>
<a :href="nav.dataSummary" v-for="nav in bottomNavList" target="_blank">{{nav.dataName}}</a>
</div>
</div>
<div class="footer">
@ -245,7 +243,8 @@
curId: '',
topNavList: [],
loadLayerIndex: '',
pageId: ''
pageId: '',
bottomNavList: []
},
methods: {
// 饼图
@ -395,7 +394,7 @@
goNav: function (id) {
window.location.href = 'route/web/public.html?id=' + id
},
// 上报
// 上报、查看列表
doReport: function (path, id) {
var self = this
layer.open({
@ -410,6 +409,19 @@
self.getMainList(self.curId)
}
});
},
// 获取门户导航
getGateNav: function () {
var self = this
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['3a32e7d5-a2ee-4cdf-959d-70d0e50e4389']), {}, null, function(code, data) {
self.bottomNavList = data
}, function(code, data) {
layer.msg(data.msg);
}, function() {
// loadLayerIndex = layer.load(0, {shade: false});
}, function() {
// layer.close(loadLayerIndex);
});
}
},
mounted: function () {
@ -418,6 +430,7 @@
this.initChart()
this.getNav()
this.getTopNav()
this.getGateNav()
}
})
</script>

View File

@ -50,17 +50,17 @@
</div>
</a>
</li>
<li>
<a href="javascript: void(0);">
<div class="left fl">
<span>记实考核</span>
<p>各类记实考核</p>
</div>
<div class="right fr">
<img src="assets/web/images/nav-icon4.png" alt="">
</div>
</a>
</li>
<!-- <li>-->
<!-- <a href="route/web/assessment.html">-->
<!-- <div class="left fl">-->
<!-- <span>记实考核</span>-->
<!-- <p>各类记实考核</p>-->
<!-- </div>-->
<!-- <div class="right fr">-->
<!-- <img src="assets/web/images/nav-icon4.png" alt="">-->
<!-- </div>-->
<!-- </a>-->
<!-- </li>-->
</ul>
</div>
</div>
@ -238,10 +238,8 @@
</div>
<div class="bottom-nav">
<div class="nav-title">门户导航</div>
<div class="nav-list">
<a href="javascript: void(0);">中央纪委监察部</a>
<a href="javascript: void(0);">河北省纪委监察厅</a>
<a href="javascript: void(0);">沧州市纪委监察局</a>
<div class="nav-list" v-cloak>
<a :href="nav.dataSummary" v-for="nav in bottomNavList" target="_blank">{{nav.dataName}}</a>
</div>
</div>
<div class="footer">
@ -259,6 +257,7 @@
el: '#app',
data: {
topNavList: [],
bottomNavList: []
},
methods: {
// 获取顶部导航
@ -278,10 +277,24 @@
// 顶部导航跳转页面
goNav: function (id) {
window.location.href = 'route/web/public.html?id=' + id
},
// 获取门户导航
getGateNav: function () {
var self = this
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['3a32e7d5-a2ee-4cdf-959d-70d0e50e4389']), {}, null, function(code, data) {
self.bottomNavList = data
}, function(code, data) {
layer.msg(data.msg);
}, function() {
// loadLayerIndex = layer.load(0, {shade: false});
}, function() {
// layer.close(loadLayerIndex);
});
}
},
mounted: function () {
this.getTopNav()
this.getGateNav()
jQuery(".slide").slide({mainCell:".bd ul",effect:"left",autoPlay:true,delayTime:700});
}
})