Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
yecl
wecube
Commits
a90344c5
Commit
a90344c5
authored
4 years ago
by
pobu168
Browse files
Options
Download
Email Patches
Plain Diff
add node new tags
parent
b9adc2c1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
wecube-portal/src/locale/i18n/en-US.json
+3
-1
wecube-portal/src/locale/i18n/en-US.json
wecube-portal/src/locale/i18n/zh-CN.json
+3
-1
wecube-portal/src/locale/i18n/zh-CN.json
wecube-portal/src/pages/collaboration/components/plugin-register.vue
+0
-3
...al/src/pages/collaboration/components/plugin-register.vue
wecube-portal/src/pages/collaboration/workflow-orchestration.vue
+29
-1
...portal/src/pages/collaboration/workflow-orchestration.vue
with
35 additions
and
6 deletions
+35
-6
wecube-portal/src/locale/i18n/en-US.json
+
3
-
1
View file @
a90344c5
...
@@ -453,5 +453,7 @@
...
@@ -453,5 +453,7 @@
"modal_close"
:
"Close"
,
"modal_close"
:
"Close"
,
"reset_password"
:
"Reset Password"
,
"reset_password"
:
"Reset Password"
,
"overview"
:
"Overview"
,
"overview"
:
"Overview"
,
"parameter_configuration"
:
"Parameter Configuration"
"parameter_configuration"
:
"Parameter Configuration"
,
"dynamic_bind"
:
"Dynamic Bind"
,
"pre_check"
:
"Its Dangerous"
}
}
This diff is collapsed.
Click to expand it.
wecube-portal/src/locale/i18n/zh-CN.json
+
3
-
1
View file @
a90344c5
...
@@ -452,5 +452,7 @@
...
@@ -452,5 +452,7 @@
"modal_close"
:
"关闭"
,
"modal_close"
:
"关闭"
,
"reset_password"
:
"重置密码"
,
"reset_password"
:
"重置密码"
,
"overview"
:
"总览"
,
"overview"
:
"总览"
,
"parameter_configuration"
:
"参数配置"
"parameter_configuration"
:
"参数配置"
,
"dynamic_bind"
:
"动态绑定"
,
"pre_check"
:
"高危检测"
}
}
This diff is collapsed.
Click to expand it.
wecube-portal/src/pages/collaboration/components/plugin-register.vue
+
0
-
3
View file @
a90344c5
...
@@ -830,7 +830,6 @@ export default {
...
@@ -830,7 +830,6 @@ export default {
}
}
},
},
async
copyPluginConfigDto
(
id
)
{
async
copyPluginConfigDto
(
id
)
{
console
.
log
(
'
复制
'
)
this
.
newPluginConfig
=
id
this
.
newPluginConfig
=
id
this
.
isAddOrCopy
=
'
copy
'
this
.
isAddOrCopy
=
'
copy
'
...
@@ -847,7 +846,6 @@ export default {
...
@@ -847,7 +846,6 @@ export default {
this
.
$refs
.
registerName
.
focus
()
this
.
$refs
.
registerName
.
focus
()
},
},
async
addPluginConfigDto
(
plugin
)
{
async
addPluginConfigDto
(
plugin
)
{
console
.
log
(
'
新增插件函数
'
)
this
.
newPluginConfig
=
plugin
this
.
newPluginConfig
=
plugin
this
.
isAddOrCopy
=
'
add
'
this
.
isAddOrCopy
=
'
add
'
...
@@ -858,7 +856,6 @@ export default {
...
@@ -858,7 +856,6 @@ export default {
},
},
async
exectAddPluginConfigDto
()
{
async
exectAddPluginConfigDto
()
{
const
id
=
this
.
newPluginConfig
.
pluginConfigDtoList
.
find
(
_
=>
_
.
registerName
===
''
||
_
.
registerName
===
null
).
id
const
id
=
this
.
newPluginConfig
.
pluginConfigDtoList
.
find
(
_
=>
_
.
registerName
===
''
||
_
.
registerName
===
null
).
id
console
.
log
(
id
)
await
this
.
getInterfacesByPluginConfigId
(
id
)
await
this
.
getInterfacesByPluginConfigId
(
id
)
this
.
registerName
=
''
this
.
registerName
=
''
this
.
selectedEntityType
=
''
this
.
selectedEntityType
=
''
...
...
This diff is collapsed.
Click to expand it.
wecube-portal/src/pages/collaboration/workflow-orchestration.vue
+
29
-
1
View file @
a90344c5
...
@@ -164,6 +164,30 @@
...
@@ -164,6 +164,30 @@
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
prop=
"dynamicBind"
>
<label
slot=
"label"
>
{{
$t
(
'
dynamic_bind
'
)
}}
<span
class=
"requires-tip"
>
*
</span>
</label>
<Select
v-model=
"pluginForm.dynamicBind"
>
<Option
v-for=
"item in yOn"
:value=
"item"
:key=
"item"
>
{{
item
}}
</Option>
</Select>
</FormItem>
</Col>
<Col
span=
"8"
>
<FormItem
prop=
"preCheck"
>
<label
slot=
"label"
>
{{
$t
(
'
pre_check
'
)
}}
<span
class=
"requires-tip"
>
*
</span>
</label>
<Select
v-model=
"pluginForm.preCheck"
>
<Option
v-for=
"item in yOn"
:value=
"item"
:key=
"item"
>
{{
item
}}
</Option>
</Select>
</FormItem>
</Col>
</Row>
<hr
style=
"margin-bottom: 8px"
/>
<hr
style=
"margin-bottom: 8px"
/>
<FormItem
<FormItem
:label=
"item.paramName"
:label=
"item.paramName"
...
@@ -302,6 +326,7 @@ export default {
...
@@ -302,6 +326,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
yOn
:
[
'
Y
'
,
'
N
'
],
splitPanal
:
1
,
splitPanal
:
1
,
show
:
false
,
show
:
false
,
taskCategoryList
:
[
taskCategoryList
:
[
...
@@ -343,12 +368,14 @@ export default {
...
@@ -343,12 +368,14 @@ export default {
routineExpressionCache
:
''
,
routineExpressionCache
:
''
,
defaultPluginForm
:
{
defaultPluginForm
:
{
description
:
''
,
description
:
''
,
dynamicBind
:
'
N
'
,
nodeDefId
:
''
,
nodeDefId
:
''
,
nodeId
:
''
,
nodeId
:
''
,
nodeName
:
''
,
nodeName
:
''
,
nodeType
:
''
,
nodeType
:
''
,
orderedNo
:
''
,
orderedNo
:
''
,
paramInfos
:
[],
paramInfos
:
[],
preCheck
:
'
N
'
,
procDefId
:
''
,
procDefId
:
''
,
procDefKey
:
''
,
procDefKey
:
''
,
routineExpression
:
''
,
routineExpression
:
''
,
...
@@ -513,7 +540,6 @@ export default {
...
@@ -513,7 +540,6 @@ export default {
},
},
async
confirmRole
()
{
async
confirmRole
()
{
if
(
this
.
mgmtRolesKeyToFlow
.
length
)
{
if
(
this
.
mgmtRolesKeyToFlow
.
length
)
{
console
.
log
(
this
.
isAdd
)
if
(
this
.
isAdd
)
{
if
(
this
.
isAdd
)
{
this
.
flowRoleManageModal
=
false
this
.
flowRoleManageModal
=
false
}
else
{
}
else
{
...
@@ -848,6 +874,8 @@ export default {
...
@@ -848,6 +874,8 @@ export default {
this
.
currentFlow
.
taskNodeInfos
&&
this
.
currentFlow
.
taskNodeInfos
&&
this
.
currentFlow
.
taskNodeInfos
.
find
(
_
=>
_
.
nodeId
===
this
.
currentNode
.
id
))
||
this
.
currentFlow
.
taskNodeInfos
.
find
(
_
=>
_
.
nodeId
===
this
.
currentNode
.
id
))
||
this
.
prepareDefaultPluginForm
()
this
.
prepareDefaultPluginForm
()
this
.
pluginForm
.
dynamicBind
=
this
.
pluginForm
.
dynamicBind
||
'
N
'
this
.
pluginForm
.
preCheck
=
this
.
pluginForm
.
preCheck
||
'
N
'
// 实体类型条件不带入节点中
// 实体类型条件不带入节点中
let
rootEntity
=
this
.
currentSelectedEntity
.
split
(
'
{
'
)[
0
]
let
rootEntity
=
this
.
currentSelectedEntity
.
split
(
'
{
'
)[
0
]
this
.
pluginForm
.
routineExpression
=
this
.
pluginForm
.
routineExpression
||
rootEntity
this
.
pluginForm
.
routineExpression
=
this
.
pluginForm
.
routineExpression
||
rootEntity
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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