cloud-web-corejs 1.0.54-dev.316 → 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 +1 -1
- package/src/components/baseInputExport/mixins.js +0 -2
- package/src/components/wf/{add0pinionButton.vue → addOpinionButton.vue} +9 -7
- package/src/components/wf/content.vue +2 -2
- package/src/components/wf/wf.js +44 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +1 -1
- package/src/views/user/user/list.vue +582 -582
package/package.json
CHANGED
@@ -158,13 +158,11 @@ modules = {
|
|
158
158
|
|
159
159
|
|
160
160
|
let condition = null;
|
161
|
-
debugger
|
162
161
|
if(this.option.customCondition){
|
163
162
|
let condition1 = this.option.customCondition(item);
|
164
163
|
if(condition1)condition = condition1;
|
165
164
|
}
|
166
165
|
if(!condition){
|
167
|
-
debugger
|
168
166
|
if ($grid) {
|
169
167
|
checkRows = $grid.getCheckboxRecords(true);
|
170
168
|
} else {
|
@@ -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
|
},
|
@@ -6,13 +6,13 @@
|
|
6
6
|
<el-form-item label="表格唯一名称">
|
7
7
|
<el-input v-model="optionModel.printTableRef"></el-input>
|
8
8
|
</el-form-item>
|
9
|
-
<el-form-item label="打印自定义条件参数">
|
9
|
+
<!-- <el-form-item label="打印自定义条件参数">
|
10
10
|
<a href="javascript:void(0);" class="a-link link-oneLind"
|
11
11
|
@click="editEventHandler('printCustomCondition', printConditionParams)">
|
12
12
|
<span>{{ optionModel.printCustomCondition }}</span>
|
13
13
|
<i class="el-icon-edit"></i>
|
14
14
|
</a>
|
15
|
-
</el-form-item>
|
15
|
+
</el-form-item> -->
|
16
16
|
<el-form-item label="输出模板编码"></el-form-item>
|
17
17
|
<el-form-item label-width="0">
|
18
18
|
<draggable tag="ul" class="draggable-box" :list="optionModel.printItems"
|
@@ -54,7 +54,7 @@ export default {
|
|
54
54
|
data() {
|
55
55
|
return {
|
56
56
|
eventParams: [],
|
57
|
-
printConditionParams: ["dataId", "formCode", exportTemplate]
|
57
|
+
printConditionParams: ["dataId", "formCode", "exportTemplate"]
|
58
58
|
};
|
59
59
|
},
|
60
60
|
methods: {
|