imatrix-ui 2.8.22 → 2.8.23
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
|
@@ -1388,10 +1388,29 @@ export default {
|
|
|
1388
1388
|
JSON.parse(JSON.stringify(this.gridData))
|
|
1389
1389
|
)
|
|
1390
1390
|
} else {
|
|
1391
|
-
|
|
1391
|
+
const isCanRefreshTableData = this.canRefreshTableData(gridParams)
|
|
1392
|
+
if (isCanRefreshTableData) {
|
|
1393
|
+
// 可以刷新表格记录
|
|
1394
|
+
return this.fetchListData(searchParam, isSearch, parentRowIds, resove)
|
|
1395
|
+
} else {
|
|
1396
|
+
// 子表无记录时不需要刷新子表记录
|
|
1397
|
+
this.hasLoadData = true
|
|
1398
|
+
gridParams.loaded = true
|
|
1399
|
+
}
|
|
1392
1400
|
}
|
|
1393
1401
|
}
|
|
1394
1402
|
},
|
|
1403
|
+
canRefreshTableData (gridParams) {
|
|
1404
|
+
let isCanRefreshTableData = false
|
|
1405
|
+
if (gridParams.options && !gridParams.options.isFormSubTable) {
|
|
1406
|
+
// 如果不是子表时
|
|
1407
|
+
isCanRefreshTableData = true
|
|
1408
|
+
} else if (gridParams.options && gridParams.options.isFormSubTable && gridParams.options.canRrefreshSubtableData !== undefined && gridParams.options.canRrefreshSubtableData === true) {
|
|
1409
|
+
// 是子表,且配置了子表无记录时更新子表记录集合
|
|
1410
|
+
isCanRefreshTableData = true
|
|
1411
|
+
}
|
|
1412
|
+
return isCanRefreshTableData
|
|
1413
|
+
},
|
|
1395
1414
|
getSubTableGridData(subTableData) {
|
|
1396
1415
|
let gridData = subTableData
|
|
1397
1416
|
if (this.isSubTableShowPage === true) {
|
|
@@ -2017,6 +2036,7 @@ export default {
|
|
|
2017
2036
|
handleSizeChange(val) {
|
|
2018
2037
|
if (!this.options || !this.options.isPageShow) {
|
|
2019
2038
|
// console.log(`每页 ${val} 条`)
|
|
2039
|
+
this.currentPage = 1
|
|
2020
2040
|
this.pageSize = val
|
|
2021
2041
|
this.changePage()
|
|
2022
2042
|
}
|
|
@@ -79,8 +79,11 @@
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.el-menu {
|
|
82
|
+
position: static;
|
|
82
83
|
border: none;
|
|
83
|
-
height: 100%;
|
|
84
|
+
// height: 100%;
|
|
85
|
+
height: auto;
|
|
86
|
+
max-height: 100vh;
|
|
84
87
|
width: 100% !important;
|
|
85
88
|
background-color: #FFF;
|
|
86
89
|
color: #000D1F
|
|
@@ -188,13 +191,22 @@
|
|
|
188
191
|
}
|
|
189
192
|
}
|
|
190
193
|
|
|
194
|
+
.sidebar-container-popper .el-menu{
|
|
195
|
+
// height: 100vh;
|
|
196
|
+
height: auto;
|
|
197
|
+
max-height: 100vh;
|
|
198
|
+
overflow-y: auto;
|
|
199
|
+
overflow-x: hidden;
|
|
200
|
+
scroll-behavior: smooth;
|
|
201
|
+
}
|
|
202
|
+
|
|
191
203
|
.sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
|
|
192
204
|
background: #F7F7F8;
|
|
193
205
|
color: rgba(0, 13, 31, 0.85);
|
|
194
206
|
font-weight: 500;
|
|
195
207
|
}
|
|
196
208
|
|
|
197
|
-
.sidebar-container-popper .el-menu .el-submenu.is-active>.el-submenu__title {
|
|
209
|
+
.sidebar-container-popper .el-menu-item.is-active,.sidebar-container-popper .el-menu .el-submenu.is-active>.el-submenu__title {
|
|
198
210
|
background-color: #EBECFF !important;
|
|
199
211
|
color: #3D4CF2;
|
|
200
212
|
font-weight: 500;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</app-link>
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
|
-
<el-submenu v-else :index="resolvePath(item.code,item.path,item.pageType)" :show-timeout="0" :hide-timeout="50" popper-class="sidebar-container-popper">
|
|
11
|
+
<el-submenu v-else :index="resolvePath(item.code,item.path,item.pageType)" :show-timeout="0" :hide-timeout="50" :popper-append-to-body="false" popper-class="sidebar-container-popper">
|
|
12
12
|
<template v-slot:title>
|
|
13
13
|
<item :icon="item.iconName" :title="getI18nName(item)" :has-children="item.children.length > 0?true:false" />
|
|
14
14
|
</template>
|