@lambo-design/workflow-approve 1.0.0-beta.142 → 1.0.0-beta.144

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.142",
3
+ "version": "1.0.0-beta.144",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -11,8 +11,8 @@
11
11
  </div>
12
12
  </div>
13
13
  <div class="org-detil">
14
- <LamboPagingTable :key="useTransferRangeUsers" ref="selection" highlight-row :data="tableData" :dataUrl="dataUrl" :columns="tableColumn" :searchParams="tableSearchParams" :height="tableHeight" :width="tableWidth"
15
- @on-selection-change="onSelectionChange" @on-current-change="onCurrentChange" :page-disable="useTransferRangeUsers" :showTableOption="!useTransferRangeUsers" :stripe="false">
14
+ <LamboPagingTable :key="tableRenderKey" ref="selection" highlight-row :data="tableData" :dataUrl="dataUrl" :columns="tableColumn" :searchParams="tableSearchParams" :height="tableHeight" :width="tableWidth"
15
+ @on-selection-change="onSelectionChange" @on-current-change="onCurrentChange" :page-disable="useTransferRangeUsers" :showTableOption="!useTransferRangeUsers" :stripe="false">
16
16
  <div slot="search" v-if="!useTransferRangeUsers">
17
17
  <Form :label-width="60" label-colon>
18
18
  <Row>
