Commit a90344c5 authored by pobu168's avatar pobu168
Browse files

add node new tags

parent b9adc2c1
Showing with 35 additions and 6 deletions
+35 -6
...@@ -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"
} }
...@@ -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": "高危检测"
} }
...@@ -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 = ''
......
...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment