@lambo-design/workflow-approve 1.0.0-beta.94 → 1.0.0-beta.96

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/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: true,
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 = {}