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/lib/{401-bf9f785c.js → 401-082f153a.js} +1 -1
- package/lib/{404-de4bf081.js → 404-f95275e3.js} +1 -1
- package/lib/{iframe-page-956db40e.js → iframe-page-eac0213f.js} +1 -1
- package/lib/{index-1e2ec988.js → index-cd023a70.js} +678 -674
- package/lib/{tab-content-iframe-index-e11ef481.js → tab-content-iframe-index-2d8801b1.js} +1 -1
- package/lib/{tab-content-index-7736f335.js → tab-content-index-f83a413e.js} +1 -1
- package/lib/{tache-subprocess-history-b0eb8603.js → tache-subprocess-history-8dab30b9.js} +1 -1
- package/lib/workflow-editor.js +1 -1
- package/lib/workflow-editor.umd.cjs +23 -23
- package/package.json +2 -2
- package/packages/plugins/formValidatorUtil.js +10 -2
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.
|
|
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(
|