Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
flowable-engine-fontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王万里
flowable-engine-fontend
Commits
41cc558e
Commit
41cc558e
authored
Aug 23, 2021
by
godlovericea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: btn
parent
c3efd5df
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
202 additions
and
279 deletions
+202
-279
properties-default-controllers.js
editor-app/configuration/properties-default-controllers.js
+3
-5
properties-form-reference-controller.js
...app/configuration/properties-form-reference-controller.js
+37
-32
form-reference-popup.html
...or-app/configuration/properties/form-reference-popup.html
+1
-1
stencil-controller.js
editor-app/stencil-controller.js
+112
-230
toolbar-controller.js
editor-app/toolbar-controller.js
+45
-10
app-cfg.js
scripts/app-cfg.js
+1
-1
url-config.js
scripts/configuration/url-config.js
+3
-0
No files found.
editor-app/configuration/properties-default-controllers.js
View file @
41cc558e
...
...
@@ -24,7 +24,7 @@ window.share && window.share.event.on("editCurrentNodeForm", (params)=> {
})
window
.
share
&&
window
.
share
.
event
.
on
(
"editCurrentNodeId"
,
(
paramsId
)
=>
{
// console.log(
paramsId
)
// console.log(
nodeIdParams, "nodeIdParams---上面"
)
nodeIdParams
=
paramsId
})
...
...
@@ -130,18 +130,16 @@ angular.module('flowableModeler').controller('FlowableTextPropertyPopupCtrl', ['
$scope
.
$hide
();
};
}]);
angular
.
module
(
'flowableModeler'
).
controller
(
'FieldReadConfigPopupCtrl'
,
[
'$rootScope'
,
'$scope'
,
'$http'
,
function
(
$rootScope
,
$scope
,
$http
)
{
window
.
share
&&
window
.
share
.
event
.
on
(
"editCurrentNodeId"
,
(
params
)
=>
{
// console.log(params)
// console.log(params
, "editCurrentNodeId----下面"
)
nodeIdParams
=
params
})
if
(
nodeIdParams
&&
shareformKey
)
{
// console.log("properties-default-control---GetColumnConfig")
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetColumnConfig
(
nodeIdParams
,
shareformKey
))
.
success
((
res
)
=>
{
if
(
res
.
FieldConfigList
&&
res
.
FieldConfigList
.
length
>
0
)
{
var
result
=
[];
...
...
editor-app/configuration/properties-form-reference-controller.js
View file @
41cc558e
...
...
@@ -103,41 +103,46 @@ angular.module('flowableModeler').controller('FlowableFormReferencePopupCtrl',
const
formKey
=
$scope
.
selectedForm
.
TableName
const
nodeId
=
$rootScope
.
currentReadResourceId
||
$rootScope
.
resourceId
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetTableFieldConfig
(
formKey
))
.
success
((
res
)
=>
{
let
formArr
=
[]
const
Values
=
res
.
getMe
[
0
].
Values
const
Groups
=
res
.
getMe
[
0
].
Groups
Values
.
forEach
((
item
)
=>
{
formArr
.
push
({
ActID
:
nodeId
,
Config
:
''
,
FieldCode
:
item
.
FieldName
,
FieldName
:
item
.
FieldName
,
FieldType
:
'string'
,
FormKey
:
formKey
,
IsShow
:
1
,
Type
:
""
,
Unit
:
""
,
IsRequired
:
false
,
IsReadOnly
:
"0"
// console.log("properties-form-reference-controller-----GetTableFieldConfig")
if
(
formKey
)
{
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetTableFieldConfig
(
formKey
))
.
success
((
res
)
=>
{
let
formArr
=
[]
const
Values
=
res
.
getMe
[
0
].
Values
const
Groups
=
res
.
getMe
[
0
].
Groups
Values
.
forEach
((
item
)
=>
{
formArr
.
push
({
ActID
:
nodeId
,
Config
:
''
,
FieldCode
:
item
.
FieldName
,
FieldName
:
item
.
FieldName
,
FieldType
:
'string'
,
FormKey
:
formKey
,
IsShow
:
1
,
Type
:
""
,
Unit
:
""
,
IsRequired
:
false
,
IsReadOnly
:
"0"
})
})
})
var
result
=
[];
var
obj
=
{};
for
(
var
i
=
0
;
i
<
formArr
.
length
;
i
++
){
if
(
!
obj
[
formArr
[
i
].
FieldCode
]){
result
.
push
(
formArr
[
i
]);
obj
[
formArr
[
i
].
FieldCode
]
=
true
;
}
}
$http
({
method
:
'POST'
,
url
:
FLOWABLE
.
APP_URL
.
SaveColumnConfig
(
nodeId
,
decodeURI
(
formKey
)),
data
:
result
})
.
success
((
ret
)
=>
{
if
(
ret
.
statusCode
===
"0000"
)
{
$scope
.
close
();
var
result
=
[];
var
obj
=
{};
for
(
var
i
=
0
;
i
<
formArr
.
length
;
i
++
){
if
(
!
obj
[
formArr
[
i
].
FieldCode
]){
result
.
push
(
formArr
[
i
]);
obj
[
formArr
[
i
].
FieldCode
]
=
true
;
}
}
$http
({
method
:
'POST'
,
url
:
FLOWABLE
.
APP_URL
.
SaveColumnConfig
(
nodeId
,
decodeURI
(
formKey
)),
data
:
result
})
.
success
((
ret
)
=>
{
if
(
ret
.
statusCode
===
"0000"
)
{
$scope
.
close
();
}
})
})
})
}
else
{
$scope
.
close
();
}
})
}
else
{
$scope
.
property
.
value
=
null
;
...
...
editor-app/configuration/properties/form-reference-popup.html
View file @
41cc558e
...
...
@@ -29,7 +29,7 @@
<div
class=
"col-xs-12 editor-item-picker"
>
<div
ng-if=
"!state.loadingForms && !state.formError"
class=
"col-xs-4 editor-item-picker-component"
ng-repeat=
"form in forms"
ng-class=
"{'selected' : form.formId == selectedForm.formId}"
ng-click=
"selectForm(form, $event)"
>
<div
class=
"controls"
style=
"margin-right: 5px;"
>
<input
type=
"checkbox"
value=
"option1"
ng-click=
"selectForm(form, $event)"
ng-checked=
"form.
id == selectedForm.id
"
/>
<input
type=
"checkbox"
value=
"option1"
ng-click=
"selectForm(form, $event)"
ng-checked=
"form.
key == selectedForm.key
"
/>
</div>
<h4>
{{form.name}}
</h4>
<!-- <img ng-src="{{getModelThumbnailUrl(form.id)}}" /> -->
...
...
editor-app/stencil-controller.js
View file @
41cc558e
...
...
@@ -19,14 +19,14 @@ let nodeId = ""
let
selectCurrentNodeId
=
""
angular
.
module
(
'flowableModeler'
)
.
controller
(
'StencilController'
,
[
'$rootScope'
,
'$scope'
,
'$http'
,
'$modal'
,
'$timeout'
,
'$window'
,
'editorManager'
,
function
(
$rootScope
,
$scope
,
$http
,
$modal
,
$timeout
,
$window
,
editorManager
)
{
.
controller
(
'StencilController'
,
[
'$rootScope'
,
'$scope'
,
'$http'
,
'$modal'
,
'$timeout'
,
'$window'
,
'editorManager'
,
'$routeParams'
,
function
(
$rootScope
,
$scope
,
$http
,
$modal
,
$timeout
,
$window
,
editorManager
,
$routeParams
)
{
// Property window toggle state
$scope
.
propertyWindowState
=
{
'collapsed'
:
false
};
// Add reference to global header-config
$scope
.
headerConfig
=
FLOWABLE
.
HEADER_CONFIG
;
$scope
.
headerConfig
=
FLOWABLE
.
HEADER_CONFIG
;
$scope
.
propertyWindowState
.
toggle
=
function
()
{
$scope
.
propertyWindowState
.
collapsed
=
!
$scope
.
propertyWindowState
.
collapsed
;
...
...
@@ -394,245 +394,123 @@ angular.module('flowableModeler')
// console.log("新增节点逻辑")
// console.log(nodeIdList, 'nodeIdList nodeIdList nodeIdList nodeIdList')
window
.
share
&&
window
.
share
.
event
.
on
(
"currentNodeForm"
,
(
params
)
=>
{
// console.log(params)
formKey
=
params
.
name
//表名
// console.log(formKey, "currentNodeForm...currentNodeForm")
nodeIdList
.
push
({
nodeId
:
$rootScope
.
currentReadResourceId
,
formKey
:
formKey
})
if
(
$rootScope
.
currentReadResourceId
&&
formKey
)
{
let
currentObjArr
=
[]
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetTableFieldConfig
(
formKey
))
.
success
((
res
)
=>
{
let
formArr
=
[]
const
Values
=
res
.
getMe
[
0
].
Values
const
Groups
=
res
.
getMe
[
0
].
Groups
Values
.
forEach
((
item
)
=>
{
formArr
.
push
({
ActID
:
$rootScope
.
currentReadResourceId
,
Config
:
''
,
FieldCode
:
item
.
FieldName
,
FieldName
:
item
.
FieldName
,
FieldType
:
'string'
,
FormKey
:
formKey
,
IsShow
:
1
,
Type
:
""
,
Unit
:
""
,
IsRequired
:
false
,
IsReadOnly
:
"0"
})
})
var
result
=
[];
var
obj
=
{};
for
(
var
i
=
0
;
i
<
formArr
.
length
;
i
++
){
if
(
!
obj
[
formArr
[
i
].
FieldCode
]){
result
.
push
(
formArr
[
i
]);
obj
[
formArr
[
i
].
FieldCode
]
=
true
;
}
}
// if ($rootScope.currentReadResourceId && formKey) {
// let currentObjArr = []
// console.log("新增节点逻辑")
// console.log("stencil-controller-----GetTableFieldConfig")
// $http.get(FLOWABLE.APP_URL.GetTableFieldConfig(formKey))
// .success((res)=>{
// let formArr = []
// const Values = res.getMe[0].Values
// const Groups = res.getMe[0].Groups
// Values.forEach((item)=>{
// formArr.push({
// ActID: $rootScope.currentReadResourceId,
// Config: '',
// FieldCode: item.FieldName,
// FieldName: item.FieldName,
// FieldType: 'string',
// FormKey: formKey,
// IsShow: 1,
// Type:"",
// Unit:"",
// IsRequired: false,
// IsReadOnly: "0"
// })
// })
// var result = [];
// var obj = {};
// for(var i =0; i<formArr.length; i++){
// if(!obj[formArr[i].FieldCode]){
// result.push(formArr[i]);
// obj[formArr[i].FieldCode] = true;
// }
// }
let
fieldTitle
=
{
description
:
''
,
hasReadWriteMode
:
false
,
hidden
:
false
,
mode
:
"read"
,
readModeTemplateUrl
:
""
,
readonly
:
false
,
title
:
'表单字段'
,
type
:
"string"
,
value
:
true
,
writeModeTemplateUrl
:
""
,
}
const
extraFormTitle
=
{
description
:
''
,
hasReadWriteMode
:
false
,
hidden
:
false
,
mode
:
"read"
,
readModeTemplateUrl
:
""
,
readonly
:
false
,
title
:
'外接表单'
,
type
:
"string"
,
value
:
true
,
writeModeTemplateUrl
:
""
,
}
const
extraFormObj
=
{
description
:
''
,
hasReadWriteMode
:
false
,
hidden
:
false
,
key
:
key
,
mode
:
"read"
,
readModeTemplateUrl
:
"editor-app/configuration/properties/extra-form-read-config.html?version="
+
(
new
Date
()).
getTime
(),
readonly
:
false
,
title
:
''
,
type
:
"extraForm"
,
value
:
true
,
properties
:
[
'product'
],
writeModeTemplateUrl
:
"editor-app/configuration/properties/extra-form-write-config.html?version="
+
(
new
Date
()).
getTime
(),
}
currentObjArr
.
push
(
fieldTitle
)
Groups
.
forEach
((
item
)
=>
{
const
currentObj
=
{
description
:
''
,
hasReadWriteMode
:
false
,
hidden
:
false
,
key
:
key
,
mode
:
"read"
,
readModeTemplateUrl
:
"editor-app/configuration/properties/form-field-read-config.html?version="
+
(
new
Date
()).
getTime
(),
readonly
:
false
,
title
:
item
.
GroupName
,
type
:
"cusFieldConfig"
,
value
:
true
,
properties
:
generatorArr
(
item
),
writeModeTemplateUrl
:
"editor-app/configuration/properties/form-field-write-config.html?version="
+
(
new
Date
()).
getTime
(),
}
currentObjArr
.
push
(
currentObj
)
})
// currentObjArr.push(extraFormTitle)
// currentObjArr.push(extraFormObj)
// console.log(currentObjArr)
//
let fieldTitle = {
//
description: '',
//
hasReadWriteMode: false,
//
hidden: false,
//
mode: "read",
//
readModeTemplateUrl: "",
//
readonly: false,
//
title: '表单字段',
//
type: "string",
//
value: true,
//
writeModeTemplateUrl: "",
//
}
//
const extraFormTitle = {
//
description: '',
//
hasReadWriteMode: false,
//
hidden: false,
//
mode: "read",
//
readModeTemplateUrl: "",
//
readonly: false,
//
title: '外接表单',
//
type: "string",
//
value: true,
//
writeModeTemplateUrl: "",
//
}
//
const extraFormObj = {
//
description: '',
//
hasReadWriteMode: false,
//
hidden: false,
//
key: key,
//
mode: "read",
//
readModeTemplateUrl: "editor-app/configuration/properties/extra-form-read-config.html?version=" + (new Date()).getTime(),
//
readonly: false,
//
title: '',
//
type: "extraForm",
//
value: true,
//
properties: ['product'],
//
writeModeTemplateUrl: "editor-app/configuration/properties/extra-form-write-config.html?version=" + (new Date()).getTime(),
//
}
//
currentObjArr.push(fieldTitle)
//
Groups.forEach((item)=>{
//
const currentObj = {
//
description: '',
//
hasReadWriteMode: false,
//
hidden: false,
//
key: key,
//
mode: "read",
//
readModeTemplateUrl: "editor-app/configuration/properties/form-field-read-config.html?version=" + (new Date()).getTime(),
//
readonly: false,
//
title: item.GroupName,
//
type: "cusFieldConfig",
//
value: true,
//
properties: generatorArr(item),
//
writeModeTemplateUrl: "editor-app/configuration/properties/form-field-write-config.html?version=" + (new Date()).getTime(),
//
}
//
currentObjArr.push(currentObj)
//
})
//
// currentObjArr.push(extraFormTitle)
//
// currentObjArr.push(extraFormObj)
//
// console.log(currentObjArr)
$rootScope
.
formKeyList
=
selectedItem
.
properties
let
preArr
=
[]
let
nextArr
=
[]
//
$rootScope.formKeyList = selectedItem.properties
//
let preArr = []
//
let nextArr = []
if
(
$rootScope
.
formKeyList
.
length
>
14
&&
$rootScope
.
formKeyList
[
14
].
key
===
"oryx-formreference"
)
{
preArr
=
$rootScope
.
formKeyList
.
slice
(
0
,
15
)
nextArr
=
$rootScope
.
formKeyList
.
slice
(
15
)
}
//
if ($rootScope.formKeyList.length > 14 && $rootScope.formKeyList[14].key === "oryx-formreference") {
//
preArr = $rootScope.formKeyList.slice(0,15)
//
nextArr = $rootScope.formKeyList.slice(15)
//
}
selectedItem
.
properties
=
preArr
.
concat
(
currentObjArr
).
concat
(
nextArr
)
//
selectedItem.properties = preArr.concat(currentObjArr).concat(nextArr)
// console.log(selectedItem.properties, "selectedItem.properties")
// const Values = res.getMe[0].Values
})
// 之前的逻辑
// $http.get(FLOWABLE.APP_URL.GetColumnConfig($rootScope.resourceId, formKey))
// .success((res)=>{
// // console.log("新增节点逻辑,新增success、")
// let FormJson = JSON.parse(res.FormJson)
// const formJsonProperties = FormJson.schema.properties
// let formArr = []
// for (key in formJsonProperties) {
// for (let ckey in formJsonProperties[key].properties) {
// let params = formJsonProperties[key].properties[ckey]
// formArr.push({
// ActID: $rootScope.currentReadResourceId,
// Config: '',
// FieldCode: ckey,
// FieldName: params.title,
// FieldType: params.type,
// FormKey: formKey,
// IsShow: 1,
// Type:"",
// Unit:"",
// IsRequired: false
// })
// }
// }
// var result = [];
// var obj = {};
// for(var i =0; i<formArr.length; i++){
// if(!obj[formArr[i].FieldCode]){
// result.push(formArr[i]);
// obj[formArr[i].FieldCode] = true;
// }
// }
// $http({method: 'POST', url: FLOWABLE.APP_URL.SaveColumnConfig($rootScope.currentReadResourceId, decodeURI(formKey)), data: result})
// .success(function(res) {
// // console.log(res)
// })
// let fatherObj = FormJson.schema.properties
// function generatorArr(objCollections) {
// let arr = []
// for(let key in objCollections) {
// arr.push({...objCollections[key],key})
// }
// return arr
// }
// let fieldTitle = {
// description: '',
// hasReadWriteMode: false,
// hidden: false,
// mode: "read",
// readModeTemplateUrl: "",
// readonly: false,
// title: '表单字段',
// type: "string",
// value: true,
// writeModeTemplateUrl: "",
// }
// const extraFormTitle = {
// description: '',
// hasReadWriteMode: false,
// hidden: false,
// mode: "read",
// readModeTemplateUrl: "",
// readonly: false,
// title: '外接表单',
// type: "string",
// value: true,
// writeModeTemplateUrl: "",
// }
// const extraFormObj = {
// description: '',
// hasReadWriteMode: false,
// hidden: false,
// key: key,
// mode: "read",
// readModeTemplateUrl: "editor-app/configuration/properties/extra-form-read-config.html?version=" + (new Date()).getTime(),
// readonly: false,
// title: '',
// type: "extraForm",
// value: true,
// properties: ['product'],
// writeModeTemplateUrl: "editor-app/configuration/properties/extra-form-write-config.html?version=" + (new Date()).getTime(),
// }
// currentObjArr.push(fieldTitle)
// for(let key in fatherObj) {
// const currentObj = {
// description: '',
// hasReadWriteMode: false,
// hidden: false,
// key: key,
// mode: "read",
// readModeTemplateUrl: "editor-app/configuration/properties/form-field-read-config.html?version=" + (new Date()).getTime(),
// readonly: false,
// title: fatherObj[key].title,
// type: "cusFieldConfig",
// value: true,
// properties: generatorArr(fatherObj[key].properties),
// writeModeTemplateUrl: "editor-app/configuration/properties/form-field-write-config.html?version=" + (new Date()).getTime(),
// }
// currentObjArr.push(currentObj)
// }
// currentObjArr.push(extraFormTitle)
// currentObjArr.push(extraFormObj)
// console.log(currentObjArr)
// $rootScope.formKeyList = selectedItem.properties
// let preArr = []
// let nextArr = []
// // console.log(selectedItem.properties, "selectedItem.properties")
// if ($rootScope.formKeyList.length > 14 && $rootScope.formKeyList[14].key === "oryx-formreference") {
// preArr = $rootScope.formKeyList.slice(0,15)
// nextArr = $rootScope.formKeyList.slice(15)
// }
// selectedItem.properties = preArr.concat(currentObjArr).concat(nextArr)
// console.log(selectedItem.properties, "selectedItem.properties")
// })
}
// // const Values = res.getMe[0].Values
// })
// }
})
// / 以下处理新增编辑逻辑
...
...
@@ -643,6 +521,8 @@ angular.module('flowableModeler')
let
currentObjArr
=
[]
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetTableFieldConfig
(
clickedShape
))
.
success
((
response
)
=>
{
// console.log("以下处理新增编辑逻辑")
// console.log("stencil-control---GetColumnConfig")
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetColumnConfig
(
selectCurrentNodeId
,
clickedShape
))
.
success
((
res
)
=>
{
let
currentAddGroups
=
response
.
getMe
[
0
].
Groups
...
...
@@ -767,9 +647,11 @@ angular.module('flowableModeler')
window
.
share
&&
window
.
share
.
event
.
emit
(
"editCurrentNodeId"
,
params
);
let
currentObjArr
=
[]
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetTableFieldConfig
(
clickedShape
))
.
success
((
response
)
=>
{
// console.log("以下处理保存之后得读取数值")
// console.log("stencil-control---GetColumnConfig")
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetColumnConfig
(
params
,
clickedShape
))
.
success
((
res
)
=>
{
let
currentGroups
=
response
.
getMe
[
0
].
Groups
...
...
editor-app/toolbar-controller.js
View file @
41cc558e
...
...
@@ -52,18 +52,53 @@ angular.module('flowableModeler')
// Click handler for toolbar buttons
$scope
.
toolbarButtonClicked
=
function
(
buttonIndex
)
{
// buttonIndex===0是保存按钮
if
(
buttonIndex
===
0
)
{
$http
.
get
(
FLOWABLE
.
APP_URL
.
checkDeployState
(
editorManager
.
modelId
))
.
success
((
response
)
=>
{
// console.log(response, "response")
if
(
response
.
statusCode
===
"0000"
)
{
// Default behaviour
var
buttonClicked
=
$scope
.
items
[
buttonIndex
];
var
services
=
{
'$scope'
:
$scope
,
'$rootScope'
:
$rootScope
,
'$http'
:
$http
,
'$modal'
:
$modal
,
'$q'
:
$q
,
'$translate'
:
$translate
,
'editorManager'
:
editorManager
};
executeFunctionByName
(
buttonClicked
.
action
,
window
,
services
);
// Other events
var
event
=
{
type
:
FLOWABLE
.
eventBus
.
EVENT_TYPE_TOOLBAR_BUTTON_CLICKED
,
toolbarItem
:
buttonClicked
};
FLOWABLE
.
eventBus
.
dispatch
(
event
.
type
,
event
);
}
else
if
(
response
.
statusCode
===
"1001"
){
window
.
alert
(
response
.
errMsg
)
}
else
{
window
.
alert
(
"保存失败!流程出错或者系统出错,请联系管理员。"
)
}
})
}
else
{
// Default behaviour
var
buttonClicked
=
$scope
.
items
[
buttonIndex
];
var
services
=
{
'$scope'
:
$scope
,
'$rootScope'
:
$rootScope
,
'$http'
:
$http
,
'$modal'
:
$modal
,
'$q'
:
$q
,
'$translate'
:
$translate
,
'editorManager'
:
editorManager
};
executeFunctionByName
(
buttonClicked
.
action
,
window
,
services
);
// Other events
var
event
=
{
type
:
FLOWABLE
.
eventBus
.
EVENT_TYPE_TOOLBAR_BUTTON_CLICKED
,
toolbarItem
:
buttonClicked
};
FLOWABLE
.
eventBus
.
dispatch
(
event
.
type
,
event
);
}
// Default behaviour
var
buttonClicked
=
$scope
.
items
[
buttonIndex
];
var
services
=
{
'$scope'
:
$scope
,
'$rootScope'
:
$rootScope
,
'$http'
:
$http
,
'$modal'
:
$modal
,
'$q'
:
$q
,
'$translate'
:
$translate
,
'editorManager'
:
editorManager
};
executeFunctionByName
(
buttonClicked
.
action
,
window
,
services
);
// var buttonClicked = $scope.items[buttonIndex];
// var services = { '$scope' : $scope, '$rootScope' : $rootScope, '$http' : $http, '$modal' : $modal, '$q' : $q, '$translate' : $translate, 'editorManager' : editorManager};
// executeFunctionByName(buttonClicked.action, window, services);
// Other events
var
event
=
{
type
:
FLOWABLE
.
eventBus
.
EVENT_TYPE_TOOLBAR_BUTTON_CLICKED
,
toolbarItem
:
buttonClicked
};
FLOWABLE
.
eventBus
.
dispatch
(
event
.
type
,
event
);
//
//
Other events
//
var event = {
//
type : FLOWABLE.eventBus.EVENT_TYPE_TOOLBAR_BUTTON_CLICKED,
//
toolbarItem : buttonClicked
//
};
//
FLOWABLE.eventBus.dispatch(event.type, event);
};
// Click handler for secondary toolbar buttons
...
...
scripts/app-cfg.js
View file @
41cc558e
...
...
@@ -19,7 +19,7 @@ var FLOWABLE = FLOWABLE || {};
var
pathname
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
modeler
\/?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
console
.
log
(
pathname
)
//
console.log(pathname)
// FLOWABLE.CONFIG = {
// 'onPremise' : true,
...
...
scripts/configuration/url-config.js
View file @
41cc558e
...
...
@@ -196,6 +196,9 @@ FLOWABLE.APP_URL = {
/* FORM MODEL URLS */
// 获取模型列表
checkDeployState
:
function
(
modelId
)
{
return
`
${
window
.
API_ADDRESS
}
/CheckDeployState?modelId=
${
modelId
}
`
;
},
getFormModelsUrl
:
function
(
FormName
)
{
return
`
${
window
.
API_ADDRESS
}
/GetFormListInfo_WithoutForm?FormName=
${
FormName
}
&pageIndex=1&pageSize=999&sortFields=id`
;
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment