修改首页bug

beetlsql3-dev
姚丹ab 2 years ago
parent 1666ecda1c
commit 3e5ec39464

@ -67,7 +67,7 @@
</div>
</span>
<!--#if(isSignRole.get()!''== 2){ -->
<span class="iconfont" style="font-weight:bold;">&#xe83c;校园动态授权码:{{d.universitiesCollegesAuthCode}}</span>
<span class="iconfont" style="font-weight:bold;">&#xe83c;校园动态授权码:<span id="universitiesCollegesAuthCode"></span></span>
<!--#} -->
</div>
@ -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;
});

@ -207,6 +207,7 @@
addOpen("",'子章节名称',"",param);
}else if (obj.event === 'updateResources') {//上传资源
}else if (obj.event === 'addLine') {//添加链接
}else if (obj.event === 'addWP') {//添加图文

Loading…
Cancel
Save