@lambo-design/workflow-approve 1.0.0-beta.30 → 1.0.0-beta.32
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 +3 -3
- package/src/components/history.vue +5 -1
- package/src/portrait.vue +39 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/workflow-approve",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"axios": "^0.24.0",
|
|
14
14
|
"axios-cache-plugin": "^0.1.0",
|
|
15
|
-
"@lambo-design/core": "^4.7.1-beta.
|
|
16
|
-
"@lambo-design/shared": "^1.0.0-beta.
|
|
15
|
+
"@lambo-design/core": "^4.7.1-beta.147",
|
|
16
|
+
"@lambo-design/shared": "^1.0.0-beta.224"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"bpmn-js": "^7.3.1",
|
|
@@ -149,6 +149,10 @@ export default {
|
|
|
149
149
|
type: Boolean,
|
|
150
150
|
default: false
|
|
151
151
|
},
|
|
152
|
+
pushButton: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: true
|
|
155
|
+
},
|
|
152
156
|
handleName: {
|
|
153
157
|
type: String,
|
|
154
158
|
default: "审批"
|
|
@@ -337,7 +341,7 @@ export default {
|
|
|
337
341
|
}
|
|
338
342
|
},
|
|
339
343
|
mounted() {
|
|
340
|
-
this.displayPushButton = this.donePage;
|
|
344
|
+
this.displayPushButton = this.donePage && this.pushButton;
|
|
341
345
|
this.itemList = this.list;
|
|
342
346
|
if (this.itemList.length > 0) {
|
|
343
347
|
this.displayedList = this.itemList.slice(0, 2);
|
package/src/portrait.vue
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class="box" v-show="historyShow">
|
|
102
102
|
<Card class="process-history" :style="processHistoryHeight" dis-hover :bordered="false"
|
|
103
103
|
v-if="handleButtons && handleButtons.includes('auditHistory')">
|
|
104
|
-
<processHistory :portrait-width="portraitWidth" :list="processHistory" :done-page="isDetail"
|
|
104
|
+
<processHistory :portrait-width="portraitWidth" :list="processHistory" :done-page="isDetail" :push-button="pushButton"
|
|
105
105
|
:smart-flow-server-context="smartFlowServerContext"></processHistory>
|
|
106
106
|
</Card>
|
|
107
107
|
</div>
|
|
@@ -377,6 +377,12 @@ export default {
|
|
|
377
377
|
required: false,
|
|
378
378
|
default: '',
|
|
379
379
|
},
|
|
380
|
+
//详情页催办按钮
|
|
381
|
+
pushButton: {
|
|
382
|
+
type: Boolean,
|
|
383
|
+
required: false,
|
|
384
|
+
default: true,
|
|
385
|
+
},
|
|
380
386
|
//业务表单保存方法
|
|
381
387
|
businessFormSave: {
|
|
382
388
|
type: Function,
|
|
@@ -700,37 +706,39 @@ export default {
|
|
|
700
706
|
}, label)
|
|
701
707
|
}
|
|
702
708
|
})
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
+
if (this.handleButtons.includes('attachmentFile')){
|
|
710
|
+
column.push({
|
|
711
|
+
title: `附件`, key: 'fileList', minWidth: 200,
|
|
712
|
+
render: (h, { row }) => {
|
|
713
|
+
if (!row.fileList || row.fileList.length === 0) {
|
|
714
|
+
return h('span', '无'); // 如果没有附件,显示“无”
|
|
715
|
+
}
|
|
709
716
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
717
|
+
//显示所有附件
|
|
718
|
+
return h('div', row.fileList.map(file => {
|
|
719
|
+
return h('a', {
|
|
720
|
+
style: {
|
|
721
|
+
display: 'block',
|
|
722
|
+
marginTop: '5px',
|
|
723
|
+
marginRight:'5px',
|
|
724
|
+
whiteSpace: 'nowrap',
|
|
725
|
+
overflow: 'hidden',
|
|
726
|
+
textOverflow: 'ellipsis',
|
|
727
|
+
maxWidth: '100px',
|
|
728
|
+
},
|
|
729
|
+
attrs: {
|
|
730
|
+
title: file.attachName // 鼠标悬停时显示完整名称
|
|
731
|
+
},
|
|
732
|
+
on: {
|
|
733
|
+
click: () => {
|
|
734
|
+
this.getAttach(file);
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
}, file.attachName);
|
|
738
|
+
}));
|
|
739
|
+
}
|
|
740
|
+
})
|
|
741
|
+
}
|
|
734
742
|
|
|
735
743
|
return column
|
|
736
744
|
},
|