打包后文件

This commit is contained in:
翟林帆 2022-07-01 14:44:39 +08:00
parent ad30a57924
commit ee60d5b388
35 changed files with 991 additions and 438 deletions

View File

@ -30,8 +30,8 @@
<attribute key="information_systems" title="信息系统" type="string" value="" desc="信息系统" isRequired="false" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true"/>
<attribute key="relevant_demand" title="相关要求" type="relation" value="" desc="相关要求" isRequired="false" ref="{&quot;method&quot;:&quot;itsystem&quot;,&quot;type&quot;:&quot;shape&quot;,&quot;multiple&quot;:false,&quot;value&quot;:&quot;&quot;}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
<attribute key="post" title="岗位" type="relation" value="" desc="岗位" isRequired="false" ref="{&quot;method&quot;:&quot;org.normal&quot;,&quot;type&quot;:&quot;shape&quot;,&quot;multiple&quot;:false,&quot;value&quot;:&quot;&quot;}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
<attribute key="role" title="角色" type="relation" value="" desc="角色" isRequired="false" ref="{&quot;method&quot;:&quot;org.normal&quot;,&quot;type&quot;:&quot;shape&quot;,&quot;multiple&quot;:false,&quot;value&quot;:&quot;&quot;}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
<attribute key="role" title="角色" type="relation" value="" desc="角色" isRequired="false" ref="{&quot;method&quot;:&quot;org.normal&quot;,&quot;type&quot;:&quot;shape&quot;,&quot;multiple&quot;:false}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
<attribute key="term" title="术语" type="table" value="" desc="术语" isRequired="false" ref="{&quot;firstColumn&quot;:&quot;Listing1&quot;,&quot;secondColumn&quot;:&quot;Listing2&quot;}" readonly="false" groupPath="process_model" scope="*" isValid="true"/>
<attribute key="Organizational_role" title="组织角色" type="table" value="" desc="组织角色" isRequired="false" ref="{&quot;firstColumn&quot;:&quot;Listing1&quot;,&quot;secondColumn&quot;:&quot;Listing2&quot;}" readonly="false" groupPath="process_model" scope="*" isValid="true"/>
<attribute key="post_text" title="岗位" type="string" value="" desc="岗位" isRequired="false" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true"/>
<attribute key="post_text" title="岗位" type="string" value="" desc="岗位" isRequired="false" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true"/>
</attributes>

View File

