更改实名制-后台管理页面代码
This commit is contained in:
parent
a73be7824c
commit
e06a0d60f7
|
|
@ -3,7 +3,7 @@ function checkPermission() {
|
|||
$.ajax({
|
||||
type : 'get',
|
||||
url : czl_url + '/permissions/owns',
|
||||
contentType : "application/json; charset=utf-8",
|
||||
// contentType : "application/json; charset=utf-8",
|
||||
async : false,
|
||||
success : function(data) {
|
||||
pers = data;
|
||||
|
|
@ -15,6 +15,6 @@ function checkPermission() {
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return pers;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ function getMenuTree() {
|
|||
$.ajax({
|
||||
type : 'get',
|
||||
url : czl_url + '/permissions/all',
|
||||
contentType : "application/json; charset=utf-8",
|
||||
// contentType : "application/json; charset=utf-8",
|
||||
async : false,
|
||||
success : function(data) {
|
||||
var length = data.length;
|
||||
|
|
@ -36,7 +36,7 @@ function initMenuDatas(roleId){
|
|||
for(var i=0; i<length; i++){
|
||||
ids.push(data[i]['id']);
|
||||
}
|
||||
|
||||
|
||||
initMenuCheck(ids);
|
||||
}
|
||||
});
|
||||
|
|
@ -49,18 +49,18 @@ function initMenuCheck(ids) {
|
|||
var node = treeObj.getNodeByParam("id", 0, null);
|
||||
treeObj.checkNode(node, true, false);
|
||||
}
|
||||
|
||||
|
||||
for(var i=0; i<length; i++){
|
||||
var node = treeObj.getNodeByParam("id", ids[i], null);
|
||||
treeObj.checkNode(node, true, false);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function getCheckedMenuIds(){
|
||||
var treeObj = $.fn.zTree.getZTreeObj("treeDemo");
|
||||
var nodes = treeObj.getCheckedNodes(true);
|
||||
|
||||
|
||||
var length = nodes.length;
|
||||
var ids = [];
|
||||
for(var i=0; i<length; i++){
|
||||
|
|
@ -68,7 +68,7 @@ function getCheckedMenuIds(){
|
|||
var id = n['id'];
|
||||
ids.push(id);
|
||||
}
|
||||
|
||||
|
||||
return ids;
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ function initParentMenuSelect(){
|
|||
var d = data[i];
|
||||
var id = d['id'];
|
||||
var name = d['name'];
|
||||
|
||||
|
||||
select.append("<option value='"+ id +"'>" +name+"</option>");
|
||||
}
|
||||
}
|
||||
|
|
@ -151,4 +151,4 @@ function zTreeOnCheck(event, treeId, treeNode) {
|
|||
// console.log(treeNode.id + ", " + treeNode.name + "," + treeNode.checked
|
||||
// + "," + treeNode.pId);
|
||||
// console.log(JSON.stringify(treeNode));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ function getMenuTree() {
|
|||
$.ajax({
|
||||
type : 'get',
|
||||
url : czl_ht_url + '/permissions/all',
|
||||
contentType : "application/json; charset=utf-8",
|
||||
// contentType : "application/json; charset=utf-8",
|
||||
async : false,
|
||||
success : function(data) {
|
||||
var length = data.length;
|
||||
|
|
@ -36,7 +36,7 @@ function initMenuDatas(roleId){
|
|||
for(var i=0; i<length; i++){
|
||||
ids.push(data[i]['id']);
|
||||
}
|
||||
|
||||
|
||||
initMenuCheck(ids);
|
||||
}
|
||||
});
|
||||
|
|
@ -49,18 +49,18 @@ function initMenuCheck(ids) {
|
|||
var node = treeObj.getNodeByParam("id", 0, null);
|
||||
treeObj.checkNode(node, true, false);
|
||||
}
|
||||
|
||||
|
||||
for(var i=0; i<length; i++){
|
||||
var node = treeObj.getNodeByParam("id", ids[i], null);
|
||||
treeObj.checkNode(node, true, false);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function getCheckedMenuIds(){
|
||||
var treeObj = $.fn.zTree.getZTreeObj("treeDemo");
|
||||
var nodes = treeObj.getCheckedNodes(true);
|
||||
|
||||
|
||||
var length = nodes.length;
|
||||
var ids = [];
|
||||
for(var i=0; i<length; i++){
|
||||
|
|
@ -68,7 +68,7 @@ function getCheckedMenuIds(){
|
|||
var id = n['id'];
|
||||
ids.push(id);
|
||||
}
|
||||
|
||||
|
||||
return ids;
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ function initParentMenuSelect(){
|
|||
var d = data[i];
|
||||
var id = d['id'];
|
||||
var name = d['name'];
|
||||
|
||||
|
||||
select.append("<option value='"+ id +"'>" +name+"</option>");
|
||||
}
|
||||
}
|
||||
|
|
@ -182,4 +182,4 @@ function zTreeOnCheck(event, treeId, treeNode) {
|
|||
// console.log(treeNode.id + ", " + treeNode.name + "," + treeNode.checked
|
||||
// + "," + treeNode.pId);
|
||||
// console.log(JSON.stringify(treeNode));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3,7 +3,10 @@ function getMenuAppTree() {
|
|||
$.ajax({
|
||||
type : 'get',
|
||||
url : smz_ht_url + '/permissions/appAll',
|
||||
contentType : "application/json; charset=utf-8",
|
||||
// contentType : "application/json; charset=utf-8",
|
||||
headers: {
|
||||
Authorization: "Bearer " + localStorage.getItem("smz-token"),
|
||||
},
|
||||
async : false,
|
||||
success : function(data) {
|
||||
var length = data.length;
|
||||
|
|
@ -26,7 +29,10 @@ function getMenuBackTree() {
|
|||
$.ajax({
|
||||
type : 'get',
|
||||
url : smz_ht_url + '/permissions/backAll',
|
||||
contentType : "application/json; charset=utf-8",
|
||||
// contentType : "application/json; charset=utf-8",
|
||||
headers: {
|
||||
Authorization: "Bearer " + localStorage.getItem("smz-token"),
|
||||
},
|
||||
async : false,
|
||||
success : function(data) {
|
||||
var length = data.length;
|
||||
|
|
@ -99,7 +105,7 @@ function initMenuBackCheck(ids) {
|
|||
function getCheckedMenuIds(){
|
||||
var treeObj = $.fn.zTree.getZTreeObj("treeDemo");
|
||||
var nodes = treeObj.getCheckedNodes(true);
|
||||
|
||||
|
||||
var length = nodes.length;
|
||||
var ids = [];
|
||||
for(var i=0; i<length; i++){
|
||||
|
|
@ -164,7 +170,7 @@ function initParentMenuSelect(){
|
|||
var d = data[i];
|
||||
var id = d['id'];
|
||||
var name = d['name'];
|
||||
|
||||
|
||||
select.append("<option value='"+ id +"'>" +name+"</option>");
|
||||
}
|
||||
}
|
||||
|
|
@ -219,4 +225,4 @@ function zTreeOnCheck(event, treeId, treeNode) {
|
|||
// console.log(treeNode.id + ", " + treeNode.name + "," + treeNode.checked
|
||||
// + "," + treeNode.pId);
|
||||
// console.log(JSON.stringify(treeNode));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ function getMenuTreePro(treeKeyWord) {
|
|||
data:{
|
||||
"treeKeyWord":treeKeyWord
|
||||
},
|
||||
// contentType : "application/json; charset=utf-8",
|
||||
contentType : "application/json; charset=utf-8",
|
||||
async : false,
|
||||
success : function(data) {
|
||||
console.log(data)
|
||||
|
|
|
|||
|
|
@ -553,42 +553,42 @@ function setData(data) {
|
|||
$("#foContact").val(data.foContact); // 班组长电话
|
||||
$("#einTime").val(data.einTime); // 入场时间
|
||||
$("#updateTime").val(data.updateTime); // 修改时间
|
||||
var path1 = smz_ht_url +"/"+data.businessURL; //营业执照
|
||||
|
||||
$("#preview1").css("display","");
|
||||
var demo1 = $("#demo1");
|
||||
var html = '';
|
||||
html += '<img src="' + data.businessURL + '" id="1" name="1" ondblclick="delPhoto(1)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo1.append(html);
|
||||
|
||||
var path2 = smz_ht_url +"/"+data.sealURL;
|
||||
|
||||
$("#preview2").css("display","");
|
||||
var demo2 = $("#demo2");
|
||||
var html = '';
|
||||
html += '<img src="' + data.sealURL + '" id="2" name="2" ondblclick="delPhoto(2)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo2.append(html);
|
||||
|
||||
var path3 = smz_ht_url +"/"+data.signatureURL;
|
||||
|
||||
$("#preview3").css("display","");
|
||||
var demo3 = $("#demo3");
|
||||
var html = '';
|
||||
html += '<img src="' + data.signatureURL + '" id="3" name="3" ondblclick="delPhoto(3)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo3.append(html);
|
||||
|
||||
var path4 = smz_ht_url +"/"+data.safetyURL;
|
||||
|
||||
$("#preview4").css("display","");
|
||||
var demo4 = $("#demo4");
|
||||
var html = '';
|
||||
html += '<img src="' + data.safetyURL + '" id="4" name="4" ondblclick="delPhoto(4)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo4.append(html);
|
||||
|
||||
var path5 = smz_ht_url +"/"+data.idCardJustURL;
|
||||
|
||||
$("#preview5").css("display","");
|
||||
var demo5 = $("#demo5");
|
||||
var html = '';
|
||||
html += '<img src="' + data.idCardJustURL + '" id="5" name="5" ondblclick="delPhoto(5)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo5.append(html);
|
||||
|
||||
var path6 = smz_ht_url +"/"+data.idCardBackURL;
|
||||
|
||||
$("#preview6").css("display","");
|
||||
var demo6 = $("#demo6");
|
||||
var html = '';
|
||||
|
|
@ -630,37 +630,37 @@ function setLookData(data) {
|
|||
$("#foContact").val(data.foContact); // 班组长电话
|
||||
$("#einTime").val(data.einTime); // 入场时间
|
||||
$("#updateTime").val(data.updateTime); // 修改时间
|
||||
var path1 = smz_ht_url +"/"+data.businessURL;
|
||||
var path1 = data.businessURL;
|
||||
var html1 = "";
|
||||
html1 +="<li class='disPhotoLi1'>";
|
||||
html1 += '<img data-original="'+path1+'" src="' + path1 + '" class="img" width="140px" height="150px"/>';
|
||||
html1 +=" </li>";
|
||||
$("#businessPhoto").append(html1);
|
||||
var path2 = smz_ht_url +"/"+data.sealURL;
|
||||
var path2 = data.sealURL;
|
||||
var html2 = "";
|
||||
html2 +="<li class='disPhotoLi2'>";
|
||||
html2 += '<img data-original="'+path2+'" src="' + path2 + '" class="img" width="140px" height="150px"/>';
|
||||
html2 +=" </li>";
|
||||
$("#sealPhoto").append(html2);
|
||||
var path3 = smz_ht_url +"/"+data.signatureURL;
|
||||
var path3 = data.signatureURL;
|
||||
var html3 = "";
|
||||
html3 +="<li class='disPhotoLi3'>";
|
||||
html3 += '<img data-original="'+path3+'" src="' + path3 + '" class="img" width="140px" height="150px"/>';
|
||||
html3 +=" </li>";
|
||||
$("#signaturePhoto").append(html3);
|
||||
var path4 = smz_ht_url +"/"+data.safetyURL;
|
||||
var path4 = data.safetyURL;
|
||||
var html4 = "";
|
||||
html4 +="<li class='disPhotoLi4'>";
|
||||
html4 += '<img data-original="'+path4+'" src="' + path4 + '" class="img" width="140px" height="150px"/>';
|
||||
html4 +=" </li>";
|
||||
$("#safetyPhoto").append(html4);
|
||||
var path5 = smz_ht_url +"/"+data.idCardBackURL;
|
||||
var path5 = data.idCardBackURL;
|
||||
var html5 = "";
|
||||
html5 +="<li class='disPhotoLi5'>";
|
||||
html5 += '<img data-original="'+path5+'" src="' + path5 + '" class="img" width="140px" height="150px"/>';
|
||||
html5 +=" </li>";
|
||||
$("#idCardBackPhoto").append(html5);
|
||||
var path6 = smz_ht_url +"/"+data.idCardJustURL;
|
||||
var path6 = data.idCardJustURL;
|
||||
var html6 = "";
|
||||
html6 +="<li class='disPhotoLi6'>";
|
||||
html6 += '<img data-original="'+path6+'" src="' + path6 + '" class="img" width="140px" height="150px"/>';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,12 @@ var pers = null;
|
|||
$("#searchBt").click(function () {
|
||||
example.ajax.reload();
|
||||
});
|
||||
|
||||
$("#resetBt").click(function () {
|
||||
$("#keyWord").val("");
|
||||
example.ajax.reload();
|
||||
});
|
||||
|
||||
$("#saveZipButton").click(function(){
|
||||
importExcel();
|
||||
});
|
||||
|
|
@ -256,6 +262,7 @@ function importExcel(){
|
|||
var formData = new FormData($('form')[0]);
|
||||
var name = $("#articleImageFile").val();
|
||||
if(name==null|| name == "") {
|
||||
layer.msg("请上传正确的Excel表格!");
|
||||
return;
|
||||
}
|
||||
if(!(name.endsWith(".xls") || name.endsWith(".xlsx") || name.endsWith(".xlsm"))) {
|
||||
|
|
@ -297,6 +304,6 @@ function importExcel(){
|
|||
$("#articleImageFile").val("");
|
||||
}
|
||||
function downCommonProblem(){
|
||||
window.location.href = smz_ht_url + "/download/download?filename=湖南农民工实名制管理平台使用常见问题汇总.xlsx";
|
||||
window.location.href = smz_ht_url + "/download/download?filename=湖南产业工人管理平台使用常见问题汇总.xlsx";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -455,7 +455,7 @@ function exportFullFile(listFile) {
|
|||
top.layer.close(loadingMsg);
|
||||
} else if (this.status === 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -314,7 +314,7 @@ function exportFullFile(listFile) {
|
|||
top.layer.close(loadingMsg);
|
||||
} else if (this.status === 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -319,7 +319,7 @@ function exportFullFile(listFile, token) {
|
|||
top.layer.close(loadingMsg);
|
||||
} else if (this.status === 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -327,7 +327,7 @@ function exportFullFile(listFile) {
|
|||
top.layer.close(loadingMsg);
|
||||
} else if (this.status === 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -290,7 +290,7 @@ function exportFullFile(listFile, token) {
|
|||
top.layer.close(loadingMsg);
|
||||
} else if (this.status === 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -327,7 +327,7 @@ function exportFullFile(listFile) {
|
|||
top.layer.close(loadingMsg);
|
||||
} else if (this.status === 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ layui.use(['laydate','form','layer'], function () {
|
|||
}
|
||||
example.ajax.reload();
|
||||
});
|
||||
|
||||
$("#resetBt").click(function () {
|
||||
$('#ggbt').val("");
|
||||
$('#test6').val(today + ' - ' + today);
|
||||
example.ajax.reload();
|
||||
});
|
||||
});
|
||||
|
||||
function init() {
|
||||
|
|
@ -72,7 +78,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -184,8 +190,8 @@ function del(id) {
|
|||
* 新增页面
|
||||
* */
|
||||
function insertAnnouncement() {
|
||||
var height = '75%';
|
||||
var width = '75%';
|
||||
var height = '97.5%';
|
||||
var width = '97.5%';
|
||||
var index = layer.open({
|
||||
title: ['新增', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
||||
type: 2,
|
||||
|
|
@ -219,8 +225,8 @@ function buttonDetail(sameBatch) {
|
|||
},
|
||||
dataType: 'json',
|
||||
success: function (data) {
|
||||
var height = '600px';
|
||||
var width = '1200px';
|
||||
var height = '97.5%';
|
||||
var width = '97.5%';
|
||||
var index = layer.open({
|
||||
title: ['详情','color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
||||
type: 2,
|
||||
|
|
@ -240,8 +246,8 @@ function buttonDetail(sameBatch) {
|
|||
//照片查看
|
||||
function photoView(id) {
|
||||
localStorage.setItem("id",id);
|
||||
var height = '525px';
|
||||
var width = '800px';
|
||||
var height = '97.5%';
|
||||
var width = '97.5%';
|
||||
var index = layer.open({
|
||||
title: ["查看", 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
||||
type: 2,
|
||||
|
|
|
|||
|
|
@ -129,6 +129,9 @@ function setInfo(filePath) {
|
|||
var demo1 = $("#demo2");
|
||||
var html = '';
|
||||
var photos = filePath.split("@");
|
||||
if (photos[photos.length - 1] === '') {
|
||||
photos.pop(); // 移除最后一个空元素
|
||||
}
|
||||
for (var i = 0; i < photos.length; i++) {
|
||||
var path = '';
|
||||
if (photos[i].indexOf("http") != -1) {
|
||||
|
|
@ -235,8 +238,8 @@ function delPhoto(i) {
|
|||
|
||||
//通知人员
|
||||
function notices() {
|
||||
var height = '85%';
|
||||
var width = '65%';
|
||||
var height = '75%';
|
||||
var width = '75%';
|
||||
var index = layer.open({
|
||||
title: ['', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
||||
type: 2,
|
||||
|
|
@ -246,7 +249,7 @@ function notices() {
|
|||
btn: ['确定', '关闭'],
|
||||
yes: function (index, layero) {
|
||||
var formSubmit = layer.getChildFrame('form', index);
|
||||
var submited = formSubmit.find('button')[1];
|
||||
var submited = formSubmit.find('button')[2];
|
||||
// 触发点击事件,会对表单进行验证,验证成功则提交表单,失败则返回错误信息
|
||||
submited.click();
|
||||
// example.ajax.reload(); // 刷新页面
|
||||
|
|
@ -290,4 +293,4 @@ function reloading() {
|
|||
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
||||
parent.layer.close(index); //再执行关闭
|
||||
window.parent.example.ajax.reload( null, false ); // 刷新页面
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -44,6 +44,12 @@ $(function () {
|
|||
// $(this).remove();
|
||||
// return layer.msg("附件为1-10张,请勿过多上传", {icon: 5});
|
||||
// }
|
||||
|
||||
var length = $('#demo1 img').length;
|
||||
if (length > 2) {
|
||||
return layer.msg("附件为3张,请勿过多上传", {icon: 5});
|
||||
}
|
||||
|
||||
$('#demo1').append('<img src="' + result + '" id="' + index + '" alt="' + file.name + '" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">');
|
||||
$('#' + index).bind('dblclick', function () {//双击删除指定预上传图片
|
||||
delete files[index];//删除指定图片
|
||||
|
|
@ -163,7 +169,7 @@ function setData(data) {
|
|||
var demo1 = $("#demo1");
|
||||
var html = '';
|
||||
var photos = reportPath.split(',');
|
||||
var reportPaths = data.reportPath.split(',');
|
||||
var reportPaths = data.reportPaths.split(',');
|
||||
for (var i = 0; i < photos.length; i++) {
|
||||
var path = '';
|
||||
if (photos[i].indexOf("http") != -1) {
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -26,6 +26,12 @@ $(function () {
|
|||
checkboxes[i].checked = allCheckbox.checked;
|
||||
}
|
||||
});
|
||||
|
||||
$("#resetBt").click(function () {
|
||||
$("#name").val("");
|
||||
$("#idNumber").val("");
|
||||
getTableList();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -107,4 +113,4 @@ function reloading() {
|
|||
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
||||
parent.layer.close(index); //再执行关闭
|
||||
window.parent.example.ajax.reload( null, false ); // 刷新页面
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ function initPositionTable(id) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -367,7 +367,7 @@ function initStaffTable(id) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -492,7 +492,7 @@ function initRecordTable(id) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ function initProcessTable(id) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -212,7 +212,7 @@ function initPersonnelTable(id) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ function initEntryExitTable(idCard) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -217,7 +217,7 @@ function initAttendanceTable(idCard) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ function initContractTable(proId) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -305,7 +305,7 @@ function initPositionTable(proId) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -429,7 +429,7 @@ function initStaffTable(proId) {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -26,6 +26,13 @@ layui.use(['laydate','form','layer'], function () {
|
|||
}
|
||||
example.ajax.reload();
|
||||
});
|
||||
|
||||
$("#resetBt").click(function () {
|
||||
$("#module").val("");
|
||||
$("#keyWord").val("");
|
||||
$('#test6').val(today + ' - ' + today);
|
||||
example.ajax.reload();
|
||||
});
|
||||
});
|
||||
|
||||
function init() {
|
||||
|
|
@ -71,7 +78,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -282,7 +282,7 @@ function view(id) {
|
|||
content: 'addCorporationMag.html',
|
||||
area: [width, height],
|
||||
maxmin: false,
|
||||
btn: ['关闭'],
|
||||
btn: ['确定', '关闭'],
|
||||
success: function (layero, index) {
|
||||
var myIframe = window[layero.find('iframe')[0]['name']];
|
||||
var fnc = myIframe.setData(data); //aaa()为子页面的方法
|
||||
|
|
|
|||
|
|
@ -11,6 +11,16 @@ layui.use(['form','layer'], function () {
|
|||
example.ajax.reload();
|
||||
});
|
||||
|
||||
$("#resetBt").click(function () {
|
||||
$("#proId").val("");
|
||||
$("#examineStatus").val("-1");
|
||||
$("#username").val("");
|
||||
$("#phone").val("");
|
||||
$("#keyWord").val("");
|
||||
form.render('select');
|
||||
example.ajax.reload();
|
||||
});
|
||||
|
||||
|
||||
|
||||
/* var orgId = localStorage.getItem("orgIdUser");
|
||||
|
|
@ -105,7 +115,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ function payroll() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -128,7 +128,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ function init() {
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">名称</label>
|
||||
<label class="col-md-2 control-label"><i class="tip-required" style="color: red;font-size: 20px">*</i>名称</label>
|
||||
<div class="col-md-10">
|
||||
<input class="form-control" placeholder="名称" type="text" name="name" id="name"
|
||||
data-bv-notempty="true"
|
||||
|
|
@ -41,9 +41,9 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">类型</label>
|
||||
<label class="col-md-2 control-label"><i class="tip-required" style="color: red;font-size: 20px">*</i> 类型</label>
|
||||
<div class="col-md-10">
|
||||
<select name="type" class="form-control input-sm">
|
||||
<select name="type" class="form-control input-sm" required lay-verify="required" >
|
||||
<option value="1">菜单</option>
|
||||
<option value="2">按钮</option>
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
</td>
|
||||
<td align="left">
|
||||
<button class="layui-btn layui-btn-sm" onclick="addMenu()" permission="sys:menu:add">
|
||||
添加
|
||||
新增
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -102,7 +102,7 @@ function initMenuList(){
|
|||
permissionType = "";
|
||||
}
|
||||
|
||||
var td5 = "<td>"+ d['permissionType'] +"</td>";
|
||||
var td5 = "<td>"+ permissionType +"</td>";
|
||||
tr += td5;
|
||||
|
||||
var id = d['id'];
|
||||
|
|
|
|||
|
|
@ -37,13 +37,13 @@
|
|||
<input id="keyWord" type="text" class="layui-input" placeholder="请输入关键字">
|
||||
</div>
|
||||
|
||||
<button id="searchBt" class="layui-btn layui-btn-sm" permission="sys:role:query">搜索</button>
|
||||
|
||||
<button id="searchBt" class="layui-btn layui-btn-sm" permission="sys:role:query">查询</button>
|
||||
<button id="resetBt" class="layui-btn layui-btn-sm" >重置</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="layui-inline" style="margin-top: 5px;">
|
||||
<button class="layui-btn layui-btn-sm" onclick="addRole()" permission="sys:role:add">
|
||||
添加
|
||||
新增
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
|
|
@ -114,7 +114,7 @@ function init(){
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
@ -257,6 +257,11 @@ $("#searchBt").click(function(){
|
|||
example.ajax.reload();
|
||||
});
|
||||
|
||||
$("#resetBt").click(function () {
|
||||
$("#keyWord").val("");
|
||||
example.ajax.reload();
|
||||
});
|
||||
|
||||
function edit(id){
|
||||
localStorage.setItem("roleId", id)
|
||||
var height = '97.5%';
|
||||
|
|
|
|||
|
|
@ -5,47 +5,87 @@
|
|||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="../../../layui/css/layui.css">
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="../../../css/viewer.min.css">
|
||||
<style>
|
||||
.layui-form-label {
|
||||
position: relative;
|
||||
float: left;
|
||||
display: block;
|
||||
padding: 9px 15px;
|
||||
width: 100%;
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
text-align: right;
|
||||
}
|
||||
.layui-form-item .layui-input-inline {
|
||||
margin-right: 22px;
|
||||
}
|
||||
/* 弹出层外部容器样式 */
|
||||
.layui-layer {
|
||||
border-radius: 10px; /* 设置圆角半径,根据需要调整 */
|
||||
}
|
||||
|
||||
/* 弹出层内部容器样式(如果需要) */
|
||||
.layui-layer-content {
|
||||
border-radius: 10px; /* 设置圆角半径,根据需要调整 */
|
||||
overflow: hidden; /* 防止内容溢出圆角区域 */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="layui-form" style="padding: 0 24px 0 24px">
|
||||
<form class="layui-form" action="">
|
||||
<input type="hidden" id="id" name="id">
|
||||
<div class="layui-input-inline"style="float: left;width: 50%;margin-top: 2%;margin-left: 20%" >
|
||||
<label class="layui-form-label" style="width: 20%"><i class="tip-required" style="color: red;font-size: 20px">*</i> 子系统:</label>
|
||||
<div class="layui-input-block">
|
||||
<input style="width: 85%" type="text" name="subsystem" id="subsystem" maxlength="50" lay-verify="required" class="layui-input">
|
||||
|
||||
<div class="layui-form-item" style="margin-top: 1%;">
|
||||
<div class="layui-input-inline">
|
||||
<label class="layui-form-label"><i class="tip-required" style="color: red;font-size: 20px">*</i> 子系统:</label>
|
||||
</div>
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<input type="text" name="subsystem" id="subsystem" maxlength="50" lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline"style="float: left;width: 50%;margin-top: 2%;margin-left: 20%">
|
||||
<label class="layui-form-label" style="width: 20%"><i class="tip-required" style="color: red;font-size: 20px">*</i>模块:</label>
|
||||
<div class="layui-input-block">
|
||||
<input style="width: 85%" type="text" name="module" id="module" maxlength="50" lay-verify="required" class="layui-input">
|
||||
<div class="layui-form-item" >
|
||||
<div class="layui-input-inline">
|
||||
<label class="layui-form-label"><i class="tip-required" style="color: red;font-size: 20px">*</i> 模块:</label>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<input type="text" name="module" id="module" maxlength="50" lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline"style="float: left;width: 50%;margin-top: 2%;margin-left: 20%">
|
||||
<label class="layui-form-label" style="width: 20%"><i class="tip-required" style="color: red;font-size: 20px">*</i>问题描述:</label>
|
||||
<div class="layui-input-block">
|
||||
<input style="width: 85%" type="text" name="problemDescription" id="problemDescription" maxlength="200" lay-verify="required" class="layui-input">
|
||||
<div class="layui-form-item" >
|
||||
<div class="layui-input-inline">
|
||||
<label class="layui-form-label"><i class="tip-required" style="color: red;font-size: 20px">*</i> 问题描述:</label>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<input type="text" name="problemDescription" id="problemDescription" maxlength="200" lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline"style="float: left;width: 50%;margin-top: 2%;margin-left: 20%">
|
||||
<label class="layui-form-label" style="width: 20%"><i class="tip-required" style="color: red;font-size: 20px">*</i>解决办法:</label>
|
||||
<div class="layui-input-block">
|
||||
<input style="width: 85%" type="text" name="solution" id="solution" maxlength="200" lay-verify="required" class="layui-input">
|
||||
<div class="layui-form-item" >
|
||||
<div class="layui-input-inline">
|
||||
<label class="layui-form-label"><i class="tip-required" style="color: red;font-size: 20px">*</i> 解决办法:</label>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<input type="text" name="solution" id="solution" maxlength="200" lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline"style="float: left;width: 50%;margin-top: 2%;margin-left: 20%">
|
||||
<label class="layui-form-label" style="width: 20%">备注:</label>
|
||||
<div class="layui-input-block">
|
||||
<input style="width: 85%" type="text" name="remark" id="remark" maxlength="200" class="layui-input">
|
||||
|
||||
<div class="layui-form-item" >
|
||||
<div class="layui-input-inline">
|
||||
<label class="layui-form-label">备注:</label>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<input type="text" name="remark" id="remark" maxlength="200" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item" style="display: none">
|
||||
<div class="layui-input-block">
|
||||
<button type="button" class="layui-btn" id="commit" lay-submit lay-filter="formDemo">提交</button>
|
||||
|
|
|
|||
|
|
@ -24,13 +24,15 @@
|
|||
</div>
|
||||
</div>
|
||||
<button id="searchBt" class="layui-btn layui-btn-sm"
|
||||
permission="sys:Blacklist:query" style="margin-top: -0.3%;">搜索
|
||||
permission="sys:Blacklist:query" style="margin-top: -0.3%;">查询
|
||||
</button>
|
||||
|
||||
<button id="resetBt" class="layui-btn layui-btn-sm" >重置</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="layui-inline" style="margin-top: 5px;">
|
||||
<button class="layui-btn layui-btn-sm" onclick="addCommonProblem()" style="margin-top: -0.7%;">
|
||||
添加
|
||||
新增
|
||||
</button>
|
||||
<input id="articleImageFile" name="excelFile" type="file" class="layui-input" style="width: 300px; display: inline;line-height: 2.8;" />
|
||||
<input id="saveZipButton" type="button" class="layui-btn layui-btn-sm" value="导入" style="margin-top: -0.7%;" />
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@
|
|||
layer.msg(message);
|
||||
} else if (code == 401) {
|
||||
localStorage.removeItem("public_token");
|
||||
localStorage.removeItem("smz_token");
|
||||
localStorage.removeItem("smz-token");
|
||||
layer.msg("token过期,请先登录", {shift: -1, time: 1000}, function () {
|
||||
top.location.href= contentPath + '/login.html';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<div class="form-group">
|
||||
<div class="layui-inline" >
|
||||
<div class="layui-input-inline">
|
||||
<input id="ggbt" type="text" class="layui-input"placeholder="请输入标题">
|
||||
<input id="ggbt" type="text" class="layui-input" placeholder="请输入标题">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -32,7 +32,8 @@
|
|||
<input type="hidden" id="hidMaxListDate"
|
||||
value='@DateTime.Now.ToString("yyyy-MM-dd")'/>
|
||||
</div>
|
||||
<button id="searchBt" class="layui-btn layui-btn-sm" >搜索</button>
|
||||
<button id="searchBt" class="layui-btn layui-btn-sm" >查询</button>
|
||||
<button id="resetBt" class="layui-btn layui-btn-sm" >重置</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="layui-inline" style="margin-top: 5px;">
|
||||
|
|
|
|||
|
|
@ -12,13 +12,27 @@
|
|||
<script type="text/javascript" src="../../../js/jq.js"></script>
|
||||
<style>
|
||||
.layui-form-label {
|
||||
width: 150px;
|
||||
}
|
||||
.layui-input-block {
|
||||
margin-left: 184px;
|
||||
}
|
||||
label{
|
||||
position: relative;
|
||||
float: left;
|
||||
display: block;
|
||||
padding: 9px 15px;
|
||||
width: 100%;
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
text-align: right;
|
||||
}
|
||||
.layui-form-item .layui-input-inline {
|
||||
margin-right: 22px;
|
||||
}
|
||||
/* 弹出层外部容器样式 */
|
||||
.layui-layer {
|
||||
border-radius: 10px; /* 设置圆角半径,根据需要调整 */
|
||||
}
|
||||
|
||||
/* 弹出层内部容器样式(如果需要) */
|
||||
.layui-layer-content {
|
||||
border-radius: 10px; /* 设置圆角半径,根据需要调整 */
|
||||
overflow: hidden; /* 防止内容溢出圆角区域 */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
@ -30,57 +44,62 @@
|
|||
<input type="hidden" id="workId" name="workId">
|
||||
<input type="hidden" id="idNumber" name="idNumber">
|
||||
|
||||
<div class="layui-form-item" style="margin-left: 25%;">
|
||||
<div class="layui-input-inline" style="width: 350px">
|
||||
<label class="layui-form-label"><i class="tip-required" style="color: red;font-size: 20px">*</i> 公告标题</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="ggbt" id="ggbt" required maxlength="50" lay-verify="required" class="layui-input" style="margin-top: 6%;width: 381px">
|
||||
</div>
|
||||
<div class="layui-form-item" style="margin-top: 1%;">
|
||||
<div class="layui-input-inline">
|
||||
<label class="layui-form-label"><i class="tip-required" style="color: red;font-size: 20px">*</i> 公告标题:</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" style="margin-left: 25%;">
|
||||
<div class="layui-input-inline" style="width: 350px">
|
||||
<label class="layui-form-label"><i class="tip-required" style="color: red;font-size: 20px">*</i> 公告内容</label>
|
||||
<div class="layui-input-block">
|
||||
<textarea type="text" name="ggnr" id="ggnr" required lay-verify="required" class="layui-input" maxlength="400"
|
||||
style="margin-top: 6%;height: 186px;width: 381px"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<input type="text" name="ggbt" id="ggbt" required maxlength="50" lay-verify="required" class="layui-input" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="image1" class="form-group" style="margin-top: 3%;margin-left: 25%;">
|
||||
<input type="text" hidden name="image" value="">
|
||||
<div class="layui-upload">
|
||||
<div class="layui-form-item" >
|
||||
<div class="layui-input-inline" >
|
||||
<label class="layui-form-label"><i class="tip-required" style="color: red;font-size: 20px">*</i> 公告内容:</label>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<textarea type="text" name="ggnr" id="ggnr" required lay-verify="required" class="layui-input" maxlength="400"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" id="image1">
|
||||
<div class="layui-input-inline" >
|
||||
<label class="layui-form-label">通知公告附件</label>
|
||||
<button type="button" class="layui-btn" id="test1">文件上传</button>
|
||||
<span style="color: red;margin-left: 20px" id="pan1">最多10个,双击可删除</span>
|
||||
<blockquote id="preview1" class="layui-elem-quote layui-quote-nm" style="margin-top: 10px; width: 350px;margin-left: 20%;">
|
||||
预览图:
|
||||
<div class="layui-upload-list" id="demo1"></div>
|
||||
</blockquote>
|
||||
</div>
|
||||
<button id="hideUpload1" type="button" style="display: none"></button>
|
||||
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<div class="form-group" >
|
||||
<input type="text" hidden name="image" value="">
|
||||
<div class="layui-upload">
|
||||
<button type="button" class="layui-btn" id="test1">文件上传</button>
|
||||
<span style="color: red;margin-left: 20px" id="pan1">最多10个,双击可删除</span>
|
||||
<blockquote id="preview1" class="layui-elem-quote layui-quote-nm" style="margin-top: 10px; ">
|
||||
预览图:
|
||||
<div class="layui-upload-list" id="demo1"></div>
|
||||
</blockquote>
|
||||
</div>
|
||||
<button id="hideUpload1" type="button" style="display: none"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="image2" class="form-group" style="margin-top: 3%;margin-left: 25%;display: none;">
|
||||
<input type="text" hidden name="image" value="">
|
||||
<div class="layui-upload">
|
||||
<div class="layui-form-item" id="image2" style="display: none;">
|
||||
<div class="layui-input-inline" >
|
||||
<label class="layui-form-label">通知公告附件</label>
|
||||
<span style="color: red;margin-left: 20px" >点击下载或打开文件</span>
|
||||
<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px; width: 350px;margin-left: 20%;">
|
||||
预览图:
|
||||
<div class="layui-upload-list" id="demo2"></div>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item" style="margin-left: 25%;">
|
||||
<div class="layui-inline" >
|
||||
<label class="layui-form-label" > 通知人员:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="name" id="name" readonly class="layui-input" onclick="notices()" style="width: 390px;">
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<div class="form-group" >
|
||||
<input type="text" hidden name="image" value="">
|
||||
<div class="layui-upload" style="margin-top: 10px; ">
|
||||
<span style="color: red;margin-left: 20px;" >点击下载或打开文件</span>
|
||||
<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px; ">
|
||||
预览图:
|
||||
<div class="layui-upload-list" id="demo2"></div>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -88,6 +107,16 @@
|
|||
|
||||
|
||||
|
||||
<div class="layui-form-item" >
|
||||
<div class="layui-input-inline" >
|
||||
<label class="layui-form-label">通知人员:</label>
|
||||
</div>
|
||||
|
||||
<div class="layui-input-inline" style="border: 0px dashed dimgrey;width: 74%;">
|
||||
<input type="text" name="name" id="name" readonly class="layui-input" onclick="notices()" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" style="display: none">
|
||||
<div class="layui-input-block">
|
||||
<button type="button" class="layui-btn" id="commit" lay-submit lay-filter="formDemo">提交</button>
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<!--<div class="layui-inline" style="margin-left: 15px">
|
||||
<div class="layui-inline" style="margin-left: 15px">
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="startTime" class="layui-input" autocomplete="off" id="ID-laydate-format-1" placeholder="请输入起始日期">
|
||||
</div>
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
<div class="layui-input-inline">
|
||||
<input type="text" name="endTime" class="layui-input" autocomplete="off" id="ID-laydate-format-2" placeholder="请输入结束日期">
|
||||
</div>
|
||||
</div>-->
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" lay-submit lay-filter="sub-form" class="layui-btn">查询</button>
|
||||
<button id="resetBt" lay-submit lay-filter="resetBt-form" class="layui-btn" >重置</button>
|
||||
|
|
|
|||
|
|
@ -14,9 +14,8 @@
|
|||
<style>
|
||||
table {
|
||||
height: 90%;
|
||||
width: 90%;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
margin: 5% 5%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
|
@ -29,23 +28,23 @@
|
|||
</head>
|
||||
<body>
|
||||
<div >
|
||||
<form class="layui-form" action="" onsubmit=" return false">
|
||||
<form class="layui-form" action="" onsubmit=" return false" style="padding: 0 24px 0 24px;">
|
||||
<div class="layui-form-item" style="margin-top: 10px;">
|
||||
<div class="layui-inline" >
|
||||
<label class="layui-form-label"> 姓名:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="name" id="name" class="layui-input">
|
||||
<input type="text" name="name" id="name" class="layui-input" placeholder="请输入姓名">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-inline" >
|
||||
<label class="layui-form-label"> 身份证:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="idNumber" id="idNumber" class="layui-input">
|
||||
<input type="text" name="idNumber" id="idNumber" class="layui-input" placeholder="请输入身份证">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button id="searchBt" style="margin-left: 10px;" class="layui-btn layui-btn-sm" ><i class="layui-icon"></i>搜索</button>
|
||||
<button id="searchBt" style="margin-left: 10px;" class="layui-btn layui-btn-sm" >查询</button>
|
||||
|
||||
<button id="resetBt" class="layui-btn layui-btn-sm" >重置</button>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
|
|
@ -66,4 +65,4 @@
|
|||
<script type="text/javascript" src="../../../js/companyTree.js"></script>
|
||||
<script type="text/javascript" src="../../../js/select.js"></script>
|
||||
<script type="text/javascript" src="../../../js/work/ownPerson/workerNoticeForm.js"></script>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -18,9 +18,11 @@
|
|||
<td>
|
||||
<form class="form-inline" onsubmit="return false">
|
||||
<div class="form-group">
|
||||
<input id="keyWord" type="text" class="form-control" placeholder="请输入搜索条件">
|
||||
<div class="layui-input-inline">
|
||||
<input id="keyWord" type="text" class="layui-input" placeholder="请输入搜索条件">
|
||||
</div>
|
||||
<button id="searchBt" class="layui-btn layui-btn-sm" permission="sys:userHistory:query">
|
||||
搜索
|
||||
查询
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue