agilebuilder-ui 1.1.38 → 1.1.39
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-10773a45.js} +1 -1
- package/lib/{404-bbbf1615.js → 404-bc7b5bc4.js} +1 -1
- package/lib/{iframe-page-eeb30592.js → iframe-page-593fe033.js} +1 -1
- package/lib/{index-93dc7bbc.js → index-5276895e.js} +8572 -8496
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +71 -68
- package/lib/{tab-content-iframe-index-82db069a.js → tab-content-iframe-index-12a5a7c2.js} +1 -1
- package/lib/{tab-content-index-06291a81.js → tab-content-index-6901441f.js} +22 -22
- package/lib/{tache-subprocess-history-661219ec.js → tache-subprocess-history-8fd8d5f7.js} +1 -1
- package/package.json +1 -1
- package/packages/fs-preview/src/fs-preview.vue +8 -3
- package/packages/fs-upload-list/src/fs-upload-list.vue +8 -1
- 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 +25 -5
- package/packages/fs-upload-new/src/fs-upload-new.vue +20 -0
- package/packages/super-grid/src/dynamic-input.vue +16 -22
- package/packages/super-grid/src/normal-column-content.vue +8 -1
- package/packages/super-grid/src/search-form-item.vue +30 -15
- package/src/api/sso-service.js +2 -1
- package/src/permission.js +2 -1
- package/src/store/modules/user.js +4 -1
- package/src/utils/common-util.js +1 -1
- package/src/utils/permissionAuth.js +7 -5
- package/src/utils/util.js +19 -0
- package/src/views/dsc-component/Sidebar/Item.vue +15 -4
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +10 -2
- package/src/views/layout/components/Menubar/Item.vue +14 -3
- package/src/views/layout/components/Menubar/SidebarItem.vue +9 -1
- package/vite.config.js +1 -2
|
@@ -26,7 +26,7 @@ export function getSystemCode() {
|
|
|
26
26
|
|
|
27
27
|
export function getPermissions(systemCode) {
|
|
28
28
|
let totalPermissions = null
|
|
29
|
-
if(!systemCode){
|
|
29
|
+
if(!systemCode || systemCode+''==='null'){
|
|
30
30
|
systemCode = getSystemCode()
|
|
31
31
|
}
|
|
32
32
|
let permissions = localStorage.getItem(permissionKey + systemCode)
|
|
@@ -91,17 +91,19 @@ export function getTotalPermissions() {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export function setPermissions(permissions, systemCode) {
|
|
94
|
+
console.log('setPermissions==========systemCode=', systemCode,'isHasPlatPermission----permissions[0]=',permissions && permissions.length > 0 ?permissions[0]: null)
|
|
94
95
|
const isMobile = isMobileBrowser()
|
|
95
96
|
let key
|
|
96
97
|
const permissionObjs = getPermissionObjs(permissions)
|
|
97
98
|
if(isMobile){
|
|
98
99
|
key = mobilePermissionKey
|
|
99
100
|
} else {
|
|
100
|
-
if (!systemCode) {
|
|
101
|
+
if (!systemCode || systemCode+''==='null') {
|
|
101
102
|
systemCode = getSystemCode()
|
|
102
103
|
}
|
|
103
104
|
key = permissionKey + systemCode
|
|
104
105
|
}
|
|
106
|
+
console.log('setPermissions==========systemCode=', systemCode,'key=',key)
|
|
105
107
|
localStorage.setItem(key, JSON.stringify(permissionObjs))
|
|
106
108
|
setPermissionAllSystemKey(key)
|
|
107
109
|
return permissionObjs
|
|
@@ -121,7 +123,7 @@ function getPermissionObjs(permissions){
|
|
|
121
123
|
|
|
122
124
|
|
|
123
125
|
export function getMenus(systemCode) {
|
|
124
|
-
if (!systemCode) {
|
|
126
|
+
if (!systemCode || systemCode+''==='null') {
|
|
125
127
|
systemCode = getSystemCode()
|
|
126
128
|
}
|
|
127
129
|
const myPermissionMenuKey = getRunInfoKey(permissionMenuKey)
|
|
@@ -136,7 +138,7 @@ export function getMenus(systemCode) {
|
|
|
136
138
|
|
|
137
139
|
export function setMenus(menus, systemCode) {
|
|
138
140
|
if (menus) {
|
|
139
|
-
if (!systemCode) {
|
|
141
|
+
if (!systemCode || systemCode+''==='null') {
|
|
140
142
|
systemCode = getSystemCode()
|
|
141
143
|
}
|
|
142
144
|
const myPermissionMenuKey = getRunInfoKey(permissionMenuKey)
|
|
@@ -148,7 +150,7 @@ export function setMenus(menus, systemCode) {
|
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
export function removeMenus(systemCode) {
|
|
151
|
-
if (!systemCode) {
|
|
153
|
+
if (!systemCode || systemCode+''==='null') {
|
|
152
154
|
systemCode = getSystemCode()
|
|
153
155
|
}
|
|
154
156
|
const myPermissionMenuKey = getRunInfoKey(permissionMenuKey)
|
package/src/utils/util.js
CHANGED
|
@@ -620,6 +620,25 @@ function getAdditionalParamMap(pageContext) {
|
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
+
export function formatCustomParams(customParams, pageContext, row) {
|
|
624
|
+
const formatCustomParams = {}
|
|
625
|
+
if (customParams && customParams.length > 0) {
|
|
626
|
+
customParams.forEach((param) => {
|
|
627
|
+
if (param.paramValue && param.paramValue.indexOf('${') === 0) {
|
|
628
|
+
// 表示是动态变量
|
|
629
|
+
const dynamicValue = getPropValueNew(param.paramValue, pageContext, row)
|
|
630
|
+
if (dynamicValue !== undefined && dynamicValue !== null) {
|
|
631
|
+
formatCustomParams[param.paramName] = dynamicValue
|
|
632
|
+
} else {
|
|
633
|
+
formatCustomParams[param.paramName] = null
|
|
634
|
+
}
|
|
635
|
+
} else {
|
|
636
|
+
formatCustomParams[param.paramName] = param.paramValue
|
|
637
|
+
}
|
|
638
|
+
})
|
|
639
|
+
}
|
|
640
|
+
return formatCustomParams
|
|
641
|
+
}
|
|
623
642
|
export function getPropValueNew(propValue, pageContext, row) {
|
|
624
643
|
let value = null
|
|
625
644
|
if (propValue && propValue !== null && propValue !== '') {
|
|
@@ -21,11 +21,16 @@ export default defineComponent({
|
|
|
21
21
|
isRoot: {
|
|
22
22
|
type: Boolean,
|
|
23
23
|
default: false
|
|
24
|
+
},
|
|
25
|
+
menuLayer: {
|
|
26
|
+
type: Number,
|
|
27
|
+
default: null
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
render(props) {
|
|
27
|
-
const { title, hasChildren, isRoot
|
|
31
|
+
const { title, hasChildren, isRoot} = props
|
|
28
32
|
const icon = props.icon
|
|
33
|
+
const menuLayer = props.menuLayer
|
|
29
34
|
const vnodes = []
|
|
30
35
|
let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
|
|
31
36
|
// let iconsData = [h('i', { class: 'amb-color-iconfont amb-color-icon-goal-jichuweihu super-icon' })]
|
|
@@ -41,12 +46,18 @@ export default defineComponent({
|
|
|
41
46
|
// iconsData = [h('i', { class: icon + ' svg-icon' })]
|
|
42
47
|
// }
|
|
43
48
|
}
|
|
44
|
-
|
|
49
|
+
let titleClass = ['smb-sidebar-menu-item-title']
|
|
50
|
+
if(!menuLayer || menuLayer <= 2) {
|
|
51
|
+
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-icon'] }, iconsData))
|
|
52
|
+
} else {
|
|
53
|
+
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-no-icon'] }))
|
|
54
|
+
titleClass.push('smb-sidebar-menu-item-no-icon-title')
|
|
55
|
+
}
|
|
45
56
|
if (title) {
|
|
46
57
|
if (isRoot) {
|
|
47
58
|
// 是否是根目录,没有子菜单时
|
|
48
59
|
vnodes.push(
|
|
49
|
-
h('div', { class:
|
|
60
|
+
h('div', { class: titleClass }, [
|
|
50
61
|
h(
|
|
51
62
|
'div',
|
|
52
63
|
{
|
|
@@ -59,7 +70,7 @@ export default defineComponent({
|
|
|
59
70
|
} else {
|
|
60
71
|
// 有子菜单时
|
|
61
72
|
vnodes.push(
|
|
62
|
-
h('div', { class:
|
|
73
|
+
h('div', { class: titleClass }, [
|
|
63
74
|
h(
|
|
64
75
|
'div',
|
|
65
76
|
{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
class="smb-sidebar-menu-item"
|
|
8
8
|
:class="{ 'submenu-title-noDropdown': !isNest }"
|
|
9
9
|
>
|
|
10
|
-
<item :icon="item.iconName" :title="getI18nName(item)" :is-root="true" />
|
|
10
|
+
<item :menu-layer="item.layer" :icon="item.iconName" :title="getI18nName(item)" :is-root="true" />
|
|
11
11
|
</el-menu-item>
|
|
12
12
|
</app-link>
|
|
13
13
|
</template>
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
>
|
|
23
23
|
<template v-slot:title>
|
|
24
24
|
<item
|
|
25
|
+
:menu-layer="item.layer"
|
|
25
26
|
:icon="item.iconName"
|
|
26
27
|
:title="getI18nName(item)"
|
|
27
28
|
:has-children="item.children.length > 0 ? true : false"
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
/>
|
|
38
39
|
<app-link v-else :to="toPath(child)" @click="clickMenu(toPath(child))">
|
|
39
40
|
<el-menu-item :index="resolvePath(child.code, child.path, child.pageType, child.newPage)" class="smb-sidebar-menu-item">
|
|
40
|
-
<item :icon="child.iconName" :title="getI18nName(child)" />
|
|
41
|
+
<item :menu-layer="child.layer" :icon="child.iconName" :title="getI18nName(child)" />
|
|
41
42
|
</el-menu-item>
|
|
42
43
|
</app-link>
|
|
43
44
|
</template>
|
|
@@ -213,6 +214,10 @@ export default {
|
|
|
213
214
|
width: var(--admin-layout-left-menu-collapse, 54px);
|
|
214
215
|
font-size: 16px;
|
|
215
216
|
}
|
|
217
|
+
|
|
218
|
+
:deep(.smb-sidebar-menu-item-no-icon) {
|
|
219
|
+
width: 20px;
|
|
220
|
+
}
|
|
216
221
|
:deep(.smb-sidebar-menu-item-title) {
|
|
217
222
|
flex: 0 0 calc(100% - var(--admin-layout-left-menu-collapse, 54px) - 35px);
|
|
218
223
|
overflow: hidden;
|
|
@@ -226,6 +231,9 @@ export default {
|
|
|
226
231
|
text-overflow: ellipsis;
|
|
227
232
|
}
|
|
228
233
|
}
|
|
234
|
+
:deep(.smb-sidebar-menu-item-no-icon-title) {
|
|
235
|
+
flex: 0 0 calc(100% - 20px - 20px);
|
|
236
|
+
}
|
|
229
237
|
}
|
|
230
238
|
</style>
|
|
231
239
|
|
|
@@ -30,23 +30,34 @@ export default defineComponent({
|
|
|
30
30
|
backlogTotal: {
|
|
31
31
|
type: Number,
|
|
32
32
|
default: 0
|
|
33
|
+
},
|
|
34
|
+
menuLayer: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: null
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
39
|
render(props) {
|
|
36
40
|
const { title, hasChildren, isRoot, code, backlogTotal } = props
|
|
37
41
|
const icon = props.icon
|
|
42
|
+
const menuLayer = props.menuLayer
|
|
38
43
|
const vnodes = []
|
|
39
44
|
// let iconsData = [h(SvgIcon,{'icon-class': 'meun_post' })]
|
|
40
45
|
let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
|
|
41
46
|
if (icon) {
|
|
42
47
|
iconsData = [h(SuperIcon, { iconValue: icon })]
|
|
43
48
|
}
|
|
44
|
-
|
|
49
|
+
let titleClass = ['smb-sidebar-menu-item-title']
|
|
50
|
+
if(!menuLayer || menuLayer <= 2) {
|
|
51
|
+
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-icon'] }, iconsData))
|
|
52
|
+
} else {
|
|
53
|
+
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-no-icon'] }))
|
|
54
|
+
titleClass.push('smb-sidebar-menu-item-no-icon-title')
|
|
55
|
+
}
|
|
45
56
|
if (title) {
|
|
46
57
|
if (isRoot) {
|
|
47
58
|
// 是否是根目录,没有子菜单时
|
|
48
59
|
vnodes.push(
|
|
49
|
-
h('div', { class:
|
|
60
|
+
h('div', { class: titleClass }, [
|
|
50
61
|
h(
|
|
51
62
|
'div',
|
|
52
63
|
{
|
|
@@ -59,7 +70,7 @@ export default defineComponent({
|
|
|
59
70
|
} else if (code === 'undoneTask') {
|
|
60
71
|
// 有子菜单时
|
|
61
72
|
vnodes.push(
|
|
62
|
-
h('div', { class:
|
|
73
|
+
h('div', { class: titleClass }, [
|
|
63
74
|
h(
|
|
64
75
|
'div',
|
|
65
76
|
{
|
|
@@ -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>
|
|
@@ -275,6 +277,9 @@ export default {
|
|
|
275
277
|
width: var(--admin-layout-left-menu-collapse, 54px);
|
|
276
278
|
font-size: 16px;
|
|
277
279
|
}
|
|
280
|
+
:deep(.smb-sidebar-menu-item-no-icon) {
|
|
281
|
+
width: 20px;
|
|
282
|
+
}
|
|
278
283
|
:deep(.smb-sidebar-menu-item-title) {
|
|
279
284
|
flex: 0 0 calc(100% - var(--admin-layout-left-menu-collapse, 54px) - 35px);
|
|
280
285
|
overflow: hidden;
|
|
@@ -288,5 +293,8 @@ export default {
|
|
|
288
293
|
text-overflow: ellipsis;
|
|
289
294
|
}
|
|
290
295
|
}
|
|
296
|
+
:deep(.smb-sidebar-menu-item-no-icon-title) {
|
|
297
|
+
flex: 0 0 calc(100% - 20px - 20px);
|
|
298
|
+
}
|
|
291
299
|
}
|
|
292
300
|
</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,不做任何处理
|