| 計劃單號 |
@@ -387,8 +387,8 @@
$('#citytest').find('button').attr('id', 'cityID' + val.cityId).clone().appendTo($('#city'));
var name = 'cityID' + val.cityId;
document.getElementById(name).innerHTML = val.city;
-/* $('#cityID1').text = val.city;*/
- $('#cityID' + val.cityId).find('span').attr('id', 'cityspan' + val.cityId);
+ /* $('#cityID1').text = val.city;*/
+ $('#cityID' + val.cityId).find('#acount').text(val.amount);
document.getElementById('cityspan' + String(val.cityId)).innerHTML = val.amount;
});
@@ -555,30 +555,40 @@
toast_error(rel.msg);
return;
}
+ $('#NoViewbody').empty();
for (var i = 0; i < rel.data.data.length; i++)
{
- $('#NoViewbody').append("
");
- $('#NoViewbody').append("| " + rel.data.data[i].planId + " | ");
- $('#NoViewbody').append("" + rel.data.data[i].typeName + " | ");
- $('#NoViewbody').append("" + rel.data.data[i].powerStationName + " | ");
- $('#NoViewbody').append("" + rel.data.data[i].schedule + " | ");
- $('#NoViewbody').append("" + rel.data.data[i].workDay + " | ");
- $('#NoViewbody').append("" + rel.data.data[i].startTimeString + " | ");
- $('#NoViewbody').append("" + rel.data.data[i].emailTypeName + " | ");
- $('#NoViewbody').append("" + rel.data.data[i].createdPerson + " | ");
- $('#NoViewbody').append("" + rel.data.data[i].createTimeString + " | ");
- $('#NoViewbody').append("
");
+
+
+ var name = "" + String(rel.data.data[i].planId) + " | " + "" + rel.data.data[i].typeName + " | " + "" + rel.data.data[i].powerStationName + " | "
+ + "" + rel.data.data[i].schedule + " | " + "" + rel.data.data[i].workDay + " | " + "" + rel.data.data[i].startTimeString + " | " +
+ "" + rel.data.data[i].emailTypeName + " | " + "" + rel.data.data[i].createdPerson + " | " + "" + rel.data.data[i].createTimeString + " | ";
+ $('#NoViewbody').append("" + name + "
");
+
+ //$('#NoViewbody').append("" + rel.data.data[i].planId + " | ");
+ //$('#NoViewbody').append("" + rel.data.data[i].typeName + " | ");
+ //$('#NoViewbody').append("" + rel.data.data[i].powerStationName + " | ");
+
+ //$('#NoViewbody').append("" + rel.data.data[i].schedule + " | ");
+ //$('#NoViewbody').append("" + rel.data.data[i].workDay + " | ");
+ //$('#NoViewbody').append("" + rel.data.data[i].startTimeString + " | ");
+
+ //$('#NoViewbody').append("" + rel.data.data[i].emailTypeName + " | ");
+ //$('#NoViewbody').append("" + rel.data.data[i].createdPerson + " | ");
+ //$('#NoViewbody').append("" + rel.data.data[i].createTimeString + " | ");
}
+
+ $("#NoView").table2excel({
+ // 匯出的Excel文件的名稱
+ name: "Excel Document Name",
+ // Excel檔案的名稱
+ filename: "test",
+ //檔案字尾名
+ fileext: ".xls",
+ });
}, 'json');
- $("#NoView").table2excel({
- // 匯出的Excel文件的名稱
- name: "Excel Document Name",
- // Excel檔案的名稱
- filename: "test",
- //檔案字尾名
- fileext: ".xls",
- });
+
}