Commit 5f9fe66f by 林家欣

fix: 修改图片资讯新增、编辑两个选项卡打开

parent 7d41f37e
......@@ -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 } },
......
......@@ -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="addOrUpdateHandle(scope.row.pictureid)">修改</el-button>
<el-button type="text" @click="updateHandle(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}})
})
},
// 删除
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment