@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 +1 -1
- package/src/components/assignee-box.vue +68 -48
package/package.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
<div class="org-detil">
|
|
14
|
-
<LamboPagingTable :key="
|
|
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
|
-
|
|
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
|
-
|
|
240
|
-
this.
|
|
241
|
-
this.
|
|
242
|
-
|
|
243
|
-
this.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
this.
|
|
247
|
-
this.
|
|
248
|
-
this.
|
|
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.
|
|
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
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
min-
|
|
796
|
-
|
|
797
|
-
|
|
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>
|