workflow-editor 0.0.64-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.64-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(