workflow-editor 0.9.67 → 0.9.68-boe3

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.
Files changed (31) hide show
  1. package/lib/workflow-editor.css +1 -1
  2. package/lib/workflow-editor.umd.min.js +8 -8
  3. package/package.json +2 -2
  4. package/packages/plugins/formValidatorUtil.js +6 -1
  5. package/packages/workflow-editor/src/json-object-templates/auto-task.js +70 -0
  6. package/packages/workflow-editor/src/json-object-templates/copy-task.js +5 -0
  7. package/packages/workflow-editor/src/json-object-templates/subprocess.js +2 -1
  8. package/packages/workflow-editor/src/main/canvas.vue +5 -1
  9. package/packages/workflow-editor/src/main/wf-history-canvas.vue +3 -1
  10. package/packages/workflow-editor/src/process-json.js +2 -1
  11. package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +81 -0
  12. package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +155 -0
  13. package/packages/workflow-editor/src/properties-editors/auto-task.vue +73 -0
  14. package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +20 -10
  15. package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +30 -10
  16. package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +1 -1
  17. package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +72 -0
  18. package/packages/workflow-editor/src/properties-editors/common/notice.vue +4 -1
  19. package/packages/workflow-editor/src/properties-editors/common/reminder.vue +8 -2
  20. package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +51 -9
  21. package/packages/workflow-editor/src/properties-editors/copy-task.vue +15 -1
  22. package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +5 -1
  23. package/packages/workflow-editor/src/properties-editors/human-task.vue +11 -5
  24. package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +2 -2
  25. package/packages/workflow-editor/src/properties-editors/process.vue +10 -4
  26. package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +18 -6
  27. package/packages/workflow-editor/src/taches/auto-task.vue +99 -0
  28. package/packages/workflow-editor/src/util.js +32 -36
  29. package/packages/workflow-editor/src/workflow-editor.vue +1 -0
  30. package/src/i18n/langs/cn.js +18 -7
  31. package/src/i18n/langs/en.js +18 -7
@@ -1,5 +1,18 @@
1
1
 
2
2
  import { getLanguageWithLocale } from 'imatrix-ui/src/utils/util'
3
+ import i18n from '../../../src/i18n/i18n'
4
+ import newAutoTask from './json-object-templates/auto-task'
5
+ import newCopyTask from './json-object-templates/copy-task'
6
+ import newDecision from './json-object-templates/decision'
7
+ import newEnd from './json-object-templates/end'
8
+ import newFork from './json-object-templates/fork'
9
+ import newHumanDecision from './json-object-templates/human-decision'
10
+ import newHumanTask from './json-object-templates/human-task'
11
+ import newJoin from './json-object-templates/join'
12
+ import newProcess from './json-object-templates/process'
13
+ import newStart from './json-object-templates/start'
14
+ import newSubprocess from './json-object-templates/subprocess'
15
+ import newTransition from './json-object-templates/transition'
3
16
  function getStore() {
4
17
  return window.$store
5
18
  }
@@ -92,6 +105,16 @@ export function getComponentList() {
92
105
  height: 40,
93
106
  color: '#0777D4'
94
107
  },
