@lambo-design/workflow-approve 1.0.0-beta.31 → 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/portrait.vue +32 -30
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",
|
package/src/portrait.vue
CHANGED
|
@@ -706,37 +706,39 @@ export default {
|
|
|
706
706
|
}, label)
|
|
707
707
|
}
|
|
708
708
|
})
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
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
|
+
}
|
|
715
716
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
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
|
+
}
|
|
740
742
|
|
|
741
743
|
return column
|
|
742
744
|
},
|