jsk
This commit is contained in:
parent
3fac905e2c
commit
a4122db3f1
|
|
@ -119,6 +119,9 @@
|
|||
<input type="hidden" id="gtId" name="gtId">
|
||||
<input type="hidden" id="proId" name="proId">
|
||||
<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-inline" style="width: 90%;" >
|
||||
<span style="border: 3px solid #409EFF;width: 20px;height: 10px;margin-left: 5%"></span>人员基本信息
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ function init(){
|
|||
|
||||
for (let i = 0; i < resultObj.length; i++) {
|
||||
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>`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ function setData(yjId){
|
|||
}
|
||||
localStorage.setItem("selectyj",yjId);
|
||||
var subComId = $(window.parent.document).find("select[id='subComId']").val();
|
||||
|
||||
localStorage.getItem("selectSubCom",subComId);
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: PATH_URL + '/lineProjectHomePage/getDataOverview',
|
||||
|
|
|
|||
|
|
@ -175,6 +175,10 @@ function init(){
|
|||
elem: '#table',
|
||||
url: PATH_URL + "/makeInfo/getListTabs",
|
||||
page: true,
|
||||
where:{
|
||||
yjId:localStorage.getItem("selectyj"),
|
||||
subId:localStorage.getItem("selectSubCom")
|
||||
},
|
||||
method:'post',
|
||||
border: true,
|
||||
// data: tableData,
|
||||
|
|
|
|||
|
|
@ -82,6 +82,10 @@ function init(){
|
|||
table.render({
|
||||
elem: '#table',
|
||||
url: PATH_URL + "/workvisa/getListTab",
|
||||
where:{
|
||||
yjId:localStorage.getItem("selectyj"),
|
||||
subId:localStorage.getItem("selectSubCom")
|
||||
},
|
||||
page: true,
|
||||
method:'post',
|
||||
skin: 'line', // 表格样式
|
||||
|
|
|
|||
|
|
@ -89,6 +89,9 @@ layui.use(['element','layer','transfer', 'form', 'upload','laydate','tree'], fun
|
|||
console.log(res,"upload");
|
||||
purl=purl+res.data.url+",";
|
||||
pname=pname+res.data.name+",";
|
||||
$("#fileName").val(res.data.name);
|
||||
$("#filePath").val(res.data.url);
|
||||
$("#pdfPath").val(res.data.url);
|
||||
},
|
||||
allDone: function (data) {
|
||||
var userType=$("#userType").val();
|
||||
|
|
@ -263,14 +266,6 @@ function initProSelect(arr){
|
|||
},
|
||||
dataType:"json",
|
||||
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=[];
|
||||
for(var i=0;i<res.data.length;i++){
|
||||
var obj={};
|
||||
|
|
@ -499,7 +494,6 @@ function addData(formData) {
|
|||
layer.close(loadingMsg); // 关闭提示层
|
||||
if(data.code == 200){
|
||||
layer.msg("新增成功");
|
||||
$("#hideUpload1").trigger("click");
|
||||
reloading();
|
||||
}else{
|
||||
layer.alert(data.msg);
|
||||
|
|
@ -530,8 +524,8 @@ function updateData(formData) {
|
|||
success: function (data) {
|
||||
layer.close(loadingMsg); // 关闭提示层
|
||||
if(data.code == 200){
|
||||
layer.msg("修改成功");
|
||||
// reloading();
|
||||
// layer.msg("修改成功");
|
||||
reloading();
|
||||
}else{
|
||||
layer.alert(data.msg);
|
||||
}
|
||||
|
|
@ -591,6 +585,9 @@ function setData2(data) {
|
|||
$("#bankCard").val(data.bankCard);
|
||||
$("#unionpayNum").val(data.unionpayNum);
|
||||
$("#bankBranch").val(data.bankBranch);
|
||||
$("#fileName").val(data.fileName);
|
||||
$("#filePath").val(data.filePath);
|
||||
$("#pdfPath").val(data.pdfPath);
|
||||
// getTaskSource("taskSourceId",data[0].taskSourceId);
|
||||
// $("#taskSourceId").val(data[0].taskSourceId);
|
||||
// 首先移除所有选项的 pass 类
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ var yjId="";
|
|||
layui.use(['form','layer','table'], function () {
|
||||
table = layui.table;
|
||||
form = layui.form;
|
||||
yjId=localStorage.getItem("selectyj");
|
||||
yjId=localStorage.getItem("oneselectyj");
|
||||
|
||||
$("#yjId").val(yjId);
|
||||
// 触发submit提交 按钮点击或者表单被执行提交时触发
|
||||
form.on('submit(query)', function (data) {
|
||||
console.log("搜索")
|
||||
yjId=localStorage.getItem("selectyj");
|
||||
yjId=localStorage.getItem("oneselectyj");
|
||||
$("#yjId").val(yjId);
|
||||
data.field.yjId=yjId;
|
||||
// 对表格进行重载。id 即 table表格的id
|
||||
|
|
@ -25,7 +25,7 @@ layui.use(['form','layer','table'], function () {
|
|||
});
|
||||
form.on('submit(reset)', function () {
|
||||
console.log("重置")
|
||||
yjId=localStorage.getItem("selectyj");
|
||||
yjId=localStorage.getItem("oneselectyj");
|
||||
$("#yjId").val(yjId);
|
||||
$('#userName').val('');
|
||||
$('#proName').val('');
|
||||
|
|
@ -67,7 +67,7 @@ layui.use(['form','layer','table'], function () {
|
|||
*/
|
||||
function init(){
|
||||
// 渲染表格
|
||||
yjId=localStorage.getItem("selectyj");
|
||||
yjId=localStorage.getItem("oneselectyj");
|
||||
let obj = {
|
||||
userName:'',
|
||||
proName:'',
|
||||
|
|
@ -335,7 +335,7 @@ function exportData() {
|
|||
var proName = $("#proName").val();
|
||||
var userState = $("#userState").val();
|
||||
var contractState = $("#contractState").val();
|
||||
yjId=localStorage.getItem("selectyj");
|
||||
yjId=localStorage.getItem("oneselectyj");
|
||||
window.location.href = PATH_URL + `/personbase/exportUserData?token=` + token
|
||||
+ "&userName=" + userName
|
||||
+ "&proName=" + proName
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ layui.use(['form','layer','table','laydate'], function () {
|
|||
* 初始化数据
|
||||
*/
|
||||
function init(){
|
||||
yjId=localStorage.getItem("oneselectyj");
|
||||
let obj = {
|
||||
userName:'',
|
||||
yjName:'',
|
||||
|
|
|
|||
Loading…
Reference in New Issue