Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
421500ed
Commit
421500ed
authored
May 19, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
6a7f99db
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
5 deletions
+35
-5
iview-admin/src/api/meta.js
+9
-0
iview-admin/src/components/main/main.less
+1
-0
iview-admin/src/components/main/main.vue
+8
-0
iview-admin/src/store/module/metainfo/appinfo.js
+3
-1
iview-admin/src/view/appinfo/appinfo_page.vue
+12
-1
iview-admin/src/view/roleinfo/roleauth_page.vue
+2
-3
No files found.
iview-admin/src/api/meta.js
View file @
421500ed
...
...
@@ -24,6 +24,15 @@ export const getApp = () => {
})
}
export
const
buildFrontRoute
=
()
=>
{
let
appkey
=
config
.
fromappkey
?
config
.
fromappkey
:
config
.
appkey
return
axios
.
request
({
url
:
"/web/common/appCtl/buildFrontRouter"
,
method
:
'post'
,
data
:{
appkey
:
appkey
}
})
}
export
const
saveAuths
=
(
auths
)
=>
{
return
axios
.
request
({
url
:
"/web/auth/authCtl/saveAuths"
,
...
...
iview-admin/src/components/main/main.less
View file @
421500ed
...
...
@@ -19,6 +19,7 @@
overflow: hidden;
}
.main-content-con{
padding-top:10px;
height: ~"calc(100% - 60px)";
overflow: hidden;
}
...
...
iview-admin/src/components/main/main.vue
View file @
421500ed
...
...
@@ -23,8 +23,13 @@
</Tooltip>
</header-bar>
</Header>
<Content
class=
"main-content-con"
>
<Layout
class=
"main-layout-con"
>
<div
v-show=
"!navTabShow"
@
click=
"goback"
style=
"position:relative;top:15px;left:20px;z-index:2000;cursor:pointer"
>
<span
><Icon
style=
"font-size:24px"
type=
"ios-arrow-dropleft"
/>
返回
</span>
</div>
<div
v-show=
"navTabShow"
class=
"tag-nav-wrapper"
>
<tags-nav
:value=
"$route"
@
input=
"handleClick"
:list=
"tagNavList"
@
on-close=
"handleCloseTag"
/>
</div>
...
...
@@ -153,6 +158,9 @@ export default {
},
handleClick
(
item
)
{
this
.
turnToPage
(
item
)
},
goback
(){
this
.
$router
.
go
(
-
1
)
}
},
watch
:
{
...
...
iview-admin/src/store/module/metainfo/appinfo.js
View file @
421500ed
...
...
@@ -6,6 +6,7 @@ export default {
{
title
:
'名称'
,
key
:
'name'
,
sortable
:
true
,
insearch
:
true
},
//slot--自定义列 insearch--是否快速查询
{
title
:
'域名'
,
key
:
'domainName'
,
sortable
:
true
,
insearch
:
true
},
//slot--自定义列 insearch--是否快速查询
{
title
:
'服务'
,
key
:
'backend'
,
sortable
:
true
,
insearch
:
true
},
//slot--自定义列 insearch--是否快速查询
{
title
:
'前端路由'
,
key
:
'docUrl'
,
sortable
:
false
,
insearch
:
false
},
//slot--自定义
{
title
:
'创建时间'
,
key
:
'created_at'
,
slot
:
'created_at'
,
insearch
:
true
},
{
title
:
'操作'
,
...
...
@@ -73,7 +74,8 @@ export default {
],
"edit"
:
[
{
"icon"
:
"ios-create-outline"
,
"title"
:
"修改"
,
"type"
:
"text"
,
"key"
:
"edit"
,
"isInRow"
:
true
},
{
"icon"
:
"ios-create-outline"
,
"title"
:
"功能"
,
"type"
:
"text"
,
"key"
:
"func"
,
"isInRow"
:
true
}
{
"icon"
:
"ios-create-outline"
,
"title"
:
"功能"
,
"type"
:
"text"
,
"key"
:
"func"
,
"isInRow"
:
true
},
{
"icon"
:
"ios-create-outline"
,
"title"
:
"路由"
,
"type"
:
"text"
,
"key"
:
"frontroute"
,
"isInRow"
:
true
},
],
"delete"
:
[
{
"icon"
:
"ios-trash-outline"
,
"title"
:
"删除"
,
"type"
:
"text"
,
"key"
:
"deletes"
,
"isOnGrid"
:
true
},
...
...
iview-admin/src/view/appinfo/appinfo_page.vue
View file @
421500ed
...
...
@@ -20,6 +20,7 @@
<
script
>
import
BizTable
from
"../components/tables/biztables"
;
import
PageSpace
from
"@/view/components/pagespace/page_space.vue"
;
import
{
buildFrontRoute
}
from
"@/api/meta"
;
export
default
{
name
:
"appinfo_page"
,
data
()
{
...
...
@@ -43,7 +44,17 @@ export default {
if
(
k
==
"func"
)
{
this
.
$router
.
push
({
name
:
"functree_info"
,
query
:
{
appkey
:
row
.
appkey
}
query
:
{
appkey
:
row
.
appkey
}
});
}
if
(
k
==
"frontroute"
)
{
buildFrontRoute
().
then
(
res
=>
{
let
rtn
=
res
.
data
;
if
(
rtn
.
status
==
0
)
{
this
.
$Message
.
success
(
"当前操作已完成"
);
}
else
{
this
.
$Message
.
error
(
"当前操作已完成"
);
}
});
}
},
...
...
iview-admin/src/view/roleinfo/roleauth_page.vue
View file @
421500ed
...
...
@@ -152,7 +152,7 @@ export default {
}
},
[
data
.
auths
data
.
auths
&&
data
.
auths
.
length
>
0
?
h
(
"Checkbox"
,
{
...
...
@@ -207,7 +207,7 @@ export default {
)
])
:
""
,
data
.
auths
data
.
auths
&&
data
.
auths
.
length
>
0
?
h
(
"CheckboxGroup"
,
{
...
...
@@ -217,7 +217,6 @@ export default {
on
:
{
"on-change"
:
v
=>
{
data
.
sels
=
v
;
console
.
log
(
"mmmmmmmmmmmmmmmmmmmmmmmmmm"
,
v
);
}
}
},
...
...
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