@ -185,7 +185,7 @@ public class Report1Gener {
// 记录关联属性的流程节点防止多次查询重复文件信息耗费时间
Set<String> relationFileIds = new HashSet<>();
Map<String, Map<String, Object>> relationFileMap = new HashMap<>();
PrReportComment prReportComment = new PrReportComment();
PALRepositoryModel repositoryModel = PALRepositoryQueryAPIManager.getInstance().queryPalRepositoryModelByPalId(repositoryId);
if (repositoryModel == null) {

View File

@ -66,6 +66,8 @@ public class PrReportComment {
createUser = OutputWordUtil.specialCharTransfer(UserCache.getModel(createUser).getUserName());
}
dataMap.put(OutputWordUtil.PL_CREATE_USER, createUser); // 编制人
System.out.println("============版本"+repositoryModel.getVersion());
dataMap.put(OutputWordUtil.PL_VERSION, repositoryModel.getVersion()); // 版本
String date = "";

Binary file not shown.

View File

@ -5901,7 +5901,7 @@ y7fdOgAAAABJRU5ErkJggk==
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
</w:rPr>
<w:t>${pl_Purpose}</w:t>
<w:t>${pl_goal}</w:t>
</w:r>
</w:p>
</w:tc>
@ -6664,7 +6664,7 @@ y7fdOgAAAABJRU5ErkJggk==
<w:sz w:val="21"/>
<w:sz-cs w:val="21"/>
</w:rPr>
<w:t>${table2.shape_activity_name}</w:t>
<w:t>${table2.shape_activity_number}</w:t>
</w:r>
</w:p>
</w:tc>

View File

@ -2,7 +2,7 @@
<app xmlns="http://www.actionsoft.com.cn/app">
<name>CoE PAL流程资产库</name>
<version>6.5</version>
<version>6.5</version>
<buildNo>5</buildNo>
<developer id="776cca9a287c8b4d63b9cad216aa3859" url="http://www.actionsoft.com.cn" tablePrefix="ACT">北京炎黄盈动科技发展有限责任公司</developer>
<productId/>

View File

@ -1,5 +1,6 @@
package com.actionsoft.apps.coe.pal.pal.output;
import java.io.FileInputStream;
import java.io.FileInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@ -35,227 +36,226 @@ import com.alibaba.fastjson.JSONObject;
/**
* 报告生成器内部API封装
*
*
* @author jack
*
*/
public class OutputAPIManager {
private static OutputAPIManager instance = new OutputAPIManager();
private static OutputAPIManager instance = new OutputAPIManager();
private OutputAPIManager() {
}
private OutputAPIManager() {
}
public static OutputAPIManager getInstance() {
return instance;
}
public static OutputAPIManager getInstance() {
return instance;
}
// -------------------任务保存/提取----------------------
// -------------------任务保存/提取----------------------
/**
* 保存向导限定目标范围限定关联范围报告选项等非数据库持久的JSON数据串
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
* @param jsonData 拼装的json数据串
*/
public void saveWizardJsonData(String wsId, String id, String profileId, String jsonData) throws AWSException {
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(profileId);
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + profileId);
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), wsId, id, OutputConst.FILE_WIZARD_CONFIG);
InputStream in = null;
try {
in = new ByteArrayInputStream(jsonData.getBytes("UTF-8"));
boolean isSave = SDK.getDCAPI().write(in, dcContext);
if (!isSave) {
throw new AWSException("Save Parameter Error!");
}
} catch (Exception e) {
throw new AWSException(e);
} finally {
try {
if (in != null)
in.close();
} catch (Exception e) {
}
}
}
/**
* 保存向导限定目标范围限定关联范围报告选项等非数据库持久的JSON数据串
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
* @param jsonData 拼装的json数据串
*/
public void saveWizardJsonData(String wsId, String id, String profileId, String jsonData) throws AWSException {
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(profileId);
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + profileId);
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), wsId, id, OutputConst.FILE_WIZARD_CONFIG);
InputStream in = null;
try {
in = new ByteArrayInputStream(jsonData.getBytes("UTF-8"));
boolean isSave = SDK.getDCAPI().write(in, dcContext);
if (!isSave) {
throw new AWSException("Save Parameter Error!");
}
} catch (Exception e) {
throw new AWSException(e);
} finally {
try {
if (in != null)
in.close();
} catch (Exception e) {
}
}
}
/**
* 删除文件
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
* @throws AWSException
*/
public void delFile(String wsId, String id, String profileId) throws AWSException {
UtilFile file = getFilePath(wsId, id, profileId);
if (file.isDirectory()) {
File[] files = file.listFiles();
for (File f : files) {
if (f.exists()) {
boolean flag = f.getAbsoluteFile().delete();
}
}
file.delete();
}
}
/**
* 删除文件
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
* @throws AWSException
*/
public void delFile(String wsId, String id, String profileId) throws AWSException {
UtilFile file = getFilePath(wsId, id, profileId);
if (file.isDirectory()) {
File[] files = file.listFiles();
for (File f : files) {
if (f.exists()) {
boolean flag = f.getAbsoluteFile().delete();
}
}
file.delete();
}
}
/**
* 删除资产库时同时删除文件
*
* @param wsid 资产库id
* @throws AWSException
*/
public void delTaskByWsid(String wsid) throws AWSException {
List<OutputTaskModel> list = new OutputTask().getTasksByWsid(wsid);
if (new OutputTask().delTaskByWsid(wsid)) {
String profileId = null;
for (OutputTaskModel model : list) {
profileId = model.getProfileId();
delFile(wsid, model.getId(), model.getProfileId());
}
if (profileId != null) {
delFile(wsid, "", profileId);
}
}
}
/**
* 删除资产库时同时删除文件
*
* @throws AWSException
* @param wsid 资产库id
*/
public void delTaskByWsid(String wsid) throws AWSException {
List<OutputTaskModel> list = new OutputTask().getTasksByWsid(wsid);
if (new OutputTask().delTaskByWsid(wsid)) {
String profileId = null;
for (OutputTaskModel model : list) {
profileId = model.getProfileId();
delFile(wsid, model.getId(), model.getProfileId());
}
if (profileId != null) {
delFile(wsid, "", profileId);
}
}
}
/**
* 得到文件
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
* @throws AWSException
*/
public UtilFile getFilePath(String wsId, String id, String profileId) throws AWSException {
OutputAppProfile appProfile = OutputAppManager.getProfile(profileId);
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + profileId);
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), wsId, id);
UtilFile file = new UtilFile(dcContext.getPath());
return file;
}
/**
* 得到文件
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
* @throws AWSException
*/
public UtilFile getFilePath(String wsId, String id, String profileId) throws AWSException {
OutputAppProfile appProfile = OutputAppManager.getProfile(profileId);
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + profileId);
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), wsId, id);
UtilFile file = new UtilFile(dcContext.getPath());
return file;
}
/**
* 保存向导限定目标范围限定关联范围报告选项等非数据库持久的JSON数据串
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
*/
public String getWizardJsonData(String wsId, String id, String profileId) throws AWSException {
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(profileId);
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + profileId);
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), wsId, id, OutputConst.FILE_WIZARD_CONFIG);
File configFile = new File(dcContext.getFilePath());
// 如果该配置还不存在没有保存过
if (!configFile.exists()) {
return "";
}
InputStream in = null;
try {
//in = SDK.getDCAPI().read(dcContext);
in = new FileInputStream(configFile);
int b = -1;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
while((b=in.read())!=-1){
baos.write(b);
}
return baos.toString("UTF-8");
} catch (Exception e) {
throw new AWSException(e);
} finally {
try {
if (in != null)
in.close();
} catch (Exception e) {
}
}
}
/**
* 保存向导限定目标范围限定关联范围报告选项等非数据库持久的JSON数据串
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
*/
public String getWizardJsonData(String wsId, String id, String profileId) throws AWSException {
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(profileId);
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + profileId);
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), wsId, id, OutputConst.FILE_WIZARD_CONFIG);
File configFile = new File(dcContext.getFilePath());
// 如果该配置还不存在没有保存过
if (!configFile.exists()) {
return "";
}
InputStream in = null;
try {
//in = SDK.getDCAPI().read(dcContext);
in = new FileInputStream(configFile);
int b = -1;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
while ((b = in.read()) != -1) {
baos.write(b);
}
return baos.toString("UTF-8");
} catch (Exception e) {
throw new AWSException(e);
} finally {
try {
if (in != null)
in.close();
} catch (Exception e) {
}
}
}
// -------------------任务执行/操作----------------------
// -------------------任务执行/操作----------------------
/**
* 克隆一个任务
*
* @param userId 操作人账户
* @param id 源任务id必须是已执行完毕的
* @throws AWSException
*/
public void cloneTask(String userId, String id) throws Exception {
OutputTaskModel outputTaskModel = new OutputTask().queryById(id);
if (outputTaskModel == null)
throw new AWSException("Not Find outputTask! id=" + id);
if (outputTaskModel.getTaskState() != OutputConst.TASK_STATE_SUCESS && outputTaskModel.getTaskState() != OutputConst.TASK_STATE_ERROR)
throw new AWSException("Task State is " + outputTaskModel.getTaskState() + ", Refuse to Clone!");
OutputAppProfile appProfile = OutputAppManager.getProfile(outputTaskModel.getProfileId());
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + outputTaskModel.getProfileId());
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext sourceDcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), id, OutputConst.FILE_WIZARD_CONFIG);
//判断源文件是否存在
UtilFile sourceFile = new UtilFile(sourceDcContext.getFilePath());
if (!sourceFile.exists()) {
throw new Exception("sourceFile not found");
}
outputTaskModel.setId(UUIDGener.getUUID());
outputTaskModel.setUserId(userId);
new OutputTask().insert(outputTaskModel);
// copy config.txt
DCContext targetDcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), outputTaskModel.getId(), OutputConst.FILE_WIZARD_CONFIG);
SDK.getDCAPI().copyDCFile(sourceDcContext, targetDcContext);
}
/**
* 克隆一个任务
*
* @param userId 操作人账户
* @param id 源任务id必须是已执行完毕的
* @throws AWSException
*/
public void cloneTask(String userId, String id) throws Exception {
OutputTaskModel outputTaskModel = new OutputTask().queryById(id);
if (outputTaskModel == null)
throw new AWSException("Not Find outputTask! id=" + id);
if (outputTaskModel.getTaskState() != OutputConst.TASK_STATE_SUCESS && outputTaskModel.getTaskState() != OutputConst.TASK_STATE_ERROR)
throw new AWSException("Task State is " + outputTaskModel.getTaskState() + ", Refuse to Clone!");
OutputAppProfile appProfile = OutputAppManager.getProfile(outputTaskModel.getProfileId());
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + outputTaskModel.getProfileId());
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext sourceDcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), id, OutputConst.FILE_WIZARD_CONFIG);
//判断源文件是否存在
UtilFile sourceFile = new UtilFile(sourceDcContext.getFilePath());
if (!sourceFile.exists()) {
throw new Exception("sourceFile not found");
}
outputTaskModel.setId(UUIDGener.getUUID());
outputTaskModel.setUserId(userId);
new OutputTask().insert(outputTaskModel);
// copy config.txt
DCContext targetDcContext = new DCContext(null, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), outputTaskModel.getId(), OutputConst.FILE_WIZARD_CONFIG);
SDK.getDCAPI().copyDCFile(sourceDcContext, targetDcContext);
}
/**
* 创建线程执行报告生成任务
*
* @param id
*/
public void startTask(String id, UserContext uc) throws AWSException {
OutputTaskModel outputTaskModel = new OutputTask().queryById(id);
if (outputTaskModel == null)
throw new AWSException("Not Find outputTask! id=" + id);
/**
* 创建线程执行报告生成任务
*
* @param id
*/
public void startTask(String id, UserContext uc) throws AWSException {
OutputTaskModel outputTaskModel = new OutputTask().queryById(id);
if (outputTaskModel == null)
throw new AWSException("Not Find outputTask! id=" + id);
if (outputTaskModel.getTaskState() != OutputConst.TASK_STATE_NONE)
throw new AWSException("Task State is " + outputTaskModel.getTaskState() + ", Refuse to Start!");
if (outputTaskModel.getTaskState() != OutputConst.TASK_STATE_NONE)
throw new AWSException("Task State is " + outputTaskModel.getTaskState() + ", Refuse to Start!");
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(outputTaskModel.getProfileId());
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + outputTaskModel.getProfileId());
String gennerClass = appProfile.getGenerClass();
if (UtilString.isEmpty(gennerClass))
throw new AWSException("OutputAppProfile 'gennerClass' is Null! AppName=" + appProfile.getTitle());
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(outputTaskModel.getProfileId());
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + outputTaskModel.getProfileId());
String gennerClass = appProfile.getGenerClass();
if (UtilString.isEmpty(gennerClass))
throw new AWSException("OutputAppProfile 'gennerClass' is Null! AppName=" + appProfile.getTitle());
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(uc, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), id);
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(uc, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), id);
// ---------config---------------
String wizardJsonData = getWizardJsonData(outputTaskModel.getWsId(), id, appProfile.getId());
// ---------config---------------
String wizardJsonData = getWizardJsonData(outputTaskModel.getWsId(), id, appProfile.getId());
/*JSONObject object = JSONObject.parseObject(wizardJsonData);
String fileIds = object.getString("targetFileId");
@ -274,251 +274,252 @@ public class OutputAPIManager {
signalThread.setName("CoE Output Report Genner-" + appProfile.getTitle() + "-" + outputTaskModel.getTaskName() + "-" + arr[i]);
signalThread.start();
}*/
// start thread
GennerReport gener = new GennerReport(outputTaskModel, appProfile, dcContext, wizardJsonData);
Thread signalThread = new Thread(gener);
signalThread.setName("CoE Output Report Genner-" + appProfile.getTitle() + "-" + outputTaskModel.getTaskName());
signalThread.start();
// 操作行为日志记录
if (SDK.getAppAPI().getPropertyBooleanValue(CoEConstant.APP_ID, "IS_RECORD_OP_LOG", false)) {
CoEOpLogAPI.auditOkOp(uc, CoEOpLogConst.MODULE_CATEGORY_APPCENTER, CoEOpLogConst.OP_CREATE, CoEOpLogConst.INFO_OUTPUT_CREATE);
}
}
/**
* 创建线程执行报告生成任务
*
* @param id
*/
public ResponseObject startTaskAndReturnResult(String id, UserContext uc) throws AWSException {
OutputTaskModel outputTaskModel = new OutputTask().queryById(id);
if (outputTaskModel == null)
throw new AWSException("Not Find outputTask! id=" + id);
if (outputTaskModel.getTaskState() != OutputConst.TASK_STATE_NONE)
throw new AWSException("Task State is " + outputTaskModel.getTaskState() + ", Refuse to Start!");
// start thread
GennerReport gener = new GennerReport(outputTaskModel, appProfile, dcContext, wizardJsonData);
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(outputTaskModel.getProfileId());
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + outputTaskModel.getProfileId());
String gennerClass = appProfile.getGenerClass();
if (UtilString.isEmpty(gennerClass))
throw new AWSException("OutputAppProfile 'gennerClass' is Null! AppName=" + appProfile.getTitle());
Thread signalThread = new Thread(gener);
signalThread.setName("CoE Output Report Genner-" + appProfile.getTitle() + "-" + outputTaskModel.getTaskName());
signalThread.start();
// 操作行为日志记录
if (SDK.getAppAPI().getPropertyBooleanValue(CoEConstant.APP_ID, "IS_RECORD_OP_LOG", false)) {
CoEOpLogAPI.auditOkOp(uc, CoEOpLogConst.MODULE_CATEGORY_APPCENTER, CoEOpLogConst.OP_CREATE, CoEOpLogConst.INFO_OUTPUT_CREATE);
}
}
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(uc, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), id);
/**
* 创建线程执行报告生成任务
*
* @param id
*/
public ResponseObject startTaskAndReturnResult(String id, UserContext uc) throws AWSException {
OutputTaskModel outputTaskModel = new OutputTask().queryById(id);
if (outputTaskModel == null)
throw new AWSException("Not Find outputTask! id=" + id);
// ---------config---------------
String wizardJsonData = getWizardJsonData(outputTaskModel.getWsId(), id, appProfile.getId());
CallableGennerReport gener = new CallableGennerReport(outputTaskModel, appProfile, dcContext, wizardJsonData);
FutureTask<ResponseObject> task = new FutureTask<>(gener);
Thread signalThread = new Thread(task);
signalThread.setName("CoE Output Report Genner-" + appProfile.getTitle() + "-" + outputTaskModel.getTaskName());
signalThread.start();
try {
return task.get();
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
return ResponseObject.newErrResponse();
}
}
if (outputTaskModel.getTaskState() != OutputConst.TASK_STATE_NONE)
throw new AWSException("Task State is " + outputTaskModel.getTaskState() + ", Refuse to Start!");
/**
* 三员管理模式下重新生成步骤横表手册
* @param outputTaskModel
*/
public void reGennerReport(UserContext uc,OutputTaskModel outputTaskModel,String id){
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(outputTaskModel.getProfileId());
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + outputTaskModel.getProfileId());
String gennerClass = appProfile.getGenerClass();
if (UtilString.isEmpty(gennerClass))
throw new AWSException("OutputAppProfile 'gennerClass' is Null! AppName=" + appProfile.getTitle());
if (outputTaskModel == null)
throw new AWSException("Not Find outputTask! ");
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(uc, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), id);
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(outputTaskModel.getProfileId());
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + outputTaskModel.getProfileId());
String gennerClass = appProfile.getGenerClass();
if (UtilString.isEmpty(gennerClass))
throw new AWSException("OutputAppProfile 'gennerClass' is Null! AppName=" + appProfile.getTitle());
// ---------config---------------
String wizardJsonData = getWizardJsonData(outputTaskModel.getWsId(), id, appProfile.getId());
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(uc, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), id);
CallableGennerReport gener = new CallableGennerReport(outputTaskModel, appProfile, dcContext, wizardJsonData);
FutureTask<ResponseObject> task = new FutureTask<>(gener);
Thread signalThread = new Thread(task);
signalThread.setName("CoE Output Report Genner-" + appProfile.getTitle() + "-" + outputTaskModel.getTaskName());
signalThread.start();
try {
return task.get();
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
return ResponseObject.newErrResponse();
}
}
// ---------config---------------
//获取原有config.txt的json
String wizardJsonData = getWizardJsonData(outputTaskModel.getWsId(), outputTaskModel.getId(), appProfile.getId());
/**
* 三员管理模式下重新生成步骤横表手册
*
* @param outputTaskModel
*/
public void reGennerReport(UserContext uc, OutputTaskModel outputTaskModel, String id) {
// 根据原有config保存新的配置
this.saveWizardJsonData(outputTaskModel.getWsId(), id, outputTaskModel.getProfileId(), wizardJsonData);
if (outputTaskModel == null)
throw new AWSException("Not Find outputTask! ");
//同步执行
GennerReport gener = new GennerReport(outputTaskModel, appProfile, dcContext, wizardJsonData);
gener.run();
}
// --------app appProfile----------
OutputAppProfile appProfile = OutputAppManager.getProfile(outputTaskModel.getProfileId());
if (appProfile == null)
throw new AWSException("Not Find OutputAppProfile! profileId=" + outputTaskModel.getProfileId());
String gennerClass = appProfile.getGenerClass();
if (UtilString.isEmpty(gennerClass))
throw new AWSException("OutputAppProfile 'gennerClass' is Null! AppName=" + appProfile.getTitle());
class CallableGennerReport implements Callable<ResponseObject> {
// --------dc context-----------
DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT);
if (dcProfile == null)
throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT);
DCContext dcContext = new DCContext(uc, dcProfile, appProfile.getAppContext().getId(), outputTaskModel.getWsId(), id);
private OutputTaskModel task;
private OutputAppProfile appProfile;
private DCContext dcContext;
private String wizardJsonData;
// ---------config---------------
//获取原有config.txt的json
String wizardJsonData = getWizardJsonData(outputTaskModel.getWsId(), outputTaskModel.getId(), appProfile.getId());
public CallableGennerReport(OutputTaskModel task, OutputAppProfile appProfile, DCContext dcContext, String wizardJsonData) {
this.appProfile = appProfile;
this.task = task;
this.dcContext = dcContext;
this.wizardJsonData = wizardJsonData;
}
@Override
public ResponseObject call() throws Exception {
Constructor<?> cons = null;
try {
cons = ClassReflect.getConstructor(appProfile.getGenerClass(), null, appProfile.getAppContext());
} catch (Exception e) {
e.printStackTrace();
SDK.getAppAPI().err(appProfile.getAppContext(), appProfile.getGenerClass() + "--" + e.toString());
return ResponseObject.newErrResponse();
}
// 获得该接口实现类实例
try {
Class generClass = appProfile.getAppContext().getBindClassLoader().loadClass(appProfile.getGenerClass());
Object obj = cons.newInstance();
Method execute = generClass.getMethod("execute", new Class[] { OutputTaskModel.class, String.class, DCContext.class });
// 标记执行
new OutputTask().updateRunning(task.getId());
// 正式执行
ResponseObject ro = (ResponseObject) execute.invoke(obj, new Object[] { task, wizardJsonData, dcContext });
// 处理日志
List<String> logs = (List<String>) ro.get("logs");
if (logs != null && !logs.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (String msg : logs) {
sb.append(msg + (AWSServerConf.isLinuxOS() ? "" : "\r") + "\n");
}
// 保存日志文件
InputStream in = null;
try {
in = new ByteArrayInputStream(sb.toString().getBytes("UTF-8"));
dcContext.setFileName(OutputConst.FILE_TASK_LOG);
SDK.getDCAPI().write(in, dcContext);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (in != null)
in.close();
} catch (Exception e) {
}
}
}
// 标记结束
if (ro.isOk()) {
new OutputTask().updateSucess(task.getId());
return ResponseObject.newOkResponse();
} else {
new OutputTask().updateError(task.getId());
return ResponseObject.newErrResponse();
}
} catch (Exception e) {
e.printStackTrace();
SDK.getAppAPI().err(appProfile.getAppContext(), appProfile.getGenerClass() + "--" + e.toString());
return ResponseObject.newErrResponse();
}
}
}
/**
* 得到限定范围的流程id
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
* @return
* @throws AWSException
*/
/* public String getargetFileIds(String wsId, String id, String profileId)
* throws AWSException { UtilFile file = new UtilFile(getFilePath(wsId, id,
* profileId) + "/" + OutputConst.FILE_WIZARD_CONFIG); if (file.exists()) {
* String config = file.readStr(); return
* JSONObject.fromObject(config).getString("targetFileId"); } return ""; } */
// 根据原有config保存新的配置
this.saveWizardJsonData(outputTaskModel.getWsId(), id, outputTaskModel.getProfileId(), wizardJsonData);
//同步执行
GennerReport gener = new GennerReport(outputTaskModel, appProfile, dcContext, wizardJsonData);
gener.run();
}
class CallableGennerReport implements Callable<ResponseObject> {
private OutputTaskModel task;
private OutputAppProfile appProfile;
private DCContext dcContext;
private String wizardJsonData;
public CallableGennerReport(OutputTaskModel task, OutputAppProfile appProfile, DCContext dcContext, String wizardJsonData) {
this.appProfile = appProfile;
this.task = task;
this.dcContext = dcContext;
this.wizardJsonData = wizardJsonData;
}
@Override
public ResponseObject call() throws Exception {
Constructor<?> cons = null;
try {
cons = ClassReflect.getConstructor(appProfile.getGenerClass(), null, appProfile.getAppContext());
} catch (Exception e) {
e.printStackTrace();
SDK.getAppAPI().err(appProfile.getAppContext(), appProfile.getGenerClass() + "--" + e.toString());
return ResponseObject.newErrResponse();
}
// 获得该接口实现类实例
try {
Class generClass = appProfile.getAppContext().getBindClassLoader().loadClass(appProfile.getGenerClass());
Object obj = cons.newInstance();
Method execute = generClass.getMethod("execute", new Class[]{OutputTaskModel.class, String.class, DCContext.class});
// 标记执行
new OutputTask().updateRunning(task.getId());
// 正式执行
ResponseObject ro = (ResponseObject) execute.invoke(obj, new Object[]{task, wizardJsonData, dcContext});
// 处理日志
List<String> logs = (List<String>) ro.get("logs");
if (logs != null && !logs.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (String msg : logs) {
sb.append(msg + (AWSServerConf.isLinuxOS() ? "" : "\r") + "\n");
}
// 保存日志文件
InputStream in = null;
try {
in = new ByteArrayInputStream(sb.toString().getBytes("UTF-8"));
dcContext.setFileName(OutputConst.FILE_TASK_LOG);
SDK.getDCAPI().write(in, dcContext);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (in != null)
in.close();
} catch (Exception e) {
}
}
}
// 标记结束
if (ro.isOk()) {
new OutputTask().updateSucess(task.getId());
return ResponseObject.newOkResponse();
} else {
new OutputTask().updateError(task.getId());
return ResponseObject.newErrResponse();
}
} catch (Exception e) {
e.printStackTrace();
SDK.getAppAPI().err(appProfile.getAppContext(), appProfile.getGenerClass() + "--" + e.toString());
return ResponseObject.newErrResponse();
}
}
}
/**
* 得到限定范围的流程id
*
* @param wsId 资产库id
* @param id 任务Id
* @param profileId 报告生成器扩展App的配置Id
* @return
* @throws AWSException
*/
/* public String getargetFileIds(String wsId, String id, String profileId)
* throws AWSException { UtilFile file = new UtilFile(getFilePath(wsId, id,
* profileId) + "/" + OutputConst.FILE_WIZARD_CONFIG); if (file.exists()) {
* String config = file.readStr(); return
* JSONObject.fromObject(config).getString("targetFileId"); } return ""; } */
}
class GennerReport implements Runnable {
private OutputTaskModel task;
private OutputAppProfile appProfile;
private DCContext dcContext;
private String wizardJsonData;
private OutputTaskModel task;
private OutputAppProfile appProfile;
private DCContext dcContext;
private String wizardJsonData;
public GennerReport(OutputTaskModel task, OutputAppProfile appProfile, DCContext dcContext, String wizardJsonData) {
this.appProfile = appProfile;
this.task = task;
this.dcContext = dcContext;
this.wizardJsonData = wizardJsonData;
}
public GennerReport(OutputTaskModel task, OutputAppProfile appProfile, DCContext dcContext, String wizardJsonData) {
this.appProfile = appProfile;
this.task = task;
this.dcContext = dcContext;
this.wizardJsonData = wizardJsonData;
}
public void run() {
Constructor<?> cons = null;
try {
cons = ClassReflect.getConstructor(appProfile.getGenerClass(), null, appProfile.getAppContext());
} catch (Exception e) {
e.printStackTrace();
SDK.getAppAPI().err(appProfile.getAppContext(), appProfile.getGenerClass() + "--" + e.toString());
}
if (cons != null) {
// 获得该接口实现类实例
try {
Class generClass = appProfile.getAppContext().getBindClassLoader().loadClass(appProfile.getGenerClass());
Object obj = cons.newInstance();
Method execute = generClass.getMethod("execute", new Class[] { OutputTaskModel.class, String.class, DCContext.class });
// 标记执行
new OutputTask().updateRunning(task.getId());
// 正式执行
ResponseObject ro = (ResponseObject) execute.invoke(obj, new Object[] { task, wizardJsonData, dcContext });
// 处理日志
List<String> logs = (List<String>) ro.get("logs");
if (logs != null && !logs.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (String msg : logs) {
sb.append(msg + (AWSServerConf.isLinuxOS() ? "" : "\r") + "\n");
}
// 保存日志文件
InputStream in = null;
try {
in = new ByteArrayInputStream(sb.toString().getBytes("UTF-8"));
dcContext.setFileName(OutputConst.FILE_TASK_LOG);
SDK.getDCAPI().write(in, dcContext);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (in != null)
in.close();
} catch (Exception e) {
}
}
}
// 标记结束
if (ro.isOk()) {
new OutputTask().updateSucess(task.getId());
} else {
new OutputTask().updateError(task.getId());
}
} catch (Exception e) {
e.printStackTrace();
SDK.getAppAPI().err(appProfile.getAppContext(), appProfile.getGenerClass() + "--" + e.toString());
}
}
}
public void run() {
Constructor<?> cons = null;
try {
cons = ClassReflect.getConstructor(appProfile.getGenerClass(), null, appProfile.getAppContext());
} catch (Exception e) {
e.printStackTrace();
SDK.getAppAPI().err(appProfile.getAppContext(), appProfile.getGenerClass() + "--" + e.toString());
}
if (cons != null) {
// 获得该接口实现类实例
try {
Class generClass = appProfile.getAppContext().getBindClassLoader().loadClass(appProfile.getGenerClass());
Object obj = cons.newInstance();
Method execute = generClass.getMethod("execute", new Class[]{OutputTaskModel.class, String.class, DCContext.class});
// 标记执行
new OutputTask().updateRunning(task.getId());
// 正式执行
ResponseObject ro = (ResponseObject) execute.invoke(obj, new Object[]{task, wizardJsonData, dcContext});
// 处理日志
List<String> logs = (List<String>) ro.get("logs");
if (logs != null && !logs.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (String msg : logs) {
sb.append(msg + (AWSServerConf.isLinuxOS() ? "" : "\r") + "\n");
}
// 保存日志文件
InputStream in = null;
try {
in = new ByteArrayInputStream(sb.toString().getBytes("UTF-8"));
dcContext.setFileName(OutputConst.FILE_TASK_LOG);
SDK.getDCAPI().write(in, dcContext);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (in != null)
in.close();
} catch (Exception e) {
}
}
}
// 标记结束
if (ro.isOk()) {
new OutputTask().updateSucess(task.getId());
} else {
new OutputTask().updateError(task.getId());
}
} catch (Exception e) {
e.printStackTrace();
SDK.getAppAPI().err(appProfile.getAppContext(), appProfile.getGenerClass() + "--" + e.toString());
}
}
}
}

