@lambo-design/workflow-approve 1.0.0-beta.26 → 1.0.0-beta.27

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/workflow-approve",
3
- "version": "1.0.0-beta.26",
3
+ "version": "1.0.0-beta.27",
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/shared": "^1.0.0-beta.210",
16
- "@lambo-design/core": "^4.7.1-beta.141"
15
+ "@lambo-design/core": "^4.7.1-beta.145",
16
+ "@lambo-design/shared": "^1.0.0-beta.220"
17
17
  },
18
18
  "dependencies": {
19
19
  "bpmn-js": "^7.3.1",
@@ -66,7 +66,7 @@
66
66
  v-else-if="item.auditResult === '80'">跳转指定节点</span>
67
67
  <span style="color: #19be6b; font-size: 13px;"
68
68
  v-else-if="item.auditResult === '90'">驳回指定节点</span>
69
- <span style="color: #ff9900; font-size: 13px;" v-else>待审批</span>
69
+ <span style="color: #ff9900; font-size: 13px;" v-else>{{ '待' + handleName }}</span>
70
70
  </Col>
71
71
  <Col span="12" style="text-align: right">
72
72
  <Button v-if="item.fileList && item.fileList.length > 0" size="small" type="primary" ghost class="urging" @click="openModal(item)">查看附件</Button>
@@ -147,6 +147,10 @@ export default {
147
147
  type: Boolean,
148
148
  default: false
149
149
  },
150
+ handleName: {
151
+ type: String,
152
+ default: "审批"
153
+ },
150
154
  //横竖版样式不同
151
155
  portraitWidth: {
152
156
  type: Number,
@@ -325,9 +329,9 @@ export default {
325
329
  },
326
330
  showDate(item) {
327
331
  if (item.auditResult){
328
- return '处理时间:'
332
+ return `处理时间:${item.auditDate}`
329
333
  }
330
- return '接收时间:'
334
+ return `接收时间:${item.createTime}`
331
335
  }
332
336
  },
333
337
  mounted() {
package/src/portrait.vue CHANGED
@@ -689,6 +689,38 @@ export default {
689
689
  }, label)
690
690
  }
691
691
  })
692
+ column.push({
693
+ title: `附件`, key: 'fileList', minWidth: 200,
694
+ render: (h, { row }) => {
695
+ if (!row.fileList || row.fileList.length === 0) {
696
+ return h('span', '无'); // 如果没有附件,显示“无”
697
+ }
698
+
699
+ //显示所有附件
700
+ return h('div', row.fileList.map(file => {
701
+ return h('a', {
702
+ style: {
703
+ display: 'block',
704
+ marginTop: '5px',
705
+ marginRight:'5px',
706
+ whiteSpace: 'nowrap',
707
+ overflow: 'hidden',
708
+ textOverflow: 'ellipsis',
709
+ maxWidth: '100px',
710
+ },
711
+ attrs: {
712
+ title: file.attachName // 鼠标悬停时显示完整名称
713
+ },
714
+ on: {
715
+ click: () => {
716
+ this.getAttach(file);
717
+ }
718
+ },
719
+ }, file.attachName);
720
+ }));
721
+ }
722
+ })
723
+
692
724
  return column
693
725
  },
694
726
  },