main
kgdxpr 1 year ago
parent b016250ea7
commit 7ef73d9611

@ -182,20 +182,40 @@
flag = false; flag = false;
} }
res.data.forEach(function (item) { res.data.forEach(function (item) {
var _html = "<li class='mui-table-view-cell' onclick='report(" + item.job_id + "," + item.jiezhi + "," + item.status_code + ",\"" + item.target_id + "\")'>" + var _html = "";
"<div class='mui-table'>" +
"<div class='mui-table-cell mui-col-xs-9'>" + if (item.jiezhi) {
"<img src='./images/list_icon.png' style='width:24px;position: absolute;top: -2px;left: -2px;' />" + _html = "<li class='mui-table-view-cell' onclick='report(" + item.job_id + "," + item.jiezhi + "," + item.status_code + ",\"" + item.target_id + "\")'>" +
"<p class='p_title'>" + item.job_name + "</p>" + "<div class='mui-table'>" +
"<p class='p_jiezhi'>截止日期:" + item.deadline_time + "</p>" + "<div class='mui-table-cell mui-col-xs-9'>" +
"</div>" + "<img src='./images/list_icon.png' style='width:24px;position: absolute;top: -2px;left: -2px;' />" +
"<div class='mui-table-cell mui-col-xs-3 mui-text-right'>" + "<p class='p_title'>" + item.job_name + "</p>" +
"<span class='mui-h5'>" + item.publish_time + "</span>" + "<p class='p_jiezhi'>截止日期:" + item.deadline_time +
"</div>" + "<span style='float: right;margin-right: -86px;background:#FFE7E7;border-radius: 15px;padding:1px 10px;font-size:12px;color:#FA7474'>已截止</span>" +
"</div>" + "</p>" +
"</li>"; "</div>" +
"<div class='mui-table-cell mui-col-xs-3 mui-text-right'>" +
"<span class='mui-h5'>" + item.publish_time + "</span>" +
"</div>" +
"</div>" +
"</li>";
} else {
_html = "<li class='mui-table-view-cell' onclick='report(" + item.job_id + "," + item.jiezhi + "," + item.status_code + ",\"" + item.target_id + "\")'>" +
"<div class='mui-table'>" +
"<div class='mui-table-cell mui-col-xs-9'>" +
"<img src='./images/list_icon.png' style='width:24px;position: absolute;top: -2px;left: -2px;' />" +
"<p class='p_title'>" + item.job_name + "</p>" +
"<p class='p_jiezhi'>截止日期:" + item.deadline_time + "</p>" +
"</div>" +
"<div class='mui-table-cell mui-col-xs-3 mui-text-right'>" +
"<span class='mui-h5'>" + item.publish_time + "</span>" +
"</div>" +
"</div>" +
"</li>";
}
$("#wTab").append(_html); $("#wTab").append(_html);
}); });
_wPage += 1; _wPage += 1;
} }
@ -218,7 +238,7 @@
var _html = ""; var _html = "";
if (item.jiezhi) { if (item.jiezhi) {
var _html = "<li class='mui-table-view-cell' onclick='report(" + item.job_id + "," + item.jiezhi + "," + item.status_code + ",\"" + item.target_id + "\")'>" + _html = "<li class='mui-table-view-cell' onclick='report(" + item.job_id + "," + item.jiezhi + "," + item.status_code + ",\"" + item.target_id + "\")'>" +
"<div class='mui-table'>" + "<div class='mui-table'>" +
"<div class='mui-table-cell mui-col-xs-9'>" + "<div class='mui-table-cell mui-col-xs-9'>" +
"<img src='./images/list_icon.png' style='width:24px;position: absolute;top: -2px;left: -2px;' />" + "<img src='./images/list_icon.png' style='width:24px;position: absolute;top: -2px;left: -2px;' />" +
@ -233,7 +253,7 @@
"</div>" + "</div>" +
"</li>"; "</li>";
} else { } else {
var _html = "<li class='mui-table-view-cell' onclick='report(" + item.job_id + "," + item.jiezhi + "," + item.status_code + ",\"" + item.target_id + "\")'>" + _html = "<li class='mui-table-view-cell' onclick='report(" + item.job_id + "," + item.jiezhi + "," + item.status_code + ",\"" + item.target_id + "\")'>" +
"<div class='mui-table'>" + "<div class='mui-table'>" +
"<div class='mui-table-cell mui-col-xs-9'>" + "<div class='mui-table-cell mui-col-xs-9'>" +
"<img src='./images/list_icon.png' style='width:24px;position: absolute;top: -2px;left: -2px;' />" + "<img src='./images/list_icon.png' style='width:24px;position: absolute;top: -2px;left: -2px;' />" +

@ -127,7 +127,7 @@
{ title: '联系人', field: 'person_name', align: 'center', width: "15%" }, { title: '联系人', field: 'person_name', align: 'center', width: "15%" },
{ title: '电话', field: 'telephone', align: 'center', width: "10%" }, { title: '电话', field: 'telephone', align: 'center', width: "10%" },
{ title: '邮箱', field: 'email', align: 'center', width: "10%" }, { title: '邮箱', field: 'email', align: 'center', width: "10%" },
{ title: '操作', align: 'center', width: "15%", toolbar: '#table-bar' } // { title: '操作', align: 'center', width: "15%", toolbar: '#table-bar' }
]], ]],
skin: 'line', skin: 'line',
defaultToolbar: [], defaultToolbar: [],

Loading…
Cancel
Save