This commit is contained in:
skjia 2024-08-22 17:08:53 +08:00
parent 3fac905e2c
commit a4122db3f1
8 changed files with 27 additions and 18 deletions

View File

@ -119,6 +119,9 @@
<input type="hidden" id="gtId" name="gtId"> <input type="hidden" id="gtId" name="gtId">
<input type="hidden" id="proId" name="proId"> <input type="hidden" id="proId" name="proId">
<input type="hidden" id="userType" name="userType" value="0"> <input type="hidden" id="userType" name="userType" value="0">
<input type="hidden" id="fileName" name="fileName">
<input type="hidden" id="filePath" name="filePath">
<input type="hidden" id="pdfPath" name="pdfPath">
<div class="layui-form-item" style="margin-top: 1%;margin-left: 12%;"> <div class="layui-form-item" style="margin-top: 1%;margin-left: 12%;">
<div class="layui-inline" style="width: 90%;" > <div class="layui-inline" style="width: 90%;" >
<span style="border: 3px solid #409EFF;width: 20px;height: 10px;margin-left: 5%"></span>人员基本信息 <span style="border: 3px solid #409EFF;width: 20px;height: 10px;margin-left: 5%"></span>人员基本信息

View File

@ -25,7 +25,7 @@ function init(){
for (let i = 0; i < resultObj.length; i++) { for (let i = 0; i < resultObj.length; i++) {
if(i==0){ if(i==0){
localStorage.getItem("selectSubCom",resultObj[i].id); localStorage.setItem("selectSubCom",resultObj[i].id);
} }
html += `<option value="${resultObj[i].id}" style="color: #757575 !important;font-weight: 400 !important;">${resultObj[i].name}</option>`; html += `<option value="${resultObj[i].id}" style="color: #757575 !important;font-weight: 400 !important;">${resultObj[i].name}</option>`;
} }

View File

@ -20,7 +20,7 @@ function setData(yjId){
} }
localStorage.setItem("selectyj",yjId); localStorage.setItem("selectyj",yjId);
var subComId = $(window.parent.document).find("select[id='subComId']").val(); var subComId = $(window.parent.document).find("select[id='subComId']").val();
localStorage.getItem("selectSubCom",subComId);
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: PATH_URL + '/lineProjectHomePage/getDataOverview', url: PATH_URL + '/lineProjectHomePage/getDataOverview',

View File

