diff --git a/admin-core/src/main/resources/templates/teacherIndex.html b/admin-core/src/main/resources/templates/teacherIndex.html index 64a5dd8d..9f811c78 100644 --- a/admin-core/src/main/resources/templates/teacherIndex.html +++ b/admin-core/src/main/resources/templates/teacherIndex.html @@ -67,7 +67,7 @@ - 校园动态授权码:{{d.universitiesCollegesAuthCode}} + 校园动态授权码: @@ -284,7 +284,6 @@ var adminIndexDetailData = []; var adminIndexBarchartData = []; var isSignRole = $("input[name='isSignRole']").val(); - //日期时间范围选择 laydate.render({ elem: '#allDate' @@ -304,76 +303,73 @@ if (isSignRole == 1) { getTpl = admin_Demo.innerHTML; view = document.getElementById('admin_view'); + var chartDom = document.getElementById('monitor'); + var myChart= echarts.init(chartDom); + var option = { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + } + }, + grid: { + left: '3%', + right: '4%', + bottom: '3%', + containLabel: true + }, + xAxis: [ + { + type: 'category', + data: adminIndexBarchartData.xList, + axisTick: { + alignWithLabel: true + } + } + ], + yAxis: [ + { + type: 'value' + } + ], + color: ['#5470c6'], + series: [ + { + name: 'Direct', + type: 'bar', + barWidth: '10%', + data: adminIndexBarchartData.yList, + label: { + normal: { + show: true,//开启显示 + position: 'top',//柱形上方 + textStyle: { //数值样式 + color: '#000' + } + } + } + } + ] + }; + option && myChart.setOption(option); } else { getTpl = uniAdmin_Demo.innerHTML; view = document.getElementById('uniAdmin_view'); + } loadInfo(); - var chartDom = document.getElementById('monitor'); - var myChart = echarts.init(chartDom); - var option = { - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow' - } - }, - grid: { - left: '3%', - right: '4%', - bottom: '3%', - containLabel: true - }, - xAxis: [ - { - type: 'category', - data: adminIndexBarchartData.xList, - axisTick: { - alignWithLabel: true - } - } - ], - yAxis: [ - { - type: 'value' - } - ], - color: ['#5470c6'], - series: [ - { - name: 'Direct', - type: 'bar', - barWidth: '10%', - data: adminIndexBarchartData.yList, - label: { - normal: { - show: true,//开启显示 - position: 'top',//柱形上方 - textStyle: { //数值样式 - color: '#000' - } - } - } - } - ] - }; - option && myChart.setOption(option); - function loadInfo(sTime, eTime) { var ret = Common.getAjax("/api/statisticalAnalysis/adminIndexDetail.do", {stime: sTime, etime: eTime}); - var retChart = Common.getAjax("/api/statisticalAnalysis/adminIndexBarchart.do", { - stime: sTime, - etime: eTime - }); + var retChart = Common.getAjax("/api/statisticalAnalysis/adminIndexBarchart.do", {stime: sTime,etime: eTime}); if (retChart.code == 0) { adminIndexBarchartData = retChart.data; } if (ret.code == 0) { adminIndexDetailData = ret.data; } - + $("#universitiesCollegesAuthCode").text(adminIndexDetailData.universitiesCollegesAuthCode) laytpl(getTpl).render(adminIndexDetailData, function (html) { view.innerHTML = html; }); diff --git a/web/src/main/resources/templates/jlw/courseInfo/courseConfigureNew.html b/web/src/main/resources/templates/jlw/courseInfo/courseConfigureNew.html index 535d7b1c..7b305cfc 100644 --- a/web/src/main/resources/templates/jlw/courseInfo/courseConfigureNew.html +++ b/web/src/main/resources/templates/jlw/courseInfo/courseConfigureNew.html @@ -207,6 +207,7 @@ addOpen("",'子章节名称',"",param); }else if (obj.event === 'updateResources') {//上传资源 + }else if (obj.event === 'addLine') {//添加链接 }else if (obj.event === 'addWP') {//添加图文