瀏覽代碼

项目计划安排

Enford 5 年之前
父節點
當前提交
49c78bb4d6

+ 0 - 1
src/main/webapp/webpage/modules/sg/managementcenter/projectPlanArrage/dailyPlan/dailyDateList.js

@@ -7,7 +7,6 @@ $(document).ready(function() {
                //类型json
                dataType: "json",
                contentType: "application/x-www-form-urlencoded",
-                height:'400',
                // //显示检索按钮
 	           // showSearch: true,
                //显示刷新按钮

+ 7 - 1
src/main/webapp/webpage/modules/sg/managementcenter/projectPlanArrage/projectPlanArrageList.js

@@ -278,7 +278,7 @@ $(document).ready(function() {
 function deleteAll(){
     jp.confirm('确认要删除计划表单记录吗?', function(){
         jp.loading();
-        jp.get("${ctx}/sg/managementCenter/constructionProject/deleteAll?ids=" + getIdSelections(), function(data){
+        jp.get("${ctx}/sg/managementCenter/projectPlanArrage/getDeleteMainAll?ids=" + getIdSelections()+"&projectNames="+encodeURI(encodeURI(getNameSelections())), function(data){
             if(data.success){
                 $('#projectTable').bootstrapTable('refresh');
                 jp.success(data.msg);
@@ -299,4 +299,10 @@ function addDatePlan() {
         }
     })
 }
+
+function getNameSelections() {
+    return $.map($("#projectTable").bootstrapTable('getSelections'), function (row) {
+    return row.projectName
+});
+}
 </script>

+ 4 - 1
src/main/webapp/webpage/modules/sg/managementcenter/projectPlanArrage/projectPlanArrageList.jsp

@@ -74,7 +74,10 @@
 					<i class="glyphicon glyphicon-plus"></i> 安排项目计划
 				</button>
 				<button id="btnImport" class="btn btn-info"><i class="fa fa-folder-open-o"></i> 导入</button>
-			<%--</shiro:hasPermission>--%>
+				<button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">
+					<i class="glyphicon glyphicon-remove"></i> 删除
+				</button>
+				<%--</shiro:hasPermission>--%>
 			<%--<shiro:hasPermission name="sg:managementCenter:constructionProject:del">--%>
 				<%--<button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">--%>
 					<%--<i class="glyphicon glyphicon-remove"></i> 删除--%>