|
@@ -102,6 +102,10 @@ $(document).ready(function() {
|
|
|
sortName: 'endDate'
|
|
|
|
|
|
}
|
|
|
+ ,{
|
|
|
+ field: 'remarks',
|
|
|
+ title: '备注'
|
|
|
+ }
|
|
|
// ,{
|
|
|
// field: 'distributionNetwork',
|
|
|
// title: '配网项目经理',
|
|
@@ -168,6 +172,9 @@ $(document).ready(function() {
|
|
|
$("#export").click(function(){//导出Excel文件
|
|
|
jp.downloadFile('${ctx}/sg/managementCenter/projectDailyPlan/export');
|
|
|
});
|
|
|
+ $("#exportTim").click(function(){//导出Excel文件
|
|
|
+ jp.downloadFile('${ctx}/sg/managementCenter/projectDailyPlan/exportTim');
|
|
|
+ });
|
|
|
$("#reset").click("click", function() {// 绑定查询按扭
|
|
|
$("#searchForm input").val("");
|
|
|
$("#searchForm select").val("");
|
|
@@ -184,7 +191,7 @@ $(document).ready(function() {
|
|
|
$('#endDate').datetimepicker({
|
|
|
format: "YYYY-MM-DD"
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
|
|
|
function getIdSelections() {
|
|
@@ -198,13 +205,13 @@ $(document).ready(function() {
|
|
|
function add(){
|
|
|
jp.openSaveDialog('新增日计划安排', "${ctx}/sg/managementCenter/projectDailyPlan/formProject",'800px', '500px');
|
|
|
}
|
|
|
- function addList(projectNumber,arrangeTime,projectName) {
|
|
|
+ function addList(projectNumber,projectName) {
|
|
|
top.layer.open({
|
|
|
type: 2,
|
|
|
area: ['900px', '500px'],
|
|
|
title: '项目计划安排',
|
|
|
maxmin: true, //开启最大化最小化按钮
|
|
|
- content: "${ctx}/sg/managementCenter/projectDailyPlan/initAddDailyPlan?projectNumber="+projectNumber+"&projectMonthDate="+arrangeTime+"&projectName="+encodeURI(encodeURI(projectName)),
|
|
|
+ content: "${ctx}/sg/managementCenter/projectDailyPlan/initAddDailyPlan?projectNumber="+projectNumber+"&projectName="+encodeURI(encodeURI(projectName)),
|
|
|
btn: ['确定', '关闭'],
|
|
|
yes: function(index, layero){
|
|
|
top.layer.close(index);
|
|
@@ -283,7 +290,7 @@ function newWorkSubmit() {
|
|
|
function deleteAll(){
|
|
|
jp.confirm('确认要删除计划表单记录吗?', function(){
|
|
|
jp.loading();
|
|
|
- jp.get("${ctx}/sg/managementCenter/projectDailyPlan/deleteAll?ids=" + getIdSelections(), function(data){
|
|
|
+ jp.get("${ctx}/sg/managementCenter/projectDailyPlan/deleteAll?ids=" + getIdSelections()+"&projectNames="+encodeURI(encodeURI(getNameSelections())), function(data){
|
|
|
if(data.success){
|
|
|
jp.success(data.msg);
|
|
|
refresh();
|
|
@@ -293,4 +300,9 @@ function deleteAll(){
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
+function getNameSelections() {
|
|
|
+ return $.map($("#projectTable").bootstrapTable('getSelections'), function (row) {
|
|
|
+ return row.projectName
|
|
|
+ });
|
|
|
+}
|
|
|
</script>
|