贾胜凯
This commit is contained in:
parent
b896599ac6
commit
f4a0101282
|
|
@ -51,7 +51,6 @@ layui.use(['form','layer','table'], function () {
|
||||||
* 初始化数据
|
* 初始化数据
|
||||||
*/
|
*/
|
||||||
function init(){
|
function init(){
|
||||||
<<<<<<< HEAD
|
|
||||||
var yjId=localStorage.getItem("selectyj");
|
var yjId=localStorage.getItem("selectyj");
|
||||||
var subId=localStorage.getItem("selectSubCom");
|
var subId=localStorage.getItem("selectSubCom");
|
||||||
console.log(yjId,"yjId")
|
console.log(yjId,"yjId")
|
||||||
|
|
@ -60,17 +59,6 @@ function init(){
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#table',
|
elem: '#table',
|
||||||
url: PATH_URL + "/personbase/getList",
|
url: PATH_URL + "/personbase/getList",
|
||||||
=======
|
|
||||||
var subComId = $(window.parent.document).find("select[id='subComId']").val();
|
|
||||||
|
|
||||||
// 渲染表格
|
|
||||||
table.render({
|
|
||||||
elem: '#table',
|
|
||||||
where: {
|
|
||||||
fgsId: subComId
|
|
||||||
},
|
|
||||||
// url: "/sys/achievement",
|
|
||||||
>>>>>>> e368ceeff701decf9d8a09e1b31bb567ab6d0496
|
|
||||||
page: true,
|
page: true,
|
||||||
method:'post',
|
method:'post',
|
||||||
where:{yjId:yjId,subId:subId},
|
where:{yjId:yjId,subId:subId},
|
||||||
|
|
@ -125,7 +113,7 @@ function init(){
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: '',
|
field: '',
|
||||||
title: '人员状态',
|
title: '合同状态',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
templet: function(d){
|
templet: function(d){
|
||||||
var contractStatus = d.contractState;
|
var contractStatus = d.contractState;
|
||||||
|
|
@ -162,11 +150,22 @@ function init(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//导出
|
||||||
//导出
|
//导出
|
||||||
function exportData() {
|
function exportData() {
|
||||||
// let search1 = $('#search1').val();
|
var userName = $("#userName").val();
|
||||||
// let search2 = $('#search2').val();
|
var proName = $("#proName").val();
|
||||||
window.location.href = oiPlanUrl + "/monthlyPlanSubmission/export?token=" + token;
|
var yjName = $("#yjName").val();
|
||||||
|
var contractState = $("#contractState").val();
|
||||||
|
var userState = $("#userState").val();
|
||||||
|
yjId=localStorage.getItem("selectyj");
|
||||||
|
subId=localStorage.getItem("selectSubCom");
|
||||||
|
window.location.href = PATH_URL + `/personbase/exportDatas?token=` + token
|
||||||
|
+ "&userName=" + userName
|
||||||
|
+ "&proName=" + proName
|
||||||
|
+ "&yjName=" + yjName
|
||||||
|
+ "&contractState=" + contractState
|
||||||
|
+ "&userState=" + userState
|
||||||
|
+ "&subId=" + subId
|
||||||
|
+ "&yjId=" + yjId
|
||||||
}
|
}
|
||||||
|
|
@ -173,14 +173,7 @@ function init(){
|
||||||
// 渲染表格
|
// 渲染表格
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#table',
|
elem: '#table',
|
||||||
<<<<<<< HEAD
|
|
||||||
url: PATH_URL + "/makeInfo/getListTabs",
|
url: PATH_URL + "/makeInfo/getListTabs",
|
||||||
=======
|
|
||||||
where: {
|
|
||||||
fgsId: subComId
|
|
||||||
}
|
|
||||||
// url: "/sys/achievement",
|
|
||||||
>>>>>>> e368ceeff701decf9d8a09e1b31bb567ab6d0496
|
|
||||||
page: true,
|
page: true,
|
||||||
method:'post',
|
method:'post',
|
||||||
border: true,
|
border: true,
|
||||||
|
|
@ -258,4 +251,20 @@ function updateView(id) {
|
||||||
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
function exportData() {
|
||||||
|
|
||||||
|
var userName = $("#userName").val();
|
||||||
|
var proName = $("#proName").val();
|
||||||
|
var yjName = $("#yjName").val();
|
||||||
|
var makeMonth = $("#makeMonth").val();
|
||||||
|
yjId=localStorage.getItem("selectyj");
|
||||||
|
subId=localStorage.getItem("selectSubCom");
|
||||||
|
window.location.href = PATH_URL + `/makeInfo/exportDatas?token=` + token
|
||||||
|
+ "&userName=" + userName
|
||||||
|
+ "&proName=" + proName
|
||||||
|
+ "&yjName=" + yjName
|
||||||
|
+ "&makeMonth=" + makeMonth
|
||||||
|
+ "&subId=" + subId
|
||||||
|
+ "&yjId=" + yjId
|
||||||
}
|
}
|
||||||
|
|
@ -81,14 +81,7 @@ function init(){
|
||||||
// 渲染表格
|
// 渲染表格
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#table',
|
elem: '#table',
|
||||||
<<<<<<< HEAD
|
|
||||||
url: PATH_URL + "/workvisa/getListTab",
|
url: PATH_URL + "/workvisa/getListTab",
|
||||||
=======
|
|
||||||
where: {
|
|
||||||
fgsId: subComId
|
|
||||||
},
|
|
||||||
// url: "/sys/achievement",
|
|
||||||
>>>>>>> e368ceeff701decf9d8a09e1b31bb567ab6d0496
|
|
||||||
page: true,
|
page: true,
|
||||||
method:'post',
|
method:'post',
|
||||||
skin: 'line', // 表格样式
|
skin: 'line', // 表格样式
|
||||||
|
|
@ -155,8 +148,16 @@ function detailsView(id,proId,makeMonth) {
|
||||||
|
|
||||||
|
|
||||||
//导出
|
//导出
|
||||||
function exportData(){
|
function exportData() {
|
||||||
// let search1 = $('#search1').val();
|
var proName = $("#proName").val();
|
||||||
// let search2 = $('#search2').val();
|
var yjName = $("#yjName").val();
|
||||||
window.location.href = oiPlanUrl + "/monthlyPlanSubmission/export?token=" + token;
|
var makeMonth = $("#makeMonth").val();
|
||||||
|
yjId=localStorage.getItem("selectyj");
|
||||||
|
subId=localStorage.getItem("selectSubCom");
|
||||||
|
window.location.href = PATH_URL + `/workvisa/exportData?token=` + token
|
||||||
|
+ "&proName=" + proName
|
||||||
|
+ "&yjName=" + yjName
|
||||||
|
+ "&makeMonth=" + makeMonth
|
||||||
|
+ "&subId=" + subId
|
||||||
|
+ "&yjId=" + yjId
|
||||||
}
|
}
|
||||||
|
|
@ -24,7 +24,7 @@ function init(){
|
||||||
$("#taskSourceId").attr("stationId", data.data[0].child[0].id);
|
$("#taskSourceId").attr("stationId", data.data[0].child[0].id);
|
||||||
$("#taskSourceId").attr("stationName", data.data[0].child[0].title);
|
$("#taskSourceId").attr("stationName", data.data[0].child[0].title);
|
||||||
$("#taskSourceId").attr("gsName", data.data[0].child[0].parentName);
|
$("#taskSourceId").attr("gsName", data.data[0].child[0].parentName);
|
||||||
localStorage.setItem("selectyj",data.data[0].child[0].id)
|
localStorage.setItem("oneselectyj",data.data[0].child[0].id)
|
||||||
dropdown.render({
|
dropdown.render({
|
||||||
elem: '#taskSourceId',
|
elem: '#taskSourceId',
|
||||||
accordion: true,
|
accordion: true,
|
||||||
|
|
@ -40,7 +40,7 @@ function init(){
|
||||||
/**
|
/**
|
||||||
* 选择运检站后会根据运检id重新查询页面内容
|
* 选择运检站后会根据运检id重新查询页面内容
|
||||||
*/
|
*/
|
||||||
localStorage.setItem("selectyj", item.id)
|
localStorage.setItem("oneselectyj", item.id)
|
||||||
var iframe = $("#indexFrame")[0];
|
var iframe = $("#indexFrame")[0];
|
||||||
var iframeWindow = iframe.contentWindow;
|
var iframeWindow = iframe.contentWindow;
|
||||||
iframeWindow.setData();
|
iframeWindow.setData();
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ layui.use(['element', 'layer', 'form', 'element','laypage'], function(){
|
||||||
function setData(){
|
function setData(){
|
||||||
|
|
||||||
var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
|
var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
|
||||||
|
localStorage.setItem("oneselectyj",yjId)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: PATH_URL + '/lineProjectHomePage/getDataOverview',
|
url: PATH_URL + '/lineProjectHomePage/getDataOverview',
|
||||||
|
|
|
||||||
|
|
@ -254,7 +254,7 @@ layui.use(['element','layer','transfer', 'form', 'upload','laydate','tree'], fun
|
||||||
|
|
||||||
|
|
||||||
function initProSelect(arr){
|
function initProSelect(arr){
|
||||||
var yj_id=localStorage.getItem("selectyj");
|
var yj_id=localStorage.getItem("oneselectyj");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type:"post",
|
type:"post",
|
||||||
url : PATH_URL + "/personbase/getProDetail",
|
url : PATH_URL + "/personbase/getProDetail",
|
||||||
|
|
@ -389,7 +389,7 @@ function initTree(){
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
var yj_id=localStorage.getItem("selectyj");
|
var yj_id=localStorage.getItem("oneselectyj");
|
||||||
console.log(yj_id,"yj_id");
|
console.log(yj_id,"yj_id");
|
||||||
$.ajax({//id获取详情打开弹窗传值子页面
|
$.ajax({//id获取详情打开弹窗传值子页面
|
||||||
type: 'post',
|
type: 'post',
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
var pers = []
|
var pers = []
|
||||||
var table,form,laydate
|
var table,form,laydate
|
||||||
var yjId=localStorage.getItem("selectyj");
|
var yjId=localStorage.getItem("oneselectyj");
|
||||||
layui.use(['form','layer','table','laydate'], function () {
|
layui.use(['form','layer','table','laydate'], function () {
|
||||||
table = layui.table;
|
table = layui.table;
|
||||||
form = layui.form;
|
form = layui.form;
|
||||||
|
|
@ -198,4 +198,19 @@ function updateView(id,userId,makeMonth) {
|
||||||
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
//导出
|
||||||
|
function exportData() {
|
||||||
|
var userName = $("#userName").val();
|
||||||
|
var proName = $("#proName").val();
|
||||||
|
var yjName = $("#yjName").val();
|
||||||
|
var makeMonth = $("#makeMonth").val();
|
||||||
|
|
||||||
|
yjId=localStorage.getItem("oneselectyj");
|
||||||
|
window.location.href = PATH_URL + `/makeInfo/exportData?token=` + token
|
||||||
|
+ "&userName=" + userName
|
||||||
|
+ "&proName=" + proName
|
||||||
|
+ "&yjName=" + yjName
|
||||||
|
+ "&makeMonth=" + makeMonth
|
||||||
|
+ "&yjId=" + yjId
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue