cloud-web-corejs 1.0.54-dev.317 → 1.0.54-dev.318
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
@@ -18,7 +18,7 @@
|
|
18
18
|
wfInfo.taskName
|
19
19
|
}}</b></span>
|
20
20
|
</template>
|
21
|
-
<el-form :model="formData">
|
21
|
+
<el-form ref="form" :model="formData">
|
22
22
|
<div id="containt">
|
23
23
|
<table class="table-detail">
|
24
24
|
<tbody>
|
@@ -54,9 +54,11 @@
|
|
54
54
|
<script>
|
55
55
|
export default {
|
56
56
|
props: {
|
57
|
-
|
57
|
+
wfSendTaskId: String,
|
58
|
+
wfInfo: Object,
|
59
|
+
current_prefix:String
|
58
60
|
},
|
59
|
-
inject:
|
61
|
+
inject:['getEditVueTarget'],
|
60
62
|
data() {
|
61
63
|
return {
|
62
64
|
formData: {
|
@@ -72,13 +74,13 @@ export default {
|
|
72
74
|
confirmDialog(){
|
73
75
|
this.$refs.form.$baseValidate((valid) => {
|
74
76
|
if (valid) {
|
75
|
-
let that =
|
76
|
-
let taskId = this.
|
77
|
+
let that = this.getEditVueTarget();
|
78
|
+
let taskId = this.wfSendTaskId;
|
77
79
|
let formData = {
|
78
80
|
opinion: this.formData.opinion,
|
79
81
|
taskId: taskId
|
80
82
|
}
|
81
|
-
return
|
83
|
+
return that.$http({
|
82
84
|
url: this.current_prefix + "/wf/addOpinion",
|
83
85
|
method: `post`,
|
84
86
|
data: formData,
|
@@ -86,7 +88,7 @@ export default {
|
|
86
88
|
modalStrictly: true,
|
87
89
|
success: (res) => {
|
88
90
|
that.$message({
|
89
|
-
message:
|
91
|
+
message: res.content,
|
90
92
|
type: "success",
|
91
93
|
duration: 1000,
|
92
94
|
});
|
@@ -38,7 +38,7 @@
|
|
38
38
|
v-show="wfInfo.toRevoke"
|
39
39
|
icon="el-icon-document-delete">{{ $t2('撤回', 'components.wf.revoke') }}
|
40
40
|
</el-button>
|
41
|
-
<
|
41
|
+
<addOpinionButton v-if="showAddOpinionButton" @confirm="reloadContent()" :wfInfo="wfInfo" :wfSendTaskId="wfSendTaskId" :current_prefix="current_prefix"></addOpinionButton>
|
42
42
|
</div>
|
43
43
|
<div class="title-name">
|
44
44
|
<b>
|
@@ -805,7 +805,7 @@ export default {
|
|
805
805
|
addTaskUserdialog: () => import('./addTaskUserdialog'),
|
806
806
|
setCandidateDialog: () => import('./setCandidateDialog'),
|
807
807
|
setCandidateButton: () => import('./setCandidateButton'),
|
808
|
-
|
808
|
+
addOpinionButton: () => import('./addOpinionButton'),
|
809
809
|
},
|
810
810
|
mixins: [wfContentMixin]
|
811
811
|
};
|
package/src/components/wf/wf.js
CHANGED
@@ -379,6 +379,11 @@ wfContentMixin = {
|
|
379
379
|
showCandidate: false,
|
380
380
|
candidateOption:{},
|
381
381
|
candidateDatas:[],
|
382
|
+
wfSendTaskId: null,
|
383
|
+
showAddOpinionButton: false,
|
384
|
+
|
385
|
+
addOpinionEnabled: false,
|
386
|
+
modifyCurrentCandidateEnabled: false,
|
382
387
|
};
|
383
388
|
},
|
384
389
|
provide() {
|
@@ -399,12 +404,42 @@ wfContentMixin = {
|
|
399
404
|
this.initForAll();
|
400
405
|
},
|
401
406
|
methods: {
|
407
|
+
initWfParam13(){
|
408
|
+
//初始化补充意见权限
|
409
|
+
let that = getTarget(this);
|
410
|
+
return that.$http({
|
411
|
+
url: USER_PREFIX + "/wf_diy_attribute/getValue",
|
412
|
+
method: `post`,
|
413
|
+
data: {attributeKey: "param13"},
|
414
|
+
success: (res) => {
|
415
|
+
this.addOpinionEnabled = res?.objx === true;
|
416
|
+
if(this.addOpinionEnabled){
|
417
|
+
this.wfSendTaskId = this.getViewParam('wfSendTaskId');
|
418
|
+
this.showAddOpinionButton = !!this.wfSendTaskId;
|
419
|
+
}
|
420
|
+
},
|
421
|
+
});
|
422
|
+
},
|
423
|
+
|
424
|
+
initWfParam14(){
|
425
|
+
//初始化修改当前候选人权限
|
426
|
+
let that = getTarget(this);
|
427
|
+
return that.$http({
|
428
|
+
url: USER_PREFIX + "/wf_diy_attribute/getValue",
|
429
|
+
method: `post`,
|
430
|
+
data: {attributeKey: "param14"},
|
431
|
+
success: (res) => {
|
432
|
+
this.modifyCurrentCandidateEnabled = res?.objx === true;
|
433
|
+
},
|
434
|
+
});
|
435
|
+
},
|
402
436
|
getViewParam(key){
|
403
437
|
let that = this.viewTarget;
|
404
438
|
let value = that[key] || that.$attrs[key];
|
405
439
|
return value;
|
406
440
|
},
|
407
441
|
initCandidate(){
|
442
|
+
// 是否显示"节点候选人"选项卡
|
408
443
|
let that = getTarget(this);
|
409
444
|
that.$http({
|
410
445
|
url: USER_PREFIX + "/wf_diy_attribute/getValue",
|
@@ -499,9 +534,17 @@ wfContentMixin = {
|
|
499
534
|
this.initWfUserParam();
|
500
535
|
this.initTabIndex();
|
501
536
|
this.initShowTaskInfo();
|
537
|
+
//初始化附言
|
502
538
|
this.getIsShowWfMemo();
|
539
|
+
// 是否显示"节点候选人"选项卡
|
503
540
|
this.initCandidate()
|
504
|
-
|
541
|
+
|
542
|
+
//初始化补充意见权限
|
543
|
+
this.initWfParam13();
|
544
|
+
|
545
|
+
//初始化修改当前候选人权限
|
546
|
+
this.initWfParam14();
|
547
|
+
|
505
548
|
}
|
506
549
|
});
|
507
550
|
},
|