59 lines
1.9 KiB
Plaintext
59 lines
1.9 KiB
Plaintext
// 周计划/计划趋势切换
|
|
$(".date3-type").click(function (e) {
|
|
$('.date3-type').each(function () {
|
|
if ($(this).find('p').eq(0).hasClass('check-p3')) {
|
|
$(this).find('p').eq(0).removeClass('check-p3')
|
|
$(this).find('p').eq(0).next('img').css('display', 'none')
|
|
}
|
|
})
|
|
classType = $(this).find('p').attr("classType")
|
|
$(this).find('p').eq(0).addClass('check-p3')
|
|
$(this).find('p').eq(0).next('img').removeAttr('style')
|
|
myChart4.dispose();
|
|
myChart6.dispose();
|
|
if (classType === '2') {
|
|
$('.date3-type img').css('width', '67px')
|
|
$('#plan-trend-echarts').removeAttr('style');
|
|
$('#week-echarts').css('display', 'none');
|
|
$('#weekPlan-div').css('display', 'none');
|
|
myChart4 = echarts.init(document.getElementById('plan-trend-echarts'));
|
|
loadWeekPlanAjax('2');
|
|
} else if (classType === '1') {
|
|
$('#plan-trend-echarts').css('display', 'none');
|
|
$('#week-echarts').removeAttr('style');
|
|
$('#weekPlan-div').removeAttr('style');
|
|
myChart6 = echarts.init(document.getElementById('week-echarts'));
|
|
loadWeekPlanAjax('1');
|
|
}
|
|
});
|
|
|
|
// 违章审核页面
|
|
function openVoiCheckPage(id, classId, type) {
|
|
let layerIndex = layer.open({
|
|
type: 2,
|
|
title: false,
|
|
closeBtn: 0,
|
|
content: "../../html/dutyTask/violation/noticeSheetCheck.html",
|
|
shadeClose: false,
|
|
area: ['740px', '780px'],
|
|
move: false,
|
|
success: function () {
|
|
let iframeWin = window["layui-layer-iframe" + layerIndex];
|
|
iframeWin.setParams(id, classId, type);
|
|
}
|
|
});
|
|
}
|
|
|
|
// 刷新违章下发审核数据
|
|
function reloadData() {
|
|
loadVoiCheckAjax();
|
|
}
|
|
|
|
// 刷新数据
|
|
function refreshData(type) {
|
|
if (type === 1) {
|
|
loadEarlyInfoAjax();
|
|
} else if (type === 2) {
|
|
loadVoiCheckAjax();
|
|
}
|
|
} |