workflow-editor 0.0.78-up → 0.0.80-up
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{401-46aa8f87.js → 401-d594cba0.js} +1 -1
- package/lib/{404-d21908be.js → 404-c88c55f1.js} +1 -1
- package/lib/{iframe-page-3413e730.js → iframe-page-f8737ba6.js} +1 -1
- package/lib/{index-6277284d.js → index-9b4d762a.js} +21930 -22463
- package/lib/{tab-content-iframe-index-451a0695.js → tab-content-iframe-index-5455fdb0.js} +1 -1
- package/lib/tab-content-index-5d75237c.js +1241 -0
- package/lib/{tache-subprocess-history-3c4f52c1.js → tache-subprocess-history-26084654.js} +1 -1
- package/lib/workflow-editor.css +1 -1
- package/lib/workflow-editor.js +1 -1
- package/lib/workflow-editor.umd.cjs +41 -41
- package/package.json +2 -2
- package/packages/workflow-editor/src/properties-editors/common/task-title.vue +15 -2
- package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +31 -44
- package/src/i18n/langs/cn.js +2 -1
- package/src/i18n/langs/en.js +2 -1
- package/lib/tab-content-index-d0b24ac6.js +0 -484
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow-editor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.80-up",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/workflow-editor.js",
|
|
7
7
|
"scripts": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
19
|
-
"agilebuilder-ui": "1.1.
|
|
19
|
+
"agilebuilder-ui": "1.1.66-sit1",
|
|
20
20
|
"axios": "^1.5.1",
|
|
21
21
|
"element-plus": "^2.4.1",
|
|
22
22
|
"font-awesome": "^4.7.0",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
{{ showText(tag) }}
|
|
12
12
|
</el-tag>
|
|
13
13
|
<el-input
|
|
14
|
-
v-if="inputVisible||
|
|
14
|
+
v-if="inputVisible||isShowAdditionalParam"
|
|
15
15
|
ref="saveTagInput"
|
|
16
16
|
v-model="inputValue"
|
|
17
17
|
class="input-new-tag"
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
<el-button class="button-new-tag" size="small" icon="Search" @click="showFormFields=true">
|
|
27
27
|
{{ $t('workflowEditorMessage.selectField') }}
|
|
28
28
|
</el-button>
|
|
29
|
+
<el-button class="button-new-tag" size="small" icon="EditPen" @click="showAdditionalParam">
|
|
30
|
+
{{ $t('workflowEditorMessage.additionalParam') }}
|
|
31
|
+
</el-button>
|
|
29
32
|
</el-button-group>
|
|
30
33
|
<form-fields v-if="showFormFields" @close="setField" />
|
|
31
34
|
</div>
|
|
@@ -58,7 +61,8 @@ export default {
|
|
|
58
61
|
inputVisible: false,
|
|
59
62
|
showFormFields: false,
|
|
60
63
|
inputValue: '',
|
|
61
|
-
showLabel: null
|
|
64
|
+
showLabel: null,
|
|
65
|
+
isShowAdditionalParam: false
|
|
62
66
|
}
|
|
63
67
|
},
|
|
64
68
|
// watch: {
|
|
@@ -96,17 +100,26 @@ export default {
|
|
|
96
100
|
this.$refs.saveTagInput.focus()
|
|
97
101
|
})
|
|
98
102
|
},
|
|
103
|
+
showAdditionalParam() {
|
|
104
|
+
this.isShowAdditionalParam = true
|
|
105
|
+
this.$nextTick(_ => {
|
|
106
|
+
this.$refs.saveTagInput.focus()
|
|
107
|
+
})
|
|
108
|
+
},
|
|
99
109
|
|
|
100
110
|
handleInputConfirm() {
|
|
101
111
|
let inputValue = this.inputValue
|
|
102
112
|
if (inputValue) {
|
|
103
113
|
if (this.inputVisible) {
|
|
104
114
|
inputValue = '${writeTitle[' + inputValue + ']}'
|
|
115
|
+
} else if(this.isShowAdditionalParam) {
|
|
116
|
+
inputValue = '${request[' + inputValue + ']}'
|
|
105
117
|
}
|
|
106
118
|
this.dynamicTags.push(inputValue)
|
|
107
119
|
this.$emit('update:modelValue', this.dynamicTags.join(''))
|
|
108
120
|
}
|
|
109
121
|
this.inputVisible = false
|
|
122
|
+
this.isShowAdditionalParam = false
|
|
110
123
|
this.inputValue = ''
|
|
111
124
|
},
|
|
112
125
|
getType(tag) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div style="width: 100%">
|
|
3
|
-
<el-row style="padding-bottom: 10px
|
|
3
|
+
<el-row style="padding-bottom: 10px">
|
|
4
4
|
<el-button type="primary" size="small" plain icon="CirclePlus" @click="add">
|
|
5
5
|
{{ $t('workflowEditorPublicModel.add') }}
|
|
6
6
|
</el-button>
|
|
@@ -16,31 +16,17 @@
|
|
|
16
16
|
@selection-change="handleSelectionChange"
|
|
17
17
|
@current-change="handleCurrentChange"
|
|
18
18
|
>
|
|
19
|
-
<el-table-column
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/>
|
|
23
|
-
<el-table-column
|
|
24
|
-
type="index"
|
|
25
|
-
width="50"
|
|
26
|
-
/>
|
|
27
|
-
<el-table-column
|
|
28
|
-
:label="$t('workflowEditor.common.name')"
|
|
29
|
-
width="180"
|
|
30
|
-
>
|
|
19
|
+
<el-table-column type="selection" width="55" />
|
|
20
|
+
<el-table-column type="index" width="50" />
|
|
21
|
+
<el-table-column :label="$t('workflowEditor.common.name')" width="180">
|
|
31
22
|
<template v-slot="scope">
|
|
32
|
-
<span :style="{color:
|
|
23
|
+
<span :style="{ color: scope.row.name && scope.row.name.indexOf('$') === 0 ? '#409EFF' : '' }">{{
|
|
24
|
+
getFieldLabel(scope.row)
|
|
25
|
+
}}</span>
|
|
33
26
|
</template>
|
|
34
27
|
</el-table-column>
|
|
35
|
-
<el-table-column
|
|
36
|
-
|
|
37
|
-
:label="$t('workflowEditor.task.propertyName')"
|
|
38
|
-
width="180"
|
|
39
|
-
/>
|
|
40
|
-
<el-table-column
|
|
41
|
-
prop="constraintRule"
|
|
42
|
-
:label="$t('workflowEditor.task.editingMethod')"
|
|
43
|
-
>
|
|
28
|
+
<el-table-column prop="name" :label="$t('workflowEditor.task.propertyName')" width="180" />
|
|
29
|
+
<el-table-column prop="constraintRule" :label="$t('workflowEditor.task.editingMethod')">
|
|
44
30
|
<template v-slot="scope">
|
|
45
31
|
<el-radio-group v-model="scope.row.constraintRule">
|
|
46
32
|
<el-radio label="REQUIRED">
|
|
@@ -52,23 +38,29 @@
|
|
|
52
38
|
</el-radio-group>
|
|
53
39
|
</template>
|
|
54
40
|
</el-table-column>
|
|
55
|
-
<el-table-column
|
|
56
|
-
prop="condition"
|
|
57
|
-
:label="$t('workflowEditor.task.condition')"
|
|
58
|
-
>
|
|
41
|
+
<el-table-column prop="condition" :label="$t('workflowEditor.task.condition')">
|
|
59
42
|
<template v-slot="scope">
|
|
60
43
|
<el-input
|
|
61
44
|
:value="formatCondition(scope.row.condition)"
|
|
62
45
|
type="textarea"
|
|
63
46
|
autosize
|
|
64
|
-
@
|
|
47
|
+
@click="selectCondition(scope.row)"
|
|
65
48
|
/>
|
|
66
49
|
</template>
|
|
67
50
|
</el-table-column>
|
|
68
51
|
</el-table>
|
|
69
|
-
|
|
70
|
-
<editable-field-selection
|
|
71
|
-
|
|
52
|
+
<!-- 之前是@input事件,会导致字段复选框无法选中 -->
|
|
53
|
+
<editable-field-selection
|
|
54
|
+
v-if="showFieldSelection"
|
|
55
|
+
:disabled-fields="disabledFields"
|
|
56
|
+
@input-value="setSelectedFields"
|
|
57
|
+
@close="showFieldSelection = false"
|
|
58
|
+
/>
|
|
59
|
+
<additional-condition-dialog
|
|
60
|
+
v-if="showAdditionalCondition"
|
|
61
|
+
v-model="currentRow.condition"
|
|
62
|
+
@close="showAdditionalCondition = false"
|
|
63
|
+
/>
|
|
72
64
|
</div>
|
|
73
65
|
</template>
|
|
74
66
|
|
|
@@ -111,11 +103,9 @@ export default {
|
|
|
111
103
|
}
|
|
112
104
|
},
|
|
113
105
|
computed: {
|
|
114
|
-
...mapGetters('wfEditor', [
|
|
115
|
-
'formFieldsWithSub'
|
|
116
|
-
])
|
|
106
|
+
...mapGetters('wfEditor', ['formFieldsWithSub'])
|
|
117
107
|
},
|
|
118
|
-
watch:{
|
|
108
|
+
watch: {
|
|
119
109
|
selectedFields: {
|
|
120
110
|
handler(newValue, oldValue) {
|
|
121
111
|
this.disabledFields = this.getDisabledFields(newValue)
|
|
@@ -129,12 +119,12 @@ export default {
|
|
|
129
119
|
}
|
|
130
120
|
},
|
|
131
121
|
methods: {
|
|
132
|
-
getDisabledFields(feilds){
|
|
122
|
+
getDisabledFields(feilds) {
|
|
133
123
|
if (feilds === null || feilds === undefined) return []
|
|
134
124
|
const result = []
|
|
135
125
|
// value可能是数组或者对象(一个字段时),要分别处理
|
|
136
126
|
if (Array.isArray(feilds)) {
|
|
137
|
-
feilds.map(item => {
|
|
127
|
+
feilds.map((item) => {
|
|
138
128
|
result.push(item.name)
|
|
139
129
|
})
|
|
140
130
|
} else {
|
|
@@ -142,7 +132,6 @@ export default {
|
|
|
142
132
|
}
|
|
143
133
|
|
|
144
134
|
return result
|
|
145
|
-
|
|
146
135
|
},
|
|
147
136
|
handleCurrentChange(val) {
|
|
148
137
|
this.currentRow = val
|
|
@@ -186,9 +175,9 @@ export default {
|
|
|
186
175
|
}
|
|
187
176
|
this.selectedFields = this.selectedFields.concat(fields)
|
|
188
177
|
this.selectRow(this.selectedFields[this.selectedFields.length - 1])
|
|
189
|
-
|
|
178
|
+
// 需要把input改成update:modelValue,否则v-model的属性无法双向绑定
|
|
190
179
|
// this.$emit('input', this.selectedFields)
|
|
191
|
-
|
|
180
|
+
this.$emit('update:modelValue', this.selectedFields)
|
|
192
181
|
},
|
|
193
182
|
formatCondition(value) {
|
|
194
183
|
if (value === '' || !value) return this.$t('workflowEditor.task.nothing')
|
|
@@ -197,7 +186,7 @@ export default {
|
|
|
197
186
|
return displayCondition(conditions)
|
|
198
187
|
},
|
|
199
188
|
getFieldLabel(row) {
|
|
200
|
-
const field = this.formFieldsWithSub.filter(item => {
|
|
189
|
+
const field = this.formFieldsWithSub.filter((item) => {
|
|
201
190
|
return item.name === row.name
|
|
202
191
|
})
|
|
203
192
|
if (field.length > 0) {
|
|
@@ -214,6 +203,4 @@ export default {
|
|
|
214
203
|
}
|
|
215
204
|
</script>
|
|
216
205
|
|
|
217
|
-
<style lang="scss" scoped>
|
|
218
|
-
|
|
219
|
-
</style>
|
|
206
|
+
<style lang="scss" scoped></style>
|
package/src/i18n/langs/cn.js
CHANGED
package/src/i18n/langs/en.js
CHANGED
|
@@ -97,7 +97,8 @@ const en = {
|
|
|
97
97
|
addVersion: 'Add Version',
|
|
98
98
|
pleaseInputCode: 'Please input the code first, and then do the international configuration',
|
|
99
99
|
blankFieldNameOrValue: 'Blank Field Name Or Value',
|
|
100
|
-
enabledSuccessfully: 'Enabled Successfully'
|
|
100
|
+
enabledSuccessfully: 'Enabled Successfully',
|
|
101
|
+
additionalParam: 'Request parameter'
|
|
101
102
|
},
|
|
102
103
|
workflowEditor: {
|
|
103
104
|
// 主页面
|