workflow-editor 0.0.63-up → 0.0.64-up-rc1

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.63-up",
4
+ "version": "0.0.64-up-rc1",
5
5
  "type": "module",
6
6
  "main": "./lib/workflow-editor.js",
7
7
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@vitejs/plugin-vue": "^4.2.3",
19
- "agilebuilder-ui": "1.1.39-sit1",
19
+ "agilebuilder-ui": "1.1.41-rc1",
20
20
  "axios": "^1.5.1",
21
21
  "element-plus": "^2.4.1",
22
22
  "font-awesome": "^4.7.0",
@@ -472,8 +472,10 @@ function validateSub(
472
472
  return validateResult
473
473
  }
474
474
  let pageSize
475
+ let hasAuthFields = []
475
476
  if (subTablePageInfo && subTablePageInfo[prop]) {
476
477
  pageSize = subTablePageInfo[prop].pageSize
478
+ hasAuthFields = subTablePageInfo[prop].fields || []
477
479
  }
478
480
  for (let j = 0; j < subTableData.length; j++) {
479
481
  const rowData = subTableData[j]
@@ -485,7 +487,8 @@ function validateSub(
485
487
  entity,
486
488
  additionalParamMap,
487
489
  taskParamMap,
488
- contextParameter
490
+ contextParameter,
491
+ hasAuthFields
489
492
  )
490
493
  console.log('formValidator666--rowRule=', rowRule)
491
494
  let pageNum
@@ -559,12 +562,17 @@ function packageRowRule(
559
562
  parentFormData,
560
563
  additionalParamMap,
561
564
  taskParamMap,
562
- contextParameter
565
+ contextParameter,
566
+ hasAuthFields
563
567
  ) {
564
568
  const rowId = getEntityId(row)
565
569
  const rowRule = {}
566
570
  for (let n = 0; n < subProps.length; n++) {
567
571
  const field = subProps[n]
572
+ if (hasAuthFields.indexOf(field) < 0) {
573
+ // 如果没有权限编辑该字段,则不需要验证
574
+ continue
575
+ }
568
576
  const fieldRule = subFieldRule[field]
569
577
  const condition = fieldRule.condition
570
578
  const result = parseSubTablePermissionCondition(
@@ -4,6 +4,17 @@
4
4
  <template #header>
5
5
  <div class="clearfix">
6
6
  <span>{{ $t('workflowEditor.common.taskNotice') }}</span>
7
+
8
+ <el-tooltip>
9
+ <template #content>
10
+ <ul>
11
+ <li>{{$t('workflowEditor.task.reminderTipTemplateMsg')}}</li>
12
+ <li class="sub-li">{{$t('workflowEditor.task.reminderTipTemplateNotice')}}</li>
13
+ <li class="sub-li">{{$t('workflowEditor.task.reminderTipTemplateEmail')}}</li>
14
+ </ul>
15
+ </template>
16
+ <el-icon><Warning /></el-icon>
17
+ </el-tooltip>
7
18
  </div>
8
19
  </template>
9
20
  <el-form :model="noticeObj" label-width="80px">
@@ -31,6 +42,19 @@
31
42
  <template #header>
32
43
  <div class="clearfix">
33
44
  <span>{{ $t('workflowEditor.common.reminderNotice') }}</span>
45
+ <el-tooltip>
46
+ <template #content>
47
+ <ul>
48
+ <li>{{$t('workflowEditor.task.reminderTipTemplateMsg')}}</li>
49
+ <li class="sub-li">{{$t('workflowEditor.task.reminderTipTemplateNotice')}}</li>
50
+ <li class="sub-li">{{$t('workflowEditor.task.reminderTipTemplateEmail')}}</li>
51
+ <li>{{$t('workflowEditor.task.reminderTipRemindMsg')}}</li>
52
+ <li class="sub-li">{{$t('workflowEditor.task.reminderTipRemindImmediately')}}</li>
53
+ <li class="sub-li">{{$t('workflowEditor.task.reminderTipRemindHistory')}}</li>
54
+ </ul>
55
+ </template>
56
+ <el-icon><Warning /></el-icon>
57
+ </el-tooltip>
34
58
  </div>
35
59
  </template>
36
60
  <reminder v-model:modelValue="reminderObj" :isProcess="isProcess"/>
@@ -112,4 +136,14 @@ export default {
112
136
  }
113
137
  </script>
114
138
 
115
- <style lang="scss" scoped></style>
139
+ <style lang="scss" scoped>
140
+ ul {
141
+ margin: 0;
142
+ padding: 0;
143
+ }
144
+ ul li {
145
+ list-style: none;
146
+ }
147
+ .sub-li{
148
+ padding-left: 10px;
149
+ }</style>
@@ -450,7 +450,13 @@ const cn = {
450
450
  newAutoTask: '新自动任务',
451
451
  propertiesOfAutoTask: '自动任务的属性',
452
452
  custombeanName: '自定义bean',
453
- baseField: '基础字段'
453
+ baseField: '基础字段',
454
+ reminderTipTemplateMsg: '模板说明:',
455
+ reminderTipRemindMsg: '催办说明:',
456
+ reminderTipTemplateNotice: '通知模板:钉钉、企微、飞书、自定义都使用通知模板。邮件方式时,如果没有选“邮件模板”,则使用通知模板',
457
+ reminderTipTemplateEmail: '邮件模板:邮件方式特制模板',
458
+ reminderTipRemindImmediately: '催办方式、通知模板、邮件模板、催办次数、通知方式、通知人员、移交人员 修改后立即生效',
459
+ reminderTipRemindHistory: '办理时限、办理时限的时间粒度(天/小时)、催办间隔、催办间隔的时间粒度(天/小时)仅对新发起的流程生效,如历史数据也需要应用最新配置,请联系运维人员调整'
454
460
  },
455
461
  // 流向属性
456
462
  transition: {
@@ -473,7 +473,13 @@ const en = {
473
473
  newAutoTask: 'New Auto Task',
474
474
  propertiesOfAutoTask: 'Properties Of Auto Task',
475
475
  custombeanName: 'Custom Bean Name',
476
- baseField: 'Base Field'
476
+ baseField: 'Base Field',
477
+ reminderTipTemplateMsg: 'Template Description:',
478
+ reminderTipRemindMsg: 'Reminder Description:',
479
+ reminderTipTemplateNotice: 'Notification templates: DingTalk, Enterprise WeChat, Feishu, and Customization all use notification templates. When using email, if "email template" is not selected, use notification template',
480
+ reminderTipTemplateEmail: 'Email Template: Customized Email Template',
481
+ reminderTipRemindImmediately: 'The reminder method, notification template, email template, maximum number of reminders, notification method, notification personnel, and transfer personnel will take effect immediately after modification',
482
+ reminderTipRemindHistory: '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'
477
483
  },
478
484
  // 流向属性
479
485
  transition: {