@lambo-design/workflow-approve 1.0.0-beta.143 → 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.143",
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>