eoss-ui 0.6.79 → 0.6.80
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/eoss-ui.common.js +69 -27
- package/lib/flow.js +63 -21
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/main.vue +62 -25
- package/packages/flow/src/processReject.vue +2 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
:isBanInputOpinion="isBanInputOpinion"
|
|
50
50
|
:nodeFixedOpinionSelectList="nodeFixedOpinionSelectList"
|
|
51
51
|
/>
|
|
52
|
-
<div :class="`es-info ${formLabelPosition == 'left'?'form-left':''}`"
|
|
52
|
+
<div :class="`es-info ${formLabelPosition == 'left' ? 'form-left' : ''}`">
|
|
53
53
|
<el-form
|
|
54
54
|
ref="form"
|
|
55
55
|
:model="circulateForm"
|
|
@@ -219,13 +219,15 @@
|
|
|
219
219
|
!shrink
|
|
220
220
|
"
|
|
221
221
|
ref="esContent"
|
|
222
|
-
:class="`es-info ${formLabelPosition == 'left'?'form-left':''}`"
|
|
222
|
+
:class="`es-info ${formLabelPosition == 'left' ? 'form-left' : ''}`"
|
|
223
223
|
>
|
|
224
224
|
<el-form
|
|
225
225
|
ref="nextNode"
|
|
226
226
|
:model="isFlow ? nodeInfo : nextNode"
|
|
227
227
|
class="demo-dynamic"
|
|
228
|
-
:label-width="
|
|
228
|
+
:label-width="
|
|
229
|
+
startFlowPageEmbeddedIntoStartFlowIndex ? '100px' : '120px'
|
|
230
|
+
"
|
|
229
231
|
:label-position="formLabelPosition"
|
|
230
232
|
>
|
|
231
233
|
<el-form-item
|
|
@@ -655,7 +657,8 @@
|
|
|
655
657
|
v-if="
|
|
656
658
|
isFlow &&
|
|
657
659
|
nodeInfo.nextNode &&
|
|
658
|
-
startFlowPageEmbeddedIntoStartFlowIndex &&
|
|
660
|
+
startFlowPageEmbeddedIntoStartFlowIndex &&
|
|
661
|
+
!directCreateCircularReadWhenFlowStarted
|
|
659
662
|
"
|
|
660
663
|
ref="processFormIndex"
|
|
661
664
|
:id="freeStartFlowParams.startFlowBusinessId || businessIds"
|
|
@@ -674,13 +677,18 @@
|
|
|
674
677
|
@cancel="closeProcess($event, 'handleVisible', closeParent)"
|
|
675
678
|
/>
|
|
676
679
|
<circulate
|
|
677
|
-
|
|
680
|
+
v-else-if="
|
|
681
|
+
isFlow &&
|
|
678
682
|
nodeInfo.nextNode &&
|
|
679
|
-
startFlowPageEmbeddedIntoStartFlowIndex &&
|
|
683
|
+
startFlowPageEmbeddedIntoStartFlowIndex &&
|
|
684
|
+
directCreateCircularReadWhenFlowStarted
|
|
685
|
+
"
|
|
680
686
|
ref="flowCirculate"
|
|
681
687
|
:label-position="formLabelPosition"
|
|
682
688
|
:businessId="businessId"
|
|
683
|
-
:startFlowPageEmbeddedIntoStartFlowIndex="
|
|
689
|
+
:startFlowPageEmbeddedIntoStartFlowIndex="
|
|
690
|
+
startFlowPageEmbeddedIntoStartFlowIndex
|
|
691
|
+
"
|
|
684
692
|
:processDefinitionId="nodeInfo.nextNode"
|
|
685
693
|
:simpleTips="simpleTips"
|
|
686
694
|
:showBtn="false"
|
|
@@ -1134,9 +1142,9 @@ export default {
|
|
|
1134
1142
|
type: String,
|
|
1135
1143
|
default: 'left'
|
|
1136
1144
|
},
|
|
1137
|
-
flowListDisabled:{
|
|
1138
|
-
type:Boolean,
|
|
1139
|
-
default:false
|
|
1145
|
+
flowListDisabled: {
|
|
1146
|
+
type: Boolean,
|
|
1147
|
+
default: false
|
|
1140
1148
|
},
|
|
1141
1149
|
btnList: {
|
|
1142
1150
|
type: Array,
|
|
@@ -2563,6 +2571,12 @@ export default {
|
|
|
2563
2571
|
* @date 2022年5月25日
|
|
2564
2572
|
**/
|
|
2565
2573
|
selecNext(val, type, isDef) {
|
|
2574
|
+
console.log(val, 'valvalval');
|
|
2575
|
+
let isNextNode = false;
|
|
2576
|
+
if (type) {
|
|
2577
|
+
isNextNode = this.operationList.filter((x) => x.key == val)[0]
|
|
2578
|
+
.isNextNode;
|
|
2579
|
+
}
|
|
2566
2580
|
this.loading = util.loading(this.$loading, '加载中...');
|
|
2567
2581
|
if (this.multiple) {
|
|
2568
2582
|
this.nextNode.nextUserId = [];
|
|
@@ -2573,7 +2587,8 @@ export default {
|
|
|
2573
2587
|
this.selectUserList = [];
|
|
2574
2588
|
this.radioList = [];
|
|
2575
2589
|
|
|
2576
|
-
if (type) {
|
|
2590
|
+
if (type && !isNextNode) {
|
|
2591
|
+
console.log('不是下一步节点');
|
|
2577
2592
|
this.isNextUser = false;
|
|
2578
2593
|
this.isShowNode = false;
|
|
2579
2594
|
this.isMainSubProcess = false;
|
|
@@ -2590,12 +2605,30 @@ export default {
|
|
|
2590
2605
|
this.nextNode.isReturnRejectNode = 0;
|
|
2591
2606
|
this.nextNode.isSerialSubmit = 0;
|
|
2592
2607
|
this.nodeInfos = [];
|
|
2608
|
+
let newOperationList = [];
|
|
2609
|
+
// this.operationList.map(x => {
|
|
2610
|
+
|
|
2611
|
+
// })
|
|
2593
2612
|
this.operationList.forEach((item) => {
|
|
2594
2613
|
if (item.key === val) {
|
|
2595
2614
|
if (!item.taskNodeList) {
|
|
2596
2615
|
this.nodeInfos = [];
|
|
2597
2616
|
} else {
|
|
2598
|
-
|
|
2617
|
+
if (isDef) {
|
|
2618
|
+
item.taskNodeList.map((x) => {
|
|
2619
|
+
if (x.nodeName == '编号') {
|
|
2620
|
+
this.operationList.push({
|
|
2621
|
+
key: x.nodeId,
|
|
2622
|
+
value: x.nodeName,
|
|
2623
|
+
isNextNode: true
|
|
2624
|
+
});
|
|
2625
|
+
}
|
|
2626
|
+
});
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
this.nodeInfos = item.taskNodeList.filter(
|
|
2630
|
+
(x) => x.nodeName != '编号'
|
|
2631
|
+
);
|
|
2599
2632
|
}
|
|
2600
2633
|
return;
|
|
2601
2634
|
}
|
|
@@ -2613,7 +2646,10 @@ export default {
|
|
|
2613
2646
|
this.nextNode.nextNodeId = this.nodeInfos[0].nodeId;
|
|
2614
2647
|
}
|
|
2615
2648
|
}
|
|
2616
|
-
|
|
2649
|
+
if(isNextNode){
|
|
2650
|
+
this.nodeInfos = [];
|
|
2651
|
+
this.nextNode.nextNodeId = val
|
|
2652
|
+
}
|
|
2617
2653
|
if (val === 9) {
|
|
2618
2654
|
this.isReject = true;
|
|
2619
2655
|
} else {
|
|
@@ -3210,18 +3246,7 @@ export default {
|
|
|
3210
3246
|
* @date 2022年5月25日
|
|
3211
3247
|
**/
|
|
3212
3248
|
subProcess(val, type) {
|
|
3213
|
-
|
|
3214
|
-
this.isFlow &&
|
|
3215
|
-
this.nodeInfo.nextNode &&
|
|
3216
|
-
this.startFlowPageEmbeddedIntoStartFlowIndex
|
|
3217
|
-
) {
|
|
3218
|
-
if(this.directCreateCircularReadWhenFlowStarted){
|
|
3219
|
-
this.$refs.flowCirculate.subMit()
|
|
3220
|
-
}else{
|
|
3221
|
-
this.$refs.processFormIndex.subProcess('nextNode');
|
|
3222
|
-
}
|
|
3223
|
-
return;
|
|
3224
|
-
}
|
|
3249
|
+
|
|
3225
3250
|
return this.$refs['nextNode'].validate((valid) => {
|
|
3226
3251
|
if (valid) {
|
|
3227
3252
|
if (this.isSubmitButtonShowAgreeAndDisagree == 1) {
|
|
@@ -3341,6 +3366,18 @@ export default {
|
|
|
3341
3366
|
},
|
|
3342
3367
|
|
|
3343
3368
|
sendData(freetype) {
|
|
3369
|
+
if (
|
|
3370
|
+
this.isFlow &&
|
|
3371
|
+
this.nodeInfo.nextNode &&
|
|
3372
|
+
this.startFlowPageEmbeddedIntoStartFlowIndex
|
|
3373
|
+
) {
|
|
3374
|
+
if (this.directCreateCircularReadWhenFlowStarted) {
|
|
3375
|
+
this.$refs.flowCirculate.subMit();
|
|
3376
|
+
} else {
|
|
3377
|
+
this.$refs.processFormIndex.subProcess('nextNode');
|
|
3378
|
+
}
|
|
3379
|
+
return;
|
|
3380
|
+
}
|
|
3344
3381
|
this.$refs['nextNode'].validate(async (valid) => {
|
|
3345
3382
|
if (valid) {
|
|
3346
3383
|
if (this.isFlow) {
|