workflow-editor 0.9.68-boe1 → 0.9.68-boe4
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/workflow-editor.css +1 -1
- package/lib/workflow-editor.umd.min.js +4 -4
- package/package.json +2 -2
- package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +20 -10
- package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +32 -7
- package/packages/workflow-editor/src/properties-editors/human-task.vue +1 -1
- package/packages/workflow-editor/src/workflow-editor.vue +1 -1
- package/src/i18n/langs/cn.js +2 -1
- package/src/i18n/langs/en.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow-editor",
|
|
3
|
-
"version": "0.9.68-
|
|
3
|
+
"version": "0.9.68-boe4",
|
|
4
4
|
"description": "流程编辑器",
|
|
5
5
|
"main": "lib/workflow-editor.umd.min.js",
|
|
6
6
|
"private": false,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"element-ui": "2.15.3",
|
|
34
34
|
"eslint": "5.16.0",
|
|
35
35
|
"eslint-plugin-vue": "5.2.2",
|
|
36
|
-
"imatrix-ui": "2.
|
|
36
|
+
"imatrix-ui": "2.8.24",
|
|
37
37
|
"node-sass": "4.12.0",
|
|
38
38
|
"nprogress": "^0.2.0",
|
|
39
39
|
"sass-loader": "^7.1.0",
|
package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js
CHANGED
|
@@ -124,52 +124,62 @@ export const standardFields = [
|
|
|
124
124
|
{
|
|
125
125
|
name: '${countersignatureDisagreeCount}',
|
|
126
126
|
label: getI18n().t('workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature'),
|
|
127
|
-
orgType: 'other'
|
|
127
|
+
orgType: 'other',
|
|
128
|
+
dataType: 'INTEGER'
|
|
128
129
|
},
|
|
129
130
|
{
|
|
130
131
|
name: '${countersignatureAgreeCount}',
|
|
131
132
|
label: getI18n().t('workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel'),
|
|
132
|
-
orgType: 'other'
|
|
133
|
+
orgType: 'other',
|
|
134
|
+
dataType: 'INTEGER'
|
|
133
135
|
},
|
|
134
136
|
{
|
|
135
137
|
name: '${countersignatureDisagreePercentage}',
|
|
136
138
|
label: getI18n().t('workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature'),
|
|
137
|
-
orgType: 'other'
|
|
139
|
+
orgType: 'other',
|
|
140
|
+
dataType: 'INTEGER'
|
|
138
141
|
},
|
|
139
142
|
{
|
|
140
143
|
name: '${countersignatureAgreePercentage}',
|
|
141
144
|
label: getI18n().t('workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel'),
|
|
142
|
-
orgType: 'other'
|
|
145
|
+
orgType: 'other',
|
|
146
|
+
dataType: 'INTEGER'
|
|
143
147
|
},
|
|
144
148
|
{
|
|
145
149
|
name: '${abstentionPercentage}',
|
|
146
150
|
label: getI18n().t('workflowEditor.process.percentageOfAbstentions'),
|
|
147
|
-
orgType: 'other'
|
|
151
|
+
orgType: 'other',
|
|
152
|
+
dataType: 'INTEGER'
|
|
148
153
|
},
|
|
149
154
|
{
|
|
150
155
|
name: '${againstPercentage}',
|
|
151
156
|
label: getI18n().t('workflowEditor.process.percentageOfVotesAgainst'),
|
|
152
|
-
orgType: 'other'
|
|
157
|
+
orgType: 'other',
|
|
158
|
+
dataType: 'INTEGER'
|
|
153
159
|
},
|
|
154
160
|
{
|
|
155
161
|
name: '${favorPercentage}',
|
|
156
162
|
label: getI18n().t('workflowEditor.process.percentageOfAffirmativeVotes'),
|
|
157
|
-
orgType: 'other'
|
|
163
|
+
orgType: 'other',
|
|
164
|
+
dataType: 'INTEGER'
|
|
158
165
|
},
|
|
159
166
|
{
|
|
160
167
|
name: '${abstentionCount}',
|
|
161
168
|
label: getI18n().t('workflowEditor.process.totalNumberOfAbstentions'),
|
|
162
|
-
orgType: 'other'
|
|
169
|
+
orgType: 'other',
|
|
170
|
+
dataType: 'INTEGER'
|
|
163
171
|
},
|
|
164
172
|
{
|
|
165
173
|
name: '${againstCount}',
|
|
166
174
|
label: getI18n().t('workflowEditor.process.totalVotesAgainst'),
|
|
167
|
-
orgType: 'other'
|
|
175
|
+
orgType: 'other',
|
|
176
|
+
dataType: 'INTEGER'
|
|
168
177
|
},
|
|
169
178
|
{
|
|
170
179
|
name: '${favorCount}',
|
|
171
180
|
label: getI18n().t('workflowEditor.process.totalNumberOfAffirmativeVotes'),
|
|
172
|
-
orgType: 'other'
|
|
181
|
+
orgType: 'other',
|
|
182
|
+
dataType: 'INTEGER'
|
|
173
183
|
}
|
|
174
184
|
|
|
175
185
|
]
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
<el-form-item
|
|
25
25
|
v-if="formModel.transactor==='byField' || formModel.transactor==='byDeptField' "
|
|
26
|
+
:label="$t('workflowEditor.process.fieldName')"
|
|
26
27
|
prop="selectedField"
|
|
27
28
|
required
|
|
28
|
-
:label="$t('workflowEditor.process.fieldName')"
|
|
29
29
|
label-width="80px"
|
|
30
30
|
>
|
|
31
31
|
<el-input :value="formatLabel(formModel.selectedField)" @focus="showFormFields=true" />
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
<el-checkbox v-if="isSubprocess" v-model="formModel.additionalCondition.generateOneInstanceFromDept">
|
|
49
49
|
{{ $t('workflowEditor.process.generateOneInstanceFromDept') }}
|
|
50
50
|
</el-checkbox>
|
|
51
|
-
|
|
52
|
-
{{ $t('workflowEditor.process.
|
|
53
|
-
</el-checkbox>
|
|
51
|
+
<el-checkbox v-if="isCountersign" v-model="formModel.additionalCondition.activateOneVoteVeto">
|
|
52
|
+
{{ $t('workflowEditor.process.activateOneVoteVeto') }}
|
|
53
|
+
</el-checkbox>
|
|
54
54
|
</el-form-item>
|
|
55
55
|
<div v-if="formModel.additionalCondition.selectOneFromMultiple">
|
|
56
56
|
<el-form-item :label="$t('workflowEditor.process.selectionMethod')">
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
</el-form-item>
|
|
66
66
|
<el-form-item
|
|
67
67
|
v-show="formModel.additionalCondition.selectType==='autoType'"
|
|
68
|
-
prop="additionalCondition.selectUrl"
|
|
69
68
|
:label="$t('workflowEditor.process.callbackURL')"
|
|
70
69
|
:rules="[{ required: true, message: this.$t('workflowEditor.process.cannotBeEmpty'), trigger: 'blur' }]"
|
|
70
|
+
prop="additionalCondition.selectUrl"
|
|
71
71
|
>
|
|
72
72
|
<el-input v-model="formModel.additionalCondition.selectUrl" />
|
|
73
73
|
</el-form-item>
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
</el-form-item>
|
|
77
77
|
<el-form-item
|
|
78
78
|
v-if="usedIn==='HumanTask' && formModel.transactor==='${previousTransactorAssignment}'"
|
|
79
|
-
prop="url"
|
|
80
79
|
:rules="[{ required: true, message: this.$t('workflowEditor.process.cannotBeEmpty'), trigger: 'blur' }]"
|
|
81
80
|
:label="$t('workflowEditor.process.selectURL')"
|
|
81
|
+
prop="url"
|
|
82
82
|
label-width="80px"
|
|
83
83
|
>
|
|
84
84
|
<el-input v-model.trim="formModel.url" @change="handleUrlChange" />
|
|
@@ -108,6 +108,11 @@ export default {
|
|
|
108
108
|
isSubprocess: {
|
|
109
109
|
type: Boolean,
|
|
110
110
|
default: false
|
|
111
|
+
},
|
|
112
|
+
// basicProperties
|
|
113
|
+
basicProperties: {
|
|
114
|
+
type: Object,
|
|
115
|
+
default: null
|
|
111
116
|
}
|
|
112
117
|
},
|
|
113
118
|
data() {
|
|
@@ -121,7 +126,8 @@ export default {
|
|
|
121
126
|
this.initFormModel(formModel)
|
|
122
127
|
return {
|
|
123
128
|
showFormFields: false,
|
|
124
|
-
formModel
|
|
129
|
+
formModel,
|
|
130
|
+
isCountersign: false
|
|
125
131
|
}
|
|
126
132
|
},
|
|
127
133
|
mounted() {
|
|
@@ -141,6 +147,12 @@ export default {
|
|
|
141
147
|
}, {
|
|
142
148
|
deep: true
|
|
143
149
|
})
|
|
150
|
+
this.$watch('basicProperties', function() {
|
|
151
|
+
this.showActivateOneVoteVeto()
|
|
152
|
+
}, {
|
|
153
|
+
deep: true
|
|
154
|
+
})
|
|
155
|
+
this.showActivateOneVoteVeto()
|
|
144
156
|
},
|
|
145
157
|
methods: {
|
|
146
158
|
formatLabel(name) {
|
|
@@ -244,6 +256,19 @@ export default {
|
|
|
244
256
|
}
|
|
245
257
|
}
|
|
246
258
|
this.showFormFields = false
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
* 会签时显示一票否决配置
|
|
262
|
+
*/
|
|
263
|
+
showActivateOneVoteVeto() {
|
|
264
|
+
if (this.basicProperties && this.basicProperties.processingMode) {
|
|
265
|
+
if (this.basicProperties.processingMode.type === 'COUNTERSIGN') {
|
|
266
|
+
this.isCountersign = true
|
|
267
|
+
} else {
|
|
268
|
+
this.isCountersign = false
|
|
269
|
+
this.formModel.additionalCondition.activateOneVoteVeto = false
|
|
270
|
+
}
|
|
271
|
+
}
|
|
247
272
|
}
|
|
248
273
|
}
|
|
249
274
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
/>
|
|
21
21
|
</el-tab-pane>
|
|
22
22
|
<el-tab-pane :label="$t('workflowEditor.task.settingOfHandler')" name="transactors">
|
|
23
|
-
<transactor-settings :model="model.ref.transactorSettings" />
|
|
23
|
+
<transactor-settings :model="model.ref.transactorSettings" :basic-properties="model.ref.basicProperties" />
|
|
24
24
|
</el-tab-pane>
|
|
25
25
|
<el-tab-pane :label="$t('workflowEditor.task.permissionSettings')" name="permissions">
|
|
26
26
|
<permission-settings v-model="model.ref.permissionSettings" />
|
package/src/i18n/langs/cn.js
CHANGED
|
@@ -322,7 +322,8 @@ const cn = {
|
|
|
322
322
|
trustTask: '委托任务',
|
|
323
323
|
subprocessIsSharedForm: '主子流程共用表单',
|
|
324
324
|
generateForParttimeDept: '为兼职部门人员生成任务',
|
|
325
|
-
deptSpecifiedInFormField: '表单字段中指定的部门'
|
|
325
|
+
deptSpecifiedInFormField: '表单字段中指定的部门',
|
|
326
|
+
activateOneVoteVeto: '一票否决'
|
|
326
327
|
},
|
|
327
328
|
// 环节属性
|
|
328
329
|
task: {
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -322,7 +322,8 @@ const en = {
|
|
|
322
322
|
trustTask: 'Trust Task',
|
|
323
323
|
subprocessIsSharedForm: 'Main process and subprocess shared form',
|
|
324
324
|
generateForParttimeDept: 'Generate tasks for part-time department personnel',
|
|
325
|
-
deptSpecifiedInFormField: 'Dept Specified In Form Field'
|
|
325
|
+
deptSpecifiedInFormField: 'Dept Specified In Form Field',
|
|
326
|
+
activateOneVoteVeto: 'Activate one vote veto'
|
|
326
327
|
},
|
|
327
328
|
// 环节属性
|
|
328
329
|
task: {
|