agilebuilder-ui 1.0.12 → 1.0.13
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/super-ui.css +1 -1
- package/lib/super-ui.js +1406 -1386
- package/lib/super-ui.umd.cjs +35 -35
- package/package.json +1 -1
- package/packages/super-grid/src/super-grid.vue +20 -1
- package/src/utils/jump-page-utils.js +16 -0
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +26 -6
- package/src/views/dsc-component/Sidebar/index.vue +7 -3
package/package.json
CHANGED
|
@@ -2945,8 +2945,27 @@ export default {
|
|
|
2945
2945
|
const popPageSetting = openPageParams
|
|
2946
2946
|
if (jumpMode === 'popup') {
|
|
2947
2947
|
// 弹出页面
|
|
2948
|
-
|
|
2948
|
+
const gridParams = store.get(this.code)
|
|
2949
|
+
this.jumpPageSetting = popPageSetting
|
|
2949
2950
|
this.$emit('open-grid-dialog', this.jumpPageSetting)
|
|
2951
|
+
const isSubTableShowPage = gridParams.isSubTableShowPage
|
|
2952
|
+
// 每页显示多少条
|
|
2953
|
+
const pageSize = gridParams.pagination && gridParams.pagination.pageSize
|
|
2954
|
+
const isMobile = false
|
|
2955
|
+
const row = popPageSetting.row
|
|
2956
|
+
const eventParams = {
|
|
2957
|
+
position: popPageSetting._position,
|
|
2958
|
+
listCode: popPageSetting._listCode,
|
|
2959
|
+
rowIndex: popPageSetting._rowIndex,
|
|
2960
|
+
row: popPageSetting.row,
|
|
2961
|
+
id: row?(row.ID?row.ID:row.id):null,
|
|
2962
|
+
isMobile,
|
|
2963
|
+
gridData: isSubTableShowPage
|
|
2964
|
+
? gridParams.subTableData
|
|
2965
|
+
: gridParams.gridData,
|
|
2966
|
+
pageGridData: isSubTableShowPage ? gridParams.gridData : null,
|
|
2967
|
+
pageSize }
|
|
2968
|
+
this.$emit('new-open-grid-dialog', {pageContext: this.pageContext,configureObj: this.configureObj, eventParams})
|
|
2950
2969
|
this.isShowPageDialog = true
|
|
2951
2970
|
} else if (jumpMode === 'refresh') {
|
|
2952
2971
|
this.$router.push({ path: '/dsc/page', query: popPageSetting })
|
|
@@ -514,6 +514,17 @@ function packagePathParams(
|
|
|
514
514
|
path += '?buttonCode=' + buttonCode
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
+
if (
|
|
518
|
+
jumpPage.isNewPage!==undefined && jumpPage.isNewPage === true
|
|
519
|
+
) {
|
|
520
|
+
let paramSeparator = ''
|
|
521
|
+
if (path.indexOf('?') !== -1) {
|
|
522
|
+
paramSeparator = '&'
|
|
523
|
+
} else {
|
|
524
|
+
paramSeparator = '?'
|
|
525
|
+
}
|
|
526
|
+
path = path + paramSeparator + 'isNewPage=' + dataId
|
|
527
|
+
}
|
|
517
528
|
return path
|
|
518
529
|
}
|
|
519
530
|
|
|
@@ -580,6 +591,11 @@ function jumpWithSuperPage(
|
|
|
580
591
|
ids,
|
|
581
592
|
buttonCode
|
|
582
593
|
)
|
|
594
|
+
if (
|
|
595
|
+
popPageSetting && (jumpPageSetting.isRefreshWhenClosePopup!==undefined && jumpPageSetting.isRefreshWhenClosePopup!==null)
|
|
596
|
+
) {
|
|
597
|
+
popPageSetting.isRefreshWhenClosePopup = jumpPageSetting.isRefreshWhenClosePopup
|
|
598
|
+
}
|
|
583
599
|
popPageSetting._path = path
|
|
584
600
|
resolve(popPageSetting)
|
|
585
601
|
} else if (jumpMode === 'newTab') {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<template v-if="!item.children || item.children.lenght === 0">
|
|
4
4
|
<app-link :to="toPath(item)" @click="clickMenu(toPath(item))">
|
|
5
5
|
<el-menu-item
|
|
6
|
-
:index="resolvePath(item.code, item.path, item.pageType)"
|
|
6
|
+
:index="resolvePath(item.code, item.path, item.pageType, item.newPage)"
|
|
7
7
|
:class="{ 'submenu-title-noDropdown': !isNest }"
|
|
8
8
|
>
|
|
9
9
|
<item
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<el-sub-menu
|
|
19
19
|
v-else
|
|
20
|
-
:index="resolvePath(item.code, item.path, item.pageType)"
|
|
20
|
+
:index="resolvePath(item.code, item.path, item.pageType, item.newPage)"
|
|
21
21
|
:show-timeout="0"
|
|
22
22
|
:hide-timeout="50"
|
|
23
23
|
popper-class="sidebar-container-popper"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/>
|
|
40
40
|
<app-link v-else :to="toPath(child)" @click="clickMenu(toPath(child))">
|
|
41
41
|
<el-menu-item
|
|
42
|
-
:index="resolvePath(child.code, child.path, child.pageType)"
|
|
42
|
+
:index="resolvePath(child.code, child.path, child.pageType, child.newPage)"
|
|
43
43
|
>
|
|
44
44
|
<item :icon="child.iconName" :title="getI18nName(child)" />
|
|
45
45
|
</el-menu-item>
|
|
@@ -100,11 +100,11 @@ export default {
|
|
|
100
100
|
|
|
101
101
|
return false
|
|
102
102
|
},
|
|
103
|
-
resolvePath(menuCode, pageCode, pageType) {
|
|
103
|
+
resolvePath(menuCode, pageCode, pageType, isNewPage) {
|
|
104
104
|
if (this.isExternalLink(pageType)) {
|
|
105
|
-
return '/dsc/' + menuCode + '~~'
|
|
105
|
+
return '/dsc/' + menuCode + '~~' + pageCode + '~~' + isNewPage
|
|
106
106
|
} else {
|
|
107
|
-
return '/dsc/' + menuCode + '~~' + pageCode
|
|
107
|
+
return '/dsc/' + menuCode + '~~' + pageCode + '~~' + isNewPage
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
toPath(menu) {
|
|
@@ -115,6 +115,7 @@ export default {
|
|
|
115
115
|
toPathObj.path = '/dsc-index/iframe-page'
|
|
116
116
|
toPathObj.tabPath = '/dsc/iframe-page'
|
|
117
117
|
toPathObj.query = {}
|
|
118
|
+
toPathObj.query.isNewPage=menu.newPage
|
|
118
119
|
toPathObj.query.src = routePath
|
|
119
120
|
toPathObj.isExternal = true
|
|
120
121
|
// 如果路径中没有拼系统编码,才需要把系统编码放到参数中
|
|
@@ -128,6 +129,7 @@ export default {
|
|
|
128
129
|
toPathObj.tabPath = '/dsc/page'
|
|
129
130
|
toPathObj.query = {}
|
|
130
131
|
toPathObj.query.pageCode = pageCode
|
|
132
|
+
toPathObj.query.isNewPage= menu.newPage
|
|
131
133
|
toPathObj.query.customSystem =
|
|
132
134
|
window.$vueApp.config.globalProperties.customSystem
|
|
133
135
|
toPathObj.query._menuCode = menu.code
|
|
@@ -167,12 +169,30 @@ export default {
|
|
|
167
169
|
if (toPathObj.query.customSystem) {
|
|
168
170
|
url += 'customSystem=' + toPathObj.query.customSystem
|
|
169
171
|
}
|
|
172
|
+
if (url && url.indexOf('?') > 0) {
|
|
173
|
+
url += '&'
|
|
174
|
+
} else {
|
|
175
|
+
url += '?'
|
|
176
|
+
}
|
|
170
177
|
if (toPathObj.query._menuCode) {
|
|
171
178
|
url += '_menuCode=' + toPathObj.query._menuCode
|
|
172
179
|
}
|
|
180
|
+
if (url && url.indexOf('?') > 0) {
|
|
181
|
+
url += '&'
|
|
182
|
+
} else {
|
|
183
|
+
url += '?'
|
|
184
|
+
}
|
|
173
185
|
if (toPathObj.query._menuCode) {
|
|
174
186
|
url += '_menuName=' + toPathObj.query._menuName
|
|
175
187
|
}
|
|
188
|
+
if (url && url.indexOf('?') > 0) {
|
|
189
|
+
url += '&'
|
|
190
|
+
} else {
|
|
191
|
+
url += '?'
|
|
192
|
+
}
|
|
193
|
+
if (toPathObj.query.isNewPage) {
|
|
194
|
+
url += 'isNewPage=' + toPathObj.query.isNewPage
|
|
195
|
+
}
|
|
176
196
|
window.open(url, toPathObj.query._menuCode)
|
|
177
197
|
} else {
|
|
178
198
|
// 刷新页签打开菜单
|
|
@@ -76,6 +76,7 @@ export default {
|
|
|
76
76
|
path: path,
|
|
77
77
|
_menuCode: this.firstLeafMenu.code,
|
|
78
78
|
_menuName: getI18nName(this.firstLeafMenu),
|
|
79
|
+
isNewPage: this.firstLeafMenu.newPage
|
|
79
80
|
}
|
|
80
81
|
this.addTabs(
|
|
81
82
|
query,
|
|
@@ -91,6 +92,7 @@ export default {
|
|
|
91
92
|
pageCode: pageCode,
|
|
92
93
|
_menuCode: this.firstLeafMenu.code,
|
|
93
94
|
_menuName: getI18nName(this.firstLeafMenu),
|
|
95
|
+
isNewPage: this.firstLeafMenu.newPage
|
|
94
96
|
}
|
|
95
97
|
this.addTabs(
|
|
96
98
|
query,
|
|
@@ -190,9 +192,11 @@ export default {
|
|
|
190
192
|
if (cookieMenu) {
|
|
191
193
|
// // 表示缓存中存储了menu,格式为:/dsc/菜单编码~~pageCode
|
|
192
194
|
const prefix = '/dsc/'
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
// '/dsc/' + menuCode + '~~' + pageCode + '~~' + isNewPage
|
|
196
|
+
const menuInfoArr = cookieMenu.split('~~')
|
|
197
|
+
const pathPrefix = menuInfoArr[0]
|
|
198
|
+
const menuCode = pathPrefix.substring(
|
|
199
|
+
cookieMenu.indexOf(prefix) + prefix.length
|
|
196
200
|
)
|
|
197
201
|
|
|
198
202
|
let shouldSelectMenu
|