@lambo-design/workflow-approve 1.0.0-beta.93 → 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.93",
3
+ "version": "1.0.0-beta.95",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -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: 'time',
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>
@@ -100,7 +101,7 @@
100
101
  </a>
101
102
  <transition style="position: relative; overflow-x: hidden" v-if="showProcessInfo && !inHorizontal" name="draw" @before-enter="beforeFlowInfoEnter" @enter="flowInfoEnter"
102
103
  @before-leave="beforeFlowInfoLeave" @leave="flowInfoLeave">
103
- <lamboIndicatorCard v-show="isExpanded" class="portrait-lambo-indicator-card"
104
+ <LamboIndicatorCard v-show="isExpanded" class="portrait-lambo-indicator-card"
104
105
  :style="{width: portraitWidth + 'px', right: '0', ...pageContainerWithoutPadding}" :hasExtend="false">
105
106
  <div slot="content-title">流程信息</div>
106
107
  <ProcessInfo ref="processInfo"
@@ -117,9 +118,10 @@
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
- </lamboIndicatorCard>
124
+ </LamboIndicatorCard>
123
125
  </transition>
124
126
 
125
127
  <!-- 节点跳转选择弹框 -->
@@ -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: true,
432
+ isExpanded: this.processInfoExpanded,
419
433
  footerHeight: 55,
420
434
  showProcessInfo: true,
421
435
  portraitWidth: 0,
@@ -580,6 +594,7 @@ export default {
580
594
  position: 'absolute',
581
595
  top: `${top}px`,
582
596
  height: `calc(100% - ${top + this.footerHeight}px)`,
597
+ minHeight: `calc(100% - ${top + this.footerHeight}px)`,
583
598
  }
584
599
  return style
585
600
  },
@@ -1212,13 +1227,13 @@ export default {
1212
1227
  },
1213
1228
  getNextNodes() {
1214
1229
  const self = this
1215
- self.nextNodesFormList = []
1216
- self.nextNodesOldSettings = []
1217
1230
  let param = {
1218
1231
  procId: this.procId,
1219
1232
  taskNode: this.taskNode
1220
1233
  }
1221
1234
  ajax.post(self.smartFlowServerContext + '/manage/processTodo/getNextNodes', param).then(function (resp) {
1235
+ self.nextNodesFormList = []
1236
+ self.nextNodesOldSettings = []
1222
1237
  if (resp.data.code === '200') {
1223
1238
  let nextNodeForm = {}
1224
1239
  let nextNodeOldForm = {}