Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
f9fc7b62
Commit
f9fc7b62
authored
Apr 23, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
215d3627
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
117 deletions
+120
-117
Register.vue
src/components/Register.vue
+16
-13
menu.vue
src/components/system/menu.vue
+104
-104
No files found.
src/components/Register.vue
View file @
f9fc7b62
...
...
@@ -521,11 +521,11 @@
message
:
"手机号不能为空"
,
trigger
:
"blur"
}],
// validateCode: [{
// required: true,
// message: "验证码不能为空",
// trigger: "blur"
// }],
// validateCode: [{
// required: true,
// message: "验证码不能为空",
// trigger: "blur"
// }],
ApplyReason
:
[{
required
:
true
,
message
:
"申请原因不能为空"
,
...
...
@@ -603,16 +603,18 @@
},
//跳转至最后一步
LastStep
()
{
this
.
StepIndex
=
3
;
this
.
apipost
(
"/api/Tenant/SetTenantSecond"
,
this
.
msg2
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
StepIndex
=
3
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
//跳转登录
goLogin
()
{
this
.
$router
.
push
({
name
:
'login'
,
query
:
{
blank
:
"y"
}
});
this
.
CommonJump
(
'login'
)
},
},
mounted
()
{
...
...
@@ -623,4 +625,5 @@
}
}
};
</
script
>
\ No newline at end of file
</
script
>
src/components/system/menu.vue
View file @
f9fc7b62
<
style
>
.menuDiv
{
padding
:
20px
;
}
.menuDiv
.query-box
{
width
:
100%
;
padding
:
0
0
20px
;
border-bottom
:
1px
solid
#ccc
;
position
:
relative
;
text-align
:
right
;
}
.menuDiv
.normalBtn
{
color
:
#fff
;
padding
:
0
15px
;
height
:
30px
;
background
:
#e95252
;
border
:
1px
solid
#e95252
;
cursor
:
pointer
;
border-radius
:
15px
;
margin-left
:
10px
;
outline
:
none
;
}
.menuDiv
{
padding
:
20px
;
}
.menuDiv
.query-box
{
width
:
100%
;
padding
:
0
0
20px
;
border-bottom
:
1px
solid
#ccc
;
position
:
relative
;
text-align
:
right
;
}
.menuDiv
.normalBtn
{
color
:
#fff
;
padding
:
0
15px
;
height
:
30px
;
background
:
#e95252
;
border
:
1px
solid
#e95252
;
cursor
:
pointer
;
border-radius
:
15px
;
margin-left
:
10px
;
outline
:
none
;
}
</
style
>
<
template
>
<div
class=
"menuDiv"
>
<div
class=
"query-box"
>
<button
type=
"button"
class=
"normalBtn"
@
click=
"menuDialog=true"
>
新增
</button>
</div>
<table
class=
"commonTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
菜单编号
</th>
<th>
菜单名称
</th>
<th>
菜单连接
</th>
<th>
菜单等级
</th>
<th>
父级菜单编号
</th>
<th>
状态
</th>
</tr>
<tr>
<td>
1
</td>
<td>
2
</td>
<td>
3
</td>
<td>
4
</td>
<td>
5
</td>
<td>
正常
</td>
</tr>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
v-if=
"dataList.length>0"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"total"
>
</el-pagination>
<div
class=
"menuDiv"
>
<div
class=
"query-box"
>
<button
type=
"button"
class=
"normalBtn"
@
click=
"menuDialog=true"
>
新增
</button>
</div>
<table
class=
"commonTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
菜单编号
</th>
<th>
菜单名称
</th>
<th>
菜单连接
</th>
<th>
菜单等级
</th>
<th>
父级菜单编号
</th>
<th>
状态
</th>
</tr>
<tr>
<td>
1
</td>
<td>
2
</td>
<td>
3
</td>
<td>
4
</td>
<td>
5
</td>
<td>
正常
</td>
</tr>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
v-if=
"dataList.length>0"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"total"
>
</el-pagination>
<!-- 修改密码 -->
<el-dialog
title=
"新增菜单"
:visible
.
sync=
"menuDialog"
width=
"500px"
>
<el-form
:model=
"addMsg"
:rules=
"menurules"
ref=
"addMsg"
label-width=
"150px"
>
<el-form-item
label=
"菜单名称"
prop=
"MenuName"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.MenuName"
></el-input>
</el-form-item>
<el-form-item
label=
"菜单连接"
prop=
"MenuUrl"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.MenuUrl"
></el-input>
</el-form-item>
<el-form-item
label=
"菜单等级"
prop=
"MenuLevel"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.MenuLevel"
></el-input>
</el-form-item>
<el-form-item
label=
"父级菜单编号"
prop=
"ParentId"
>
<el-select
style=
"width:234px;"
size=
"small"
v-model=
"addMsg.ParentId"
>
<el-option
label=
"编号1"
:key=
"0"
:value=
"0"
></el-option>
<el-option
label=
"编号2"
:key=
"1"
:value=
"1"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"图标"
prop=
"IconClass"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.IconClass"
></el-input>
</el-form-item>
<!-- 修改密码 -->
<el-dialog
title=
"新增菜单"
:visible
.
sync=
"menuDialog"
width=
"500px"
>
<el-form
:model=
"addMsg"
:rules=
"menurules"
ref=
"addMsg"
label-width=
"150px"
>
<el-form-item
label=
"菜单名称"
prop=
"MenuName"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.MenuName"
></el-input>
</el-form-item>
<el-form-item
label=
"菜单连接"
prop=
"MenuUrl"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.MenuUrl"
></el-input>
</el-form-item>
<el-form-item
label=
"菜单等级"
prop=
"MenuLevel"
>
<el-select
style=
"width:234px;"
size=
"small"
v-model=
"addMsg.MenuLevel"
>
<el-option
label=
"一级"
:key=
"1"
:value=
"1"
></el-option>
<el-option
label=
"二级"
:key=
"2"
:value=
"2"
></el-option>
<el-option
label=
"三级"
:key=
"3"
:value=
"3"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"父级菜单编号"
prop=
"ParentId"
>
<el-select
style=
"width:234px;"
size=
"small"
v-model=
"addMsg.ParentId"
>
<el-option
label=
"编号1"
:key=
"0"
:value=
"0"
></el-option>
<el-option
label=
"编号2"
:key=
"1"
:value=
"1"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"图标"
prop=
"IconClass"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.IconClass"
></el-input>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"menuDialog = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"addMenu()"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"menuDialog = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"addMenu()"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
loading
:
false
,
menuDialog
:
false
,
loading
:
false
,
menuDialog
:
false
,
currentPage
:
1
,
total
:
0
,
msg
:
{
pageIndex
:
1
,
pageSize
:
20
pageIndex
:
1
,
pageSize
:
20
},
dataList
:[],
addMsg
:{
MenuName
:
''
,
MenuUrl
:
''
,
MenuLevel
:
0
,
ParentId
:
0
,
IconClass
:
''
,
Status
:
0
,
dataList
:
[],
addMsg
:
{
MenuName
:
''
,
MenuUrl
:
''
,
MenuLevel
:
0
,
ParentId
:
0
,
IconClass
:
''
,
Status
:
0
,
},
menurules
:{
menurules
:
{
}
};
...
...
@@ -114,20 +115,19 @@
},
methods
:
{
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//获取数据
getList
(){
},
addMenu
(){
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//获取数据
getList
()
{
}
},
addMenu
()
{
}
},
mounted
()
{
this
.
getList
();
}
};
...
...
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