|
@@ -118,7 +118,6 @@
|
|
|
},
|
|
|
columns: [{
|
|
|
checkbox: true
|
|
|
-
|
|
|
}, {
|
|
|
field: 'projectNumber',
|
|
|
title: '项目定义号',
|
|
@@ -282,11 +281,10 @@ function deleteAll(ids){
|
|
|
return false;
|
|
|
}
|
|
|
$("#ids").val(ids);
|
|
|
- jp.prompt("填写备注", function (message) {
|
|
|
- jp.post("${ctx}/sg/managementCenter/projectPlanArrage/deletePlanArrange",
|
|
|
+ // jp.prompt("填写备注", function (message) {
|
|
|
+ jp.post("${ctx}/sg/managementCenter/projectPlanArrage/deletePlanArrangeAll",
|
|
|
{
|
|
|
- "ids": $("#ids").val(),
|
|
|
- "backToText": window.encodeURI(message)
|
|
|
+ "ids": $("#ids").val()
|
|
|
},
|
|
|
function (data) {
|
|
|
if(data.success){
|
|
@@ -296,7 +294,35 @@ function deleteAll(ids){
|
|
|
}else{
|
|
|
jp.error(data.message);
|
|
|
}
|
|
|
- })
|
|
|
+ }
|
|
|
+ )
|
|
|
+ // });
|
|
|
+}
|
|
|
+function deleteAllExit(ids){
|
|
|
+ if(!ids){
|
|
|
+ ids = getIdSelections();
|
|
|
+ }
|
|
|
+ if ("" == ids || ids==null){
|
|
|
+ jp.error("请选择项目");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $("#ids").val(ids);
|
|
|
+ jp.prompt("填写备注", function (message) {
|
|
|
+ jp.post("${ctx}/sg/managementCenter/projectPlanArrage/deletePlanArrange",
|
|
|
+ {
|
|
|
+ "ids": $("#ids").val(),
|
|
|
+ "backToText": window.encodeURI(message)
|
|
|
+ },
|
|
|
+ function (data) {
|
|
|
+ if(data.success){
|
|
|
+ jstree(data.mapListTree);
|
|
|
+ refresh();
|
|
|
+ jp.success(data.message);
|
|
|
+ }else{
|
|
|
+ jp.error(data.message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
});
|
|
|
}
|
|
|
function getIdSelections() {
|