three-trees-ui 1.0.23 → 1.0.25
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/lib/three-trees-ui.common.js +633 -511
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +633 -511
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/CustomDialog/src/customDialog.vue +65 -21
- package/packages/CustomDialog/src/customMobileDialog.vue +64 -21
- package/packages/DimensionSelector/src/main.vue +1 -0
- package/packages/DimensionSelectorInput/src/main.vue +5 -0
- package/packages/JobSelector/src/JobSelectorDialog.vue +1 -0
- package/packages/JobSelector/src/main.vue +1 -0
- package/packages/JobSelectorInput/src/main.vue +5 -0
- package/packages/ListSelector/src/ListSelector.vue +39 -5
- package/packages/OrgSelector/src/OrgSelectorDialog.vue +2 -1
- package/packages/OrgSelector/src/main.vue +1 -0
- package/packages/OrgSelectorInput/src/OrgSelectorInput.vue +5 -0
- package/packages/PostSelector/src/PostSelectorDialog.vue +1 -0
- package/packages/PostSelector/src/main.vue +1 -0
- package/packages/PostSelectorInput/src/PostSelectorInput.vue +5 -0
- package/packages/RoleSelector/src/RoleSelectorDialog.vue +1 -0
- package/packages/RoleSelector/src/main.vue +1 -0
- package/packages/RoleSelectorInput/src/main.vue +5 -0
- package/packages/UserSelector/src/UserSelectorDialog.vue +2 -1
- package/packages/UserSelector/src/main.vue +1 -0
- package/packages/UserSelectorInput/src/main.vue +5 -0
package/package.json
CHANGED
|
@@ -525,6 +525,8 @@
|
|
|
525
525
|
writeable: true,
|
|
526
526
|
fixedParams: {}, // 传过来的固定值
|
|
527
527
|
executeScriptResult: null,
|
|
528
|
+
customDialogParams: {},
|
|
529
|
+
treeDialogConfig: null,
|
|
528
530
|
}
|
|
529
531
|
},
|
|
530
532
|
computed: {
|
|
@@ -863,7 +865,7 @@
|
|
|
863
865
|
? customDialog.requestType
|
|
864
866
|
: 'POST'
|
|
865
867
|
var url =
|
|
866
|
-
'${form}/form/customDialog/v1/
|
|
868
|
+
'${form}/form/customDialog/v1/getTreeDataByPid?alias=' +
|
|
867
869
|
pageParam.alias +
|
|
868
870
|
'&mapParam=' +
|
|
869
871
|
mapParam
|
|
@@ -924,6 +926,7 @@
|
|
|
924
926
|
requestParams.requestType = requestType
|
|
925
927
|
requestParams.url = url
|
|
926
928
|
requestParams.paramsObj = paramsObj
|
|
929
|
+
this.customDialogParams = requestParams
|
|
927
930
|
this.searchTree(requestParams, defaultPValue)
|
|
928
931
|
this.customDialogShowTree = true
|
|
929
932
|
},
|
|
@@ -946,13 +949,18 @@
|
|
|
946
949
|
if (defaultPValue) {
|
|
947
950
|
displayfield.pvalue = defaultPValue
|
|
948
951
|
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
952
|
+
// restful 接口不懒加载
|
|
953
|
+
if (this_.customDialog.dsType != 'dataSource') {
|
|
954
|
+
this_.props1 = this_.toTreeData(
|
|
955
|
+
response,
|
|
956
|
+
displayfield.id,
|
|
957
|
+
displayfield.pid,
|
|
958
|
+
displayfield.displayName,
|
|
959
|
+
displayfield.pvalue ? displayfield.pvalue : 0
|
|
960
|
+
)
|
|
961
|
+
} else {
|
|
962
|
+
this_.props1 = response
|
|
963
|
+
}
|
|
956
964
|
})
|
|
957
965
|
},
|
|
958
966
|
dialogTreeConfirm() {
|
|
@@ -1843,11 +1851,40 @@
|
|
|
1843
1851
|
this_.customDialog.style == 2
|
|
1844
1852
|
? this_.combiTreeDisplayField
|
|
1845
1853
|
: this_.displayField
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1854
|
+
// restful 接口不懒加载
|
|
1855
|
+
if (
|
|
1856
|
+
(this.customDialog.style == 2 &&
|
|
1857
|
+
this.treeDialogConfig &&
|
|
1858
|
+
this.treeDialogConfig.dsType != 'dataSource') ||
|
|
1859
|
+
(this.customDialog.style != 2 &&
|
|
1860
|
+
this.customDialog.dsType != 'dataSource')
|
|
1861
|
+
) {
|
|
1862
|
+
resolve(
|
|
1863
|
+
this.treeList.filter(
|
|
1864
|
+
(value) =>
|
|
1865
|
+
value[displayField.pid] === node.data[displayField.id]
|
|
1866
|
+
)
|
|
1849
1867
|
)
|
|
1850
|
-
|
|
1868
|
+
} else {
|
|
1869
|
+
const nodeDataId = node.data[displayField.id]
|
|
1870
|
+
if (nodeDataId) {
|
|
1871
|
+
let { url } = this_.customDialogParams
|
|
1872
|
+
let ljChar = url.indexOf('?') == -1 ? '?' : '&'
|
|
1873
|
+
url = url + ljChar + '&pidValue=' + nodeDataId
|
|
1874
|
+
let query = this.$requestConfig.request({
|
|
1875
|
+
url: url,
|
|
1876
|
+
method:
|
|
1877
|
+
this_.customDialogParams.requestType == 'POST'
|
|
1878
|
+
? 'post'
|
|
1879
|
+
: 'get',
|
|
1880
|
+
data: this_.customDialogParams.paramsObj,
|
|
1881
|
+
})
|
|
1882
|
+
query.then(function(response) {
|
|
1883
|
+
resolve(response)
|
|
1884
|
+
})
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1851
1888
|
if (this.showData && this.showData.length > 0) {
|
|
1852
1889
|
setTimeout(() => {
|
|
1853
1890
|
this.showData.forEach((v) => {
|
|
@@ -1936,6 +1973,7 @@
|
|
|
1936
1973
|
//获取对话框数据
|
|
1937
1974
|
this.$requestConfig.getCustomDialogByAlias(treeAlias).then((resp) => {
|
|
1938
1975
|
let treeDialog = resp
|
|
1976
|
+
this.treeDialogConfig = resp
|
|
1939
1977
|
this.leftTreeTitle = treeDialog.name
|
|
1940
1978
|
let requestType =
|
|
1941
1979
|
treeDialog.dsType == 'dataSource'
|
|
@@ -1944,7 +1982,7 @@
|
|
|
1944
1982
|
? treeDialog.requestType
|
|
1945
1983
|
: 'post'
|
|
1946
1984
|
let url =
|
|
1947
|
-
'${form}/form/customDialog/v1/
|
|
1985
|
+
'${form}/form/customDialog/v1/getTreeDataByPid?alias=' +
|
|
1948
1986
|
treeAlias +
|
|
1949
1987
|
'&mapParam='
|
|
1950
1988
|
let paramsObj = {}
|
|
@@ -1978,6 +2016,7 @@
|
|
|
1978
2016
|
requestParams.requestType = requestType
|
|
1979
2017
|
requestParams.url = url
|
|
1980
2018
|
requestParams.paramsObj = paramsObj
|
|
2019
|
+
this.customDialogParams = requestParams
|
|
1981
2020
|
|
|
1982
2021
|
this.$requestConfig
|
|
1983
2022
|
.request({
|
|
@@ -1991,14 +2030,19 @@
|
|
|
1991
2030
|
this.defaultProps.label = displayField.displayName
|
|
1992
2031
|
this.treeList = resp
|
|
1993
2032
|
this.combiTreeDisplayField = displayField
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2033
|
+
// restful 接口不懒加载
|
|
2034
|
+
if (treeDialog.dsType != 'dataSource') {
|
|
2035
|
+
this.combinationTreeData = this.toTreeData(
|
|
2036
|
+
resp,
|
|
2037
|
+
displayField.id,
|
|
2038
|
+
displayField.pid,
|
|
2039
|
+
displayField.displayName,
|
|
2040
|
+
displayField.pvalue ? displayField.pvalue : '0',
|
|
2041
|
+
resultfield
|
|
2042
|
+
)
|
|
2043
|
+
} else {
|
|
2044
|
+
this.combinationTreeData = resp
|
|
2045
|
+
}
|
|
2002
2046
|
}
|
|
2003
2047
|
})
|
|
2004
2048
|
})
|
|
@@ -438,6 +438,8 @@
|
|
|
438
438
|
combinationRule: {},
|
|
439
439
|
leftTreeTitle: '',
|
|
440
440
|
fixedParams: {}, // 传过来的固定值
|
|
441
|
+
customDialogParams: {},
|
|
442
|
+
treeDialogConfig: null,
|
|
441
443
|
}
|
|
442
444
|
},
|
|
443
445
|
computed: {
|
|
@@ -786,7 +788,7 @@
|
|
|
786
788
|
? customDialog.requestType
|
|
787
789
|
: 'POST'
|
|
788
790
|
var url =
|
|
789
|
-
'${form}/form/customDialog/v1/
|
|
791
|
+
'${form}/form/customDialog/v1/getTreeDataByPid?alias=' +
|
|
790
792
|
pageParam.alias +
|
|
791
793
|
'&mapParam=' +
|
|
792
794
|
mapParam
|
|
@@ -847,6 +849,7 @@
|
|
|
847
849
|
requestParams.requestType = requestType
|
|
848
850
|
requestParams.url = url
|
|
849
851
|
requestParams.paramsObj = paramsObj
|
|
852
|
+
this.customDialogParams = requestParams
|
|
850
853
|
this.searchTree(requestParams, defaultPValue)
|
|
851
854
|
this.customDialogShowTree = true
|
|
852
855
|
},
|
|
@@ -869,13 +872,18 @@
|
|
|
869
872
|
if (defaultPValue) {
|
|
870
873
|
displayfield.pvalue = defaultPValue
|
|
871
874
|
}
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
875
|
+
// restful 接口不懒加载
|
|
876
|
+
if (this_.customDialog.dsType != 'dataSource') {
|
|
877
|
+
this_.props1 = this_.toTreeData(
|
|
878
|
+
response,
|
|
879
|
+
displayfield.id,
|
|
880
|
+
displayfield.pid,
|
|
881
|
+
displayfield.displayName,
|
|
882
|
+
displayfield.pvalue ? displayfield.pvalue : 0
|
|
883
|
+
)
|
|
884
|
+
} else {
|
|
885
|
+
this_.props1 = response
|
|
886
|
+
}
|
|
879
887
|
})
|
|
880
888
|
},
|
|
881
889
|
dialogTreeConfirm() {
|
|
@@ -1628,11 +1636,39 @@
|
|
|
1628
1636
|
this_.customDialog.style == 2
|
|
1629
1637
|
? this_.combiTreeDisplayField
|
|
1630
1638
|
: this_.displayField
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1639
|
+
// restful 接口不懒加载
|
|
1640
|
+
if (
|
|
1641
|
+
(this.customDialog.style == 2 &&
|
|
1642
|
+
this.treeDialogConfig &&
|
|
1643
|
+
this.treeDialogConfig.dsType != 'dataSource') ||
|
|
1644
|
+
(this.customDialog.style != 2 &&
|
|
1645
|
+
this.customDialog.dsType != 'dataSource')
|
|
1646
|
+
) {
|
|
1647
|
+
resolve(
|
|
1648
|
+
this.treeList.filter(
|
|
1649
|
+
(value) =>
|
|
1650
|
+
value[displayField.pid] === node.data[displayField.id]
|
|
1651
|
+
)
|
|
1634
1652
|
)
|
|
1635
|
-
|
|
1653
|
+
} else {
|
|
1654
|
+
const nodeDataId = node.data[displayField.id]
|
|
1655
|
+
if (nodeDataId) {
|
|
1656
|
+
let { url } = this_.customDialogParams
|
|
1657
|
+
let ljChar = url.indexOf('?') == -1 ? '?' : '&'
|
|
1658
|
+
url = url + ljChar + '&pidValue=' + nodeDataId
|
|
1659
|
+
let query = this.$requestConfig.request({
|
|
1660
|
+
url: url,
|
|
1661
|
+
method:
|
|
1662
|
+
this_.customDialogParams.requestType == 'POST'
|
|
1663
|
+
? 'post'
|
|
1664
|
+
: 'get',
|
|
1665
|
+
data: this_.customDialogParams.paramsObj,
|
|
1666
|
+
})
|
|
1667
|
+
query.then(function(response) {
|
|
1668
|
+
resolve(response)
|
|
1669
|
+
})
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1636
1672
|
if (this.showData && this.showData.length > 0) {
|
|
1637
1673
|
setTimeout(() => {
|
|
1638
1674
|
this.showData.forEach((v) => {
|
|
@@ -1712,6 +1748,7 @@
|
|
|
1712
1748
|
//获取对话框数据
|
|
1713
1749
|
this.$requestConfig.getCustomDialogByAlias(treeAlias).then((resp) => {
|
|
1714
1750
|
let treeDialog = resp
|
|
1751
|
+
this.treeDialogConfig = resp
|
|
1715
1752
|
this.leftTreeTitle = treeDialog.name
|
|
1716
1753
|
let requestType =
|
|
1717
1754
|
treeDialog.dsType == 'dataSource'
|
|
@@ -1720,7 +1757,7 @@
|
|
|
1720
1757
|
? treeDialog.requestType
|
|
1721
1758
|
: 'post'
|
|
1722
1759
|
let url =
|
|
1723
|
-
'${form}/form/customDialog/v1/
|
|
1760
|
+
'${form}/form/customDialog/v1/getTreeDataByPid?alias=' +
|
|
1724
1761
|
treeAlias +
|
|
1725
1762
|
'&mapParam='
|
|
1726
1763
|
let paramsObj = {}
|
|
@@ -1754,6 +1791,7 @@
|
|
|
1754
1791
|
requestParams.requestType = requestType
|
|
1755
1792
|
requestParams.url = url
|
|
1756
1793
|
requestParams.paramsObj = paramsObj
|
|
1794
|
+
this.customDialogParams = requestParams
|
|
1757
1795
|
|
|
1758
1796
|
this.$requestConfig
|
|
1759
1797
|
.request({
|
|
@@ -1767,14 +1805,19 @@
|
|
|
1767
1805
|
this.defaultProps.label = displayField.displayName
|
|
1768
1806
|
this.treeList = resp
|
|
1769
1807
|
this.combiTreeDisplayField = displayField
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1808
|
+
// restful 接口不懒加载
|
|
1809
|
+
if (treeDialog.dsType != 'dataSource') {
|
|
1810
|
+
this.combinationTreeData = this.toTreeData(
|
|
1811
|
+
resp,
|
|
1812
|
+
displayField.id,
|
|
1813
|
+
displayField.pid,
|
|
1814
|
+
displayField.displayName,
|
|
1815
|
+
displayField.pvalue ? displayField.pvalue : '0',
|
|
1816
|
+
resultfield
|
|
1817
|
+
)
|
|
1818
|
+
} else {
|
|
1819
|
+
this.combinationTreeData = resp
|
|
1820
|
+
}
|
|
1778
1821
|
}
|
|
1779
1822
|
})
|
|
1780
1823
|
})
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
@search="handleSearch"
|
|
29
29
|
@reset="handleReset"
|
|
30
30
|
@page-change="handlePageChange"
|
|
31
|
+
@size-change="handleSizeChange"
|
|
31
32
|
@row-click="(row) => $emit('row-click', row)"
|
|
32
33
|
@select-data="(data) => $emit('select-data', data)"
|
|
33
34
|
></ht-dimension-selector>
|
|
@@ -150,6 +151,10 @@
|
|
|
150
151
|
// 搜索模式下或者未进行过滤时,查询所有数据
|
|
151
152
|
this.handleLoad(page)
|
|
152
153
|
},
|
|
154
|
+
handleSizeChange(size) {
|
|
155
|
+
this.pagination.pageSize = size
|
|
156
|
+
this.handlePageChange(this.pagination.page)
|
|
157
|
+
},
|
|
153
158
|
// 获取查询参数中的分页信息(不传page时默认查询第一页)
|
|
154
159
|
getPageBean(page) {
|
|
155
160
|
const pageBean = { ...this.pagination }
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
@search="handleSearch"
|
|
31
31
|
@reset="handleReset"
|
|
32
32
|
@page-change="handlePageChange"
|
|
33
|
+
@size-change="handleSizeChange"
|
|
33
34
|
@row-click="(row) => $emit('row-click', row)"
|
|
34
35
|
@select-data="(data) => $emit('select-data', data)"
|
|
35
36
|
></ht-job-selector>
|
|
@@ -155,6 +156,10 @@
|
|
|
155
156
|
// 搜索模式下或者未进行过滤时,查询所有数据
|
|
156
157
|
this.handleLoad(page)
|
|
157
158
|
},
|
|
159
|
+
handleSizeChange(size) {
|
|
160
|
+
this.pagination.pageSize = size
|
|
161
|
+
this.handlePageChange(this.pagination.page)
|
|
162
|
+
},
|
|
158
163
|
// 获取查询参数中的分页信息(不传page时默认查询第一页)
|
|
159
164
|
getPageBean(page) {
|
|
160
165
|
const pageBean = { ...this.pagination }
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
</div>
|
|
54
54
|
<div v-if="data.length > 0" class="selector-main__pager">
|
|
55
55
|
<el-pagination
|
|
56
|
-
layout="prev, pager, next"
|
|
56
|
+
layout="sizes,prev, pager, next"
|
|
57
57
|
:disabled="loading"
|
|
58
58
|
:page-sizes="pageSizeArr"
|
|
59
59
|
:page-size="pagination.pageSize"
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
:total="pagination.total"
|
|
62
62
|
:current-page="pagination.page"
|
|
63
63
|
@current-change="handleCurrentChange"
|
|
64
|
+
@size-change="handleSizeChange"
|
|
64
65
|
></el-pagination>
|
|
65
66
|
</div>
|
|
66
67
|
</div>
|
|
@@ -181,7 +182,7 @@
|
|
|
181
182
|
selects: [],
|
|
182
183
|
currentSelectData: [],
|
|
183
184
|
noDataImg: require('@/assets/no-data.png'),
|
|
184
|
-
pageSizeArr: [10, 50, 100, 200, 300],
|
|
185
|
+
pageSizeArr: [10, 20, 50, 100, 200, 300],
|
|
185
186
|
checkAll: false,
|
|
186
187
|
isIndeterminate: false,
|
|
187
188
|
}
|
|
@@ -216,10 +217,10 @@
|
|
|
216
217
|
}
|
|
217
218
|
},
|
|
218
219
|
rangeSpan() {
|
|
219
|
-
return this.isSearchMode ? 0 :
|
|
220
|
+
return this.isSearchMode ? 0 : 6
|
|
220
221
|
},
|
|
221
222
|
mainSpan() {
|
|
222
|
-
return this.isSearchMode ? 17 :
|
|
223
|
+
return this.isSearchMode ? 17 : 11
|
|
223
224
|
},
|
|
224
225
|
currentPageSelectedCount() {
|
|
225
226
|
return this.single
|
|
@@ -255,6 +256,15 @@
|
|
|
255
256
|
this.checkAll = val === this.data.length
|
|
256
257
|
this.isIndeterminate = val > 0 && val < this.data.length
|
|
257
258
|
},
|
|
259
|
+
data: {
|
|
260
|
+
handler(val) {
|
|
261
|
+
this.checkAll = this.currentPageSelectedCount === val.length
|
|
262
|
+
this.isIndeterminate =
|
|
263
|
+
this.currentPageSelectedCount > 0 &&
|
|
264
|
+
this.currentPageSelectedCount < val.length
|
|
265
|
+
},
|
|
266
|
+
deep: true,
|
|
267
|
+
},
|
|
258
268
|
},
|
|
259
269
|
methods: {
|
|
260
270
|
getSelectedData() {
|
|
@@ -304,6 +314,9 @@
|
|
|
304
314
|
handleCurrentChange(currentPage) {
|
|
305
315
|
this.$emit('page-change', currentPage)
|
|
306
316
|
},
|
|
317
|
+
handleSizeChange(size) {
|
|
318
|
+
this.$emit('size-change', size)
|
|
319
|
+
},
|
|
307
320
|
removeSelected(item) {
|
|
308
321
|
this.selects.remove(item)
|
|
309
322
|
},
|
|
@@ -316,7 +329,7 @@
|
|
|
316
329
|
this.selects = this.selects.length
|
|
317
330
|
? utils.uniqueArrayObject(
|
|
318
331
|
[...this.selects, ...currentPageData],
|
|
319
|
-
|
|
332
|
+
this.primaryFieldProp
|
|
320
333
|
)
|
|
321
334
|
: currentPageData
|
|
322
335
|
} else {
|
|
@@ -463,6 +476,27 @@
|
|
|
463
476
|
.el-pager {
|
|
464
477
|
line-height: 25px;
|
|
465
478
|
}
|
|
479
|
+
.el-select .el-input {
|
|
480
|
+
width: 86px;
|
|
481
|
+
|
|
482
|
+
.el-input__inner {
|
|
483
|
+
text-align: left;
|
|
484
|
+
padding-left: 10px;
|
|
485
|
+
padding-right: 0;
|
|
486
|
+
border-radius: 2px;
|
|
487
|
+
color: #333;
|
|
488
|
+
background: #f4f4f5;
|
|
489
|
+
border: none;
|
|
490
|
+
}
|
|
491
|
+
.el-select__caret {
|
|
492
|
+
color: #333;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
.el-pagination__sizes {
|
|
496
|
+
.el-icon-arrow-up:before {
|
|
497
|
+
content: '\e78f';
|
|
498
|
+
}
|
|
499
|
+
}
|
|
466
500
|
}
|
|
467
501
|
}
|
|
468
502
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
width="
|
|
3
|
+
width="1060px"
|
|
4
4
|
:title="title"
|
|
5
5
|
class="orgdialog-selector__wrapper"
|
|
6
6
|
:visible.sync="dialogVisible"
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
@reset="reset"
|
|
42
42
|
@row-click="(row) => $emit('row-click', row)"
|
|
43
43
|
@page-change="(page) => $emit('page-change', page)"
|
|
44
|
+
@size-change="(size) => $emit('size-change', size)"
|
|
44
45
|
>
|
|
45
46
|
<el-card slot="range" class="selector-range__card" shadow="hover">
|
|
46
47
|
<el-tabs v-model="activeRange">
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
@row-click="(row) => $emit('row-click', row)"
|
|
87
87
|
@select-data="(data) => $emit('select-data', data)"
|
|
88
88
|
@page-change="(page) => $emit('page-change', page)"
|
|
89
|
+
@size-change="(size) => $emit('size-change', size)"
|
|
89
90
|
@contact-group-change="(group) => $emit('contact-group-change', group)"
|
|
90
91
|
@load-org="(org) => $emit('load-org', org)"
|
|
91
92
|
@load-policy-org="(policy) => $emit('load-policy-org', policy)"
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
@search="handleSearch"
|
|
33
33
|
@reset="handleReset"
|
|
34
34
|
@page-change="handlePageChange"
|
|
35
|
+
@size-change="handleSizeChange"
|
|
35
36
|
@load-org="loadOrg"
|
|
36
37
|
@load-policy-org="loadPolicyOrg"
|
|
37
38
|
@row-click="(row) => $emit('row-click', row)"
|
|
@@ -146,6 +147,10 @@
|
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
149
|
},
|
|
150
|
+
handleSizeChange(size) {
|
|
151
|
+
this.pagination.pageSize = size
|
|
152
|
+
this.handlePageChange(this.pagination.page)
|
|
153
|
+
},
|
|
149
154
|
// 处理过滤类型变化的事件
|
|
150
155
|
handleFilterTypeChange(type) {
|
|
151
156
|
this.filterType = type
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
@reset="reset"
|
|
42
42
|
@row-click="(row) => $emit('row-click', row)"
|
|
43
43
|
@page-change="(page) => $emit('page-change', page)"
|
|
44
|
+
@size-change="(size) => $emit('size-change', size)"
|
|
44
45
|
>
|
|
45
46
|
<el-card slot="range" class="selector-range__card" shadow="hover">
|
|
46
47
|
<el-tabs v-model="activeRange">
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
@row-click="(row) => $emit('row-click', row)"
|
|
85
85
|
@select-data="(data) => $emit('select-data', data)"
|
|
86
86
|
@page-change="(page) => $emit('page-change', page)"
|
|
87
|
+
@size-change="(size) => $emit('size-change', size)"
|
|
87
88
|
@load-org-post="(org) => $emit('load-org-post', org)"
|
|
88
89
|
@load-policy-post="(policy) => $emit('load-policy-post', policy)"
|
|
89
90
|
/>
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
@search="handleSearch"
|
|
36
36
|
@reset="handleReset"
|
|
37
37
|
@page-change="handlePageChange"
|
|
38
|
+
@size-change="handleSizeChange"
|
|
38
39
|
@load-org-post="loadOrgPost"
|
|
39
40
|
@load-policy-post="loadPolicyPost"
|
|
40
41
|
@change="handleChange"
|
|
@@ -174,6 +175,10 @@
|
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
},
|
|
178
|
+
handleSizeChange(size) {
|
|
179
|
+
this.pagination.pageSize = size
|
|
180
|
+
this.handlePageChange(this.pagination.page)
|
|
181
|
+
},
|
|
177
182
|
// 处理过滤类型变化的事件
|
|
178
183
|
handleFilterTypeChange(type) {
|
|
179
184
|
this.filterType = type
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
@search="handleSearch"
|
|
31
31
|
@reset="handleReset"
|
|
32
32
|
@page-change="handlePageChange"
|
|
33
|
+
@size-change="handleSizeChange"
|
|
33
34
|
@row-click="(row) => $emit('row-click', row)"
|
|
34
35
|
@select-data="(data) => $emit('select-data', data)"
|
|
35
36
|
></ht-role-selector>
|
|
@@ -155,6 +156,10 @@
|
|
|
155
156
|
// 搜索模式下或者未进行过滤时,查询所有数据
|
|
156
157
|
this.handleLoad(page)
|
|
157
158
|
},
|
|
159
|
+
handleSizeChange(size) {
|
|
160
|
+
this.pagination.pageSize = size
|
|
161
|
+
this.handlePageChange(this.pagination.page)
|
|
162
|
+
},
|
|
158
163
|
// 获取查询参数中的分页信息(不传page时默认查询第一页)
|
|
159
164
|
getPageBean(page) {
|
|
160
165
|
const pageBean = { ...this.pagination }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
width="
|
|
3
|
+
width="1060px"
|
|
4
4
|
:title="title"
|
|
5
5
|
class="userdialog-selector__wrapper"
|
|
6
6
|
:visible.sync="dialogVisible"
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
@reset="reset"
|
|
42
42
|
@row-click="(row) => $emit('row-click', row)"
|
|
43
43
|
@page-change="(page) => $emit('page-change', page)"
|
|
44
|
+
@size-change="(size) => $emit('size-change', size)"
|
|
44
45
|
>
|
|
45
46
|
<el-card slot="range" class="selector-range__card" shadow="hover">
|
|
46
47
|
<el-tabs v-model="activeRange">
|
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
@row-click="(row) => $emit('row-click', row)"
|
|
100
100
|
@select-data="(data) => $emit('select-data', data)"
|
|
101
101
|
@page-change="(page) => $emit('page-change', page)"
|
|
102
|
+
@size-change="(size) => $emit('size-change', size)"
|
|
102
103
|
@contact-group-change="(group) => $emit('contact-group-change', group)"
|
|
103
104
|
@load-org-user="(org) => $emit('load-org-user', org)"
|
|
104
105
|
@load-policy-user="(policy) => $emit('load-policy-user', policy)"
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
@search="handleSearch"
|
|
32
32
|
@reset="handleReset"
|
|
33
33
|
@page-change="handlePageChange"
|
|
34
|
+
@size-change="handleSizeChange"
|
|
34
35
|
@contact-group-change="loadContactUser"
|
|
35
36
|
@load-org-user="loadOrgUser"
|
|
36
37
|
@load-policy-user="loadPolicyUser"
|
|
@@ -145,6 +146,10 @@
|
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
},
|
|
149
|
+
handleSizeChange(size) {
|
|
150
|
+
this.pagination.pageSize = size
|
|
151
|
+
this.handlePageChange(this.pagination.page)
|
|
152
|
+
},
|
|
148
153
|
// 处理过滤类型变化的事件
|
|
149
154
|
handleFilterTypeChange(type) {
|
|
150
155
|
this.filterType = type
|