优化排版,取消默认刷新跳转页码
This commit is contained in:
parent
609ea2a8d2
commit
55066454b1
|
|
@ -90,6 +90,7 @@ function initTable() {
|
|||
{
|
||||
width: '6.9%',
|
||||
title: "序号",
|
||||
type: 'numbers',
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
return d.LAY_NUM;
|
||||
|
|
@ -105,7 +106,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "proName",
|
||||
width: '14%',
|
||||
width: '24%',
|
||||
title: "工程名称",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -132,8 +133,8 @@ function initTable() {
|
|||
},
|
||||
},
|
||||
{
|
||||
field: "userName",
|
||||
width: '10%',
|
||||
field: "nickName",
|
||||
width: '8%',
|
||||
title: "提交人",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -170,6 +171,7 @@ function initTable() {
|
|||
title: "操作",
|
||||
width: '10%',
|
||||
align: "center",
|
||||
fixed: 'right',
|
||||
unresize: true,
|
||||
templet: function (d) {
|
||||
let html = "";
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "proName",
|
||||
width: '15%',
|
||||
width: '20%',
|
||||
title: "工程名称",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -120,8 +120,8 @@ function initTable() {
|
|||
sort:true,
|
||||
},
|
||||
{
|
||||
field: "userName",
|
||||
width: '10%',
|
||||
field: "nickName",
|
||||
width: '8%',
|
||||
title: "申请人",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -129,7 +129,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "appLyTime",
|
||||
width: '15%',
|
||||
width: '10%',
|
||||
title: "申请时间",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -137,7 +137,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "remark",
|
||||
width: '14%',
|
||||
width: '16%',
|
||||
title: "备注",
|
||||
unresize: true,
|
||||
sort:true,
|
||||
|
|
|
|||
|
|
@ -341,15 +341,15 @@ function examine(item) {
|
|||
{
|
||||
title: '审核操作',
|
||||
move: false,
|
||||
btn: ['不通过', '通过'] // 按钮顺序:左 -> 不通过,右 -> 通过
|
||||
btn: ['通过', '不通过'] // 按钮顺序:左 -> 不通过,右 -> 通过
|
||||
},
|
||||
function () {
|
||||
// 点击 "不通过" 的回调函数(左侧按钮)
|
||||
submitExamineStatus(item, 2);
|
||||
},
|
||||
function () {
|
||||
// 点击 "通过" 的回调函数(右侧按钮)
|
||||
// 点击 "通过" 的回调函数(左侧按钮)
|
||||
submitExamineStatus(item, 1);
|
||||
},
|
||||
function () {
|
||||
// 点击 "不通过" 的回调函数(右侧按钮)
|
||||
submitExamineStatus(item, 2);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
@ -372,7 +372,7 @@ function submitExamineStatus(item, status) {
|
|||
layer.close(loadingMsg); // 关闭提示层
|
||||
if (result.code === 200) {
|
||||
layer.msg(result.msg, { icon: 1 });
|
||||
initTable();
|
||||
//initTable();
|
||||
} else {
|
||||
layer.msg(result.msg, { icon: 2 });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -349,14 +349,13 @@ function addFitDatas(data) {
|
|||
function setTableData(results) {
|
||||
$('#allCheck').prop('checked', false)
|
||||
delIdArr.splice(0, delIdArr.length);
|
||||
var html = "";
|
||||
let html = "";
|
||||
if (results && results.length > 0) {
|
||||
for (var i = 0; i < results.length; i++) {
|
||||
var l = results[i];
|
||||
for (let i = 0; i < results.length; i++) {
|
||||
let l = results[i];
|
||||
html += "<tr id='" + l.id + "' dataId='" + l.dataId + "'>";
|
||||
html += '<td><input onclick="sel(this.checked,this,' + l.id + ')" name="check" type="checkbox"></td>';
|
||||
html += "<td style='vertical-align:middle;' class='center hidden-480'>"
|
||||
+ (i + 1) + "</td>";
|
||||
html += "<td style='vertical-align:middle;' class='center hidden-480'>" + (i + 1) + "</td>";
|
||||
html += "<td>" + (l.type) + "</td>";
|
||||
html += "<td>" + l.name + "</td>";
|
||||
html += "<td>" + l.model + "</td>";
|
||||
|
|
|
|||
|
|
@ -140,8 +140,8 @@ function submitApply() {
|
|||
// 关闭页面
|
||||
function closePage(type) {
|
||||
let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引
|
||||
if (type == 1) {
|
||||
window.parent.reloadData();
|
||||
}
|
||||
// if (type == 1) {
|
||||
// window.parent.reloadData();
|
||||
// }
|
||||
parent.layer.close(index); // 再执行关闭
|
||||
}
|
||||
|
|
@ -297,8 +297,8 @@ function getDispatchCarData(id) {
|
|||
"<td>" + item.startAddress + "</td>" +
|
||||
"<td>" + item.endAddress + "</td>" +
|
||||
"<td>" + item.gls + "</td>" +
|
||||
"<td>" + item.glsPrice.toFixed(2) + "</td>" +
|
||||
"<td> ¥ " + (item.glsMoney ? item.glsMoney.toFixed(2) : 0) + "</td>" +
|
||||
"<td>" + item.glsPrice + "</td>" +
|
||||
"<td> ¥ " + item.glsMoney + "</td>" +
|
||||
"<td style='color:#409eff'>" + imgNum + "<a style='color:#409eff;margin:0 5px;cursor: pointer;' onclick='viewFileDetail(" + JSON.stringify(item) + ",1)'>查看附件>></a></td>" +
|
||||
"<td>" + objParam.supName + "</td>" +
|
||||
"</tr>";
|
||||
|
|
|
|||
|
|
@ -56,10 +56,10 @@ function openIframeByParamObj(id, title, content, width, height, paramsObj, isCa
|
|||
cancel: function () {
|
||||
if (isCancel) {
|
||||
// 采购发货刷新一级页面
|
||||
reloadData();
|
||||
//reloadData();
|
||||
}
|
||||
if (id==='arrivalConfirmDetail'){
|
||||
initTable();
|
||||
//initTable();
|
||||
}
|
||||
},
|
||||
end: function () { }
|
||||
|
|
|
|||
Loading…
Reference in New Issue