发布流程相关修改,模型文件以及js文件提交
This commit is contained in:
parent
bea31b9b3e
commit
740e8b2d9c
@ -163,7 +163,7 @@
|
||||
<input type="hidden" name="attrIds" value="<#attrIds>" id="attrId"/>
|
||||
<ul id="buttons" style="margin-top:10px;" class="clearfix">
|
||||
<li class="attr_more" ></li>
|
||||
<li><span title="点击打开附件管理" id="upfile" class="button">附件</span></li>
|
||||
<!--<li><span title="点击打开附件管理" id="upfile" class="button">附件</span></li>-->
|
||||
</ul>
|
||||
<div title="" style="width:250px;display:none;" id="attr_dialog-normal">
|
||||
<div id='attr_content' style='margin:10px;height:280px;'>
|
||||
|
||||
@ -73,6 +73,7 @@
|
||||
<div tit="selfAccessory" class="tab_content" style="width: 550px;">
|
||||
<div id="accessoryList" style="width: 550px;height: 280px;vertical-align: top;">
|
||||
<button id="showAddPage" type="button" class="button green" style="margin-left: 20px;">新增</button>
|
||||
<button id="deleteAllFile" type="button" class="awsui-btn awsui-btn-danger" style="float:right;" onclick="delFileAll(loadFiles)">全部删除</button>
|
||||
<table class="awsui-ux">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
var sid; //全局变量
|
||||
var pl_uuid;
|
||||
var uuids;
|
||||
var shape_uuid;
|
||||
var type;
|
||||
var repositoryName;
|
||||
@ -263,6 +264,10 @@ function loadFiles() { //加载附件,params参考引用
|
||||
$("#selfAccessoryTable tbody").empty();
|
||||
var accessoryHtml = "";
|
||||
var list = msg.data.list;
|
||||
//增加uuids字段
|
||||
uuids = list.map(function(obj) {
|
||||
return obj.uuid;
|
||||
}).join(',');
|
||||
list.sort(function(x,y){
|
||||
if(x.fileName.substr(0,2)=='附件' && y.fileName.substr(0,2)=='附件') {
|
||||
return Number(x.fileName.substr(2, 1)) - Number(y.fileName.substr(2, 1));
|
||||
@ -414,6 +419,37 @@ function delFile(uuid, fileName, callback) { //删除单个附件,params参考
|
||||
$.confirm(options);
|
||||
}
|
||||
|
||||
function delFileAll(callback) { //删除全部文件
|
||||
var options = {
|
||||
title: "提示",
|
||||
content: "确定要删除全部文件吗?",
|
||||
onConfirm: function() {
|
||||
var params = {};
|
||||
params.uuids = uuids;
|
||||
jQuery.ajax({
|
||||
type: "POST",
|
||||
url: "./jd?sid=" + encodeURIComponent(sid) + "&cmd=com.actionsoft.apps.coe.pal_processlevel_upfile_del_all",
|
||||
data: params,
|
||||
success: function(msg) {
|
||||
var dataJson = msg.data;
|
||||
if (msg.result == "ok") {
|
||||
if(type == "shape"){
|
||||
delUpFileOfShape(dataJson.uuid);
|
||||
callback();
|
||||
}
|
||||
$.simpleAlert("删除成功", "ok");
|
||||
callback();
|
||||
} else {
|
||||
$.simpleAlert("删除失败", "error");
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
$.confirm(options);
|
||||
}
|
||||
|
||||
//下载附件
|
||||
function downloadFile(url) {
|
||||
window.location.href = url;
|
||||
|
||||
@ -260,11 +260,12 @@ $(function () {
|
||||
url: "./jd",
|
||||
data: {
|
||||
sid: CLB.sid,
|
||||
cmd: "com.awspaas.user.apps.publish.createProcess",
|
||||
palUUID:ruuid,
|
||||
cmd: "com.actionsoft.apps.coe.pal.publisher.createProcess",
|
||||
processDefId: "obj_fb1c7a54b98b412187388c8bab407362",
|
||||
},
|
||||
success: function (r) {
|
||||
window.open(r.url);
|
||||
window.open(r.data.url);
|
||||
},
|
||||
error: function (r) {
|
||||
}
|
||||
@ -272,6 +273,24 @@ $(function () {
|
||||
/*var url="https://bpm.yili.com:8088/portal/r/w?sid="+$("#sid").val()+"&wsId="+$("#wsId").val()+"&teamId=&clazzName=com.actionsoft.apps.coe.pal.publisher.client.web.ProcessPublishWeb&cmd=com.actionsoft.apps.coe.pal_app_page#/";
|
||||
window.open(url,'fullscreen');*/
|
||||
});
|
||||
|
||||
$("#processTermination").off("click").on("click", function () {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./jd",
|
||||
data: {
|
||||
sid: CLB.sid,
|
||||
palUUID:ruuid,
|
||||
cmd: "com.actionsoft.apps.coe.pal.publisher.createProcess_processTermination",
|
||||
processDefId: "obj_fb1c7a54b98b412187388c8bab407362",
|
||||
},
|
||||
success: function (r) {
|
||||
window.open(r.data.url);
|
||||
},
|
||||
error: function (r) {
|
||||
}
|
||||
});
|
||||
});
|
||||
/**
|
||||
* 流程清单列表按钮
|
||||
*/
|
||||
|
||||
@ -211,11 +211,23 @@
|
||||
background-size: contain;
|
||||
}
|
||||
.ico.quickPublish{
|
||||
width: 40px;
|
||||
width: 20px;
|
||||
background-position: 0px 0px;
|
||||
background: url(../images/quickPublish.png) no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
.ico.fileUpLoad{
|
||||
width: 20px;
|
||||
background-position: 0px 0px;
|
||||
background: url(../images/fileUpLoad.png) no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
.ico.processTermination{
|
||||
width: 20px;
|
||||
background-position: 0px 0px;
|
||||
background: url(../images/feizhi.png) no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.ico.processManifest{
|
||||
background-position: 0px 0px;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 7.6 KiB |
Loading…
Reference in New Issue
Block a user