Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Guten-PigxUI
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
JIRA
JIRA
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
黄卓然
Guten-PigxUI
Commits
7489ff01
Commit
7489ff01
authored
Sep 27, 2018
by
smallwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(active): add active detail
parent
bbd0ad93
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
91 additions
and
5 deletions
+91
-5
index.js
src/router/views/index.js
+10
-0
common.scss
src/styles/common.scss
+9
-0
detail.vue
src/views/admin/activiti/detail.vue
+67
-0
index.vue
src/views/admin/activiti/index.vue
+5
-5
No files found.
src/router/views/index.js
View file @
7489ff01
...
...
@@ -19,4 +19,14 @@ export default [{
component
:
()
=>
import
(
/* webpackChunkName: "views" */
'@/views/crud/index'
)
}]
},
{
path
:
'/activti'
,
component
:
Layout
,
redirect
:
'/activti/detail'
,
children
:
[{
path
:
'detail/:id'
,
component
:
()
=>
import
(
/* webpackChunkName: "views" */
'@/views/admin/activiti/detail'
)
}]
}]
\ No newline at end of file
src/styles/common.scss
View file @
7489ff01
...
...
@@ -194,6 +194,14 @@ table {
top
:
0
;
}
.iframe
{
width
:
100%
;
height
:
100%
;
border
:
0
;
overflow
:
hidden
;
box-sizing
:
border-box
;
}
.text-white
{
color
:
#fff
;
}
...
...
@@ -227,6 +235,7 @@ table {
}
.app-container
{
height
:
100%
;
padding
:
20px
;
box-sizing
:
border-box
;
}
...
...
src/views/admin/activiti/detail.vue
0 → 100644
View file @
7489ff01
<
template
>
<div
class=
"app-container pull-auto"
>
<basic-container>
<div
class=
"header"
>
<p
class=
"header__title"
>
{{
name
}}
</p>
<el-button
class=
"header__btn"
type=
"primary"
@
click=
"breaks"
>
关闭返回列表
</el-button>
</div>
</basic-container>
<el-scrollbar
class=
"main"
>
<iframe
class=
"iframe"
:src=
"src"
></iframe>
</el-scrollbar>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
id
:
''
,
name
:
''
}
},
created
()
{
this
.
id
=
this
.
$route
.
params
.
id
this
.
name
=
this
.
$route
.
query
.
name
},
computed
:
{
src
()
{
return
`
${
this
.
actUrl
}${
this
.
id
}
`
;
}
},
methods
:
{
breaks
()
{
this
.
$router
.
$avueRouter
.
closeTag
();
this
.
$router
.
push
({
path
:
'/activti/activiti'
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.header
{
position
:
relative
;
display
:
flex
;
align-items
:
center
;
&
__title
{
font-size
:
22px
;
}
&
__btn
{
position
:
absolute
;
right
:
10px
;
}
}
.main
{
margin
:
0
auto
;
width
:
99%
;
height
:
calc
(
100%
-
100px
);
background-color
:
#fff
;
padding
:
20px
;
border-radius
:
3px
;
box-sizing
:
border-box
;
}
</
style
>
src/views/admin/activiti/index.vue
View file @
7489ff01
...
...
@@ -98,12 +98,12 @@ export default {
},
handleView
(
row
,
index
)
{
const
name
=
`模型id为
${
row
.
id
}
的
${
row
.
name
}
流程图`
,
src
=
`
${
this
.
actUrl
}
${
row
.
id
}
`
;
src
=
`
/activti/detail/
${
row
.
id
}
`
;
this
.
$router
.
push
({
path
:
this
.
$router
.
$avueRouter
.
getPath
({
name
:
name
,
src
:
src
}
)
path
:
src
,
query
:
{
name
:
name
}
})
},
handleDel
(
row
,
index
)
{
...
...
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