Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-sky-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何虹
hs-sky-ui
Commits
3c54c17f
Commit
3c54c17f
authored
Jan 22, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化select-list,权限
parent
66a71e12
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
11 deletions
+42
-11
child.vue
src/packages/hs-button-group/src/child.vue
+10
-2
commonboxUc.js
src/packages/hs-component-shell/src/commonboxUc.js
+9
-0
dyncFormItemComponentChild.vue
src/packages/hs-dync-form/src/dyncFormItemComponentChild.vue
+6
-0
child.vue
src/packages/hs-select-list/src/child.vue
+2
-2
child.vue
src/packages/hs-select-plus/src/child.vue
+1
-1
ItemComponentChild.vue
src/packages/hs-table/src/ItemComponentChild.vue
+9
-1
child.vue
src/packages/hs-table/src/child.vue
+3
-3
click-out-side.js
src/packages/ucClass/click-out-side.js
+2
-2
No files found.
src/packages/hs-button-group/src/child.vue
View file @
3c54c17f
...
...
@@ -47,7 +47,7 @@
import
commonMixins
from
'../../ucClass/commonMixins'
export
default
{
mixins
:
[
commonMixins
],
components
:{
components
:
{
// 'el-dropdown-menu': DropdownMenu,
// 'el-dropdown': Dropdown,
// 'el-dropdown-item':DropdownItem,
...
...
@@ -215,13 +215,21 @@ export default {
if
(
user_info
)
{
const
user_info_json
=
JSON
.
parse
(
user_info
)
const
{
is_admin
}
=
user_info_json
if
(
!
is_admin
)
{
if
(
!
is_admin
||
is_admin
===
0
)
{
// 不是管理员的情况下隐藏页面设置和action设置
tempList
=
tempList
.
filter
(
item
=>
item
.
click
!==
'$setAction'
&&
item
.
click
!==
'$setPageConfig'
)
}
}
else
{
if
(
self
!==
top
)
{
tempList
=
tempList
.
filter
(
item
=>
item
.
click
!==
'$setAction'
&&
item
.
click
!==
'$setPageConfig'
)
}
}
return
tempList
.
filter
(
item
=>
this
.
showItem
(
item
))
}
...
...
src/packages/hs-component-shell/src/commonboxUc.js
View file @
3c54c17f
...
...
@@ -44,6 +44,15 @@ export default {
boxEventMouse
(
event
)
{
const
that
=
this
event
.
stopPropagation
()
const
user_info
=
sessionStorage
[
'user_info'
]
if
(
user_info
)
{
const
user_info_json
=
JSON
.
parse
(
user_info
)
const
{
is_admin
}
=
user_info_json
if
(
!
is_admin
||
is_admin
===
0
)
return
}
if
(
!
user_info
)
{
if
(
top
!==
self
)
return
}
if
(
event
.
shiftKey
&&
event
.
altKey
&&
!
event
.
ctrlKey
)
{
that
.
showJsonEditDialog
()
}
...
...
src/packages/hs-dync-form/src/dyncFormItemComponentChild.vue
View file @
3c54c17f
...
...
@@ -445,4 +445,10 @@ export default {
.textareaInput
>>>
textarea
{
height
:
100%
;
}
.dyncUiItemChildBox
>>>
.el-icon-time
{
display
:
none
!important
;
}
.dyncUiItemChildBox
>>>
.el-icon-date
{
display
:
none
!important
;
}
</
style
>
src/packages/hs-select-list/src/child.vue
View file @
3c54c17f
...
...
@@ -24,7 +24,7 @@
top=
'10px'
:close-on-click-modal=
'false'
:before-close=
'beforeClose'
append-to-body
:append-to-body=
'true'
center
title=
"查询"
:visible
.
sync=
"dialogTableVisible"
...
...
@@ -347,7 +347,7 @@ export default {
this
.
leftTabeData
=
this
.
removeUniq
(
this
.
leftTabeData
,
isSelectedList
)
},
async
showDialog
()
{
console
.
log
(
'showDialog'
)
if
(
this
.
getDisabled
)
return
const
{
dialogWidth
,
tableHeight
}
=
this
.
configData
let
dialogWidth_
=
dialogWidth
||
this
.
dialogWidth
if
(
typeof
dialogWidth
===
'string'
)
{
...
...
src/packages/hs-select-plus/src/child.vue
View file @
3c54c17f
...
...
@@ -46,7 +46,7 @@
icon=
"el-icon-refresh"
></el-button>
<el-button
:disabled=
"linkBtnDisabled"
:disabled=
"linkBtnDisabled
||getDisabled_()
"
v-if=
'configData.linkBtnUi'
size=
"mini"
@
click=
'showAddPage'
...
...
src/packages/hs-table/src/ItemComponentChild.vue
View file @
3c54c17f
<
template
>
<div
style=
"width:100%;height:100%;"
>
<div
style=
"width:100%;height:100%;"
class=
"itemBoxHstable"
>
<template
v-if=
"item.showType==='text'||!item.showType"
>
<span
style=
"width:100%"
...
...
@@ -300,3 +300,11 @@ export default {
}
}
</
script
>
<
style
scoped
>
.itemBoxHstable
>>>
.el-icon-time
{
display
:
none
!important
;
}
.itemBoxHstable
>>>
.el-icon-date
{
display
:
none
!important
;
}
</
style
>
src/packages/hs-table/src/child.vue
View file @
3c54c17f
...
...
@@ -1026,11 +1026,11 @@ export default {
} */
/*滑块轨道*/
._hs_table
.el-table__body-wrapper
::-webkit-scrollbar
{
width
:
8
px
;
height
:
8
px
;
width
:
12
px
;
height
:
12
px
;
}
._hs_table
.el-table__body-wrapper
::-webkit-scrollbar-thumb
{
background-color
:
#
ddd
;
background-color
:
#
8b8b8b
;
border-radius
:
3px
;
}
/*轨道*/
...
...
src/packages/ucClass/click-out-side.js
View file @
3c54c17f
...
...
@@ -12,11 +12,11 @@ export default {
event
.
stopPropagation
()
}
el
.
addEventListener
(
'click'
,
el
.
stopProp
)
document
.
body
.
addEventListener
(
'click'
,
el
.
handler
)
document
.
body
.
addEventListener
(
'click'
,
el
.
handler
,
true
)
},
unbind
(
el
,
binding
)
{
el
.
removeEventListener
(
'click'
,
el
.
stopProp
)
document
.
body
.
removeEventListener
(
'click'
,
el
.
handler
)
document
.
body
.
removeEventListener
(
'click'
,
el
.
handler
,
true
)
},
install
(
Vue
)
{
Vue
.
directive
(
'clickoutside'
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment