问题修改
This commit is contained in:
parent
2115eab893
commit
dc27626fa5
|
|
@ -11,7 +11,7 @@ body {
|
||||||
|
|
||||||
.tag-box {
|
.tag-box {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layui-btn-container .layui-btn {
|
.layui-btn-container .layui-btn {
|
||||||
|
|
@ -19,9 +19,9 @@ body {
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#demo button {
|
/* #demo button {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
} */
|
||||||
|
|
||||||
.checkBtn {
|
.checkBtn {
|
||||||
color: #409eff;
|
color: #409eff;
|
||||||
|
|
|
||||||
|
|
@ -267,13 +267,13 @@ function setOperRecordInfo(list, obj) {
|
||||||
if (item.hours === 0 && item.minutes === 0) {
|
if (item.hours === 0 && item.minutes === 0) {
|
||||||
minutes = 1;
|
minutes = 1;
|
||||||
}
|
}
|
||||||
if (item.auditType === 0 || item.auditType === 1) {
|
if (item.auditType === '0' || item.auditType === '1') {
|
||||||
dept = '项目部';
|
dept = '项目部';
|
||||||
} else if (item.auditType === 2) {
|
} else if (item.auditType === '2') {
|
||||||
dept = '分公司';
|
dept = '分公司';
|
||||||
} else if (item.auditType === 3) {
|
} else if (item.auditType === '3') {
|
||||||
dept = '项管中心';
|
dept = '项管中心';
|
||||||
} else if (item.auditType === 4) {
|
} else if (item.auditType === '4') {
|
||||||
dept = '机具公司';
|
dept = '机具公司';
|
||||||
}
|
}
|
||||||
let remark = setNullValue(item.auditRemark);
|
let remark = setNullValue(item.auditRemark);
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ function queryTable(type) {
|
||||||
|
|
||||||
// 重载表格
|
// 重载表格
|
||||||
function reloadTable(pageNum) {
|
function reloadTable(pageNum) {
|
||||||
let params = {};
|
let params = {supId: objParam.supId};
|
||||||
if (objParam.type === 1) {
|
if (objParam.type === 1) {
|
||||||
params.carNum = $('#carNum').val();
|
params.carNum = $('#carNum').val();
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -70,7 +70,7 @@ function reloadTable(pageNum) {
|
||||||
|
|
||||||
// 车辆表格数据
|
// 车辆表格数据
|
||||||
function initTable() {
|
function initTable() {
|
||||||
let url = dataUrl + "backstage/carCar/getCarPageList";
|
let url = dataUrl + "backstage/carCar/getCarListBySup";
|
||||||
tableIns = table.render({
|
tableIns = table.render({
|
||||||
elem: "#currentTableId",
|
elem: "#currentTableId",
|
||||||
id: 'currentTableId',
|
id: 'currentTableId',
|
||||||
|
|
@ -81,7 +81,8 @@ function initTable() {
|
||||||
url: url,
|
url: url,
|
||||||
where: {
|
where: {
|
||||||
encryptedData: JSON.stringify({
|
encryptedData: JSON.stringify({
|
||||||
'carNum': $('#carNum').val(),
|
carNum: $('#carNum').val(),
|
||||||
|
supId:objParam.supId
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
request: {
|
request: {
|
||||||
|
|
@ -156,7 +157,7 @@ function initTable() {
|
||||||
|
|
||||||
// 驾驶员表格数据
|
// 驾驶员表格数据
|
||||||
function initTable2() {
|
function initTable2() {
|
||||||
let url = dataUrl + "backstage/carDriver/getDriverPageList";
|
let url = dataUrl + "backstage/carDriver/getDriverListBySup";
|
||||||
tableIns = table.render({
|
tableIns = table.render({
|
||||||
elem: "#currentTableId",
|
elem: "#currentTableId",
|
||||||
id: 'currentTableId',
|
id: 'currentTableId',
|
||||||
|
|
@ -167,7 +168,8 @@ function initTable2() {
|
||||||
url: url,
|
url: url,
|
||||||
where: {
|
where: {
|
||||||
encryptedData: JSON.stringify({
|
encryptedData: JSON.stringify({
|
||||||
'name': $('#name').val(),
|
name: $('#name').val(),
|
||||||
|
supId: objParam.supId
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
request: {
|
request: {
|
||||||
|
|
|
||||||
|
|
@ -425,7 +425,8 @@ function chooseCarOrUser(type, formName) {
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
type: type,
|
type: type,
|
||||||
formName: formName
|
formName: formName,
|
||||||
|
supId:objParam.supId
|
||||||
};
|
};
|
||||||
openIframeByParamObj("chooseCarOrUser", title, "./choose_car_or_user_list.html", '92%', '95%', params);
|
openIframeByParamObj("chooseCarOrUser", title, "./choose_car_or_user_list.html", '92%', '95%', params);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -421,7 +421,8 @@ function chooseCarOrUser(type, formName) {
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
type: type,
|
type: type,
|
||||||
formName: formName
|
formName: formName,
|
||||||
|
supId:objParam.supId
|
||||||
};
|
};
|
||||||
openIframeByParamObj("chooseCarOrUser", title, "./choose_car_or_user_list.html", '92%', '95%', params);
|
openIframeByParamObj("chooseCarOrUser", title, "./choose_car_or_user_list.html", '92%', '95%', params);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -503,7 +503,8 @@ function chooseCarOrUser(type, formName) {
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
type: type,
|
type: type,
|
||||||
formName: formName
|
formName: formName,
|
||||||
|
supId:objParam.supId
|
||||||
};
|
};
|
||||||
openIframeByParamObj("chooseCarOrUser", title, "./choose_car_or_user_list.html", '92%', '95%', params);
|
openIframeByParamObj("chooseCarOrUser", title, "./choose_car_or_user_list.html", '92%', '95%', params);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,13 @@ function setParams(obj) {
|
||||||
}
|
}
|
||||||
setFilter(objParam.type);
|
setFilter(objParam.type);
|
||||||
setFilterData(objParam.type);
|
setFilterData(objParam.type);
|
||||||
|
if(objParam.type === 1 || objParam.type === 2){
|
||||||
|
let height = $('#demo').height();
|
||||||
|
if(height > 35){
|
||||||
|
$('#open').removeAttr('style');
|
||||||
|
$('#demo button').css('margin-bottom','5px');
|
||||||
|
}
|
||||||
|
}
|
||||||
layui.config({
|
layui.config({
|
||||||
base: "../../lib/layui-v2.9.18/layui/modules/", //此处路径请自行处理, 可以使用绝对路径
|
base: "../../lib/layui-v2.9.18/layui/modules/", //此处路径请自行处理, 可以使用绝对路径
|
||||||
}).extend({
|
}).extend({
|
||||||
|
|
@ -162,7 +169,7 @@ function setFilter(type) {
|
||||||
"<p>分公司:</p>" +
|
"<p>分公司:</p>" +
|
||||||
"<div class='layui-btn-container tag' lay-filter='demo' id='demo'>" +
|
"<div class='layui-btn-container tag' lay-filter='demo' id='demo'>" +
|
||||||
"</div>" +
|
"</div>" +
|
||||||
"<a id='close' onclick='showData(1)'><img src='../../images/welcome/close.png'>收起</a>" +
|
"<a id='close' onclick='showData(1)' style='display: none;'><img src='../../images/welcome/close.png'>收起</a>" +
|
||||||
"<a id='open' onclick='showData(2)' style='display: none;'><img src='../../images/welcome/show.png'>展开</a>" +
|
"<a id='open' onclick='showData(2)' style='display: none;'><img src='../../images/welcome/show.png'>展开</a>" +
|
||||||
"</div>" +
|
"</div>" +
|
||||||
"<hr>" +
|
"<hr>" +
|
||||||
|
|
@ -191,7 +198,7 @@ function setFilter(type) {
|
||||||
"<p>分公司:</p>" +
|
"<p>分公司:</p>" +
|
||||||
"<div class='layui-btn-container tag' lay-filter='demo' id='demo'>" +
|
"<div class='layui-btn-container tag' lay-filter='demo' id='demo'>" +
|
||||||
"</div>" +
|
"</div>" +
|
||||||
"<a id='close' onclick='showData(1)'><img src='../../images/welcome/close.png'>收起</a>" +
|
"<a id='close' onclick='showData(1)' style='display: none;'><img src='../../images/welcome/close.png'>收起</a>" +
|
||||||
"<a id='open' onclick='showData(2)' style='display: none;'><img src='../../images/welcome/show.png'>展开</a>" +
|
"<a id='open' onclick='showData(2)' style='display: none;'><img src='../../images/welcome/show.png'>展开</a>" +
|
||||||
"</div>" +
|
"</div>" +
|
||||||
"<hr>" +
|
"<hr>" +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue