excel
This commit is contained in:
parent
111e901aef
commit
c3d213efbd
@ -42,7 +42,7 @@
|
|||||||
<div class="frame-wrap" id="citytest" style="display:none">
|
<div class="frame-wrap" id="citytest" style="display:none">
|
||||||
<button type="button" class="btn btn-outline-success waves-effect waves-themed">
|
<button type="button" class="btn btn-outline-success waves-effect waves-themed">
|
||||||
新北市
|
新北市
|
||||||
<span class="badge bg-success-700 ml-2">4</span>
|
<span class="badge bg-success-700 ml-2" id="acount">4</span>
|
||||||
</button>
|
</button>
|
||||||
@*<button type="button" class="btn btn-outline-success waves-effect waves-themed">
|
@*<button type="button" class="btn btn-outline-success waves-effect waves-themed">
|
||||||
台北市
|
台北市
|
||||||
@ -130,7 +130,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<table id="NoView">
|
<table id="NoView" style="display:none">
|
||||||
<thead class="thead-themed">
|
<thead class="thead-themed">
|
||||||
<tr>
|
<tr>
|
||||||
<th>計劃單號</th>
|
<th>計劃單號</th>
|
||||||
@ -387,8 +387,8 @@
|
|||||||
$('#citytest').find('button').attr('id', 'cityID' + val.cityId).clone().appendTo($('#city'));
|
$('#citytest').find('button').attr('id', 'cityID' + val.cityId).clone().appendTo($('#city'));
|
||||||
var name = 'cityID' + val.cityId;
|
var name = 'cityID' + val.cityId;
|
||||||
document.getElementById(name).innerHTML = val.city;
|
document.getElementById(name).innerHTML = val.city;
|
||||||
/* $('#cityID1').text = val.city;*/
|
/* $('#cityID1').text = val.city;*/
|
||||||
$('#cityID' + val.cityId).find('span').attr('id', 'cityspan' + val.cityId);
|
$('#cityID' + val.cityId).find('#acount').text(val.amount);
|
||||||
document.getElementById('cityspan' + String(val.cityId)).innerHTML = val.amount;
|
document.getElementById('cityspan' + String(val.cityId)).innerHTML = val.amount;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -555,21 +555,28 @@
|
|||||||
toast_error(rel.msg);
|
toast_error(rel.msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$('#NoViewbody').empty();
|
||||||
for (var i = 0; i < rel.data.data.length; i++)
|
for (var i = 0; i < rel.data.data.length; i++)
|
||||||
{
|
{
|
||||||
$('#NoViewbody').append("<tr>");
|
|
||||||
$('#NoViewbody').append("<td>" + rel.data.data[i].planId + "</td>");
|
|
||||||
$('#NoViewbody').append("<td>" + rel.data.data[i].typeName + "</td>");
|
var name = "<td>" + String(rel.data.data[i].planId) + "</td>" + "<td>" + rel.data.data[i].typeName + "</td>" + "<td>" + rel.data.data[i].powerStationName + "</td>"
|
||||||
$('#NoViewbody').append("<td>" + rel.data.data[i].powerStationName + "</td>");
|
+ "<td>" + rel.data.data[i].schedule + "</td>" + "<td>" + rel.data.data[i].workDay + "</td>" + "<td>" + rel.data.data[i].startTimeString + "</td>" +
|
||||||
$('#NoViewbody').append("<td>" + rel.data.data[i].schedule + "</td>");
|
"<td>" + rel.data.data[i].emailTypeName + "</td>" + "<td>" + rel.data.data[i].createdPerson + "</td>" + "<td>" + rel.data.data[i].createTimeString + "</td>";
|
||||||
$('#NoViewbody').append("<td>" + rel.data.data[i].workDay + "</td>");
|
$('#NoViewbody').append("<tr>" + name + "</tr>");
|
||||||
$('#NoViewbody').append("<td>" + rel.data.data[i].startTimeString + "</td>");
|
|
||||||
$('#NoViewbody').append("<td>" + rel.data.data[i].emailTypeName + "</td>");
|
//$('#NoViewbody').append("<td>" + rel.data.data[i].planId + "</td>");
|
||||||
$('#NoViewbody').append("<td>" + rel.data.data[i].createdPerson + "</td>");
|
//$('#NoViewbody').append("<td>" + rel.data.data[i].typeName + "</td>");
|
||||||
$('#NoViewbody').append("<td>" + rel.data.data[i].createTimeString + "</td>");
|
//$('#NoViewbody').append("<td>" + rel.data.data[i].powerStationName + "</td>");
|
||||||
$('#NoViewbody').append("</tr>");
|
|
||||||
|
//$('#NoViewbody').append("<td>" + rel.data.data[i].schedule + "</td>");
|
||||||
|
//$('#NoViewbody').append("<td>" + rel.data.data[i].workDay + "</td>");
|
||||||
|
//$('#NoViewbody').append("<td>" + rel.data.data[i].startTimeString + "</td>");
|
||||||
|
|
||||||
|
//$('#NoViewbody').append("<td>" + rel.data.data[i].emailTypeName + "</td>");
|
||||||
|
//$('#NoViewbody').append("<td>" + rel.data.data[i].createdPerson + "</td>");
|
||||||
|
//$('#NoViewbody').append("<td>" + rel.data.data[i].createTimeString + "</td>");
|
||||||
}
|
}
|
||||||
}, 'json');
|
|
||||||
|
|
||||||
$("#NoView").table2excel({
|
$("#NoView").table2excel({
|
||||||
// 匯出的Excel文件的名稱
|
// 匯出的Excel文件的名稱
|
||||||
@ -579,6 +586,9 @@
|
|||||||
//檔案字尾名
|
//檔案字尾名
|
||||||
fileext: ".xls",
|
fileext: ".xls",
|
||||||
});
|
});
|
||||||
|
}, 'json');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user