Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
112ad76d
Commit
112ad76d
authored
Dec 24, 2018
by
郑杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节修改,设置默认用户,角色,权限不可删除修改
parent
e1d18217
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
30 additions
and
7 deletions
+30
-7
README.md
+4
-1
src/views/monitor/redis/index.vue
+4
-0
src/views/system/menu/index.vue
+4
-0
src/views/system/permission/index.vue
+5
-1
src/views/system/permission/module/edit.vue
+1
-1
src/views/system/role/index.vue
+5
-1
src/views/system/role/module/edit.vue
+1
-1
src/views/system/user/index.vue
+5
-1
src/views/system/user/module/edit.vue
+1
-1
No files found.
README.md
View file @
112ad76d
...
...
@@ -7,7 +7,10 @@ eladmin 前端源码
-
github:
[
https://github.com/elunez/eladmin
](
https://github.com/elunez/eladmin
)
#### 初始模板
前端模板基于:
[
https://github.com/PanJiaChen/vue-admin-template
](
https://github.com/PanJiaChen/vue-admin-template
)
基于PanJiaChen的:
[
https://github.com/PanJiaChen/vue-admin-template
](
https://github.com/PanJiaChen/vue-admin-template
)
#### 前端参考文档
[
https://panjiachen.github.io/vue-element-admin-site/zh/guide/
](
https://panjiachen.github.io/vue-element-admin-site/zh/guide/
)
## Build Setup
```
bash
...
...
src/views/monitor/redis/index.vue
View file @
112ad76d
...
...
@@ -85,6 +85,10 @@ export default {
type
:
'success'
,
duration
:
2500
})
}).
catch
(
err
=>
{
this
.
delLoading
=
false
row
.
delPopover
=
false
console
.
log
(
err
.
response
.
data
.
message
)
})
},
time
(
time
)
{
...
...
src/views/system/menu/index.vue
View file @
112ad76d
...
...
@@ -99,6 +99,10 @@ export default {
type
:
'success'
,
duration
:
2500
})
}).
catch
(
err
=>
{
this
.
delLoading
=
false
row
.
delPopover
=
false
console
.
log
(
err
.
response
.
data
.
message
)
})
},
time
(
time
)
{
...
...
src/views/system/permission/index.vue
View file @
112ad76d
...
...
@@ -21,7 +21,7 @@
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delPopover = false"
>
取消
</el-button>
<el-button
:loading=
"delLoading"
type=
"primary"
size=
"mini"
@
click=
"subDelete(scope.$index, scope.row)"
>
确定
</el-button>
</div>
<el-button
slot=
"reference"
type=
"danger"
size=
"mini"
@
click=
"scope.row.delPopover = true"
>
删除
</el-button>
<el-button
slot=
"reference"
:disabled=
"scope.row.id === 1"
type=
"danger"
size=
"mini"
@
click=
"scope.row.delPopover = true"
>
删除
</el-button>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -84,6 +84,10 @@ export default {
type
:
'success'
,
duration
:
2500
})
}).
catch
(
err
=>
{
this
.
delLoading
=
false
row
.
delPopover
=
false
console
.
log
(
err
.
response
.
data
.
message
)
})
},
time
(
time
)
{
...
...
src/views/system/permission/module/edit.vue
View file @
112ad76d
<
template
>
<div>
<el-button
size=
"mini"
type=
"success"
@
click=
"to"
>
编辑
</el-button>
<el-button
:disabled=
"data.id === 1"
size=
"mini"
type=
"success"
@
click=
"to"
>
编辑
</el-button>
<el-dialog
:visible
.
sync=
"dialog"
:title=
"title"
style=
"text-align: left"
width=
"500px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"80px"
>
<el-form-item
label=
"名称"
prop=
"name"
>
...
...
src/views/system/role/index.vue
View file @
112ad76d
...
...
@@ -23,7 +23,7 @@
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delPopover = false"
>
取消
</el-button>
<el-button
:loading=
"delLoading"
type=
"primary"
size=
"mini"
@
click=
"subDelete(scope.$index, scope.row)"
>
确定
</el-button>
</div>
<el-button
slot=
"reference"
type=
"danger"
size=
"mini"
@
click=
"scope.row.delPopover = true"
>
删除
</el-button>
<el-button
slot=
"reference"
:disabled=
"scope.row.id === 1"
type=
"danger"
size=
"mini"
@
click=
"scope.row.delPopover = true"
>
删除
</el-button>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -82,6 +82,10 @@ export default {
type
:
'success'
,
duration
:
2500
})
}).
catch
(
err
=>
{
this
.
delLoading
=
false
row
.
delPopover
=
false
console
.
log
(
err
.
response
.
data
.
message
)
})
},
time
(
time
)
{
...
...
src/views/system/role/module/edit.vue
View file @
112ad76d
<
template
>
<div>
<el-button
size=
"mini"
type=
"success"
@
click=
"to"
>
编辑
</el-button>
<el-button
:disabled=
"data.id === 1"
size=
"mini"
type=
"success"
@
click=
"to"
>
编辑
</el-button>
<el-dialog
:visible
.
sync=
"dialog"
:title=
"title"
style=
"text-align: left"
width=
"500px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"66px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"66px"
>
...
...
src/views/system/user/index.vue
View file @
112ad76d
...
...
@@ -33,7 +33,7 @@
<el-button
size=
"mini"
type=
"text"
@
click=
"scope.row.delPopover = false"
>
取消
</el-button>
<el-button
:loading=
"delLoading"
type=
"primary"
size=
"mini"
@
click=
"subDelete(scope.$index, scope.row)"
>
确定
</el-button>
</div>
<el-button
slot=
"reference"
type=
"danger"
size=
"mini"
@
click=
"scope.row.delPopover = true"
>
删除
</el-button>
<el-button
slot=
"reference"
:disabled=
"scope.row.id === 1"
type=
"danger"
size=
"mini"
@
click=
"scope.row.delPopover = true"
>
删除
</el-button>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -95,6 +95,10 @@ export default {
type
:
'success'
,
duration
:
2500
})
}).
catch
(
err
=>
{
this
.
delLoading
=
false
row
.
delPopover
=
false
console
.
log
(
err
.
response
.
data
.
message
)
})
},
time
(
time
)
{
...
...
src/views/system/user/module/edit.vue
View file @
112ad76d
<
template
>
<div>
<el-button
size=
"mini"
type=
"success"
@
click=
"to"
>
编辑
</el-button>
<el-button
:disabled=
"data.id === 1"
size=
"mini"
type=
"success"
@
click=
"to"
>
编辑
</el-button>
<el-dialog
:visible
.
sync=
"dialog"
:close-on-click-modal=
"false"
:title=
"title"
style=
"text-align: left"
width=
"500px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"66px"
>
<el-form-item
label=
"用户名"
prop=
"username"
>
...
...
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