main
kgdxpr 1 year ago
parent 86be493d05
commit 4abbb119a5

@ -4,174 +4,177 @@
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- <title>长春市教育装备与信息化项目智慧管理系统</title> -->
<title>长春市教育数据采集系统</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
<!-- 手机端禁止缩放 -->
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<!-- <meta name="keywords" content="长春市教育装备与信息化项目智慧管理系统"> -->
<!--关键词,5个左右,单个8汉字以内-->
<!-- <meta name="description" content="长春市教育装备与信息化项目智慧管理系统"> -->
<!--网站描述-->
<!--自己的样式-->
<link href="./tbcss/public.css" rel="stylesheet" type="text/css"/>
<link href="./tbcss/public.css" rel="stylesheet" type="text/css" />
<link href="./tbcss/SignIn.css" rel="stylesheet" type="text/css">
<script src="./component/pear/jsencrypt.min.js"></script>
<script src="./admin/js/jquery-3.6.0.min.js"></script>
<!--添加对公用函数库的引用-->
<!-- <script src="lib/common.js"></script>-->
<!-- <script src="lib/common.js"></script>-->
</head>
<body>
<div class="all-content">
<div class="content clearfix">
<div class="left-img">
<img src="./img/left-img_tk.png">
</div>
<div class="right-content clearfix">
<div class="content-name">
<!-- <p style="font-size: 20px;font-weight: bolder">长春市教育装备与信息化项目智慧管理系统</p> -->
<p style="font-size: 20px;font-weight: bolder;margin-left: -5px;"><img src="./img/title_tk.png"></p>
<div class="all-content">
<div class="content clearfix">
<div class="left-img">
<img src="./img/left-img_tk.png">
</div>
<form action="" method="post">
<div class="user-name">
<div class="user-name-li">
<img src="./img/user_tb.png">
<input type="text" placeholder="用户名" name="loginName" id="usernameTxt">
</div>
<div class="right-content clearfix">
<div class="content-name">
<!-- <p style="font-size: 20px;font-weight: bolder">长春市教育装备与信息化项目智慧管理系统</p> -->
<p style="font-size: 20px;font-weight: bolder;margin-left: -5px;"><img src="./img/title_tk.png"></p>
</div>
<div class="password">
<div class="password-li">
<img src="./img/pass_tb.png">
<input type="password" autocomplete="off" placeholder="密码" name="password" id="passwordTxt">
<form action="" method="post">
<div class="user-name">
<div class="user-name-li">
<img src="./img/user_tb.png">
<input type="text" placeholder="用户名" name="loginName" id="usernameTxt">
</div>
</div>
</div>
<div class="vcode">
<div class="vcode-li">
<img src="./img/v_code_tb.png">
<input type="text" placeholder="验证码" autocomplete="off" name="captcha" id="captchaTxt" value="dsideal">
<img class="vcode-img" id="userCaptchaImage" src="/QingLong/loginPerson/getCaptcha"
alt="点击图片刷新校验码" style="cursor:pointer" onclick="javascript:refreshCaptcha()"/>
<div class="password">
<div class="password-li">
<img src="./img/pass_tb.png">
<input type="password" autocomplete="off" placeholder="密码" name="password" id="passwordTxt">
</div>
</div>
<div class="vcode">
<div class="vcode-li">
<img src="./img/v_code_tb.png">
<input type="text" placeholder="验证码" autocomplete="off" name="captcha" id="captchaTxt"
value="dsideal">
<img class="vcode-img" id="userCaptchaImage" src="/QingLong/loginPerson/getCaptcha"
alt="点击图片刷新校验码" style="cursor:pointer" onclick="javascript:refreshCaptcha()" />
</div>
</div>
</div>
<input id="loginBtn" class="input-button" type="button" value="登&nbsp;&nbsp;&nbsp;录" style="background-color: #6998F4;">
</form>
<input id="loginBtn" class="input-button" type="button" value="登&nbsp;&nbsp;&nbsp;录"
style="background-color: #6998F4;">
</form>
</div>
</div>
</div>
</div>
<div class="footer">
©版权所有&nbsp;&nbsp;2020-2022&nbsp;&nbsp;长春市教育局装备信息与技术中心<span class="padding-5">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a
href="https://beian.miit.gov.cn/" target="_blank">吉ICP备20000186号-1</a>
</div>
<script>
$(function () {
$("#loginBtn").click(function () {
doLogin();
<div class="footer">
©版权所有&nbsp;&nbsp;长春市教育局装备信息与技术中心<span class="padding-5">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a
href="https://beian.miit.gov.cn/" target="_blank">吉ICP备20000186号-1</a>
</div>
<script>
$(function () {
$("#loginBtn").click(function () {
doLogin();
});
});
});
//刷新验证码
function refreshCaptcha() {
$("#userCaptchaImage").attr("src", "/QingLong/loginPerson/getCaptcha?rnd=" + Math.random().toString().slice(-6));
}
//刷新验证码
function refreshCaptcha() {
$("#userCaptchaImage").attr("src", "/QingLong/loginPerson/getCaptcha?rnd=" + Math.random().toString().slice(-6));
}
$(document).keydown(function (event) {
if (event.keyCode === 13) {//回车键对应code值为13
doLogin();
$(document).keydown(function (event) {
if (event.keyCode === 13) {//回车键对应code值为13
doLogin();
}
});
function doLogin() {
var username = $("#usernameTxt").val();
var password = $("#passwordTxt").val();
var captcha = $("#captchaTxt").val();
if (username.length === 0 || password.length === 0) {
alert("用户名或密码不允许为空!")
return;
}
userLogin(username, password, captcha);
}
});
function doLogin() {
var username = $("#usernameTxt").val();
var password = $("#passwordTxt").val();
var captcha = $("#captchaTxt").val();
if (username.length === 0 || password.length === 0) {
alert("用户名或密码不允许为空!")
return;
//用户名登录
function userLogin(username, password, captcha) {
var publicKey = "-----BEGIN PUBLIC KEY-----\MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCcd+0zTY9Gn94iqkQJTlxYnEnCeFsLkk0a7hoAvi2B74VzDVV3xH0ZO9RkXvo1SgCB+uzbEWdrgQkzTqyjfTtgOguu3OnkVxIMJF34ibchTY0LWHGxq1m2gLGuVVqrlu1LtdV0X7xo/5zc8Mr+46veWb86kSpqe6rOAm69WWo5GwIDAQAB\-----END PUBLIC KEY-----";
var encrypt = new JSEncrypt();
encrypt.setPublicKey(publicKey);
if (userLoginCheck(username, password, captcha)) {
$.ajax({
type: "POST",
dataType: "json",
url: "/QingLong/loginPerson/doLogin",
data: {
"username": username,
"password": encrypt.encrypt(password),
"captcha": captcha
},
async: false,
success: function (result) {
if (result.success) {
window.location.href = '/QingLong/index.html';
} else {
alert(result.msg);
if (result.redirect) {
window.location.href = '/QingLong/plogin.html';
}
refreshCaptcha();
}
}
});
}
}
userLogin(username, password, captcha);
}
//用户名登录
function userLogin(username, password, captcha) {
var publicKey = "-----BEGIN PUBLIC KEY-----\MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCcd+0zTY9Gn94iqkQJTlxYnEnCeFsLkk0a7hoAvi2B74VzDVV3xH0ZO9RkXvo1SgCB+uzbEWdrgQkzTqyjfTtgOguu3OnkVxIMJF34ibchTY0LWHGxq1m2gLGuVVqrlu1LtdV0X7xo/5zc8Mr+46veWb86kSpqe6rOAm69WWo5GwIDAQAB\-----END PUBLIC KEY-----";
var encrypt = new JSEncrypt();
encrypt.setPublicKey(publicKey);
//用户登录检查
function userLoginCheck(username, password, captcha) {
if (username == null || username == "") {
alert("用户名不允许为空!");
return false;
}
if (password == null || password == "") {
alert("密码不允许为空!");
return false;
}
if (captcha == null || captcha == "") {
alert("验证码不允许为空!");
return false;
}
return true;
}
//开启错误提示
function showError(error) {
$(".form-error").find("label").html(error);
$(".form-error").show();
}
if (userLoginCheck(username, password, captcha)) {
//获取页面信息
function getPageInfo() {
$.ajax({
type: "POST",
dataType: "json",
url: "/QingLong/loginPerson/doLogin",
url: "/baseService/global/getGlobalValueByKey",
data: {
"username": username,
"password": encrypt.encrypt(password),
"captcha": captcha
"key": "title,copy_right"
},
async: false,
success: function (result) {
if (result.success) {
window.location.href = '/QingLong/index.html';
} else {
alert(result.msg);
if(result.redirect){
window.location.href = '/QingLong/plogin.html';
}
refreshCaptcha();
if (result.success) {
$("#system_name").html(result.title);
$("#copyright").html(result.copy_right);
$('title').html(result.title);
}
}
});
}
}
//用户登录检查
function userLoginCheck(username, password, captcha) {
if (username == null || username == "") {
alert("用户名不允许为空!");
return false;
}
if (password == null || password == "") {
alert("密码不允许为空!");
return false;
}
if (captcha == null || captcha == "") {
alert("验证码不允许为空!");
return false;
}
return true;
}
//开启错误提示
function showError(error) {
$(".form-error").find("label").html(error);
$(".form-error").show();
}
//获取页面信息
function getPageInfo() {
$.ajax({
type: "POST",
dataType: "json",
url: "/baseService/global/getGlobalValueByKey",
data: {
"key": "title,copy_right"
},
async: false,
success: function (result) {
if (result.success) {
$("#system_name").html(result.title);
$("#copyright").html(result.copy_right);
$('title').html(result.title);
}
}
});
}
</script>
</script>
</body>
</html>

@ -1957,7 +1957,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
_html += '<label class="layui-form-label {0}"><span style="color:red;">{2}</span>{1}:</label>'.format(json.required ? 'layui-form-required' : '', json.label, json.required ? '*' : '');
_html += '<div class="layui-input-block">';
_html += '<div class="layui-upload">';
// _html += '<button type="button" class="layui-btn" id="{0}">图片上传1</button>'.format(json.tag + json.id);
_html += '<button type="button" class="layui-btn layui-btn-disabled" id="{0}" >图片上传</button>'.format(json.tag + json.id);
_html += '<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;width: 88%;margin-left: 5px;">预览图:';
_html += '<div class="layui-upload-list uploader-list" style="overflow: auto;" id="uploader-list-{0}">'.format(json.id);
_html += '</div>';

@ -64,7 +64,7 @@
});
$.ajax({
url: "/QingLong/collect/getJob?job_id="+jobId,
url: "/QingLong/collect/getJobBasic?job_id="+jobId,
async: false,
type: 'GET',
success: function (res) {

@ -61,9 +61,17 @@
<i class="iconfont icon-tianbao"></i> 填报
</button>
{{# } }}
<button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-event="view" style="font-size: 12px !important;">
<i class="iconfont icon-chakan"></i> 查看
<button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-event="viewTaskInfo" style="font-size: 12px !important;">
<i class="iconfont icon-chakanxiangqing"></i> 查看任务详情
</button>
{{# if(d.is_finish == "1"){ }}
<button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-event="viewReportInfo" style="font-size: 12px !important;">
<i class="iconfont icon-chakan"></i> 查看填报详情
</button>
{{# } }}
<!-- <button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-event="view" style="font-size: 12px !important;">
<i class="iconfont icon-chakan"></i> 查看
</button> -->
{{# if(d.is_finish === 1){ }}
{{# if(d.job_type === 2){ }}
<button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-event="download" style="font-size: 12px !important;">
@ -119,18 +127,26 @@
{ title: '发布日期', unresize: true, field: 'publish_time', align: 'center', width: "15%" },
{ title: '截止日期', unresize: true, field: 'deadline_time', align: 'center', width: "15%" },
{ title: '发布对象', unresize: true, align: 'center', width: "8%", templet: '#targetType' },
{ title: '操作', unresize: true, align: 'center', width: "15%", toolbar: '#table-bar' }
{ title: '操作', unresize: true, align: 'left', width: "20%", toolbar: '#table-bar' }
]],
skin: 'line',
defaultToolbar: []
defaultToolbar: [],
parseData: function (res) { // res 即为原始返回的数据
for (var i = 0; i < res.data.length; i++) {
res.data[i].is_finish = isFinish;
}
return res;
}
});
}
table.on('tool(data-table)', function (obj) {
if (obj.event === 'report') {
window.report(obj);
} else if (obj.event === 'view') {
window.view(obj);
} else if (obj.event === 'viewTaskInfo') {
window.viewTaskInfo(obj);
} else if (obj.event === 'viewReportInfo') {
window.viewReportInfo(obj);
} else if (obj.event === 'download') {
window.download(obj);
}
@ -155,34 +171,65 @@
window.location = '/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=1';
}
window.view = function (obj) {
if (obj.data.is_finish === 0) {
window.viewTaskInfo = function (obj) {
layer.open({
type: 2,
title: '查看任务详情',
shade: 0.1,
area: ['800px', '400px'],
content: '../dis/job_view.html?job_id=' + obj.data.job_id + "&status_code=" + obj.data.status_code + "&target_id=" + obj.data.target_id
});
}
window.viewReportInfo = function (obj) {
if (obj.data.job_type === 1) {
layer.open({
type: 2,
title: '查看',
title: '查看填报详情',
offset: 'r',
anim: 'slideLeft',
area: ['1000px', '100%'],
shade: 0.1,
area: ['800px', '400px'],
content: '../dis/job_view.html?job_id=' + obj.data.job_id
shadeClose: true,
content: "../form/view.html?job_id=" + obj.data.job_id + "&target_id=" + obj.data.target_id + "&status_code=" + obj.data.status_code,
end: function () {
tableRender();
}
});
} else {
if (obj.data.job_type === 1) {
layer.open({
type: 2,
title: '查看',
offset: 'r',
anim: 'slideLeft',
area: ['1000px', '100%'],
shade: 0.1,
shadeClose: true,
content: "../form/view.html?job_id=" + obj.data.job_id + "&target_id=" + obj.data.target_id + "&status_code=" + obj.data.status_code,
});
} else {
var base64Url = Base64.encode('/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=2');
window.open('../exportPdf.html?url=' + base64Url, '_blank');
}
var base64Url = Base64.encode('/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=2' + '&status_code=' + obj.data.status_code);
window.open('../exportPdf.html?url=' + base64Url, '_blank');
}
}
// window.view = function (obj) {
// if (obj.data.is_finish === 0) {
// layer.open({
// type: 2,
// title: '查看',
// shade: 0.1,
// area: ['800px', '400px'],
// content: '../dis/job_view.html?job_id=' + obj.data.job_id
// });
// } else {
// if (obj.data.job_type === 1) {
// layer.open({
// type: 2,
// title: '查看',
// offset: 'r',
// anim: 'slideLeft',
// area: ['1000px', '100%'],
// shade: 0.1,
// shadeClose: true,
// content: "../form/view.html?job_id=" + obj.data.job_id + "&target_id=" + obj.data.target_id + "&status_code=" + obj.data.status_code,
// });
// } else {
// var base64Url = Base64.encode('/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=2');
// window.open('../exportPdf.html?url=' + base64Url, '_blank');
// }
// }
// }
window.refresh = function (param) {
table.reload('data-table');
}

Loading…
Cancel
Save