imatrix-ui 2.7.98 → 2.7.99
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
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
<slot />
|
|
7
7
|
</a> -->
|
|
8
8
|
|
|
9
|
-
<router-link :to="to">
|
|
9
|
+
<router-link v-if="!isOpenNewTab" :to="to">
|
|
10
10
|
<slot />
|
|
11
11
|
</router-link>
|
|
12
|
+
<div v-else>
|
|
13
|
+
<slot />
|
|
14
|
+
</div>
|
|
12
15
|
</div>
|
|
13
16
|
</template>
|
|
14
17
|
|
|
@@ -23,8 +26,14 @@ export default {
|
|
|
23
26
|
},
|
|
24
27
|
data() {
|
|
25
28
|
const isExter = this.to.isExternal
|
|
29
|
+
const openWay = this.to.openWay
|
|
30
|
+
let isOpenNewTab = false
|
|
31
|
+
if (openWay && openWay === 'NEW_PAGE_OPEN') {
|
|
32
|
+
isOpenNewTab = true
|
|
33
|
+
}
|
|
26
34
|
return {
|
|
27
|
-
isExter
|
|
35
|
+
isExter,
|
|
36
|
+
isOpenNewTab
|
|
28
37
|
}
|
|
29
38
|
}
|
|
30
39
|
}
|
|
@@ -91,6 +91,7 @@ export default {
|
|
|
91
91
|
toPath(menu) {
|
|
92
92
|
const toPathObj = {}
|
|
93
93
|
const routePath = menu.path
|
|
94
|
+
toPathObj.openWay = menu.openWay
|
|
94
95
|
if (this.isExternalLink(menu.pageType)) {
|
|
95
96
|
toPathObj.path = '/dsc-index/iframe-page'
|
|
96
97
|
toPathObj.tabPath = '/dsc/iframe-page'
|
|
@@ -130,7 +131,28 @@ export default {
|
|
|
130
131
|
},
|
|
131
132
|
clickMenu(toPathObj) {
|
|
132
133
|
// console.log('clickMenu----toPathObj=', toPathObj)
|
|
133
|
-
|
|
134
|
+
if (toPathObj.openWay && toPathObj.openWay === 'NEW_PAGE_OPEN' && toPathObj.query) {
|
|
135
|
+
// 新页签打开菜单
|
|
136
|
+
let url = toPathObj.query.src
|
|
137
|
+
if (url && url.indexOf('?') > 0) {
|
|
138
|
+
url += '&'
|
|
139
|
+
} else {
|
|
140
|
+
url += '?'
|
|
141
|
+
}
|
|
142
|
+
if (toPathObj.query.customSystem) {
|
|
143
|
+
url += 'customSystem=' + toPathObj.query.customSystem
|
|
144
|
+
}
|
|
145
|
+
if (toPathObj.query._menuCode) {
|
|
146
|
+
url += '_menuCode=' + toPathObj.query._menuCode
|
|
147
|
+
}
|
|
148
|
+
if (toPathObj.query._menuCode) {
|
|
149
|
+
url += '_menuName=' + toPathObj.query._menuName
|
|
150
|
+
}
|
|
151
|
+
window.open(url, toPathObj.query._menuCode)
|
|
152
|
+
} else {
|
|
153
|
+
// 刷新页签打开菜单
|
|
154
|
+
this.addTabs(toPathObj.query, this.$store.state.tabContent.openTab, toPathObj.tabPath)
|
|
155
|
+
}
|
|
134
156
|
},
|
|
135
157
|
isExternalLink(pageType) {
|
|
136
158
|
if (pageType && pageType === 'iframe') {
|