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
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
7 deletions
+48
-7
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
+5
-0
form-reference-popup.html
...or-app/configuration/properties/form-reference-popup.html
+1
-1
stencil-controller.js
editor-app/stencil-controller.js
+0
-0
toolbar-controller.js
editor-app/toolbar-controller.js
+35
-0
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)=> {
...
@@ -24,7 +24,7 @@ window.share && window.share.event.on("editCurrentNodeForm", (params)=> {
})
})
window
.
share
&&
window
.
share
.
event
.
on
(
"editCurrentNodeId"
,
(
paramsId
)
=>
{
window
.
share
&&
window
.
share
.
event
.
on
(
"editCurrentNodeId"
,
(
paramsId
)
=>
{
// console.log(
paramsId
)
// console.log(
nodeIdParams, "nodeIdParams---上面"
)
nodeIdParams
=
paramsId
nodeIdParams
=
paramsId
})
})
...
@@ -130,18 +130,16 @@ angular.module('flowableModeler').controller('FlowableTextPropertyPopupCtrl', ['
...
@@ -130,18 +130,16 @@ angular.module('flowableModeler').controller('FlowableTextPropertyPopupCtrl', ['
$scope
.
$hide
();
$scope
.
$hide
();
};
};
}]);
}]);
angular
.
module
(
'flowableModeler'
).
controller
(
'FieldReadConfigPopupCtrl'
,
[
'$rootScope'
,
'$scope'
,
'$http'
,
function
(
$rootScope
,
$scope
,
$http
)
{
angular
.
module
(
'flowableModeler'
).
controller
(
'FieldReadConfigPopupCtrl'
,
[
'$rootScope'
,
'$scope'
,
'$http'
,
function
(
$rootScope
,
$scope
,
$http
)
{
window
.
share
&&
window
.
share
.
event
.
on
(
"editCurrentNodeId"
,
(
params
)
=>
{
window
.
share
&&
window
.
share
.
event
.
on
(
"editCurrentNodeId"
,
(
params
)
=>
{
// console.log(params)
// console.log(params
, "editCurrentNodeId----下面"
)
nodeIdParams
=
params
nodeIdParams
=
params
})
})
if
(
nodeIdParams
&&
shareformKey
)
{
if
(
nodeIdParams
&&
shareformKey
)
{
// console.log("properties-default-control---GetColumnConfig")
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetColumnConfig
(
nodeIdParams
,
shareformKey
))
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetColumnConfig
(
nodeIdParams
,
shareformKey
))
.
success
((
res
)
=>
{
.
success
((
res
)
=>
{
if
(
res
.
FieldConfigList
&&
res
.
FieldConfigList
.
length
>
0
)
{
if
(
res
.
FieldConfigList
&&
res
.
FieldConfigList
.
length
>
0
)
{
var
result
=
[];
var
result
=
[];
...
...
editor-app/configuration/properties-form-reference-controller.js
View file @
41cc558e
...
@@ -103,6 +103,8 @@ angular.module('flowableModeler').controller('FlowableFormReferencePopupCtrl',
...
@@ -103,6 +103,8 @@ angular.module('flowableModeler').controller('FlowableFormReferencePopupCtrl',
const
formKey
=
$scope
.
selectedForm
.
TableName
const
formKey
=
$scope
.
selectedForm
.
TableName
const
nodeId
=
$rootScope
.
currentReadResourceId
||
$rootScope
.
resourceId
const
nodeId
=
$rootScope
.
currentReadResourceId
||
$rootScope
.
resourceId
// console.log("properties-form-reference-controller-----GetTableFieldConfig")
if
(
formKey
)
{
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetTableFieldConfig
(
formKey
))
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetTableFieldConfig
(
formKey
))
.
success
((
res
)
=>
{
.
success
((
res
)
=>
{
let
formArr
=
[]
let
formArr
=
[]
...
@@ -138,6 +140,9 @@ angular.module('flowableModeler').controller('FlowableFormReferencePopupCtrl',
...
@@ -138,6 +140,9 @@ angular.module('flowableModeler').controller('FlowableFormReferencePopupCtrl',
}
}
})
})
})
})
}
else
{
$scope
.
close
();
}
})
})
}
else
{
}
else
{
$scope
.
property
.
value
=
null
;
$scope
.
property
.
value
=
null
;
...
...
editor-app/configuration/properties/form-reference-popup.html
View file @
41cc558e
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<div
class=
"col-xs-12 editor-item-picker"
>
<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
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;"
>
<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>
</div>
<h4>
{{form.name}}
</h4>
<h4>
{{form.name}}
</h4>
<!-- <img ng-src="{{getModelThumbnailUrl(form.id)}}" /> -->
<!-- <img ng-src="{{getModelThumbnailUrl(form.id)}}" /> -->
...
...
editor-app/stencil-controller.js
View file @
41cc558e
This diff is collapsed.
Click to expand it.
editor-app/toolbar-controller.js
View file @
41cc558e
...
@@ -52,7 +52,30 @@ angular.module('flowableModeler')
...
@@ -52,7 +52,30 @@ angular.module('flowableModeler')
// Click handler for toolbar buttons
// Click handler for toolbar buttons
$scope
.
toolbarButtonClicked
=
function
(
buttonIndex
)
{
$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
// Default behaviour
var
buttonClicked
=
$scope
.
items
[
buttonIndex
];
var
buttonClicked
=
$scope
.
items
[
buttonIndex
];
var
services
=
{
'$scope'
:
$scope
,
'$rootScope'
:
$rootScope
,
'$http'
:
$http
,
'$modal'
:
$modal
,
'$q'
:
$q
,
'$translate'
:
$translate
,
'editorManager'
:
editorManager
};
var
services
=
{
'$scope'
:
$scope
,
'$rootScope'
:
$rootScope
,
'$http'
:
$http
,
'$modal'
:
$modal
,
'$q'
:
$q
,
'$translate'
:
$translate
,
'editorManager'
:
editorManager
};
...
@@ -64,6 +87,18 @@ angular.module('flowableModeler')
...
@@ -64,6 +87,18 @@ angular.module('flowableModeler')
toolbarItem
:
buttonClicked
toolbarItem
:
buttonClicked
};
};
FLOWABLE
.
eventBus
.
dispatch
(
event
.
type
,
event
);
FLOWABLE
.
eventBus
.
dispatch
(
event
.
type
,
event
);
}
// 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);
};
};
// Click handler for secondary toolbar buttons
// Click handler for secondary toolbar buttons
...
...
scripts/app-cfg.js
View file @
41cc558e
...
@@ -19,7 +19,7 @@ var FLOWABLE = FLOWABLE || {};
...
@@ -19,7 +19,7 @@ var FLOWABLE = FLOWABLE || {};
var
pathname
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
modeler
\/?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
var
pathname
=
window
.
location
.
pathname
.
replace
(
/^
(\/[^\/]
*
)(\/
.*
)?
modeler
\/?
$/
,
'$1'
).
replace
(
/
\/
$/
,
''
);
console
.
log
(
pathname
)
//
console.log(pathname)
// FLOWABLE.CONFIG = {
// FLOWABLE.CONFIG = {
// 'onPremise' : true,
// 'onPremise' : true,
...
...
scripts/configuration/url-config.js
View file @
41cc558e
...
@@ -196,6 +196,9 @@ FLOWABLE.APP_URL = {
...
@@ -196,6 +196,9 @@ FLOWABLE.APP_URL = {
/* FORM MODEL URLS */
/* FORM MODEL URLS */
// 获取模型列表
// 获取模型列表
checkDeployState
:
function
(
modelId
)
{
return
`
${
window
.
API_ADDRESS
}
/CheckDeployState?modelId=
${
modelId
}
`
;
},
getFormModelsUrl
:
function
(
FormName
)
{
getFormModelsUrl
:
function
(
FormName
)
{
return
`
${
window
.
API_ADDRESS
}
/GetFormListInfo_WithoutForm?FormName=
${
FormName
}
&pageIndex=1&pageSize=999&sortFields=id`
;
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