问题修改

This commit is contained in:
cwchen 2025-01-20 10:49:25 +08:00
parent 2115eab893
commit dc27626fa5
7 changed files with 29 additions and 17 deletions

View File

@ -11,7 +11,7 @@ body {
.tag-box {
justify-content: flex-start;
margin-bottom: 10px;
margin-bottom: 5px;
}
.layui-btn-container .layui-btn {
@ -19,9 +19,9 @@ body {
padding: 0 20px;
}
#demo button {
/* #demo button {
margin-bottom: 5px;
}
} */
.checkBtn {
color: #409eff;

View File

@ -267,13 +267,13 @@ function setOperRecordInfo(list, obj) {
if (item.hours === 0 && item.minutes === 0) {
minutes = 1;
}
if (item.auditType === 0 || item.auditType === 1) {
if (item.auditType === '0' || item.auditType === '1') {
dept = '项目部';
} else if (item.auditType === 2) {
} else if (item.auditType === '2') {
dept = '分公司';
} else if (item.auditType === 3) {
} else if (item.auditType === '3') {
dept = '项管中心';
} else if (item.auditType === 4) {
} else if (item.auditType === '4') {
dept = '机具公司';
}
let remark = setNullValue(item.auditRemark);

View File

@ -51,7 +51,7 @@ function queryTable(type) {
// 重载表格
function reloadTable(pageNum) {
let params = {};
let params = {supId: objParam.supId};
if (objParam.type === 1) {
params.carNum = $('#carNum').val();
} else {
@ -70,7 +70,7 @@ function reloadTable(pageNum) {
// 车辆表格数据
function initTable() {
let url = dataUrl + "backstage/carCar/getCarPageList";
let url = dataUrl + "backstage/carCar/getCarListBySup";
tableIns = table.render({
elem: "#currentTableId",
id: 'currentTableId',
@ -81,7 +81,8 @@ function initTable() {
url: url,
where: {
encryptedData: JSON.stringify({
'carNum': $('#carNum').val(),
carNum: $('#carNum').val(),
supId:objParam.supId
}),
},
request: {
@ -156,7 +157,7 @@ function initTable() {
// 驾驶员表格数据
function initTable2() {
let url = dataUrl + "backstage/carDriver/getDriverPageList";
let url = dataUrl + "backstage/carDriver/getDriverListBySup";
tableIns = table.render({
elem: "#currentTableId",
id: 'currentTableId',
@ -167,7 +168,8 @@ function initTable2() {
url: url,
where: {
encryptedData: JSON.stringify({
'name': $('#name').val(),
name: $('#name').val(),
supId: objParam.supId
}),
},
request: {

View File

@ -425,7 +425,8 @@ function chooseCarOrUser(type, formName) {
}
let params = {
type: type,
formName: formName
formName: formName,
supId:objParam.supId
};
openIframeByParamObj("chooseCarOrUser", title, "./choose_car_or_user_list.html", '92%', '95%', params);
}

View File

@ -421,7 +421,8 @@ function chooseCarOrUser(type, formName) {
}
let params = {
type: type,
formName: formName
formName: formName,
supId:objParam.supId
};
openIframeByParamObj("chooseCarOrUser", title, "./choose_car_or_user_list.html", '92%', '95%', params);
}

View File

@ -503,7 +503,8 @@ function chooseCarOrUser(type, formName) {
}
let params = {
type: type,
formName: formName
formName: formName,
supId:objParam.supId
};
openIframeByParamObj("chooseCarOrUser", title, "./choose_car_or_user_list.html", '92%', '95%', params);
}

View File

@ -15,6 +15,13 @@ function setParams(obj) {
}
setFilter(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({
base: "../../lib/layui-v2.9.18/layui/modules/", //此处路径请自行处理, 可以使用绝对路径
}).extend({
@ -162,7 +169,7 @@ function setFilter(type) {
"<p>分公司:</p>" +
"<div class='layui-btn-container tag' lay-filter='demo' id='demo'>" +
"</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>" +
"</div>" +
"<hr>" +
@ -191,7 +198,7 @@ function setFilter(type) {
"<p>分公司:</p>" +
"<div class='layui-btn-container tag' lay-filter='demo' id='demo'>" +
"</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>" +
"</div>" +
"<hr>" +