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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "workflow-editor",
3
3
  "private": false,
4
- "version": "0.0.89-up",
4
+ "version": "0.0.90-up",
5
5
  "type": "module",
6
6
  "main": "./lib/workflow-editor.js",
7
7
  "scripts": {
@@ -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 v-model="model.informType" :label="$t('workflowEditor.common.notificationMethod')" :custom-msg="model.customMsg" @input-msg="setCustomMsg" />
10
- <el-form-item label-width="100" v-if="model.informType && model.informType.length > 0" :label="$t('workflowEditor.task.selectNoticeTemplate')">
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 label-width="100" v-if="model.informType && model.informType.length > 0 && model.informType.indexOf('mail') !== -1" :label="$t('workflowEditor.task.selectMailTemplate')">
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('model', function(newVal, oldVal) {
84
- this.getValue()
85
- }, {
86
- deep: true
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" />
@@ -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: {
@@ -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: {