@@ -105,8 +105,9 @@ export default {
105
105
  permScope: 'all',
106
106
  modalBoxShow: false,
107
107
  dataUrl:'',
108
- tableData:[],
109
- helpBoxColumns: [
108
+ tableData:[],
109
+ tableRenderKey: 0,
110
+ helpBoxColumns: [
110
111
  {
111
112
  title: "用户ID",
112
113
  key: "userId",
@@ -230,22 +231,39 @@ export default {
230
231
  }
231
232
  },
232
233
  inject: ['toBeDoneListDoSearch'],
233
- methods: {
234
- init (organTreeType) {
235
- let self = this
236
- self.organTreeType = organTreeType
237
- self.getRootData(organTreeType)
238
- },
239
- clearData(){
240
- this.idSelectedArr = []
241
- this.useTransferRangeUsers = false
242
- //清除表格数据
243
- this.doSearch()
244
- },
245
- toggleShowHelpBox(organTreeType, permScope, helpBoxType, id, data, title) {
246
- this.clearData()
247
- this.id = id
248
- this.title = title
234
+ methods: {
235
+ init (organTreeType) {
236
+ let self = this
237
+ self.organTreeType = organTreeType
238
+ self.getRootData(organTreeType)
239
+ },
240
+ resetBoxState(){
241
+ this.tableRenderKey += 1
242
+ this.idSelectedArr = []
243
+ this.currentNode = {}
244
+ this.treeData = []
245
+ this.tableData = []
246
+ this.tableSearchParams = {}
247
+ this.dataUrl = ''
248
+ this.useTransferRangeUsers = false
249
+ this.useTransferRangeOrgan = false
250
+ this.permScopeList = 'all'
251
+ this.form = {
252
+ userId: '',
253
+ userName: '',
254
+ organId: '',
255
+ organTitle: '',
256
+ directChild: false,
257
+ isAdmin: ''
258
+ }
259
+ },
260
+ clearData(){
261
+ this.resetBoxState()
262
+ },
263
+ toggleShowHelpBox(organTreeType, permScope, helpBoxType, id, data, title) {
264
+ this.clearData()
265
+ this.id = id
266
+ this.title = title
249
267
  this.helpBoxType = helpBoxType
250
268
  this.organTreeType = organTreeType
251
269
  if (helpBoxType === 'appointHandlerWithCandGroups'){
@@ -751,13 +769,14 @@ export default {
751
769
  }
752
770
  },
753
771
 
754
- onCancel () {
755
- if (this.helpBoxType === 'auditTo82'){
756
- this.$emit('update-selected', ''); // 触发事件并传递 userId
757
- }
758
- this.modalBoxShow = false;
759
-
760
- },
772
+ onCancel () {
773
+ if (this.helpBoxType === 'auditTo82'){
774
+ this.$emit('update-selected', ''); // 触发事件并传递 userId
775
+ }
776
+ this.resetBoxState()
777
+ this.modalBoxShow = false;
778
+
779
+ },
761
780
 
762
781
  getSystemConfig(){
763
782
  const self = this
@@ -776,25 +795,26 @@ export default {
776
795
  </script>
777
796
 
778
797
  <style lang="less" scope>
779
- .org-info{
780
- display: flex;
781
- max-height: 700px;
782
- .org-tree {
783
- width: 265px;
784
- min-height: 450px;
785
- border-right: 1px solid #dcdee2;
786
- .tree-content {
787
- height: 100%;
788
- overflow-y: auto;
789
- }
790
- }
791
-
792
- .org-detil {
793
- flex:1;
794
- min-height: 400px;
795
- min-width: 800px;
796
- padding: 0 10px 10px;
797
- margin-left: 10px;
798
- }
799
- }
798
+ .org-info{
799
+ display: flex;
800
+ height: auto;
801
+ max-height: none;
802
+ .org-tree {
803
+ width: 265px;
804
+ min-height: 0;
805
+ border-right: 1px solid #dcdee2;
806
+ .tree-content {
807
+ height: auto;
808
+ overflow-y: auto;
809
+ }
810
+ }
811
+
812
+ .org-detil {
813
+ flex:1;
814
+ min-height: 0;
815
+ min-width: 800px;
816
+ padding: 0 10px 10px;
817
+ margin-left: 10px;
818
+ }
819
+ }
800
820
  </style>
@@ -30,7 +30,7 @@
30
30
  <!-- 检查是否有待审批记录 -->
31
31
  <template v-if="items.some(item => isPendingAudit(item))">
32
32
  <!-- 待审批的记录:使用折叠面板 -->
33
- <Collapse v-model="pendingActiveName" simple style="margin: -10px 0 0 20px;border: none">
33
+ <Collapse :key="'pending-collapse-' + index + '-' + sortBy" v-model="pendingActiveName" simple style="margin: -10px 0 0;border: none">
34
34
  <Panel :name="'pending-panel' + index" hide-arrow>
35
35
  <span class="pending-audit-title">
36
36
  <Icon type="md-time" style="color: orange; margin-right: 5px;" />
@@ -526,7 +526,7 @@ export default {
526
526
  }
527
527
  ],
528
528
  sortBy: this.historySortBy,
529
- pendingActiveName: [], // 控制待审批折叠面板的展开状态
529
+ pendingActiveName: '', // 控制待审批折叠面板的展开状态
530
530
  }
531
531
  },
532
532
  computed: {
@@ -993,6 +993,7 @@ export default {
993
993
  },
994
994
  toggleSortBy(by) {
995
995
  this.sortBy = by;
996
+ this.pendingActiveName = '';
996
997
  },
997
998
  isPendingAudit(item) {
998
999
  // 判断是否为待审批状态
@@ -1056,20 +1057,18 @@ export default {
1056
1057
  align-items: center;
1057
1058
  }
1058
1059
 
1059
- /* 按时间排序的卡片样式 - 更小,不遮挡时间轴圆点 */
1060
1060
  .portrait-card-time {
1061
- margin-left: 20px !important;
1062
- margin-right: 10px !important;
1063
- margin-bottom: 8px !important;
1064
- background-color: #fafafa !important;
1061
+ width: 100%;
1062
+ max-width: 100%;
1063
+ margin-left: 0 !important;
1064
+ margin-right: 0 !important;
1065
+ margin-bottom: 5px !important;
1066
+ box-sizing: border-box;
1067
+ overflow: hidden;
1065
1068
  }
1066
1069
 
1067
1070
  :deep(.portrait-card-time .ivu-card-body) {
1068
- padding: 8px 12px !important;
1069
- }
1070
-
1071
- :deep(.portrait-card-time .ivu-list-item) {
1072
- padding: 6px 0 !important;
1071
+ padding: 5px !important;
1073
1072
  }
1074
1073
 
1075
1074
  :deep(.docx) {