Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-admin
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-admin
Commits
5f9fe66f
Commit
5f9fe66f
authored
Nov 28, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改图片资讯新增、编辑两个选项卡打开
parent
7d41f37e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
index.js
src/router/index.js
+2
-1
picture.vue
src/views/modules/info/picture.vue
+8
-2
No files found.
src/router/index.js
View file @
5f9fe66f
...
...
@@ -36,7 +36,8 @@ const mainRoutes = {
// 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理!
{
path
:
'/home'
,
component
:
_import
(
'common/home'
),
name
:
'home'
,
meta
:
{
title
:
'首页'
}
},
{
path
:
'/theme'
,
component
:
_import
(
'common/theme'
),
name
:
'theme'
,
meta
:
{
title
:
'主题'
}
},
{
path
:
'/picture-add-or-update'
,
component
:
_import
(
'modules/info/picture-add-or-update'
),
name
:
'picture-add-or-update'
,
meta
:
{
title
:
'图片资讯添加/编辑'
,
isTab
:
true
}
},
{
path
:
'/picture-add'
,
component
:
_import
(
'modules/info/picture-add-or-update'
),
name
:
'picture-add'
,
meta
:
{
title
:
'图片资讯添加'
,
isTab
:
true
}
},
{
path
:
'/picture-update'
,
component
:
_import
(
'modules/info/picture-add-or-update'
),
name
:
'picture-update'
,
meta
:
{
title
:
'图片资讯编辑'
,
isTab
:
true
}
},
{
path
:
'/news-add-or-update'
,
component
:
_import
(
'modules/info/news-add-or-update'
),
name
:
'news-add-or-update'
,
meta
:
{
title
:
'文章添加/编辑'
,
isTab
:
true
}
},
{
path
:
'/indexcarouselmanage-add-or-update'
,
component
:
_import
(
'modules/info/indexcarouselmanage-add-or-update'
),
name
:
'indexcarouselmanage-add-or-update'
,
meta
:
{
title
:
'首页轮播添加/编辑'
,
isTab
:
true
}
},
{
path
:
'/newtopic-add-or-update'
,
component
:
_import
(
'modules/info/newtopic-add-or-update'
),
name
:
'newtopic-add-or-update'
,
meta
:
{
title
:
'深度专题添加/编辑'
,
isTab
:
true
}
},
...
...
src/views/modules/info/picture.vue
View file @
5f9fe66f
...
...
@@ -97,7 +97,7 @@
<el-button
type=
"text"
@
click=
"checkHandle(scope.row.pictureid,-1)"
>
[失败]
</el-button>
<br
/>
<el-button
type=
"text"
>
预览
</el-button>
<el-button
type=
"text"
@
click=
"
addOrU
pdateHandle(scope.row.pictureid)"
>
修改
</el-button>
<el-button
type=
"text"
@
click=
"
u
pdateHandle(scope.row.pictureid)"
>
修改
</el-button>
<el-button
type=
"text"
@
click=
"deleteHandle(scope.row.pictureid)"
>
删除
</el-button>
</
template
>
</el-table-column>
...
...
@@ -209,7 +209,13 @@
// 新增 / 修改
addOrUpdateHandle
(
id
)
{
this
.
$nextTick
(()
=>
{
this
.
$router
.
push
({
name
:
'picture-add-or-update'
,
query
:
{
id
:
id
}})
this
.
$router
.
push
({
name
:
'picture-add'
,
query
:
{
id
:
id
}})
})
},
// 修改
updateHandle
(
id
)
{
this
.
$nextTick
(()
=>
{
this
.
$router
.
push
({
name
:
'picture-update'
,
query
:
{
id
:
id
}})
})
},
// 删除
...
...
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