108
+ {
109
+ name: 'AutoTask',
110
+ label: getI18n().t('workflowEditor.task.autoTask'),
111
+ icon: 'human-task',
112
+ type: '',
113
+ round: false,
114
+ width: 80,
115
+ height: 40,
116
+ color: '#0777D4'
117
+ },
95
118
  {
96
119
  name: 'End',
97
120
  label: getI18n().t('workflowEditor.task.end'),
@@ -269,7 +292,7 @@ function clearAllSelectedComponents() {
269
292
  */
270
293
  function removeTextProperty(obj) {
271
294
  const keys = Object.getOwnPropertyNames(obj)
272
- keys.forEach(function(key) {
295
+ keys.forEach(function (key) {
273
296
  if (typeof obj[key] === 'object') {
274
297
  if (obj[key]._text !== undefined) {
275
298
  obj[key] = obj[key]._text
@@ -290,7 +313,7 @@ function removeTextProperty(obj) {
290
313
  })
291
314
  }
292
315
  function generateTaches(type, arr) {
293
- if (!arr)arr = []
316
+ if (!arr) arr = []
294
317
  if (!Array.isArray(arr)) {
295
318
  arr = [arr]
296
319
  }
@@ -312,7 +335,7 @@ function generateTaches(type, arr) {
312
335
  }
313
336
  }
314
337
  function generateTransitions(type, arr) {
315
- if (!arr)arr = []
338
+ if (!arr) arr = []
316
339
  if (!Array.isArray(arr)) {
317
340
  arr = [arr]
318
341
  }
@@ -361,6 +384,7 @@ function initializeProcessData(process) {
361
384
  generateTaches('Subprocess', process.subprocess)
362
385
  generateTaches('HumanDecision', process.humanDecision)
363
386
  generateTaches('CopyTask', process.copyTask)
387
+ generateTaches('AutoTask', process.autoTask)
364
388
  generateTaches('Start', process.start)
365
389
  generateTaches('End', process.end)
366
390
  generateTransitions('Transition', process.transition)
@@ -442,39 +466,9 @@ function watchShowName(vm, newVal) {
442
466
  return showName
443
467
  }
444
468
  export {
445
- getComponentInfo,
446
- getJoint,
447
- getMousePosition,
448
- getClientMousePosition,
449
- getMouseOffset,
450
- getVirtualRegion,
451
- getRealRegion,
452
- startDragTache,
453
- endDragTache,
454
- clearAllSelectedComponents,
455
- removeTextProperty,
456
- initializeProcessData,
457
- findOutgoingTransitionsByTacheId,
458
- findIncomingTransitionsByTacheId,
459
- findTacheById,
460
- deepCopy,
461
- updateTransitionsWhenTacheIdChanged,
462
- validateTacheCode,
463
- getI18n,
464
- watchShowName
469
+ clearAllSelectedComponents, deepCopy, endDragTache, findIncomingTransitionsByTacheId, findOutgoingTransitionsByTacheId, findTacheById, getClientMousePosition, getComponentInfo, getI18n, getJoint, getMouseOffset, getMousePosition, getRealRegion, getVirtualRegion, initializeProcessData, removeTextProperty, startDragTache, updateTransitionsWhenTacheIdChanged,
470
+ validateTacheCode, watchShowName
465
471
  }
466
- import newProcess from './json-object-templates/process'
467
- import newHumanTask from './json-object-templates/human-task'
468
- import newDecision from './json-object-templates/decision'
469
- import newStart from './json-object-templates/start'
470
- import newEnd from './json-object-templates/end'
471
- import newTransition from './json-object-templates/transition'
472
- import newSubprocess from './json-object-templates/subprocess'
473
- import newFork from './json-object-templates/fork'
474
- import newJoin from './json-object-templates/join'
475
- import newHumanDecision from './json-object-templates/human-decision'
476
- import i18n from '../../../src/i18n/i18n'
477
- import newCopyTask from './json-object-templates/copy-task'
478
472
 
479
473
  const processTemplate = {
480
474
  newProcess,
@@ -487,7 +481,9 @@ const processTemplate = {
487
481
  newFork,
488
482
  newJoin,
489
483
  newHumanDecision,
490
- newCopyTask
484
+ newCopyTask,
485
+ newAutoTask
491
486
  }
492
487
 
493
488
  export { processTemplate }
489
+
@@ -246,6 +246,7 @@ export default {
246
246
  subprocess: [],
247
247
  humanDecision: [],
248
248
  copyTask: [],
249
+ autoTask: [],
249
250
  end: []
250
251
  }
251
252
  process.attr = this.process.attr
@@ -29,7 +29,8 @@ const cn = {
29
29
  i18nZh: '中文',
30
30
  i18nEn: '英文',
31
31
  i18nKey: '国际化key',
32
- subprocessTitle: '子流程流转历史'
32
+ subprocessTitle: '子流程流转历史',
33
+ custom: '自定义'
33
34
  },
34
35
  workflowEditorMessage: {
35
36
  requiredAndMustBeADate: '必填且必须为日期',
@@ -137,7 +138,10 @@ const cn = {
137
138
  formField: '表单字段',
138
139
  variableName: '变量名',
139
140
  variableValue: '变量值',
140
- selectField: '选择字段'
141
+ selectField: '选择字段',
142
+ taskNotice: '待办通知',
143
+ reminderNotice: '催办通知',
144
+ customMsg: '自定义消息内容'
141
145
  },
142
146
  // 流程属性
143
147
  process: {
@@ -291,7 +295,7 @@ const cn = {
291
295
  permissionSettings: '权限设置',
292
296
  notificationSettings: '通知设置',
293
297
  sendNotificationAfterProcessEnds: '流程结束后发送通知',
294
- reminderSettings: '催办设置',
298
+ reminderSettings: '通知与催办',
295
299
  parameterSsetting: '参数设置',
296
300
  event: '事件',
297
301
  processVariables: '流程变量',
@@ -316,7 +320,10 @@ const cn = {
316
320
  isNotNull: '不等于Null',
317
321
  defaultMailTemplate: '默认邮件模板',
318
322
  trustTask: '委托任务',
319
- subprocessIsSharedForm: '主子流程共用表单'
323
+ subprocessIsSharedForm: '主子流程共用表单',
324
+ generateForParttimeDept: '为兼职部门人员生成任务',
325
+ deptSpecifiedInFormField: '表单字段中指定的部门',
326
+ activateOneVoteVeto: '一票否决'
320
327
  },
321
328
  // 环节属性
322
329
  task: {
@@ -413,7 +420,7 @@ const cn = {
413
420
  attributesOfManualJudgment: '人工判断的属性',
414
421
  linkAttribute: '环节属性',
415
422
  autoFillInFieldSettings: '自动填写字段设置',
416
- reminderSettings: '催办设置',
423
+ reminderSettings: '通知与催办',
417
424
  eventProcessing: '事件处理',
418
425
  linkVariable: '环节变量',
419
426
  convergedProperties: '汇聚的属性',
@@ -421,8 +428,12 @@ const cn = {
421
428
  conditionJudgment: '条件判断',
422
429
  cCtask: '抄送任务',
423
430
  canItBeRejected: '是否可驳回',
424
- selectMailTemplate: '选择邮件模板',
425
- selectTemplate: '选择模板'
431
+ selectMailTemplate: '选择通知模板',
432
+ selectTemplate: '选择模板',
433
+ autoTask: '自动任务',
434
+ newAutoTask: '新自动任务',
435
+ propertiesOfAutoTask: '自动任务的属性',
436
+ custombeanName: '自定义bean'
426
437
  },
427
438
  // 流向属性
428
439
  transition: {
@@ -29,7 +29,8 @@ const en = {
29
29
  i18nZh: 'Chinese',
30
30
  i18nEn: 'English',
31
31
  i18nKey: 'I18n Key',
32
- subprocessTitle: 'Subprocess History'
32
+ subprocessTitle: 'Subprocess History',
33
+ custom: 'Custom'
33
34
  },
34
35
  workflowEditorMessage: {
35
36
  requiredAndMustBeADate: 'Required And Must Be A Date',
@@ -137,7 +138,10 @@ const en = {
137
138
  formField: 'Form Field',
138
139
  variableName: 'Variable Name',
139
140
  variableValue: 'Variable Value',
140
- selectField: 'Select Field'
141
+ selectField: 'Select Field',
142
+ taskNotice: 'Task Notice',
143
+ reminderNotice: 'Reminder Notice',
144
+ customMsg: 'Custom Notice Message'
141
145
  },
142
146
  // 流程属性
143
147
  process: {
@@ -291,7 +295,7 @@ const en = {
291
295
  permissionSettings: 'Permission Settings',
292
296
  notificationSettings: 'Notification Settings',
293
297
  sendNotificationAfterProcessEnds: 'Send Notification After Process Ends',
294
- reminderSettings: 'Reminder Settings',
298
+ reminderSettings: 'Notice And Reminder Settings',
295
299
  parameterSsetting: 'Parameter Setting',
296
300
  event: 'Event',
297
301
  processVariables: 'Process Variables',
@@ -316,7 +320,10 @@ const en = {
316
320
  isNotNull: 'Is Not Null',
317
321
  defaultMailTemplate: 'Default Mail Template',
318
322
  trustTask: 'Trust Task',
319
- subprocessIsSharedForm: 'Main process and subprocess shared form'
323
+ subprocessIsSharedForm: 'Main process and subprocess shared form',
324
+ generateForParttimeDept: 'Generate tasks for part-time department personnel',
325
+ deptSpecifiedInFormField: 'Dept Specified In Form Field',
326
+ activateOneVoteVeto: 'Activate one vote veto'
320
327
  },
321
328
  // 环节属性
322
329
  task: {
@@ -413,7 +420,7 @@ const en = {
413
420
  attributesOfManualJudgment: 'Attributes of manual Judgment',
414
421
  linkAttribute: 'Link Attribute',
415
422
  autoFillInFieldSettings: 'Auto Fill In Field Settings',
416
- reminderSettings: 'Reminder Settings',
423
+ reminderSettings: 'Notice And Reminder Settings',
417
424
  eventProcessing: 'Event Processing',
418
425
  linkVariable: 'Link Variable',
419
426
  convergedProperties: 'Converged Properties',
@@ -421,8 +428,12 @@ const en = {
421
428
  conditionJudgment: 'Condition Judgment',
422
429
  cCtask: 'CC Task',
423
430
  canItBeRejected: 'Can It Be Rejected',
424
- selectMailTemplate: 'Select Mail Template',
425
- selectTemplate: 'Select Template'
431
+ selectMailTemplate: 'Select Notice Template',
432
+ selectTemplate: 'Select Template',
433
+ autoTask: 'Auto Task',
434
+ newAutoTask: 'New Auto Task',
435
+ propertiesOfAutoTask: 'Properties Of Auto Task',
436
+ custombeanName: 'Custom Bean Name'
426
437
  },
427
438
  // 流向属性
428
439
  transition: {