Merge branch 'master' of https://e.coding.net/yilidev/yilipalkaifa/apps
# Conflicts: # com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar
This commit is contained in:
commit
ee65540361
@ -3,7 +3,7 @@
|
|||||||
<app xmlns="http://www.actionsoft.com.cn/app">
|
<app xmlns="http://www.actionsoft.com.cn/app">
|
||||||
<name>PAL数据迁移</name>
|
<name>PAL数据迁移</name>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<buildNo>21</buildNo>
|
<buildNo>12</buildNo>
|
||||||
<developer id="776cca9a287c8b4d63b9cad216aa3859" tablePrefix="ACT" url="http://www.actionsoft.com.cn">北京炎黄盈动科技发展有限责任公司</developer>
|
<developer id="776cca9a287c8b4d63b9cad216aa3859" tablePrefix="ACT" url="http://www.actionsoft.com.cn">北京炎黄盈动科技发展有限责任公司</developer>
|
||||||
<categoryVisible>false</categoryVisible>
|
<categoryVisible>false</categoryVisible>
|
||||||
<description><![CDATA[数据迁移]]></description>
|
<description><![CDATA[数据迁移]]></description>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<app xmlns="http://www.actionsoft.com.cn/app">
|
<app xmlns="http://www.actionsoft.com.cn/app">
|
||||||
<name>CoE PAL流程资产库</name>
|
<name>CoE PAL流程资产库</name>
|
||||||
<version>6.5</version>
|
<version>6.5</version>
|
||||||
<buildNo>81</buildNo>
|
<buildNo>69</buildNo>
|
||||||
<developer id="776cca9a287c8b4d63b9cad216aa3859" url="http://www.actionsoft.com.cn" tablePrefix="ACT">北京炎黄盈动科技发展有限责任公司</developer>
|
<developer id="776cca9a287c8b4d63b9cad216aa3859" url="http://www.actionsoft.com.cn" tablePrefix="ACT">北京炎黄盈动科技发展有限责任公司</developer>
|
||||||
<productId/>
|
<productId/>
|
||||||
<categoryVisible>false</categoryVisible>
|
<categoryVisible>false</categoryVisible>
|
||||||
|
|||||||
@ -3297,4 +3297,30 @@ public class CoEPALController {
|
|||||||
return web.checkFilePermissionBatch(uuids,isSub).toString();
|
return web.checkFilePermissionBatch(uuids,isSub).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设计器页面右侧版本差异窗口接口
|
||||||
|
* @param me
|
||||||
|
* @param id 当前资产库文件ID
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Mapping("com.actionsoft.apps.coe.pal_repository_model_version_diff_query")
|
||||||
|
public String getRepositoryModelVersionDiff(UserContext me,String id){
|
||||||
|
CoeProcessLevelWeb web = new CoeProcessLevelWeb(me);
|
||||||
|
return web.getRepositoryModelVersionDiff(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 校验形状属性
|
||||||
|
* @param me
|
||||||
|
* @param uuid
|
||||||
|
* @param define 若为空字符串,则获取系统当前保存的define进行校验
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Mapping("com.actionsoft.apps.coe.pal_repository_define_shape_attr_valid")
|
||||||
|
public String validRepositoryShapeAttr(UserContext me, String uuid, String define) {
|
||||||
|
CoeDesignerWeb web = new CoeDesignerWeb(me);
|
||||||
|
return web.validRepositoryShapeAttr(uuid, define);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -505,8 +505,8 @@ public class CoeCooperationAPIManager {
|
|||||||
// 获取用户权限,判断是否已存在
|
// 获取用户权限,判断是否已存在
|
||||||
List<String> rolePermList = new CoeCooperationRolePermDao().getRolePermListByRole(teamId, hideRole.getId());
|
List<String> rolePermList = new CoeCooperationRolePermDao().getRolePermListByRole(teamId, hideRole.getId());
|
||||||
if (!rolePermList.contains(palVersionId)) {
|
if (!rolePermList.contains(palVersionId)) {
|
||||||
// 添加角色权限
|
// 添加角色权限, 当前用户新建默认给全部的操作权限
|
||||||
CoeCooperationRolePermModel rolePerm = new CoeCooperationRolePermModel(UUIDGener.getUUID(), teamId, hideRole.getId(), palVersionId);
|
CoeCooperationRolePermModel rolePerm = new CoeCooperationRolePermModel(UUIDGener.getUUID(), teamId, hideRole.getId(), palVersionId,"w,d,v");
|
||||||
new CoeCooperationRolePermDao().insert(rolePerm);
|
new CoeCooperationRolePermDao().insert(rolePerm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import java.util.*;
|
|||||||
import com.actionsoft.apps.AppsConst;
|
import com.actionsoft.apps.AppsConst;
|
||||||
import com.actionsoft.apps.coe.pal.constant.CoEConstant;
|
import com.actionsoft.apps.coe.pal.constant.CoEConstant;
|
||||||
import com.actionsoft.apps.coe.pal.cooperation.CoeCooperationAPIManager;
|
import com.actionsoft.apps.coe.pal.cooperation.CoeCooperationAPIManager;
|
||||||
|
import com.actionsoft.apps.coe.pal.cooperation.cache.CooperationCache;
|
||||||
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache;
|
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache;
|
||||||
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel;
|
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel;
|
||||||
import com.actionsoft.apps.lifecycle.api.AppsAPIManager;
|
import com.actionsoft.apps.lifecycle.api.AppsAPIManager;
|
||||||
@ -169,7 +170,8 @@ public class PALMethodCache {
|
|||||||
List<String> methodList = PALMethodCache.getPALMethodList(sort);
|
List<String> methodList = PALMethodCache.getPALMethodList(sort);
|
||||||
if (UtilString.isNotEmpty(teamId)) {
|
if (UtilString.isNotEmpty(teamId)) {
|
||||||
List<String> permMethodList = new ArrayList<>();
|
List<String> permMethodList = new ArrayList<>();
|
||||||
List<String> versionIds = CoeCooperationAPIManager.getInstance().queryCooperationRoleDataPermByTeamUser(teamId, userId);
|
// List<String> versionIds = CoeCooperationAPIManager.getInstance().queryCooperationRoleDataPermByTeamUser(teamId, userId);
|
||||||
|
Set<String> versionIds = CooperationCache.getUserDataVisitablePermission(teamId, userId, false);
|
||||||
for (String verId : versionIds) {
|
for (String verId : versionIds) {
|
||||||
List<PALRepositoryModel> verModels = PALRepositoryCache.getByVersionId(verId);
|
List<PALRepositoryModel> verModels = PALRepositoryCache.getByVersionId(verId);
|
||||||
if (verModels != null && verModels.size() > 0 && !permMethodList.contains(verModels.get(0).getMethodCategory())) {
|
if (verModels != null && verModels.size() > 0 && !permMethodList.contains(verModels.get(0).getMethodCategory())) {
|
||||||
|
|||||||
@ -3401,6 +3401,80 @@ public class CoeDesignerWeb extends ActionWeb {
|
|||||||
return ro.toString();
|
return ro.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 校验形状属性
|
||||||
|
* @param uuid
|
||||||
|
* @param define 若为空字符串,则获取系统当前保存的define进行校验
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String validRepositoryShapeAttr(String uuid, String define) {
|
||||||
|
PALRepositoryModel model = PALRepositoryCache.getCache().get(uuid);
|
||||||
|
if (model == null) {
|
||||||
|
return ResponseObject.newErrResponse("模型不存在").toString();
|
||||||
|
}
|
||||||
|
if (UtilString.isEmpty(define) || "null".equals(define) || "undefined".equals(define)) {
|
||||||
|
define = PALRepositoryQueryAPIManager.getInstance().getProcessDefinition(_uc, uuid);
|
||||||
|
}
|
||||||
|
Map<String, PALMethodAttributeModel> methodAttributeModelMap = new HashMap<>();
|
||||||
|
|
||||||
|
// 校验形状
|
||||||
|
List<JSONObject> elements = ShapeUtil.getShapeJsonToJsonObject(define);
|
||||||
|
List<JSONObject> resultList = new ArrayList<>();
|
||||||
|
for (JSONObject o : elements) {
|
||||||
|
String shapeId = o.getString("id");
|
||||||
|
String shapeName = o.getString("name");
|
||||||
|
String text = UtilString.isEmpty(o.getString("text")) ? o.getString("title") : o.getString("text");
|
||||||
|
String shapeCategory = o.getString("category");
|
||||||
|
JSONObject dataAttributes = o.getJSONObject("dataAttributes");
|
||||||
|
JSONArray attributesJsonArray = dataAttributes.getJSONArray("attributesJsonArray");
|
||||||
|
for (int i = 0; i < attributesJsonArray.size(); i++) {
|
||||||
|
JSONObject attr = attributesJsonArray.getJSONObject(i);
|
||||||
|
String attrId = attr.getString("id");
|
||||||
|
String value = attr.getString("value");
|
||||||
|
if (!methodAttributeModelMap.containsKey(shapeName + "-" + attrId)) {
|
||||||
|
List<PALMethodAttributeModel> methodAttributeModels = CoeDesignerShapeAPIManager.getInstance().getValidAndUseAttributeModels(model.getWsId(), shapeCategory.replace("_", "."), shapeName, model.getMethodId());
|
||||||
|
for (PALMethodAttributeModel attributeModel : methodAttributeModels) {
|
||||||
|
if (!methodAttributeModelMap.containsKey(shapeName + "-" + attributeModel.getKey())) {
|
||||||
|
methodAttributeModelMap.put(shapeName + "-" + attributeModel.getKey(), attributeModel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!methodAttributeModelMap.containsKey(shapeName + "-" + attrId)) {
|
||||||
|
continue;// 没有配置到形状的属性,不处理
|
||||||
|
}
|
||||||
|
PALMethodAttributeModel attrModel = methodAttributeModelMap.get(shapeName + "-" + attrId);
|
||||||
|
if (attrModel.getIsRequired()) {// 筛选必填
|
||||||
|
String attrType = attrModel.getType();
|
||||||
|
boolean flag = true;
|
||||||
|
if ("relation".equals(attrType) || "awsorg".equals(attrType)) {
|
||||||
|
List<DesignerShapeRelationModel> list = DesignerShapeRelationCache.getListByAttrId(model.getId(), shapeId, attrId);
|
||||||
|
if (list == null || list.isEmpty()) {
|
||||||
|
flag = false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
flag = UtilString.isNotEmpty(value);
|
||||||
|
}
|
||||||
|
if (!flag) {
|
||||||
|
JSONObject tmp = new JSONObject();
|
||||||
|
tmp.put("shapeId", shapeId);
|
||||||
|
tmp.put("shapeName", text);
|
||||||
|
tmp.put("attrName", attrModel.getNewTitle());
|
||||||
|
tmp.put("attrId", attrId);
|
||||||
|
resultList.add(tmp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ResponseObject ro = ResponseObject.newOkResponse();
|
||||||
|
if (!resultList.isEmpty()) {
|
||||||
|
ro.setData(resultList);
|
||||||
|
ro.err("校验未通过");
|
||||||
|
return ro.toString();
|
||||||
|
}
|
||||||
|
return ResponseObject.newOkResponse().toString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************新版门户流程详情end********************************************************/
|
/******************************************新版门户流程详情end********************************************************/
|
||||||
|
|
||||||
//获取excel数据的内部类
|
//获取excel数据的内部类
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1727,4 +1727,11 @@
|
|||||||
<param name="desc"/>
|
<param name="desc"/>
|
||||||
<param name="methodId"/>
|
<param name="methodId"/>
|
||||||
</cmd-bean>
|
</cmd-bean>
|
||||||
|
<cmd-bean name="com.actionsoft.apps.coe.pal_repository_model_version_diff_query">
|
||||||
|
<param name="id"/>
|
||||||
|
</cmd-bean>
|
||||||
|
<cmd-bean name="com.actionsoft.apps.coe.pal_repository_define_shape_attr_valid">
|
||||||
|
<param name="uuid"/>
|
||||||
|
<param name="define"/>
|
||||||
|
</cmd-bean>
|
||||||
</aws-actions>
|
</aws-actions>
|
||||||
72
com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.team.pal.designer.js
Executable file → Normal file
72
com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.team.pal.designer.js
Executable file → Normal file
@ -22,8 +22,8 @@ $(function() {
|
|||||||
},
|
},
|
||||||
error: function (jqXHR, textStatus, errorThrown) {
|
error: function (jqXHR, textStatus, errorThrown) {
|
||||||
$.simpleAlert(errorThrown, 'err');
|
$.simpleAlert(errorThrown, 'err');
|
||||||
console.log(jqXHR)
|
console.log(jqXHR);
|
||||||
console.log(textStatus)
|
console.log(textStatus);
|
||||||
console.log(errorThrown)
|
console.log(errorThrown)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -90,21 +90,18 @@ $(function() {
|
|||||||
tempMessageArr[messageId] = messageArrayForSave[messageId];
|
tempMessageArr[messageId] = messageArrayForSave[messageId];
|
||||||
}
|
}
|
||||||
var messageArray = JSON.stringify(tempMessageArr);
|
var messageArray = JSON.stringify(tempMessageArr);
|
||||||
var elements = obj.elements
|
$.ajax({
|
||||||
for(let i in elements) {
|
type: "POST",
|
||||||
for(let a = 0; a < elements[i].dataAttributes.length; a ++ ) {
|
url: "./jd",
|
||||||
if(elements[i].dataAttributes[a].attributesJsonArray !== undefined) {
|
data: {
|
||||||
for(let b = 0; b < elements[i].dataAttributes[a].attributesJsonArray.length; b ++) {
|
sid: CLB.sid,
|
||||||
if(elements[i].dataAttributes[a].attributesJsonArray[b].isRequired && elements[i].dataAttributes[a].attributesJsonArray[b].value == '') {
|
cmd: "com.actionsoft.apps.coe.pal_repository_define_shape_attr_valid",
|
||||||
$.simpleAlert("close");
|
uuid: ruuid,
|
||||||
$.simpleAlert("必填项不能为空", 'error');
|
define: awsui.encode(obj),
|
||||||
return;
|
},
|
||||||
}
|
success: function (msg, textStatus, jqXHR) {
|
||||||
}
|
debugger;
|
||||||
}
|
if(msg.result == "ok") {
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "./jd",
|
url: "./jd",
|
||||||
@ -159,6 +156,23 @@ $(function() {
|
|||||||
$.simpleAlert('保存失败', 'error', 1500);
|
$.simpleAlert('保存失败', 'error', 1500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
$.simpleAlert("close");
|
||||||
|
var result = msg.data;
|
||||||
|
var resultMsg = [];
|
||||||
|
for (var i = 0; i < result.length; i++) {
|
||||||
|
var o = result[i];
|
||||||
|
resultMsg.push('[' + o.shapeName + ']的[' + o.attrName + ']不能为空' );
|
||||||
|
}
|
||||||
|
$.simpleAlert(resultMsg.join('<br>'), 'error');
|
||||||
|
// $.simpleAlert(ro.msg, 'error');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (jqXHR, textStatus, errorThrown) {
|
||||||
|
$.simpleAlert("close");
|
||||||
|
$.simpleAlert('校验失败', 'error', 1500);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -181,7 +195,7 @@ $(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
//在弹出“是否离开”的提示框后,选择离开,则触发onunload事件
|
//在弹出“是否离开”的提示框后,选择离开,则触发onunload事件
|
||||||
window.onunload = function(){
|
window.onunload = function(){
|
||||||
@ -197,7 +211,7 @@ $(function() {
|
|||||||
uuid: ruuid
|
uuid: ruuid
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
// saveTimer();
|
// saveTimer();
|
||||||
intervalRefresh();
|
intervalRefresh();
|
||||||
}
|
}
|
||||||
@ -238,7 +252,7 @@ $(function() {
|
|||||||
$('#bar_sort').off("click").on("click",function (){
|
$('#bar_sort').off("click").on("click",function (){
|
||||||
if ($("#saving_tip").text() != "已保存成功" && $("#saving_tip").text() != "保存成功" && $("#saving_tip").text() != "您的文件已经成功保存") {
|
if ($("#saving_tip").text() != "已保存成功" && $("#saving_tip").text() != "保存成功" && $("#saving_tip").text() != "您的文件已经成功保存") {
|
||||||
$.simpleAlert('页面未保存,请先保存', 'error', 1500);
|
$.simpleAlert('页面未保存,请先保存', 'error', 1500);
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
// $.simpleAlert("正在编号", "loading");
|
// $.simpleAlert("正在编号", "loading");
|
||||||
// $.ajax({
|
// $.ajax({
|
||||||
@ -268,11 +282,11 @@ $(function() {
|
|||||||
{ shapeId: 'obj_c9e1cdab200000014a2eade016e8170d',order: 5},
|
{ shapeId: 'obj_c9e1cdab200000014a2eade016e8170d',order: 5},
|
||||||
{ shapeId: 'obj_c9e1cdb266f0000159a7c8afa7701a68',order: 6},
|
{ shapeId: 'obj_c9e1cdb266f0000159a7c8afa7701a68',order: 6},
|
||||||
]
|
]
|
||||||
}
|
};
|
||||||
let obj = Model.define
|
let obj = Model.define;
|
||||||
console.log(obj)
|
console.log(obj);
|
||||||
let elements = obj.elements
|
let elements = obj.elements;
|
||||||
let orderList = numObj.orderList
|
let orderList = numObj.orderList;
|
||||||
for (let j = 0; j < orderList.length; j++) {
|
for (let j = 0; j < orderList.length; j++) {
|
||||||
for(let i in elements) {
|
for(let i in elements) {
|
||||||
if (orderList[j].shapeId == i) {
|
if (orderList[j].shapeId == i) {
|
||||||
@ -303,7 +317,7 @@ $(function() {
|
|||||||
$("#saving_tip").text("文件已修改,未保存");
|
$("#saving_tip").text("文件已修改,未保存");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
/**定时保存**/
|
/**定时保存**/
|
||||||
@ -321,7 +335,7 @@ function saveTimer() {
|
|||||||
alertmsg(count, msg);
|
alertmsg(count, msg);
|
||||||
}
|
}
|
||||||
}})
|
}})
|
||||||
}
|
};
|
||||||
alertmsg(count, msg);
|
alertmsg(count, msg);
|
||||||
// $.simpleAlert("5秒之后自动进行保存", "info", 5000, {callback:function(){$("#bar_save").click();}});
|
// $.simpleAlert("5秒之后自动进行保存", "info", 5000, {callback:function(){$("#bar_save").click();}});
|
||||||
}, 300000);
|
}, 300000);
|
||||||
@ -343,7 +357,7 @@ function intervalRefresh() {
|
|||||||
alert : false,
|
alert : false,
|
||||||
ok: function(msg){
|
ok: function(msg){
|
||||||
if (msg.data.isLocked) {
|
if (msg.data.isLocked) {
|
||||||
var m = '当前流程被 ' + msg.data.currentUserName + ' 强行获取编辑权或锁定'
|
var m = '当前流程被 ' + msg.data.currentUserName + ' 强行获取编辑权或锁定';
|
||||||
$.simpleAlert(m,"info",4000,{mode:true,callback:function() {
|
$.simpleAlert(m,"info",4000,{mode:true,callback:function() {
|
||||||
if ($("#saving_tip").text() != "已保存成功" && $("#saving_tip").text() != "保存成功" && $("#saving_tip").text() != "您的文件已经成功保存" && $("#saving_tip").text() != "") {
|
if ($("#saving_tip").text() != "已保存成功" && $("#saving_tip").text() != "保存成功" && $("#saving_tip").text() != "您的文件已经成功保存" && $("#saving_tip").text() != "") {
|
||||||
$("#saving_tip").text('');// 防止reload时出现浏览器自带提示
|
$("#saving_tip").text('');// 防止reload时出现浏览器自带提示
|
||||||
@ -389,7 +403,7 @@ var CommonLock = {
|
|||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
// 记录所有节点及节点名称,保存时对比
|
// 记录所有节点及节点名称,保存时对比
|
||||||
var shapeTextRecord = {};
|
var shapeTextRecord = {};
|
||||||
|
|||||||
@ -3045,48 +3045,14 @@ var Dock = {
|
|||||||
else if(this.currentView == 'diff') {
|
else if(this.currentView == 'diff') {
|
||||||
// var html = "<div style=\"font-size: 16px; color: #aaa; text-align: center; vertical-align: middle; line-height: 200px;\">暂无版本差异</div>";
|
// var html = "<div style=\"font-size: 16px; color: #aaa; text-align: center; vertical-align: middle; line-height: 200px;\">暂无版本差异</div>";
|
||||||
var html = ''
|
var html = ''
|
||||||
var diffContent = [
|
$.ajax({
|
||||||
{
|
url: "./jd?sid=" + $("#sid").val()
|
||||||
versionName: 'Ver 2.0',
|
+ "&cmd=com.actionsoft.apps.coe.pal_repository_model_version_diff_query&wsId=" + $("#wsId").val()
|
||||||
updateTime: '5月19日 16:00',
|
+ "&id=" + ruuid,
|
||||||
updateContent: [
|
success: function (ro) {
|
||||||
{
|
// console.log("历史差异结果: " + JSON.stringify(ro))
|
||||||
title: '文件修改:',
|
if (ro.result == "ok") {
|
||||||
detail: ['[内容]增加了111111111111111111','[责任部门]增加了11111111111111111']
|
var diffContent = ro.data;
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '节点修改:',
|
|
||||||
detail: ['删除[开始事件]节点','删除[开始]节点','删除[人工]节点']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '[文件]删除11111111111',
|
|
||||||
detail: []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
versionName: 'Ver 1.0',
|
|
||||||
updateTime: '5月14日 15:00',
|
|
||||||
updateContent: [
|
|
||||||
{
|
|
||||||
title: '文件修改',
|
|
||||||
detail: ['[内容]增加了111111111111 ',]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '节点修改',
|
|
||||||
detail: ['删除[开始事件]节点','删除[开始]节点','删除[人工]节点','删除[结束]节点']
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '[制度]增加了11111111111111',
|
|
||||||
detail: []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '[文件]删除了11111111111',
|
|
||||||
detail: []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
for (var i = 0; i < diffContent.length; i++) {
|
for (var i = 0; i < diffContent.length; i++) {
|
||||||
var diffCount = 0
|
var diffCount = 0
|
||||||
var content = diffContent[i].updateContent
|
var content = diffContent[i].updateContent
|
||||||
@ -3116,7 +3082,14 @@ var Dock = {
|
|||||||
|
|
||||||
}
|
}
|
||||||
$("#diffTable").empty().html(html)
|
$("#diffTable").empty().html(html)
|
||||||
|
} else {
|
||||||
|
html = '<tr>'
|
||||||
|
+ ro.msg
|
||||||
|
+ '</tr>'
|
||||||
|
$("#diffTable").empty().html(html)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (this.currentView == "history") {
|
if (this.currentView == "history") {
|
||||||
if (drawNav && Dock.historyVersions == null) {
|
if (drawNav && Dock.historyVersions == null) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user