398 lines
18 KiB
HTML
398 lines
18 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<base href="/twoduty/">
|
||
<meta charset="UTF-8">
|
||
<title>乡镇街道综合办公平台</title>
|
||
<link rel="stylesheet" href="assets/web/css/reset.css">
|
||
<link rel="stylesheet" href="assets/web/css/style.css">
|
||
</head>
|
||
<body style="background: #f5f5f5">
|
||
<div id="app">
|
||
<div class="header assessment-header">
|
||
<div class="banner">
|
||
<img src="assets/web/images/assessment-banner.png" alt="">
|
||
</div>
|
||
<div class="nav">
|
||
<ul class="clearFloat">
|
||
<li>
|
||
<a href="indexweb">
|
||
<div class="left fl">
|
||
<span>首页</span>
|
||
<p>乡镇街道综合办公平台</p>
|
||
</div>
|
||
<div class="right fr">
|
||
<img src="assets/web/images/nav-icon1.png" alt="">
|
||
</div>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="notice.html">
|
||
<div class="left fl">
|
||
<span>相关通知</span>
|
||
<p>各部门通知公告</p>
|
||
</div>
|
||
<div class="right fr">
|
||
<img src="assets/web/images/nav-icon2.png" alt="">
|
||
</div>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="route/web/public.html?id=6f0ec363-49a9-4174-a48f-290b69495dfc">
|
||
<div class="left fl">
|
||
<span>四个清单</span>
|
||
<p>四个清单</p>
|
||
</div>
|
||
<div class="right fr">
|
||
<img src="assets/web/images/nav-icon3.png" alt="">
|
||
</div>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="route/web/public.html?id=cdd5ffd5-ebd7-4901-afce-f2e98d506c97">
|
||
<div class="left fl">
|
||
<span>五项流程</span>
|
||
<p>五项流程</p>
|
||
</div>
|
||
<div class="right fr">
|
||
<img src="assets/web/images/nav-icon5.png" alt="">
|
||
</div>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="route/web/public.html?id=c912f0ff-d1e6-4346-a0cd-c955ea559a0b">
|
||
<div class="left fl">
|
||
<span>六本台账</span>
|
||
<p>六本台账</p>
|
||
</div>
|
||
<div class="right fr">
|
||
<img src="assets/web/images/nav-icon3.png" alt="">
|
||
</div>
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="count clearFloat">
|
||
<div class="chart-box fl">
|
||
<div class="count-title">三重一大分类统计</div>
|
||
<div class="chart" id="chart"></div>
|
||
</div>
|
||
<div class="count-container fr">
|
||
<div class="count-title">三重一大管理</div>
|
||
<div class="count-out clearFloat">
|
||
<div class="count-box">
|
||
<span>0</span>
|
||
<p>待审核</p>
|
||
</div>
|
||
<div class="count-box">
|
||
<span>0</span>
|
||
<p>待审核</p>
|
||
</div>
|
||
<div class="count-box">
|
||
<span>0</span>
|
||
<p>待审核</p>
|
||
</div>
|
||
<div class="count-box">
|
||
<span>0</span>
|
||
<p>待审核</p>
|
||
</div>
|
||
<div class="count-box">
|
||
<span>0</span>
|
||
<p>待审核</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="assessment-main clearFloat">
|
||
<div class="left-nav">
|
||
<div class="nav-title">
|
||
<span>功能一览</span>
|
||
</div>
|
||
<div class="nav-tab" v-for="(nav, idx) in navList" :id="'nav' + idx">
|
||
<div class="tab-title" @click="openDetail(nav.id, nav.childrens, idx)" :id="'item' + nav.id">{{nav.name}}</div>
|
||
<div class="hide-list" v-if="nav.childrens && nav.childrens.length > 0">
|
||
<ul>
|
||
<li v-for="(child, idx0) in nav.childrens">
|
||
<div class="nav-name" :id="'item' + child.id" @click="openDetail(child.id, child.childrens)">{{child.name}}</div>
|
||
<div class="hide-list" v-if="child.childrens && child.childrens.length > 0">
|
||
<ul>
|
||
<li v-for="(child1, idx1) in child.childrens">
|
||
<div class="nav-name" :id="'item' + child1.id" @click="openDetail(child1.id, child1.childrens)">{{child1.name}}</div>
|
||
<div class="hide-list" v-if="child1.childrens && child1.childrens.length > 0">
|
||
<ul>
|
||
<li v-for="(child2, idx2) in child1.childrens">
|
||
<div class="nav-name">{{child2.name}}</div>
|
||
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="right-main">
|
||
<div class="assessment-search">
|
||
<div class="nav-title">
|
||
<span>主体责任清单</span>
|
||
</div>
|
||
<div class="assessment-search-container clearFloat">
|
||
<div class="assessment-search-box">
|
||
<div class="search-title">标题检索</div>
|
||
<input type="text" placeholder="请输入关键字模糊查询">
|
||
</div>
|
||
<div class="assessment-search-box">
|
||
<div class="search-title">单位类型</div>
|
||
<select>
|
||
<option value="0">请选择单位类型</option>
|
||
<option value="1">类型1</option>
|
||
<option value="2">类型2</option>
|
||
</select>
|
||
</div>
|
||
<div class="assessment-search-box">
|
||
<div class="search-title">单位</div>
|
||
<select>
|
||
<option value="0">请选择单位</option>
|
||
<option value="1">单位1</option>
|
||
<option value="2">单位2</option>
|
||
</select>
|
||
</div>
|
||
<div class="assessment-search-box">
|
||
<div class="search-title">年度</div>
|
||
<select class="year">
|
||
<option value="0">2020</option>
|
||
<option value="1">2021</option>
|
||
</select>
|
||
</div>
|
||
<button>搜索</button>
|
||
</div>
|
||
</div>
|
||
<div class="main-list">
|
||
<ul>
|
||
<li v-for="(list,idx) in mainList">
|
||
<div class="line">
|
||
<span>类别:</span>{{list.indexLibName}}
|
||
</div>
|
||
<div class="line">
|
||
<span>项目:</span>{{list.indexLibRemark}}
|
||
</div>
|
||
<div class="line">
|
||
<span>指标明细项:</span>1.苏木镇(管委会)党(工)委每月研究部署、学习传达党风廉政建设相关工作1次,全年不少于12次,每缺1次扣0.2分。按月上报至考核系统。 <span>分值:2分</span>
|
||
</div>
|
||
<div class="line">
|
||
<span>操作:</span>
|
||
<a href="javascript: void(0);" class="operation-btn operation-examine">待审核(0)</a>
|
||
<a href="javascript: void(0);" class="operation-btn operation-pass">已通过(0)</a>
|
||
<a href="javascript: void(0);" class="operation-btn operation-not-pass">未通过(0)</a>
|
||
<a href="javascript: void(0);" class="operation-btn operation-score">得分</a>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="pager">
|
||
<span @click="paging(page.page - 1)" v-if="page.page > 1">上一页</span>
|
||
<ul class="clearFloat" v-if="page.totalPage > 0 && page.totalPage <= 5">
|
||
<li v-for="cpage in page.totalPage" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
||
{{cpage}}
|
||
</li>
|
||
</ul>
|
||
<ul class="clearFloat" v-if="page.totalPage > 5">
|
||
<li v-if="page.page < 3" v-for="cpage in 5" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
||
{{cpage}}
|
||
</li>
|
||
<li v-if="page.page > page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.totalPage - 5 + cpage)}" :key="cpage" @click="paging(cpage)">
|
||
{{page.totalPage - 5 + cpage}}
|
||
</li>
|
||
<li v-if="page.page >= 3 && page.page <= page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.page - (3 - cpage))}" :key="cpage" @click="paging(cpage)">
|
||
{{page.page - (3 - cpage)}}
|
||
</li>
|
||
</ul>
|
||
<span @click="paging(page.page + 1)" v-if="page.page < page.totalPage">下一页</span>
|
||
</div>
|
||
</div>
|
||
</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>
|
||
</div>
|
||
<div class="footer">
|
||
<!-- 版权所有:杭锦旗纪委监察局 备案号:蒙ICP备 14000612 技术支持:内蒙古成迈信息科技有限公司(0471-5316868)-->
|
||
</div>
|
||
</div>
|
||
<script src="assets/web/js/jquery-2.1.4.min.js"></script>
|
||
<script src="assets/web/js/jquery.SuperSlide.2.1.1.js"></script>
|
||
<script src="assets/web/js/vue.js"></script>
|
||
<script src="assets/web/js/echarts.js"></script>
|
||
<script src="assets/js/restajax.js"></script>
|
||
<script src="assets/web/layer-v3.3.0/layer/layer.js"></script>
|
||
<script>
|
||
var vue = new Vue({
|
||
el: '#app',
|
||
data: {
|
||
page: {
|
||
page: 1,
|
||
rows: 10,
|
||
totalPage: 10
|
||
},
|
||
navList: [],
|
||
mainList: [],
|
||
curMainId: '',
|
||
topNavList: []
|
||
},
|
||
methods: {
|
||
// 饼图
|
||
initChart: function () {
|
||
var self = this;
|
||
var echartsRadar = echarts.init(document.getElementById("chart"));
|
||
var option = {
|
||
tooltip: {
|
||
trigger: 'item',
|
||
formatter: '{b} : {c} ({d}%)'
|
||
},
|
||
legend: {
|
||
x: '0',
|
||
y: '25px',
|
||
orient: 'vertical'
|
||
},
|
||
series: [
|
||
{
|
||
type: 'pie',
|
||
radius: '65%',
|
||
center: ['70%', '50%'],
|
||
selectedMode: 'single',
|
||
data: [
|
||
{value: 1548, name: '重大项目安排',},
|
||
{value: 735, name: '大额基金使用'},
|
||
],
|
||
label: {
|
||
normal: {
|
||
show: false,
|
||
position: 'inside',
|
||
formatter:"{b}:{d}%"
|
||
}
|
||
},
|
||
emphasis: {
|
||
itemStyle: {
|
||
shadowBlur: 10,
|
||
shadowOffsetX: 0,
|
||
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
||
}
|
||
}
|
||
}
|
||
],
|
||
color: ['#0097f0','#7ecef4']
|
||
};
|
||
echartsRadar.setOption(option);
|
||
},
|
||
// 获取左侧菜单
|
||
getNav: function () {
|
||
var self = this;
|
||
var loadLayerIndex;
|
||
top.restAjax.get(top.restAjax.path('api/indexlib/listztreeweb', []), {}, null, function(code, data) {
|
||
self.navList = data
|
||
self.$nextTick(function () {
|
||
self.getDefault(data[0])
|
||
})
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
loadLayerIndex = layer.load(0, {shade: false});
|
||
}, function() {
|
||
layer.close(loadLayerIndex);
|
||
});
|
||
},
|
||
// 获取默认加载项
|
||
getDefault: function (item) {
|
||
$('#item' + item.id).addClass('active')
|
||
if (item.childrens.length == 0) {
|
||
this.getMainList(item.id)
|
||
} else {
|
||
$('#item' + item.id).next().show()
|
||
this.getDefault(item.childrens[0])
|
||
}
|
||
},
|
||
// 展开菜单或加载右侧
|
||
openDetail: function (id, children, idx) {
|
||
var self = this
|
||
var node = $('#item' + id)
|
||
if (children.length > 0) {
|
||
node.next().slideToggle()
|
||
if (node.hasClass('tab-title')) {
|
||
node.toggleClass('active')
|
||
node.toggleClass('bordered')
|
||
$('#nav' + idx).siblings().find('.hide-list').slideUp()
|
||
$('#nav' + idx).siblings().find('.tab-title').removeClass('active')
|
||
$('#nav' + idx).siblings().find('.tab-title').removeClass('bordered')
|
||
$('#nav' + idx).siblings().find('.nav-name').removeClass('bordered')
|
||
$('#nav' + idx).siblings().find('.nav-name').removeClass('active')
|
||
} else if (node.hasClass('nav-name')) {
|
||
node.toggleClass('active')
|
||
node.toggleClass('bordered')
|
||
node.parent().siblings().find('.nav-name').removeClass('active')
|
||
node.parent().siblings().find('.nav-name').removeClass('bordered')
|
||
node.parent().siblings().find('.hide-list').slideUp()
|
||
}
|
||
} else {
|
||
node.toggleClass('active')
|
||
node.parent().siblings().find('.tab-title').removeClass('active')
|
||
node.parent().siblings().find('.tab-title').removeClass('bordered')
|
||
node.parent().siblings().find('.hide-list').slideUp()
|
||
node.parent().siblings().find('.nav-name').removeClass('active')
|
||
node.parent().siblings().find('.nav-name').removeClass('bordered')
|
||
self.getMainList(id)
|
||
}
|
||
},
|
||
// 获取右侧列表
|
||
getMainList: function (id) {
|
||
var self = this;
|
||
var loadLayerIndex;
|
||
top.restAjax.get(top.restAjax.path('api/indexlib/listpage/' + id, []), {}, null, function(code, data) {
|
||
self.mainList = data.rows
|
||
self.page.page = data.page
|
||
self.page.totalPage = Math.ceil(data.total / self.page.rows)
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
loadLayerIndex = layer.load(0, {shade: false});
|
||
}, function() {
|
||
layer.close(loadLayerIndex);
|
||
});
|
||
},
|
||
// 获取顶部导航
|
||
getTopNav: function () {
|
||
var self = this
|
||
var loadLayerIndex;
|
||
top.restAjax.get(top.restAjax.path('api/indexlib/listwebtags', []), {}, null, function(code, data) {
|
||
console.log(data)
|
||
self.topNavList = data
|
||
}, function(code, data) {
|
||
layer.msg(data.msg);
|
||
}, function() {
|
||
loadLayerIndex = layer.load(0, {shade: false});
|
||
}, function() {
|
||
layer.close(loadLayerIndex);
|
||
});
|
||
},
|
||
// 顶部导航跳转页面
|
||
goNav: function (id) {
|
||
window.location.href = 'route/web/public.html?id=' + id
|
||
}
|
||
},
|
||
mounted: function () {
|
||
this.initChart()
|
||
this.getNav()
|
||
// this.getTopNav()
|
||
}
|
||
})
|
||
</script>
|
||
</body>
|
||
</html>
|