上下游流程,增加链接打开选中的文件模型
This commit is contained in:
parent
df3ce4b57e
commit
c59ad7cf96
@ -4800,7 +4800,21 @@ function getAddShapes(addInterface) {
|
||||
var x = 100;// 距离画布左侧默认100
|
||||
for (var markId in addInterface) {
|
||||
var newShape = Model.create('procedure', x, 0);
|
||||
//增加默认的链接,打开该文件模型
|
||||
var linkArray = [];
|
||||
linkArray.push(
|
||||
{
|
||||
"name":addInterface[markId].name,
|
||||
"value":addInterface[markId].name,
|
||||
"target": "newTab",
|
||||
"type": "file",
|
||||
"uuid": addInterface[markId].id,
|
||||
"url":"./w?sid="+sid+"&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="+addInterface[markId].id+"&openType=0&perms=&filePerms="
|
||||
}
|
||||
);
|
||||
newShape.dataAttributes[13].linksArray = linkArray;
|
||||
x += (150 + 80);
|
||||
newShape.link = addInterface[markId].name;
|
||||
newShape.attrMark = addInterface[markId];
|
||||
newShape.text = addInterface[markId].name;
|
||||
result.push(newShape);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user