@ -175,6 +175,10 @@ function init(){
elem: '#table', elem: '#table',
url: PATH_URL + "/makeInfo/getListTabs", url: PATH_URL + "/makeInfo/getListTabs",
page: true, page: true,
where:{
yjId:localStorage.getItem("selectyj"),
subId:localStorage.getItem("selectSubCom")
},
method:'post', method:'post',
border: true, border: true,
// data: tableData, // data: tableData,

View File

@ -82,6 +82,10 @@ function init(){
table.render({ table.render({
elem: '#table', elem: '#table',
url: PATH_URL + "/workvisa/getListTab", url: PATH_URL + "/workvisa/getListTab",
where:{
yjId:localStorage.getItem("selectyj"),
subId:localStorage.getItem("selectSubCom")
},
page: true, page: true,
method:'post', method:'post',
skin: 'line', // 表格样式 skin: 'line', // 表格样式

View File

@ -89,6 +89,9 @@ layui.use(['element','layer','transfer', 'form', 'upload','laydate','tree'], fun
console.log(res,"upload"); console.log(res,"upload");
purl=purl+res.data.url+","; purl=purl+res.data.url+",";
pname=pname+res.data.name+","; pname=pname+res.data.name+",";
$("#fileName").val(res.data.name);
$("#filePath").val(res.data.url);
$("#pdfPath").val(res.data.url);
}, },
allDone: function (data) { allDone: function (data) {
var userType=$("#userType").val(); var userType=$("#userType").val();
@ -263,14 +266,6 @@ function initProSelect(arr){
}, },
dataType:"json", dataType:"json",
success:function(res){ success:function(res){
// $("#proName").unbind();
// $("#proName option:gt(0)").remove();
// var html="";
// for(var i=0;i<res.data.length;i++){
// html+="<option value='"+res.data[i].id+"'>"+ res.data[i].title +"</option>";
// }
// $("#proName").append(html);
// formSelects.value('proName', [2]);
var data=[]; var data=[];
for(var i=0;i<res.data.length;i++){ for(var i=0;i<res.data.length;i++){
var obj={}; var obj={};
@ -499,7 +494,6 @@ function addData(formData) {
layer.close(loadingMsg); // 关闭提示层 layer.close(loadingMsg); // 关闭提示层
if(data.code == 200){ if(data.code == 200){
layer.msg("新增成功"); layer.msg("新增成功");
$("#hideUpload1").trigger("click");
reloading(); reloading();
}else{ }else{
layer.alert(data.msg); layer.alert(data.msg);
@ -530,8 +524,8 @@ function updateData(formData) {
success: function (data) { success: function (data) {
layer.close(loadingMsg); // 关闭提示层 layer.close(loadingMsg); // 关闭提示层
if(data.code == 200){ if(data.code == 200){
layer.msg("修改成功"); // layer.msg("修改成功");
// reloading(); reloading();
}else{ }else{
layer.alert(data.msg); layer.alert(data.msg);
} }
@ -591,6 +585,9 @@ function setData2(data) {
$("#bankCard").val(data.bankCard); $("#bankCard").val(data.bankCard);
$("#unionpayNum").val(data.unionpayNum); $("#unionpayNum").val(data.unionpayNum);
$("#bankBranch").val(data.bankBranch); $("#bankBranch").val(data.bankBranch);
$("#fileName").val(data.fileName);
$("#filePath").val(data.filePath);
$("#pdfPath").val(data.pdfPath);
// getTaskSource("taskSourceId",data[0].taskSourceId); // getTaskSource("taskSourceId",data[0].taskSourceId);
// $("#taskSourceId").val(data[0].taskSourceId); // $("#taskSourceId").val(data[0].taskSourceId);
// 首先移除所有选项的 pass 类 // 首先移除所有选项的 pass 类

View File

@ -6,13 +6,13 @@ var yjId="";
layui.use(['form','layer','table'], function () { layui.use(['form','layer','table'], function () {
table = layui.table; table = layui.table;
form = layui.form; form = layui.form;
yjId=localStorage.getItem("selectyj"); yjId=localStorage.getItem("oneselectyj");
$("#yjId").val(yjId); $("#yjId").val(yjId);
// 触发submit提交 按钮点击或者表单被执行提交时触发 // 触发submit提交 按钮点击或者表单被执行提交时触发
form.on('submit(query)', function (data) { form.on('submit(query)', function (data) {
console.log("搜索") console.log("搜索")
yjId=localStorage.getItem("selectyj"); yjId=localStorage.getItem("oneselectyj");
$("#yjId").val(yjId); $("#yjId").val(yjId);
data.field.yjId=yjId; data.field.yjId=yjId;
// 对表格进行重载。id 即 table表格的id // 对表格进行重载。id 即 table表格的id
@ -25,7 +25,7 @@ layui.use(['form','layer','table'], function () {
}); });
form.on('submit(reset)', function () { form.on('submit(reset)', function () {
console.log("重置") console.log("重置")
yjId=localStorage.getItem("selectyj"); yjId=localStorage.getItem("oneselectyj");
$("#yjId").val(yjId); $("#yjId").val(yjId);
$('#userName').val(''); $('#userName').val('');
$('#proName').val(''); $('#proName').val('');
@ -67,7 +67,7 @@ layui.use(['form','layer','table'], function () {
*/ */
function init(){ function init(){
// 渲染表格 // 渲染表格
yjId=localStorage.getItem("selectyj"); yjId=localStorage.getItem("oneselectyj");
let obj = { let obj = {
userName:'', userName:'',
proName:'', proName:'',
@ -335,7 +335,7 @@ function exportData() {
var proName = $("#proName").val(); var proName = $("#proName").val();
var userState = $("#userState").val(); var userState = $("#userState").val();
var contractState = $("#contractState").val(); var contractState = $("#contractState").val();
yjId=localStorage.getItem("selectyj"); yjId=localStorage.getItem("oneselectyj");
window.location.href = PATH_URL + `/personbase/exportUserData?token=` + token window.location.href = PATH_URL + `/personbase/exportUserData?token=` + token
+ "&userName=" + userName + "&userName=" + userName
+ "&proName=" + proName + "&proName=" + proName

View File

@ -63,6 +63,7 @@ layui.use(['form','layer','table','laydate'], function () {
* 初始化数据 * 初始化数据
*/ */
function init(){ function init(){
yjId=localStorage.getItem("oneselectyj");
let obj = { let obj = {
userName:'', userName:'',
yjName:'', yjName:'',