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
5fc1b413
Commit
5fc1b413
authored
May 31, 2021
by
王万里
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 配置视图信息
parent
e7677e0d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
26 deletions
+77
-26
properties-default-controllers.js
editor-app/configuration/properties-default-controllers.js
+39
-18
extra-form-read-config.html
...-app/configuration/properties/extra-form-read-config.html
+14
-4
extra-form-write-config.html
...app/configuration/properties/extra-form-write-config.html
+14
-4
url-config.js
scripts/configuration/url-config.js
+10
-0
No files found.
editor-app/configuration/properties-default-controllers.js
View file @
5fc1b413
...
...
@@ -219,24 +219,44 @@ angular.module('flowableModeler').controller('FieldTextPopup', ['$rootScope','$s
}]);
angular
.
module
(
'flowableModeler'
).
controller
(
'ExtraFormReadConfig'
,
[
'$rootScope'
,
'$scope'
,
'$http'
,
function
(
$rootScope
,
$scope
,
$http
)
{
$scope
.
isShow
=
true
$scope
.
componentList
=
[{
name
:
'产品信息'
,
component
:
'ProductInfo'
,
defaultChecked
:
false
},
{
name
:
'客户信息'
,
component
:
'BusInfo'
,
defaultChecked
:
false
},
{
name
:
'商机信息'
,
component
:
'BusInfo'
,
defaultChecked
:
false
}]
angular
.
module
(
'flowableModeler'
).
controller
(
'ExtraFormReadConfig'
,
[
'$rootScope'
,
'$scope'
,
'$http'
,
function
(
$rootScope
,
$scope
,
$http
)
{
let
componentList
=
[]
let
arr
=
[]
let
chArr
=
[]
console
.
log
(
nodeIdParams
,
"nodeIdParams"
)
if
(
nodeIdParams
)
{
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetAssemblyModel
(
''
))
.
success
((
res
)
=>
{
res
.
getMe
.
forEach
((
item
)
=>
{
item
.
defaultChecked
=
false
})
arr
=
res
.
getMe
$http
.
get
(
FLOWABLE
.
APP_URL
.
GetAssemblyModel
(
nodeIdParams
))
.
success
((
response
)
=>
{
chArr
=
response
.
getMe
arr
.
forEach
((
item
)
=>
{
chArr
.
forEach
(
cItem
=>
{
if
(
item
.
AssemblyName
===
cItem
.
AssemblyName
)
{
item
.
defaultChecked
=
true
}
})
})
componentList
=
arr
$scope
.
componentList
=
componentList
console
.
log
(
$scope
.
componentList
,
'$scope.componentList'
)
})
})
}
$scope
.
changeValue
=
function
(
params
)
{
console
.
log
(
params
)
let
OperType
=
0
if
(
params
.
defaultChecked
)
{
OperType
=
1
}
$http
.
get
(
FLOWABLE
.
APP_URL
.
SaveAssemblyConfig
(
nodeIdParams
,
params
.
AssemblyName
,
OperType
))
.
success
(
res
=>
{
console
.
log
(
res
)
})
}
}]);
\ No newline at end of file
editor-app/configuration/properties/extra-form-read-config.html
View file @
5fc1b413
<div
ng-controller=
"ExtraFormReadConfig"
>
<table
class=
"table"
ng-if=
"isShow"
>
<table
class=
"table"
>
<tr>
<th
>
显示
</th>
<th
style=
"width: 10%;"
>
</th>
<th>
外接表名称
</th>
<th>
描述
</th>
</tr>
<tr
ng-repeat=
"child in componentList"
>
<td
style=
"width: 20px;"
>
<td>
<input
type=
"checkbox"
ng-model=
"child.defaultChecked"
ng-change=
"changeValue(child)"
/>
</td>
<td
class=
"active"
style=
"width: 80px;"
title=
"{{child.name}}"
>
{{child.name}}
</td>
<td
class=
"active"
style=
"max-width: 110px;"
title=
"{{child.AssemblyName}}"
>
<p
style=
"margin: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
>
{{child.AssemblyName}}
</p>
</td>
<td
class=
"active"
style=
"max-width: 150px;"
title=
"{{child.Describe}}"
>
<p
style=
"margin: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
>
{{child.Describe}}
</p>
</td>
</tr>
</table>
</div>
editor-app/configuration/properties/extra-form-write-config.html
View file @
5fc1b413
<div
ng-controller=
"ExtraFormReadConfig"
>
<table
class=
"table"
ng-if=
"isShow"
>
<table
class=
"table"
>
<tr>
<th
>
显示
</th>
<th
style=
"width: 10%;"
>
</th>
<th>
外接表名称
</th>
<th>
描述
</th>
</tr>
<tr
ng-repeat=
"child in componentList"
>
<td
style=
"width: 20px;"
>
<td>
<input
type=
"checkbox"
ng-model=
"child.defaultChecked"
ng-change=
"changeValue(child)"
/>
</td>
<td
class=
"active"
style=
"width: 80px;"
title=
"{{child.name}}"
>
{{child.name}}
</td>
<td
class=
"active"
style=
"max-width: 110px;"
title=
"{{child.AssemblyName}}"
>
<p
style=
"margin: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
>
{{child.AssemblyName}}
</p>
</td>
<td
class=
"active"
style=
"max-width: 150px;"
title=
"{{child.Describe}}"
>
<p
style=
"margin: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
>
{{child.Describe}}
</p>
</td>
</tr>
</table>
</div>
scripts/configuration/url-config.js
View file @
5fc1b413
...
...
@@ -222,6 +222,16 @@ FLOWABLE.APP_URL = {
return
`
${
window
.
API_ADDRESS
}
/getUserListForRole?_version=9999`
},
// 节点中组件设置接口
SaveAssemblyConfig
:
function
(
ACTID
,
ASSEMBLYNAME
,
OPERTYPE
)
{
return
`
${
window
.
API_ADDRESS
}
/SaveAssemblyConfig?ActID=
${
ACTID
}
&AssemblyName=
${
ASSEMBLYNAME
}
&OperType=
${
OPERTYPE
}
`
},
// 根据节点ID查询组件接口
GetAssemblyModel
:
function
(
ACTID
)
{
return
`
${
window
.
API_ADDRESS
}
/GetAssemblyModel?AssemblyName=&pageIndex=1&pageSize=1000&sortFields=&direction=&ActID=
${
ACTID
}
`
},
getFormModelValuesUrl
:
function
(
query
)
{
return
FLOWABLE
.
CONFIG
.
contextModelerRestRoot
+
'/rest/form-models/values?'
+
query
;
},
...
...
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