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} .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{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{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{margin-bottom:10px;font-size:14px;color:#333}
.main-list ul li .line:last-child{margin-bottom:0} .main-list ul li .line:last-child{margin-bottom:0}
.main-list ul li .line span{font-weight:700;color:#3d41b7} .main-list ul li .line span{font-weight:700;color:#3d41b7}

View File

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

View File

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

View File

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