workflow-editor 0.0.76-up → 0.0.78-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-8a6fc317.js → 401-46aa8f87.js} +1 -1
- package/lib/{404-227d4658.js → 404-d21908be.js} +1 -1
- package/lib/{iframe-page-9716046c.js → iframe-page-3413e730.js} +1 -1
- package/lib/{index-1324bd27.js → index-6277284d.js} +19 -18
- package/lib/{tab-content-iframe-index-a13a5c5b.js → tab-content-iframe-index-451a0695.js} +1 -1
- package/lib/{tab-content-index-a12aa4f9.js → tab-content-index-d0b24ac6.js} +1 -1
- package/lib/{tache-subprocess-history-11ad03fb.js → tache-subprocess-history-3c4f52c1.js} +1 -1
- package/lib/workflow-editor.css +1 -1
- package/lib/workflow-editor.js +1 -1
- package/lib/workflow-editor.umd.cjs +1 -1
- package/package.json +1 -1
- package/packages/workflow-editor/src/properties-editors/common/variables.vue +9 -6
- package/packages/workflow-editor/src/properties-editors/human-task.vue +1 -1
package/package.json
CHANGED
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
export default {
|
|
44
44
|
name: 'Variables',
|
|
45
45
|
props: {
|
|
46
|
-
|
|
46
|
+
modelValue: {
|
|
47
47
|
type: Object,
|
|
48
48
|
default: null
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
data() {
|
|
52
52
|
let variables = []
|
|
53
|
-
if (this.
|
|
53
|
+
if (this.modelValue) {
|
|
54
54
|
// xml中有多个variable时是数组,只有一个variable时是Object
|
|
55
|
-
if (Array.isArray(this.
|
|
56
|
-
variables = this.
|
|
55
|
+
if (Array.isArray(this.modelValue.variable)) {
|
|
56
|
+
variables = this.modelValue.variable
|
|
57
57
|
} else {
|
|
58
|
-
variables.push(this.
|
|
58
|
+
variables.push(this.modelValue.variable)
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
return {
|
|
@@ -74,7 +74,10 @@ export default {
|
|
|
74
74
|
const filteredVariables = this.variables.filter(variable => {
|
|
75
75
|
return variable.name !== '' && variable.value !== ''
|
|
76
76
|
})
|
|
77
|
-
this.$emit('input', {
|
|
77
|
+
// this.$emit('input', {
|
|
78
|
+
// variable: filteredVariables
|
|
79
|
+
// })
|
|
80
|
+
this.$emit('update:modelValue',{
|
|
78
81
|
variable: filteredVariables
|
|
79
82
|
})
|
|
80
83
|
}, {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<events v-model="model.ref.events" />
|
|
46
46
|
</el-tab-pane>
|
|
47
47
|
<el-tab-pane :label="$t('workflowEditor.task.linkVariable')" name="variables">
|
|
48
|
-
<variables
|
|
48
|
+
<variables v-model="model.ref.variables" />
|
|
49
49
|
</el-tab-pane>
|
|
50
50
|
</el-tabs>
|
|
51
51
|
</el-dialog>
|