发布过滤控制、组织数据/发布代码打包

This commit is contained in:
zhal 2022-09-02 16:57:38 +08:00
parent 9a8979dea4
commit 10305f2c9d
3 changed files with 10 additions and 0 deletions

View File

@ -1019,6 +1019,10 @@ public class ProcessPublishWeb extends ActionWeb {
// method排序
List<String> methodList = PALMethodCache.getPALMethodList(true);
for (String method : methodList) {
//过滤控制/组织数据
if(method.equals("control") || method.equals("org")){
continue;
}
JSONArray array = getPublishRepositoryJSONArray(repositoryList, method, wsId, profitionIcon, checkbox, checkboxIds);
if (array.size() > 0) {
JSONObject object = new JSONObject();
@ -1888,6 +1892,10 @@ public class ProcessPublishWeb extends ActionWeb {
JSONArray rootArray = new JSONArray();
List<String> methodList = PALMethodCache.getPalMehtodList(teamId, _uc.getUID(), true);
for (String method : methodList) {
//新建发布过滤掉控制/组织类数据
if(method.equals("control") || method.equals("org")){
continue;
}
JSONObject object = new JSONObject();
object.put("id", method);
object.put("name", I18nRes.findValue(CoEConstant.APP_ID, method));
@ -1906,6 +1914,7 @@ public class ProcessPublishWeb extends ActionWeb {
for (PALRepositoryModel verModel : verList) {
if (verModel.isPublish()) {
checkbox = false;
continue;
}
}
if (checkbox) {

View File

@ -749,6 +749,7 @@ function addProcess(type) {
buttons:[
{text:'确定',cls:"blue",handler:function(){
window.$.simpleAlert("请稍等...", "loading");
debugger;
if (type == 'new') {
if (treeCheckedNewArr.length == 0) {
$.simpleAlert('发布流程不能为空');