Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bff48e75
authored
Jun 22, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
7e2b8c21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
135 additions
and
130 deletions
src/assets/css/common.scss
src/views/employee/index.vue
src/views/role/index.vue
src/assets/css/common.scss
View file @
bff48e7
@import
'./demo.scss'
;
img
{
width
:
100%
;
height
:
100%
;
vertical-align
:
top
;
width
:
100%
;
height
:
100%
;
vertical-align
:
top
;
}
.text-hide
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.text-hide-2
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
}
.scrm-textRight
{
position
:
relative
;
text-align
:
right
;
position
:
relative
;
text-align
:
right
;
}
.scrm-textCenter
{
text-align
:
center
;
text-align
:
center
;
}
.scrm-c3
{
color
:
#333333
;
color
:
#333333
;
}
.scrm-f12
{
font-size
:
12px
;
font-size
:
12px
;
}
.scrm-f13
{
font-size
:
13px
;
font-size
:
13px
;
}
.scrm-f14
{
font-size
:
14px
;
font-size
:
14px
;
}
.scrm-f15
{
font-size
:
15px
;
font-size
:
15px
;
}
.scrm-f16
{
font-size
:
16px
;
font-size
:
16px
;
}
.scrm-f18
{
font-size
:
18px
;
font-size
:
18px
;
}
.scrm-f20
{
font-size
:
20px
;
font-size
:
20px
;
}
.scrm-f22
{
font-size
:
22px
;
font-size
:
22px
;
}
.scrm-f24
{
font-size
:
24px
;
font-size
:
24px
;
}
.scrm-m10
{
margin
:
10px
;
margin
:
10px
;
}
.scrm-m20
{
margin
:
20px
;
margin
:
20px
;
}
.scrm-ml10
{
margin-left
:
10px
;
margin-left
:
10px
;
}
.scrm-ml20
{
margin-left
:
20px
;
margin-left
:
20px
;
}
.scrm-mr10
{
margin-right
:
10px
;
margin-right
:
10px
;
}
.scrm-mr20
{
margin-right
:
20px
;
margin-right
:
20px
;
}
.scrm-p10
{
padding
:
10px
;
padding
:
10px
;
}
.scrm-p20
{
padding
:
20px
;
padding
:
20px
;
}
.scrm-box-f
{
background
:
#FFFFFF
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0
.10
);
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0
.1
);
}
.scrm-flex
{
display
:
flex
;
display
:
flex
;
}
.scrm-grid
{
display
:
grid
;
display
:
grid
;
}
.scrm-flex-center
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.scrm-flex-between
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.el-checkbox
:last-of-type
{
margin-right
:
0px
;
margin-right
:
0px
;
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
.3
);
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0
.3
);
}
.el-message--info
{
height
:
40px
;
background
:
#e6e9ff
;
border
:
1px
solid
#5850ff
;
border-radius
:
4px
;
font-size
:
14px
;
color
:
rgba
(
0
,
0
,
0
,
0
.65
);
height
:
40px
;
background
:
#e6e9ff
;
border
:
1px
solid
#5850ff
;
border-radius
:
4px
;
font-size
:
14px
;
color
:
rgba
(
0
,
0
,
0
,
0
.65
);
}
.el-message
.el-icon-info
{
color
:
#5850ff
;
font-size
:
16px
;
color
:
#5850ff
;
font-size
:
16px
;
}
.el-cascader-menu
{
max-height
:
500px
;
max-height
:
500px
;
}
.footer-panel
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
fixed
;
width
:
100%
;
bottom
:
0px
;
height
:
64px
;
background
:
#ffffff
;
z-index
:
999
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0
.1
);
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
fixed
;
width
:
100%
;
bottom
:
0px
;
height
:
64px
;
background
:
#ffffff
;
z-index
:
999
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0
.1
);
}
.dot
{
display
:
inline-flex
;
align-items
:
center
;
display
:
inline-flex
;
align-items
:
center
;
span
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
margin-right
:
8px
;
}
span
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
margin-right
:
8px
;
}
.normal
{
background-color
:
#2CCA
74
;
}
.normal
{
background-color
:
#2cca
74
;
}
.draft
{
background-color
:
#FDB
757
;
}
.draft
{
background-color
:
#fdb
757
;
}
.dot1
{
background-color
:
#FDB
757
;
}
.dot1
{
background-color
:
#fdb
757
;
}
.dot2
{
background-color
:
#2CCA
74
;
}
.dot2
{
background-color
:
#2cca
74
;
}
.dot3
{
background-color
:
#999999
;
}
.dot3
{
background-color
:
#999999
;
}
.dot4
{
background-color
:
#EB4E4E
;
}
.dot4
{
background-color
:
#eb4e4e
;
}
.dot5
{
background-color
:
#FDB
757
;
}
.dot5
{
background-color
:
#fdb
757
;
}
}
.m-r-md
{
margin-right
:
20px
;
}
\ No newline at end of file
margin-right
:
20px
;
}
// 顶部按钮
.top_widget
{
padding-bottom
:
16px
;
.el-button
{
span
{
margin-left
:
10px
;
}
}
}
src/views/employee/index.vue
View file @
bff48e7
<!-- 员工管理 -->
<
template
>
<div
class=
"config-employee employee-list"
>
<div
style=
"margin-bottom: 10px
"
>
<GLButton
@
click=
"handleEdit(1)"
:size=
"size"
class
=
"el-icon-plus"
fn=
"创建员工"
type=
"primary"
mode=
"el-button"
>
创建员工
</GLButton>
<div
class=
"top_widget
"
>
<GLButton
@
click=
"handleEdit(1)"
:size=
"size"
icon
=
"el-icon-plus"
fn=
"创建员工"
type=
"primary"
mode=
"el-button"
>
创建员工
</GLButton>
<!--
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
>
创建员工
</el-button>
-->
</div>
<div
class=
"container"
>
...
...
@@ -555,34 +555,35 @@ export default {
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
list
=
selectArr
.
map
(
item
=>
{
return
{
staffId
:
item
.
id
,
status
:
0
})
.
then
(()
=>
{
const
list
=
selectArr
.
map
(
item
=>
{
return
{
staffId
:
item
.
id
,
status
:
0
}
})
const
param
=
{
list
}
this
.
$apis
.
employee
.
updateStatusBatch
(
param
).
then
(
res
=>
{
if
(
res
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
$refs
.
employeeRef
.
refreshTable
(
false
)
}
else
{
this
.
$message
.
error
(
'操作失败'
)
}
})
})
const
param
=
{
list
}
this
.
$apis
.
employee
.
updateStatusBatch
(
param
).
then
(
res
=>
{
if
(
res
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
$refs
.
employeeRef
.
refreshTable
(
false
)
}
else
{
this
.
$message
.
error
(
'操作失败'
)
}
.
catch
(()
=>
{
console
.
log
(
'点击了取消'
)
})
}).
catch
(()
=>
{
console
.
log
(
'点击了取消'
)
})
}
}
},
// 批量分配角色,确定按钮
handleAssign
()
{
this
.
$refs
.
roleForm
.
validate
(
(
valid
)
=>
{
this
.
$refs
.
roleForm
.
validate
(
valid
=>
{
if
(
valid
)
{
const
{
roleId
}
=
this
.
roleForm
let
staffIds
=
this
.
$refs
.
employeeRef
.
mutiSelectArr
[
this
.
tableParams1
.
mutiSelectName
]
...
...
src/views/role/index.vue
View file @
bff48e7
<
template
>
<div
class=
"role-home-page"
>
<div
class=
"top_widget"
>
<GLButton
size=
"small"
fn=
"创建角色"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"toCreatePage
"
>
创建角色
</GLButton>
<GLButton
:size=
"size"
fn=
"创建角色"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"toCreatePage"
mode=
"el-button
"
>
创建角色
</GLButton>
<!--
<el-button
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"toCreatePage"
>
创建角色
</el-button>
-->
</div>
<div
class=
"table_widget"
>
...
...
@@ -318,13 +318,7 @@ export default {
flex-direction
:
column
;
height
:
100%
;
}
.top_widget
{
width
:
100%
;
display
:
flex
;
align-items
:
center
;
box-sizing
:
border-box
;
padding
:
0
20px
10px
0
;
}
.table_widget
{
width
:
100%
;
//
height
:
calc
(
100%
-
138px
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment