agilebuilder-ui 1.1.38 → 1.1.39-sit2
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/{401-d4103b15.js → 401-5847b8a0.js} +1 -1
- package/lib/{404-bbbf1615.js → 404-1af24e99.js} +1 -1
- package/lib/{iframe-page-eeb30592.js → iframe-page-1cdbd4ea.js} +1 -1
- package/lib/{index-93dc7bbc.js → index-a31ac238.js} +13767 -13658
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +82 -79
- package/lib/{tab-content-iframe-index-82db069a.js → tab-content-iframe-index-0c2d8fd9.js} +1 -1
- package/lib/{tab-content-index-06291a81.js → tab-content-index-7a255c7a.js} +22 -22
- package/lib/{tache-subprocess-history-661219ec.js → tache-subprocess-history-4be63968.js} +1 -1
- package/package.json +1 -1
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +3 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +2 -1
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -1
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +3 -1
- package/packages/fs-preview/src/fs-preview.vue +44 -7
- package/packages/fs-upload-list/src/fs-upload-list.vue +50 -24
- package/packages/fs-upload-new/src/fs-button-upload.vue +12 -0
- package/packages/fs-upload-new/src/fs-drag-upload.vue +12 -0
- package/packages/fs-upload-new/src/fs-preview-new.vue +24 -5
- package/packages/fs-upload-new/src/fs-upload-new.vue +20 -0
- package/packages/organization-input/src/organization-input.vue +3 -3
- package/packages/super-grid/src/components/mobile-table-card.jsx +0 -1
- package/packages/super-grid/src/custom-formatter.js +1 -1
- package/packages/super-grid/src/dynamic-input.vue +16 -22
- package/packages/super-grid/src/normal-column-content.vue +25 -13
- package/packages/super-grid/src/row-operation.vue +13 -9
- package/packages/super-grid/src/search-form-item.vue +75 -17
- package/packages/super-grid/src/search-form-mobile.vue +5 -0
- package/packages/super-grid/src/search-form-ordinarySearch.vue +5 -0
- package/packages/super-grid/src/search-methods.js +3 -1
- package/packages/super-grid/src/super-grid.vue +13 -0
- package/packages/utils/organization.ts +56 -40
- package/packages/workflow-history-list/src/workflow-history-list.vue +41 -3
- package/src/api/sso-service.js +2 -1
- package/src/directives/permission/permission.js +7 -1
- package/src/i18n/langs/cn.js +10 -3
- package/src/i18n/langs/en.js +10 -3
- package/src/permission.js +2 -1
- package/src/store/modules/user.js +4 -1
- package/src/styles/table.scss +8 -7
- package/src/utils/common-util.js +1 -1
- package/src/utils/file-util.ts +12 -4
- package/src/utils/jump-page-utils.js +1 -0
- package/src/utils/permission.js +2 -2
- package/src/utils/permissionAuth.js +11 -7
- package/src/utils/util.js +19 -0
- package/src/views/dsc-component/Sidebar/Item.vue +18 -7
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +10 -2
- package/src/views/dsc-component/Sidebar/index.vue +0 -2
- package/src/views/layout/components/Menubar/Item.vue +20 -3
- package/src/views/layout/components/Menubar/SidebarItem.vue +46 -18
- package/vite.config.js +1 -2
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
:class="{ 'submenu-title-noDropdown': !isNest }"
|
|
9
9
|
>
|
|
10
10
|
<item
|
|
11
|
+
:menu-layer="item.layer"
|
|
11
12
|
:icon="item.iconName"
|
|
12
13
|
:title="getI18nName(item)"
|
|
13
14
|
:is-root="true"
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
<el-sub-menu v-else :index="item.code + '~~' + item.i18nValue" class="smb-sidebar-menu-item">
|
|
20
21
|
<template v-slot:title>
|
|
21
22
|
<item
|
|
23
|
+
:menu-layer="item.layer"
|
|
22
24
|
:icon="item.iconName"
|
|
23
25
|
:title="getI18nName(item)"
|
|
24
26
|
:has-children="item.children.length > 0 ? true : false"
|
|
@@ -35,7 +37,7 @@
|
|
|
35
37
|
/>
|
|
36
38
|
<app-link :key="child.code" v-else :to="toPath(child)" @click="clickMenu(toPath(child))">
|
|
37
39
|
<el-menu-item :index="child.code + '~~' + child.i18nValue" class="smb-sidebar-menu-item">
|
|
38
|
-
<item :backlog-total="backlogTotal" :code="child.code" :icon="child.iconName" :title="getI18nName(child)" />
|
|
40
|
+
<item :menu-layer="child.layer" :backlog-total="backlogTotal" :code="child.code" :icon="child.iconName" :title="getI18nName(child)" />
|
|
39
41
|
</el-menu-item>
|
|
40
42
|
</app-link>
|
|
41
43
|
</template>
|
|
@@ -51,6 +53,7 @@ import { getI18nName } from "../../../../utils/menu";
|
|
|
51
53
|
import tabJs from "../../../../api/tab";
|
|
52
54
|
import { getSystemCode } from "../../../../utils/permissionAuth";
|
|
53
55
|
import authApi from "../../../../utils/auth-api";
|
|
56
|
+
import { getSystemFrontendUrl } from '../../../../utils/common-util';
|
|
54
57
|
|
|
55
58
|
export default {
|
|
56
59
|
name: "SidebarItem",
|
|
@@ -155,7 +158,22 @@ export default {
|
|
|
155
158
|
toPathObj.query.customSystem = getSystemCode();
|
|
156
159
|
toPathObj.query._menuCode = menu.code;
|
|
157
160
|
toPathObj.query._menuName = getI18nName(menu);
|
|
158
|
-
} else {
|
|
161
|
+
} else if(menu.openWay && menu.openWay === 'NEW_PAGE_OPEN'){
|
|
162
|
+
// 新页签打开菜单时
|
|
163
|
+
routePath = menu.fullPath
|
|
164
|
+
if(routePath.indexOf('http:') < 0 && routePath.indexOf('https:') < 0){
|
|
165
|
+
// 表示不是全路径
|
|
166
|
+
let frontUrl = getSystemFrontendUrl(window.$vueApp.config.globalProperties.frontUrl)
|
|
167
|
+
if(frontUrl.lastIndexOf("/") < frontUrl.length -1 ){
|
|
168
|
+
// 表示最后不是斜线结尾的,需要添加斜线结尾
|
|
169
|
+
frontUrl = frontUrl + '/'
|
|
170
|
+
}
|
|
171
|
+
routePath = frontUrl + "#" + routePath
|
|
172
|
+
}
|
|
173
|
+
toPathObj.query = {}
|
|
174
|
+
toPathObj.query._menuCode = menu.code;
|
|
175
|
+
toPathObj.path=routePath
|
|
176
|
+
}else{
|
|
159
177
|
routePath = menu.fullPath;
|
|
160
178
|
if(!routePath) {
|
|
161
179
|
routePath = ''
|
|
@@ -215,26 +233,30 @@ export default {
|
|
|
215
233
|
clickMenu(toPathObj) {
|
|
216
234
|
if (
|
|
217
235
|
toPathObj.openWay &&
|
|
218
|
-
toPathObj.openWay === "NEW_PAGE_OPEN"
|
|
219
|
-
toPathObj.query
|
|
236
|
+
toPathObj.openWay === "NEW_PAGE_OPEN"
|
|
220
237
|
) {
|
|
221
238
|
// 新页签打开菜单
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
url
|
|
239
|
+
if(toPathObj.query && toPathObj.query.src){
|
|
240
|
+
let url = toPathObj.query.src;
|
|
241
|
+
if (url && url.indexOf("?") > 0) {
|
|
242
|
+
url += "&";
|
|
243
|
+
} else {
|
|
244
|
+
url += "?";
|
|
245
|
+
}
|
|
246
|
+
if (toPathObj.query.customSystem) {
|
|
247
|
+
url += "customSystem=" + toPathObj.query.customSystem;
|
|
248
|
+
}
|
|
249
|
+
if (toPathObj.query._menuCode) {
|
|
250
|
+
url += "_menuCode=" + toPathObj.query._menuCode;
|
|
251
|
+
}
|
|
252
|
+
if (toPathObj.query._menuCode) {
|
|
253
|
+
url += "_menuName=" + toPathObj.query._menuName;
|
|
254
|
+
}
|
|
255
|
+
window.open(url, toPathObj.query._menuCode)
|
|
225
256
|
} else {
|
|
226
|
-
url
|
|
227
|
-
|
|
228
|
-
if (toPathObj.query.customSystem) {
|
|
229
|
-
url += "customSystem=" + toPathObj.query.customSystem;
|
|
230
|
-
}
|
|
231
|
-
if (toPathObj.query._menuCode) {
|
|
232
|
-
url += "_menuCode=" + toPathObj.query._menuCode;
|
|
257
|
+
const url = toPathObj.path;
|
|
258
|
+
window.open(url, toPathObj.query._menuCode)
|
|
233
259
|
}
|
|
234
|
-
if (toPathObj.query._menuCode) {
|
|
235
|
-
url += "_menuName=" + toPathObj.query._menuName;
|
|
236
|
-
}
|
|
237
|
-
window.open(url, toPathObj.query._menuCode);
|
|
238
260
|
} else {
|
|
239
261
|
// 刷新页签打开菜单
|
|
240
262
|
this.addTabs(
|
|
@@ -275,6 +297,9 @@ export default {
|
|
|
275
297
|
width: var(--admin-layout-left-menu-collapse, 54px);
|
|
276
298
|
font-size: 16px;
|
|
277
299
|
}
|
|
300
|
+
:deep(.smb-sidebar-menu-item-no-icon) {
|
|
301
|
+
width: 20px;
|
|
302
|
+
}
|
|
278
303
|
:deep(.smb-sidebar-menu-item-title) {
|
|
279
304
|
flex: 0 0 calc(100% - var(--admin-layout-left-menu-collapse, 54px) - 35px);
|
|
280
305
|
overflow: hidden;
|
|
@@ -288,5 +313,8 @@ export default {
|
|
|
288
313
|
text-overflow: ellipsis;
|
|
289
314
|
}
|
|
290
315
|
}
|
|
316
|
+
:deep(.smb-sidebar-menu-item-no-icon-title) {
|
|
317
|
+
flex: 0 0 calc(100% - 20px - 20px);
|
|
318
|
+
}
|
|
291
319
|
}
|
|
292
320
|
</style>
|
package/vite.config.js
CHANGED
|
@@ -12,8 +12,7 @@ export default defineConfig(({ mode }) => ({
|
|
|
12
12
|
terser({
|
|
13
13
|
compress: {
|
|
14
14
|
drop_debugger: ['production'].includes(mode),
|
|
15
|
-
//
|
|
16
|
-
pure_funcs: ['production'].includes(mode) ? ['console.log', 'console.info', 'console.warn', 'console.debug'] : [],
|
|
15
|
+
// pure_funcs: ['production'].includes(mode) ? ['console.log', 'console.info', 'console.warn', 'console.debug'] : [],
|
|
17
16
|
},
|
|
18
17
|
output: {
|
|
19
18
|
// 对于console.error,不做任何处理
|