@lambo-design/workflow-approve 1.0.0-beta.94 → 1.0.0-beta.95
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.
|
|
3
|
+
"version": "1.0.0-beta.95",
|
|
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/
|
|
16
|
-
"@lambo-design/
|
|
15
|
+
"@lambo-design/core": "^4.7.1-beta.169",
|
|
16
|
+
"@lambo-design/shared": "^1.0.0-beta.297"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"bpmn-js": "^7.3.1",
|
|
@@ -362,6 +362,10 @@ export default {
|
|
|
362
362
|
type: String,
|
|
363
363
|
default: "审批"
|
|
364
364
|
},
|
|
365
|
+
historySortBy: {
|
|
366
|
+
type: String,
|
|
367
|
+
default: "time"
|
|
368
|
+
},
|
|
365
369
|
//横竖版样式不同
|
|
366
370
|
portraitWidth: {
|
|
367
371
|
type: Number,
|
|
@@ -390,7 +394,7 @@ export default {
|
|
|
390
394
|
itemList: [],
|
|
391
395
|
auditNameList: [],
|
|
392
396
|
displayPushButton: false,
|
|
393
|
-
sortBy:
|
|
397
|
+
sortBy: this.historySortBy,
|
|
394
398
|
pendingActiveName: [], // 控制待审批折叠面板的展开状态
|
|
395
399
|
}
|
|
396
400
|
},
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<Card class="process-history" :style="processHistoryHeight" dis-hover :bordered="false"
|
|
85
85
|
v-if="handleButtons && handleButtons.includes('auditHistory')">
|
|
86
86
|
<processHistory :portrait-width="processInfoWidth" :list="processHistory" :done-page="isDetail"
|
|
87
|
-
:push-button="pushButton"
|
|
87
|
+
:push-button="pushButton" :history-sort-by="historySortBy"
|
|
88
88
|
:smart-flow-server-context="smartFlowServerContext"></processHistory>
|
|
89
89
|
</Card>
|
|
90
90
|
</div>
|
|
@@ -261,6 +261,11 @@ export default {
|
|
|
261
261
|
type: Array,
|
|
262
262
|
default: () => ([])
|
|
263
263
|
},
|
|
264
|
+
//审批历史默认排序规则
|
|
265
|
+
historySortBy: {
|
|
266
|
+
type: String,
|
|
267
|
+
default: 'time'
|
|
268
|
+
},
|
|
264
269
|
smartFlowServerContext: {
|
|
265
270
|
type: String,
|
|
266
271
|
default: '/api/smart-flow-server',
|
package/src/portrait.vue
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
:handle-buttons="handleButtons"
|
|
56
56
|
:process-history="processHistory"
|
|
57
57
|
:portrait-width="portraitWidth"
|
|
58
|
+
:history-sort-by="historySortBy"
|
|
58
59
|
:smart-flow-server-context="smartFlowServerContext"
|
|
59
60
|
@upload-file="uploadFile"/>
|
|
60
61
|
</div>
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
</div>
|
|
80
81
|
|
|
81
82
|
<!-- 竖版 -->
|
|
82
|
-
<div v-if="!inHorizontal" class="portrait-lambo-indicator-card"
|
|
83
|
+
<div v-if="!inHorizontal" :class="['portrait-lambo-indicator-card',!isExpanded && 'is-expanded']"
|
|
83
84
|
:style="{...pageContainerWithoutPadding, left: '0', width: isExpanded && showProcessInfo ? `calc(100% - ${portraitWidth+10}px)` : '99%'}">
|
|
84
85
|
<!-- 业务内容区插槽 -->
|
|
85
86
|
<slot v-if="currentTab === 'business'" name="business-content"></slot>
|
|
@@ -117,6 +118,7 @@
|
|
|
117
118
|
:handle-buttons="handleButtons"
|
|
118
119
|
:process-history="processHistory"
|
|
119
120
|
:portrait-width="portraitWidth"
|
|
121
|
+
:history-sort-by="historySortBy"
|
|
120
122
|
:smart-flow-server-context="smartFlowServerContext"
|
|
121
123
|
@upload-file="uploadFile"/>
|
|
122
124
|
</LamboIndicatorCard>
|
|
@@ -368,6 +370,18 @@ export default {
|
|
|
368
370
|
required: false,
|
|
369
371
|
default: '',
|
|
370
372
|
},
|
|
373
|
+
//审批历史默认排序规则
|
|
374
|
+
historySortBy: {
|
|
375
|
+
type: String,
|
|
376
|
+
required: false,
|
|
377
|
+
default: 'time'
|
|
378
|
+
},
|
|
379
|
+
//审批区展开状态
|
|
380
|
+
processInfoExpanded: {
|
|
381
|
+
type: Boolean,
|
|
382
|
+
required: false,
|
|
383
|
+
default: true
|
|
384
|
+
},
|
|
371
385
|
//是否显示竖向布局
|
|
372
386
|
inHorizontal: {
|
|
373
387
|
type: Boolean,
|
|
@@ -415,7 +429,7 @@ export default {
|
|
|
415
429
|
},
|
|
416
430
|
data() {
|
|
417
431
|
return {
|
|
418
|
-
isExpanded:
|
|
432
|
+
isExpanded: this.processInfoExpanded,
|
|
419
433
|
footerHeight: 55,
|
|
420
434
|
showProcessInfo: true,
|
|
421
435
|
portraitWidth: 0,
|
|
@@ -1213,13 +1227,13 @@ export default {
|
|
|
1213
1227
|
},
|
|
1214
1228
|
getNextNodes() {
|
|
1215
1229
|
const self = this
|
|
1216
|
-
self.nextNodesFormList = []
|
|
1217
|
-
self.nextNodesOldSettings = []
|
|
1218
1230
|
let param = {
|
|
1219
1231
|
procId: this.procId,
|
|
1220
1232
|
taskNode: this.taskNode
|
|
1221
1233
|
}
|
|
1222
1234
|
ajax.post(self.smartFlowServerContext + '/manage/processTodo/getNextNodes', param).then(function (resp) {
|
|
1235
|
+
self.nextNodesFormList = []
|
|
1236
|
+
self.nextNodesOldSettings = []
|
|
1223
1237
|
if (resp.data.code === '200') {
|
|
1224
1238
|
let nextNodeForm = {}
|
|
1225
1239
|
let nextNodeOldForm = {}
|