agilebuilder-ui 1.0.85 → 1.0.87-temp1
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 +24626 -23708
- package/lib/super-ui.umd.cjs +76 -76
- package/package.json +2 -2
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +3 -0
- package/packages/fs-upload-list/src/fs-upload-list.vue +2 -1
- package/packages/index.js +5 -2
- package/packages/rich-editor/index.vue +1 -1
- package/packages/row-form/index.js +7 -0
- package/packages/row-form/index.vue +211 -0
- package/packages/super-grid/src/apis.js +26 -0
- package/packages/super-grid/src/components/grid-icon.vue +7 -14
- package/packages/super-grid/src/components/hyperlinks.vue +24 -8
- package/packages/super-grid/src/custom-formatter.js +312 -386
- package/packages/super-grid/src/dynamic-input.vue +8 -1
- package/packages/super-grid/src/normal-column-content.vue +1079 -0
- package/packages/super-grid/src/normal-column.vue +41 -752
- package/packages/super-grid/src/row-detail.vue +50 -0
- package/packages/super-grid/src/search-form-advancedQuery.vue +6 -1
- package/packages/super-grid/src/search-form-item.vue +6 -1
- package/packages/super-grid/src/super-grid-service.js +41 -1
- package/packages/super-grid/src/super-grid.vue +123 -49
- package/packages/super-grid/src/utils.js +80 -56
- package/src/i18n/langs/cn.js +4 -1
- package/src/i18n/langs/en.js +3 -0
- package/src/permission.js +7 -1
- package/src/store/modules/user.js +4 -1
- package/src/styles/theme/dark-blue/button.scss +2 -2
- package/src/styles/theme/dark-blue/index.scss +1 -1
- package/src/styles/theme/green/button.scss +2 -2
- package/src/styles/theme/green/index.scss +1 -1
- package/src/styles/theme/ocean-blue/button.scss +2 -2
- package/src/styles/theme/ocean-blue/index.scss +1 -1
- package/src/utils/jump-page-utils.js +199 -321
- package/src/utils/permissionAuth.js +1 -1
- package/src/views/layout/components/Menubar/Item.vue +27 -4
- package/src/views/layout/components/Menubar/SidebarItem.vue +6 -2
- package/src/views/layout/components/Menubar/index.vue +14 -2
|
@@ -218,7 +218,7 @@ export function isDevpAccess() {
|
|
|
218
218
|
const postManagementCodes = getPostManagementCodes()
|
|
219
219
|
// console.log("isDevAccess----postManagementCodes=",postManagementCodes);
|
|
220
220
|
if(postManagementCodes && postManagementCodes.indexOf(DEV_ROLE_PROJECT_ADMIN_CODE) >= 0 ||
|
|
221
|
-
postManagementCodes.
|
|
221
|
+
postManagementCodes.indexOf(DEV_ROLE_PROJECT_VIEWER_CODE) >= 0){
|
|
222
222
|
// 表示是项目负责人岗位或观察者岗位或平台管理员,且当前登录用户是 devp的应用id
|
|
223
223
|
return true
|
|
224
224
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="jsx">
|
|
2
2
|
import { defineComponent, h } from 'vue'
|
|
3
3
|
import SvgIcon from '../../../svg-icon/src/svg-icon.vue'
|
|
4
|
+
import {ElBadge} from 'element-plus'
|
|
4
5
|
export default defineComponent ({
|
|
5
6
|
name: 'MenuItem',
|
|
6
7
|
functional: true,
|
|
@@ -20,11 +21,19 @@ export default defineComponent ({
|
|
|
20
21
|
isRoot: {
|
|
21
22
|
type: Boolean,
|
|
22
23
|
default: false
|
|
23
|
-
}
|
|
24
|
+
},
|
|
25
|
+
code: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
28
|
+
},
|
|
29
|
+
backlogTotal: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 0
|
|
32
|
+
}
|
|
24
33
|
},
|
|
25
34
|
render(props) {
|
|
26
|
-
const { title, hasChildren, isRoot } = props
|
|
27
|
-
|
|
35
|
+
const { title, hasChildren, isRoot,code, backlogTotal } = props
|
|
36
|
+
let icon = props.icon
|
|
28
37
|
const vnodes = []
|
|
29
38
|
if (icon) {
|
|
30
39
|
if (icon.indexOf('fa-') === 0) {
|
|
@@ -51,7 +60,7 @@ export default defineComponent ({
|
|
|
51
60
|
}
|
|
52
61
|
if (isRoot) {
|
|
53
62
|
// 是否是根目录,没有子菜单时
|
|
54
|
-
vnodes.push(h('div', {style:{display:'inline-block'}},
|
|
63
|
+
vnodes.push(h('div', {style:{display:'inline-block',}},
|
|
55
64
|
[h('div',{
|
|
56
65
|
title:title,
|
|
57
66
|
style:{display:'inline-block',width:width,overflow:'hidden','text-overflow':'ellipsis','white-space':'nowrap','word-break':'keep-all'}
|
|
@@ -60,6 +69,20 @@ export default defineComponent ({
|
|
|
60
69
|
// vnodes.push(<div style='display: inline-block'>
|
|
61
70
|
// <div title={title} style={'display: inline-block;width:' + width + ';overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;'}>{(title)}</div>
|
|
62
71
|
// </div>)
|
|
72
|
+
}else if (code === 'undoneTask') {
|
|
73
|
+
// 有子菜单时
|
|
74
|
+
vnodes.push(h('div', {style:{display:'inline-block'}},
|
|
75
|
+
[h('div',{
|
|
76
|
+
title:title,
|
|
77
|
+
style:{display:'inline-block',width:width,overflow:'hidden','text-overflow':'ellipsis','white-space':'nowrap','word-break':'keep-all'}
|
|
78
|
+
}, [h(ElBadge,{value:backlogTotal,style:{display:'inline'}},title)])])
|
|
79
|
+
)
|
|
80
|
+
// vnodes.push(<div slot='title' style='display: inline-block'>
|
|
81
|
+
// <div title={title} style={'display: inline-block;width:' + width + ';overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;'}>
|
|
82
|
+
// {(title)}
|
|
83
|
+
// <el-badge value={backlogTotal}></el-badge>
|
|
84
|
+
// </div>
|
|
85
|
+
// </div>)
|
|
63
86
|
} else {
|
|
64
87
|
// 有子菜单时
|
|
65
88
|
vnodes.push(h('div', {style:{display:'inline-block'}},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
/>
|
|
35
35
|
<app-link :key="child.code" v-else :to="toPath(child)" @click="clickMenu(toPath(child))">
|
|
36
36
|
<el-menu-item :index="child.code + '~~' + child.i18nValue">
|
|
37
|
-
<item :icon="child.iconName" :title="getI18nName(child)" />
|
|
37
|
+
<item :backlog-total="backlogTotal" :code="child.code" :icon="child.iconName" :title="getI18nName(child)" />
|
|
38
38
|
</el-menu-item>
|
|
39
39
|
</app-link>
|
|
40
40
|
</template>
|
|
@@ -67,7 +67,11 @@ export default {
|
|
|
67
67
|
basePath: {
|
|
68
68
|
type: String,
|
|
69
69
|
default: "",
|
|
70
|
-
}
|
|
70
|
+
},
|
|
71
|
+
backlogTotal: {
|
|
72
|
+
type: Number,
|
|
73
|
+
default: 0
|
|
74
|
+
}
|
|
71
75
|
},
|
|
72
76
|
data() {
|
|
73
77
|
let frontendUrlKey = '_PLAT_FORM_FRONTEND_URL'
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
>
|
|
19
19
|
{{ systemName }}
|
|
20
20
|
</el-menu-item>
|
|
21
|
-
<sidebar-item v-for="menu in menus" :key="menu.code" :item="menu"/>
|
|
21
|
+
<sidebar-item v-for="menu in menus" :backlog-total="backlogTotal" :key="menu.code" :item="menu"/>
|
|
22
22
|
</el-menu>
|
|
23
23
|
</el-scrollbar>
|
|
24
24
|
<hamburger
|
|
@@ -73,7 +73,8 @@ export default {
|
|
|
73
73
|
defaultActive: '',
|
|
74
74
|
menus,
|
|
75
75
|
isSelectFirst,
|
|
76
|
-
isDevp
|
|
76
|
+
isDevp,
|
|
77
|
+
backlogTotal: 0
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
computed: {
|
|
@@ -98,6 +99,12 @@ export default {
|
|
|
98
99
|
},
|
|
99
100
|
created() {
|
|
100
101
|
this.firstLeafMenu = this.getFirstMenu(this.menus)
|
|
102
|
+
console.log('ffff',this.firstLeafMenu)
|
|
103
|
+
if (this.firstLeafMenu.name === '待办事宜'){
|
|
104
|
+
window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + '/task/tasks/to-do-task-nums').then(res => {
|
|
105
|
+
this.backlogTotal = res.undoneTaskCount
|
|
106
|
+
})
|
|
107
|
+
}
|
|
101
108
|
if (this.firstLeafMenu) {
|
|
102
109
|
// Breadcrumb组件需要使用window.$vueApp.config.globalProperties._selectMenu的值,格式为:fullPath~~title
|
|
103
110
|
this.defaultActive =
|
|
@@ -246,3 +253,8 @@ export default {
|
|
|
246
253
|
},
|
|
247
254
|
}
|
|
248
255
|
</script>
|
|
256
|
+
<style>
|
|
257
|
+
.aa{
|
|
258
|
+
background-color: red;
|
|
259
|
+
}
|
|
260
|
+
</style>
|