This commit is contained in:
dong_bo0602 2021-04-13 16:50:47 +08:00
parent 72d6e516de
commit ce016b07ff
2 changed files with 19 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/twoduty/">
<meta charset="UTF-8">
<title>"四五六"众力监督平台</title>
<link rel="stylesheet" href="assets/web/css/reset.css">
@ -306,7 +307,7 @@
<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/web/js/ajax.js"></script>
<script src="assets/js/restajax.js"></script>
<script>
var vue = new Vue({
el: '#app',
@ -318,6 +319,7 @@
}
},
methods: {
// 饼图
initChart: function () {
var self = this;
var echartsRadar = echarts.init(document.getElementById("chart"));
@ -360,10 +362,25 @@
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) {
console.log(data)
}, function(code, data) {
top.dialog.msg(data.msg);
}, function() {
loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
}, function() {
top.dialog.close(loadLayerIndex);
});
}
},
mounted: function () {
this.initChart()
this.getNav()
$('.nav-tab').click(function () {
$(this).toggleClass('active')
$(this).siblings().removeClass('active')

View File

@ -49,7 +49,7 @@
</a>
</li>
<li>
<a href="javascript: void(0);">
<a href="route/web/assessment.html">
<div class="left fl">
<span>记实考核</span>
<p>各类记实考核</p>