View File

@ -231,6 +231,7 @@ public class OutputExcelUtil {
String label2 = m2.group();
if (checkLabel(label2)) {
labels.add(label2);
System.out.println("=============================label2内容为"+label2.toString());
}
}
return labels;

View File

@ -13,4 +13,4 @@
var mainType = "<#mainType>";
var uid = "<#uid>";
var wHref = "./w";
var jdHref = "./jd";</script><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-055385ac.e55cad48.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-0ba0316e.d3570084.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-1cf2c888.32b22b48.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-4def56c4.ef0a5aa8.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-4e7e9573.38619268.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-5a76c238.283a9f57.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-6f1c20e8.c5c7126f.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-8cb92970.adde4cab.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-dd13ef3a.66cd3c5f.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-055385ac.212b1e7f.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-0ba0316e.a3ac659b.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-1cf2c888.9466d4da.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d0ab156.e3edaaa6.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d0b25b0.3ebfc816.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d0f078a.9e10275b.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d216d3a.99234111.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d224b23.135c5954.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d224ef1.7eee62fe.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-4def56c4.66811286.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-4e7e9573.db603cfd.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-5a76c238.27830c12.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-5ca06e36.1dd1e85a.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-6f1c20e8.c979e2d7.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-8cb92970.9380bd91.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-bf7921b8.1d6eee48.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-dd13ef3a.0bade222.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/app.b58aa8df.css rel=preload as=style><link href=../apps/com.actionsoft.apps.coe.pal/main/js/app.bd455f7f.js rel=preload as=script><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-vendors.16b2cce8.js rel=preload as=script><link href=../apps/com.actionsoft.apps.coe.pal/main/css/app.b58aa8df.css rel=stylesheet></head><body style=margin:0;><div id=app></div><script src=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-vendors.16b2cce8.js></script><script src=../apps/com.actionsoft.apps.coe.pal/main/js/app.bd455f7f.js></script></body></html>
var jdHref = "./jd";</script><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-055385ac.e55cad48.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-0afe55bf.4778a8ec.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-0ba0316e.d3570084.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-1cf2c888.d77cd146.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-4def56c4.ef0a5aa8.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-4e7e9573.38619268.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-5a76c238.283a9f57.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-6f1c20e8.c5c7126f.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/chunk-8cb92970.adde4cab.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-055385ac.00905b6d.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-0afe55bf.b357fae1.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-0ba0316e.688f76dc.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-1cf2c888.6cc6d796.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d0ab156.4806769f.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d0b25b0.416cbd4d.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d0f078a.177d1eb1.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d216d3a.60b5daee.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d224b23.aa0a1486.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-2d224ef1.e0c4eebc.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-4def56c4.b7c9006f.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-4e7e9573.53d1c82e.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-5a76c238.44d7b7f6.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-5ca06e36.b040a926.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-6f1c20e8.96211ef7.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-8cb92970.328ebf72.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-bf7921b8.4686146e.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal/main/css/app.8c8bd95f.css rel=preload as=style><link href=../apps/com.actionsoft.apps.coe.pal/main/js/app.4583b8e6.js rel=preload as=script><link href=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-vendors.30b385c5.js rel=preload as=script><link href=../apps/com.actionsoft.apps.coe.pal/main/css/app.8c8bd95f.css rel=stylesheet></head><body style=margin:0;><div id=app></div><script src=../apps/com.actionsoft.apps.coe.pal/main/js/chunk-vendors.30b385c5.js></script><script src=../apps/com.actionsoft.apps.coe.pal/main/js/app.4583b8e6.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 158 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ab156"],{1485:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticStyle:{width:"100%",height:"100%"}},[e("iframe",{staticStyle:{border:"0"},attrs:{id:"iframe",width:"100%",height:"100%",name:"iframe",src:t.src}})])},i=[],s={name:"MappingManagement",data:function(){return{src:"./w?sid="+this.$store.state.sessionId+"&cmd=com.actionsoft.apps.coe.pal.mappingmanagement_main_page&dataType="+this.$route.params.dataType}}},r=s,c=e("cba8"),p=Object(c["a"])(r,n,i,!1,null,"56fd105e",null);a["default"]=p.exports}}]);

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f078a"],{"9d09":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{style:{width:"100%",height:t.mainHeight}},[i("iframe",{staticStyle:{border:"0"},attrs:{id:"orgIframe",width:"100%",height:parseInt(t.mainHeight)-4+"px",name:"orgIframe",src:t.src}})])},s=[],a={name:"BPMOrg",data:function(){return{src:"./w?sid="+this.$store.state.sessionId+"&cmd=com.actionsoft.apps.coe.pal_average_user_org",mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)-4+"px"}},computed:{listenTopMainHeight:function(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(t,e){this.mainHeight=parseInt(this.$store.getters.getTopMainHeightFn)-4+"px"}}},r=a,o=i("cba8"),c=Object(o["a"])(r,n,s,!1,null,"2280cc48",null);e["default"]=c.exports}}]);

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d216d3a"],{c3b6:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{style:{width:"100%",height:t.mainHeight},attrs:{id:"cooperation"}},[i("iframe",{staticStyle:{border:"0"},attrs:{id:"coopIframe",width:"100%",height:parseInt(t.mainHeight)-4+"px",name:"coopIframe",src:t.src}})])},a=[],o={name:"cooperationCreate",data:function(){return{src:wHref+"?sid="+this.$store.state.sessionId+"&mainPage=create&cmd=com.actionsoft.apps.coe.pal.cooperation_main",mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)-4+"px"}},computed:{listenTopMainHeight:function(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(t,e){this.mainHeight=parseInt(this.$store.getters.getTopMainHeightFn)-4+"px"}}},s=o,r=i("cba8"),c=Object(r["a"])(s,n,a,!1,null,"6a826a48",null);e["default"]=c.exports}}]);

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d224b23"],{e0df:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{style:{width:"100%",height:t.mainHeight},attrs:{id:"cooperationUpdate"}},[i("iframe",{staticStyle:{border:"0"},attrs:{id:"coopIframe",width:"100%",height:parseInt(t.mainHeight)-4+"px",name:"coopIframe",src:t.src}})])},a=[],o={name:"CooperationUpdate",data:function(){return{src:wHref+"?sid="+this.$store.state.sessionId+"&mainPage=update&cmd=com.actionsoft.apps.coe.pal.cooperation_main",mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)-4+"px"}},computed:{listenTopMainHeight:function(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(t,e){this.mainHeight=parseInt(this.$store.getters.getTopMainHeightFn)-4+"px"}}},s=o,r=i("cba8"),p=Object(r["a"])(s,n,a,!1,null,"543345d8",null);e["default"]=p.exports}}]);

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d224ef1"],{e1f5:function(e,s,t){"use strict";t.r(s);var n=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"devGetSession"},[e._v(" 正在获取session ")])},a=[],o=t("a18c"),d=t("0f08"),i=t("4360");d["a"].post({url:"jd",data:{userid:devUserInfo.userid,pwd:devUserInfo.pwd,lang:"cn",cmd:"com.actionsoft.apps.getsession.get",deviceType:"pc"}}).then((function(e){"error"==e.result?alert("获取session错误"+e.msg):(i["a"].commit("edit",{sessionId:e.data.sid}),o["a"].replace("/"))}));var c={data:function(){return{dwList:[]}},methods:{},mounted:function(){}},r=c,u=t("cba8"),l=Object(u["a"])(r,n,a,!1,null,null,null);s["default"]=l.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long