workflow-editor 0.0.89-up → 0.0.90-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-ff27e685.js → 401-d08148ed.js} +1 -1
- package/lib/{404-33de0149.js → 404-472e39c1.js} +1 -1
- package/lib/{iframe-page-1982a263.js → iframe-page-2cdd0517.js} +1 -1
- package/lib/{index-41d47f5c.js → index-75e12df6.js} +906 -825
- package/lib/{tab-content-iframe-index-df889a3a.js → tab-content-iframe-index-1cf3d70e.js} +1 -1
- package/lib/{tab-content-index-3d780597.js → tab-content-index-2f104b32.js} +1 -1
- package/lib/{tache-subprocess-history-33260653.js → tache-subprocess-history-1ad5b2a1.js} +1 -1
- package/lib/workflow-editor.css +1 -1
- package/lib/workflow-editor.js +1 -1
- package/lib/workflow-editor.umd.cjs +23 -23
- package/package.json +1 -1
- package/packages/workflow-editor/src/properties-editors/common/notice.vue +30 -15
- package/packages/workflow-editor/src/properties-editors/common/reminder.vue +40 -0
- package/src/i18n/langs/cn.js +5 -1
- package/src/i18n/langs/en.js +5 -1
package/package.json
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-form :model="model" label-width="80px">
|
|
3
3
|
<el-form-item :label="switchLabel" label-width="150">
|
|
4
|
-
<el-switch
|
|
5
|
-
v-model="showNotice"
|
|
6
|
-
/>
|
|
4
|
+
<el-switch v-model="model.showNotice" />
|
|
7
5
|
</el-form-item>
|
|
8
|
-
<div v-if="showNotice">
|
|
9
|
-
<common-notice-tool
|
|
10
|
-
|
|
6
|
+
<div v-if="model.showNotice">
|
|
7
|
+
<common-notice-tool
|
|
8
|
+
v-model="model.informType"
|
|
9
|
+
:label="$t('workflowEditor.common.notificationMethod')"
|
|
10
|
+
:custom-msg="model.customMsg"
|
|
11
|
+
@input-msg="setCustomMsg"
|
|
12
|
+
/>
|
|
13
|
+
<el-form-item
|
|
14
|
+
label-width="100"
|
|
15
|
+
v-if="model.informType && model.informType.length > 0"
|
|
16
|
+
:label="$t('workflowEditor.task.selectNoticeTemplate')"
|
|
17
|
+
>
|
|
11
18
|
<select-mail-templates v-model="model.mailTemplateCode" @set-value="setMailTemplateCode" />
|
|
12
19
|
</el-form-item>
|
|
13
|
-
<el-form-item
|
|
20
|
+
<el-form-item
|
|
21
|
+
label-width="100"
|
|
22
|
+
v-if="model.informType && model.informType.length > 0 && model.informType.indexOf('mail') !== -1"
|
|
23
|
+
:label="$t('workflowEditor.task.selectMailTemplate')"
|
|
24
|
+
>
|
|
14
25
|
<select-mail-templates v-model="model.mailPointTemplateCode" @set-value="setMailPointTemplateCode" />
|
|
15
26
|
</el-form-item>
|
|
16
27
|
<user-selection v-model="model.userCondition" :label="$t('workflowEditor.common.addressee')" />
|
|
@@ -21,7 +32,7 @@
|
|
|
21
32
|
<el-input
|
|
22
33
|
v-model="model.content"
|
|
23
34
|
type="textarea"
|
|
24
|
-
:autosize="{ minRows: 4, maxRows: 10}"
|
|
35
|
+
:autosize="{ minRows: 4, maxRows: 10 }"
|
|
25
36
|
:placeholder="$t('workflowEditorMessage.pleaseEnterContent')"
|
|
26
37
|
/>
|
|
27
38
|
</el-form-item>
|
|
@@ -57,6 +68,7 @@ export default {
|
|
|
57
68
|
subject: null,
|
|
58
69
|
content: null
|
|
59
70
|
}
|
|
71
|
+
debugger
|
|
60
72
|
if (this.modelValue !== null && this.modelValue !== undefined && this.modelValue !== '') {
|
|
61
73
|
model = this.modelValue
|
|
62
74
|
if (model.informType && model.informType !== '') {
|
|
@@ -80,11 +92,15 @@ export default {
|
|
|
80
92
|
created() {
|
|
81
93
|
// inform在xml中可能是没有的,所以不能直接使用inform作为model
|
|
82
94
|
// 通过deep监听model把设置的值返回给流程的inform属性
|
|
83
|
-
this.$watch(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
95
|
+
this.$watch(
|
|
96
|
+
'model',
|
|
97
|
+
function (newVal, oldVal) {
|
|
98
|
+
this.getValue()
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
deep: true
|
|
102
|
+
}
|
|
103
|
+
)
|
|
88
104
|
},
|
|
89
105
|
methods: {
|
|
90
106
|
getValue() {
|
|
@@ -96,7 +112,7 @@ export default {
|
|
|
96
112
|
setMailTemplateCode(mailTemplateCode) {
|
|
97
113
|
this.model.mailTemplateCode = mailTemplateCode
|
|
98
114
|
},
|
|
99
|
-
setMailPointTemplateCode(mailTemplateCode){
|
|
115
|
+
setMailPointTemplateCode(mailTemplateCode) {
|
|
100
116
|
this.model.mailPointTemplateCode = mailTemplateCode
|
|
101
117
|
},
|
|
102
118
|
setCustomMsg(msg) {
|
|
@@ -105,4 +121,3 @@ export default {
|
|
|
105
121
|
}
|
|
106
122
|
}
|
|
107
123
|
</script>
|
|
108
|
-
|
|
@@ -110,6 +110,26 @@
|
|
|
110
110
|
<el-checkbox v-model="model.containTransferUser">
|
|
111
111
|
{{ $t('workflowEditor.task.includingHandoverPersonnel') }}
|
|
112
112
|
</el-checkbox>
|
|
113
|
+
<el-checkbox v-model="model.noticeUserCustom">
|
|
114
|
+
{{ $t('workflowEditor.task.custombeanName') }}
|
|
115
|
+
</el-checkbox>
|
|
116
|
+
<el-input
|
|
117
|
+
v-if="model.noticeUserCustom"
|
|
118
|
+
v-model="model.noticeUserCustombeanName"
|
|
119
|
+
style="width: 240px"
|
|
120
|
+
:placeholder="$t('workflowEditor.task.custombeanName')"
|
|
121
|
+
>
|
|
122
|
+
<template #append>
|
|
123
|
+
<el-tooltip
|
|
124
|
+
class="box-item"
|
|
125
|
+
effect="dark"
|
|
126
|
+
:content="$t('workflowEditor.task.reminderCustombeanNameTip')"
|
|
127
|
+
placement="top-start"
|
|
128
|
+
>
|
|
129
|
+
<el-icon><InfoFilled /></el-icon>
|
|
130
|
+
</el-tooltip>
|
|
131
|
+
</template>
|
|
132
|
+
</el-input>
|
|
113
133
|
</el-form-item>
|
|
114
134
|
<el-form-item label-width="0">
|
|
115
135
|
<common-user-condition v-model="model.noticeUserCondition" />
|
|
@@ -118,6 +138,26 @@
|
|
|
118
138
|
<el-checkbox v-model="model.containNoticeUser">
|
|
119
139
|
{{ $t('workflowEditor.task.includeNotifyPeople') }}
|
|
120
140
|
</el-checkbox>
|
|
141
|
+
<el-checkbox v-model="model.noticeHandoverPersonnelCustom">
|
|
142
|
+
{{ $t('workflowEditor.task.custombeanName') }}
|
|
143
|
+
</el-checkbox>
|
|
144
|
+
<el-input
|
|
145
|
+
v-if="model.noticeHandoverPersonnelCustom"
|
|
146
|
+
v-model="model.noticeHandoverPersonnelCustombeanName"
|
|
147
|
+
style="width: 240px"
|
|
148
|
+
:placeholder="$t('workflowEditor.task.custombeanName')"
|
|
149
|
+
>
|
|
150
|
+
<template #append>
|
|
151
|
+
<el-tooltip
|
|
152
|
+
class="box-item"
|
|
153
|
+
effect="dark"
|
|
154
|
+
:content="$t('workflowEditor.task.reminderHandoverCustombeanNameTip')"
|
|
155
|
+
placement="top-start"
|
|
156
|
+
>
|
|
157
|
+
<el-icon><InfoFilled /></el-icon>
|
|
158
|
+
</el-tooltip>
|
|
159
|
+
</template>
|
|
160
|
+
</el-input>
|
|
121
161
|
</el-form-item>
|
|
122
162
|
<el-form-item v-if="!isProcess" label-width="0">
|
|
123
163
|
<common-user-condition v-model="model.transferUserCondition" />
|
package/src/i18n/langs/cn.js
CHANGED
|
@@ -463,7 +463,11 @@ const cn = {
|
|
|
463
463
|
'办理时限、办理时限的时间粒度(天/小时)、催办间隔、催办间隔的时间粒度(天/小时)仅对新发起的流程生效,如历史数据也需要应用最新配置,请联系运维人员调整',
|
|
464
464
|
timeLimitTypeDefault: '默认',
|
|
465
465
|
timeLimitTypeFormField: '表单字段',
|
|
466
|
-
timeLimitTypeCustom: '自定义'
|
|
466
|
+
timeLimitTypeCustom: '自定义',
|
|
467
|
+
reminderCustombeanNameTip:
|
|
468
|
+
'自定义bean需要实现cn.ambitionq.api.service.WorkflowCustomReminderService接口,重写getNoticeUser',
|
|
469
|
+
reminderHandoverCustombeanNameTip:
|
|
470
|
+
'自定义bean需要实现cn.ambitionq.api.service.WorkflowCustomHandoverService接口,重写getNoticeHandoverPersonnel'
|
|
467
471
|
},
|
|
468
472
|
// 流向属性
|
|
469
473
|
transition: {
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -471,7 +471,11 @@ const en = {
|
|
|
471
471
|
'The processing time limit, processing time granularity (days/hours), reminder interval, reminder interval time granularity (days/hours) are only effective for newly initiated processes. If historical data also requires the latest configuration, please contact the operation and maintenance personnel to adjust',
|
|
472
472
|
timeLimitTypeDefault: 'Default',
|
|
473
473
|
timeLimitTypeFormField: 'Form Field',
|
|
474
|
-
timeLimitTypeCustom: 'Custom'
|
|
474
|
+
timeLimitTypeCustom: 'Custom',
|
|
475
|
+
reminderCustombeanNameTip:
|
|
476
|
+
'Custom bean needs to implement the cn.ambitionq.api.service.WorkflowCustomReminderService interface and override getNoticeUser',
|
|
477
|
+
reminderHandoverCustombeanNameTip:
|
|
478
|
+
'Custom bean needs to implement the cn.ambitionq.api.service.WorkflowCustomHandoverService interface and override getNoticeHandoverPersonnel'
|
|
475
479
|
},
|
|
476
480
|
// 流向属性
|
|
477
481
|
transition: {
|