上传文件替换代码

This commit is contained in:
Mr-wang 2023-07-26 23:42:43 +08:00
parent 4375e34393
commit 912c76b29f
2 changed files with 24 additions and 3 deletions

View File

@ -209,7 +209,8 @@ public class Report2Gener {
for (RowMap rowMap:
nodeRowMaps) {
String plid = rowMap.getString("PLID");
if (!lists.contains(plid)){
PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plid);
if (!lists.contains(plid)&&!palRepositoryModel.isStop()){
lists.add(plid);
}
}
@ -349,9 +350,9 @@ public class Report2Gener {
}
_tr.put("it_system_table", itsystemTable);
//这个是存储kpi数据
SDK.getLogAPI().consoleInfo("lists.get(q)>>>>>>>>>>>>>>>>"+lists.get(q));
List<DesignerShapeRelationModel> relationList2 = DesignerShapeRelationCache.getListByAttrId(lists.get(q), "", "Process_performance_metrics");
SDK.getLogAPI().consoleInfo("relationList2>>>>>>>>>>>>"+relationList2);
int u = 1;
if (relationList2.size() > 0) {
for (DesignerShapeRelationModel relation : relationList2) {

View File

@ -83,6 +83,7 @@ $(function() {
if (data.files.length == 0) {
return false;
}
// 因为该组件支持批量上传但是只支持对单个文件的上传过程/结束事件处理,在此处单个文件上传时进行此次多个上传文件记录(不支持批量上传的结果返回,借助外部变量记录单个文件上传结果)
var allFiles = data.originalFiles;
var fileArr = [];
@ -507,6 +508,25 @@ function addFile(callback) { //开始上传params参考引用
}
});
var params_data = {
"pl_uuid": pl_uuid,
"shape_uuid": shape_uuid
}
jQuery.ajax({
type: "POST",
url: "./jd?sid=" + encodeURIComponent(sid) + "&cmd=com.awspaas.apps.coe.pal.output.zd.UpFileExcelAndPptController.upfile",
data: params_data,
success: function(msg) {
var dataJson = msg.data;
if (msg.result == "ok") {
} else {
}
}
});
}
//获取选中图形的文件数组