Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
dd372aa5
Commit
dd372aa5
authored
Apr 15, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端: 1、调整样式页面
parent
9e49e6da
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
684 additions
and
782 deletions
+684
-782
front/src/assets/doc/setting.md
front/src/assets/doc/setting.md
+1
-1
front/src/styles/table-common.less
front/src/styles/table-common.less
+5
-0
front/src/styles/tree-common.less
front/src/styles/tree-common.less
+6
-0
front/src/views/doc-manage/server.vue
front/src/views/doc-manage/server.vue
+1
-1
front/src/views/main.less
front/src/views/main.less
+64
-0
front/src/views/sys/menu-manage/menuManage.vue
front/src/views/sys/menu-manage/menuManage.vue
+583
-717
front/src/views/sys/role-manage/roleManage.vue
front/src/views/sys/role-manage/roleManage.vue
+5
-4
front/src/views/sys/user-manage/userManage.vue
front/src/views/sys/user-manage/userManage.vue
+19
-59
No files found.
front/src/assets/doc/setting.md
View file @
dd372aa5
...
...
@@ -155,7 +155,7 @@ App running at:
```
> <strong>注意:</strong> 如果需要打包进行正式环境的运行要执行:
```
sh
npm build
#运行结束会在dist文件生成html文件,将该dist文件夹打包上传至服务中。
npm
run
build
#运行结束会在dist文件生成html文件,将该dist文件夹打包上传至服务中。
```
...
...
front/src/styles/table-common.less
View file @
dd372aa5
...
...
@@ -3,6 +3,11 @@
margin-bottom: 2vh;
}
.operation button {
width: 150px;
height: 40px;
}
.select-count {
font-weight: 600;
color: #40a9ff;
...
...
front/src/styles/tree-common.less
View file @
dd372aa5
.search {
.operation {
margin-bottom: 2vh;
height: 80vh;
}
.operation form input {
width: 550px;
height: 35px;
}
.select-title {
...
...
front/src/views/doc-manage/server.vue
View file @
dd372aa5
...
...
@@ -6,7 +6,7 @@
<Menu
active-name=
"1-1"
theme=
"primary"
width=
"auto"
@
on-select=
"currName = $event"
>
<MenuItem
name=
"1-1"
>
安装配置
</MenuItem>
<MenuItem
name=
"1-2"
>
服务器端
</MenuItem>
<MenuItem
name=
"1-3"
>
前
端
</MenuItem>
<MenuItem
name=
"1-3"
>
页面
端
</MenuItem>
</Menu>
</Sider>
<Content
:style=
"
{
...
...
front/src/views/main.less
View file @
dd372aa5
...
...
@@ -356,4 +356,68 @@
right: 4px;
z-index: 100;
top: 1px;
}
//表格公共样式
.tableInfoBox {
position: relative;
margin: 10px 0px 0px;
background-color: #fff;
border: 1px;
.ivu-table-wrapper {
border: 0px;
}
.ivu-table-border td {
border-color: #f9f9f9;
height: 65px;
}
.ivu-table-tip td {
border-bottom: 1px;
span {
width: 100%;
padding: 0px;
display: inline-block;
color: #aaaaaa;
background-repeat: no-repeat;
background-position: center 50%;
}
}
table th .ivu-table-cell {
position: relative;
display: inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: inherit;
padding-left: 10px;
padding-right: 10px;
}
/*头部th*/
.ivu-table-header th,
.ivu-table-fixed-header th {
color: #252b2d;
font-weight: bold;
background-color: #f9f9f9;
border:0px;
height: 105px;
}
.ivu-table table {
width: calc(~'100% - 0px') !important;
}
}
/*-弹窗居中显示-*/
.vertical-center-modal {
display: flex;
align-items: center;
justify-content: center;
.ivu-modal {
top: 0;
}
}
\ No newline at end of file
front/src/views/sys/menu-manage/menuManage.vue
View file @
dd372aa5
This diff is collapsed.
Click to expand it.
front/src/views/sys/role-manage/roleManage.vue
View file @
dd372aa5
...
...
@@ -11,14 +11,15 @@
<Button
@
click=
"delAll"
icon=
"md-trash"
>
批量删除
</Button>
<Button
@
click=
"init"
icon=
"md-refresh"
>
刷新
</Button>
</Row>
<Alert
show-icon
v-show=
"openTip"
>
<Divider
/>
<div>
已选择
<span
class=
"select-count"
>
{{
selectList
.
length
}}
</span>
项
<a
class=
"select-clear"
@
click=
"clearSelectAll"
>
清空
</a>
</
Alert
>
<Table
:loading=
"loading"
border
:columns=
"columns"
:data=
"data"
ref=
"table"
sortable=
"custom"
@
on-sort-change=
"changeSort"
@
on-selection-change=
"changeSelect"
></Table>
</
div
>
<Table
stripe
border
class=
"tableInfoBox"
:loading=
"loading"
:columns=
"columns"
:data=
"data"
ref=
"table"
sortable=
"custom"
@
on-sort-change=
"changeSort"
@
on-selection-change=
"changeSelect"
></Table>
<Row
type=
"flex"
justify=
"end"
class=
"page"
>
<Page
:current=
"searchForm.pageNumber"
:total=
"total"
:page-size=
"searchForm.pageSize"
@
on-change=
"changePage"
@
on-page-size-change=
"changePageSize"
:page-size-opts=
"[10, 20, 50]"
s
ize=
"small"
show-total
show-elevator
show-sizer
></Page>
<Page
:current=
"searchForm.pageNumber"
:total=
"total"
:page-size=
"searchForm.pageSize"
@
on-change=
"changePage"
@
on-page-size-change=
"changePageSize"
:page-size-opts=
"[10, 20, 50]"
s
how-total
show-sizer
></Page>
</Row>
</Card>
...
...
front/src/views/sys/user-manage/userManage.vue
View file @
dd372aa5
...
...
@@ -35,19 +35,23 @@
<DropdownItem
name=
"refresh"
>
刷新
</DropdownItem>
</DropdownMenu>
</Dropdown>
</Col>
<Col
span=
"12"
>
<div
style=
"text-align:right;"
>
<Button
icon=
"ios-search"
style=
"margin-top:10px"
type=
"text"
@
click=
"openSearch = !openSearch"
>
关闭/开启搜索
</Button>
</div>
</Col>
</Col>
<Col
span=
"12"
style=
"text-align:right"
>
<Button
icon=
"ios-search"
type=
"dashed"
@
click=
"openSearch = !openSearch"
>
开启/关闭搜索
</Button>
</Col>
</Row>
<Alert
show-icon
v-show=
"openTip"
>
已选择
<span
class=
"select-count"
>
{{
this
.
selectList
.
length
}}
</span>
项
<a
class=
"select-clear"
@
click=
"clearSelectAll"
>
清空
</a>
</Alert>
<Table
:loading=
"loading"
border
:columns=
"columns"
:data=
"data"
sortable=
"custom"
@
on-sort-change=
"changeSort"
@
on-selection-change=
"showSelect"
ref=
"table"
></Table>
<Divider
/>
<Row>
<Col
span=
"3"
>
<div
style=
"display:inline-block;vertical-align: middle;"
>
已选择
<span
class=
"select-count"
>
{{
selectList
.
length
}}
</span>
项
<a
class=
"select-clear"
@
click=
"clearSelectAll"
>
清空
</a>
</div>
</Col>
</Row>
<Table
stripe
border
class=
"tableInfoBox"
:loading=
"loading"
:columns=
"columns"
:data=
"data"
sortable=
"custom"
@
on-sort-change=
"changeSort"
@
on-selection-change=
"showSelect"
></Table>
<Row
type=
"flex"
justify=
"end"
class=
"page"
>
<Page
:current=
"searchForm.pageNumber"
:total=
"total"
:page-size=
"searchForm.pageSize"
@
on-change=
"changePage"
@
on-page-size-change=
"changePageSize"
:page-size-opts=
"[10, 20, 50]"
size=
"small"
show-total
show-elevator
show-sizer
></Page>
</Row>
...
...
@@ -64,8 +68,6 @@ import {
enableUser
,
disableUser
,
deleteUser
,
getAllUserData
,
resetUserPass
,
}
from
"
@/api/index
"
;
import
addEdit
from
"
./addEdit.vue
"
;
import
{
...
...
@@ -115,27 +117,23 @@ export default {
type
:
"
selection
"
,
width
:
60
,
align
:
"
center
"
,
fixed
:
"
left
"
,
},
{
type
:
"
index
"
,
width
:
60
,
align
:
"
center
"
,
fixed
:
"
left
"
,
},
{
title
:
"
登录账号
"
,
key
:
"
username
"
,
minWidth
:
125
,
sortable
:
true
,
fixed
:
"
left
"
,
},
{
title
:
"
用户名
"
,
key
:
"
nickname
"
,
minWidth
:
125
,
sortable
:
true
,
fixed
:
"
left
"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"
a
"
,
{
...
...
@@ -159,7 +157,7 @@ export default {
title
:
"
类型
"
,
key
:
"
type
"
,
align
:
"
center
"
,
width
:
1
1
0
,
width
:
1
5
0
,
render
:
(
h
,
params
)
=>
{
let
re
=
""
,
color
=
""
;
...
...
@@ -181,31 +179,12 @@ export default {
),
]);
},
filters
:
[{
label
:
"
普通用户
"
,
value
:
0
,
},
{
label
:
"
管理员
"
,
value
:
1
,
},
],
filterMultiple
:
false
,
filterRemote
:
(
e
)
=>
{
let
v
=
""
;
if
(
e
.
length
>
0
)
{
v
=
e
[
0
];
}
this
.
searchForm
.
type
=
v
;
this
.
searchForm
.
pageNumber
=
1
;
this
.
getDataList
();
},
},
{
title
:
"
状态
"
,
key
:
"
status
"
,
align
:
"
center
"
,
width
:
1
0
0
,
width
:
1
5
0
,
render
:
(
h
,
params
)
=>
{
if
(
params
.
row
.
status
==
1
)
{
return
h
(
"
div
"
,
[
...
...
@@ -227,25 +206,6 @@ export default {
]);
}
},
filters
:
[{
label
:
"
启用
"
,
value
:
1
,
},
{
label
:
"
禁用
"
,
value
:
0
,
},
],
filterMultiple
:
false
,
filterRemote
:
(
e
)
=>
{
let
v
=
""
;
if
(
e
.
length
>
0
)
{
v
=
e
[
0
];
}
this
.
searchForm
.
status
=
v
;
this
.
searchForm
.
pageNumber
=
1
;
this
.
getDataList
();
},
},
{
title
:
"
所在角色组
"
,
...
...
@@ -467,7 +427,7 @@ export default {
onOk
:
()
=>
{
enableUser
(
v
.
id
).
then
((
res
)
=>
{
this
.
$Modal
.
remove
();
if
(
res
.
s
uccess
)
{
if
(
res
.
s
tatus
==
'
success
'
)
{
this
.
$Message
.
success
(
"
操作成功
"
);
this
.
getDataList
();
}
...
...
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