打包后文件

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,7 +30,7 @@
<attribute key="information_systems" title="信息系统" type="string" value="" desc="信息系统" isRequired="false" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true"/> <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="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="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="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="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"/>

View File

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

Binary file not shown.

View File

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

View File

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

View File

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

View File

@ -13,4 +13,4 @@
var mainType = "<#mainType>"; var mainType = "<#mainType>";
var uid = "<#uid>"; var uid = "<#uid>";
var wHref = "./w"; 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