Browse Source

添加路由跳转

master
maguoqiang 6 years ago
parent
commit
43458be0b5
  1. 6
      src/views/modules/case/typicalcase.vue

6
src/views/modules/case/typicalcase.vue

@ -19,7 +19,7 @@
<el-form>
<!--添加按钮-->
<el-form-item>
<el-button type="primary" @click="addOrUpdateHandle()">{{"新增典型案例"}}</el-button>
<el-button type="primary" @click="addHandle()">{{"新增典型案例"}}</el-button>
</el-form-item>
</el-form>
<!-- 列表-->
@ -90,6 +90,10 @@ export default {
detailHandle (id) {
this.$parent.selectComponent = 'CaseInfoDetailView'
this.$router.push({ path: '/case-typicalcasedetail', query: { id: id } })
},
addHandle () {
this.$parent.selectComponent = 'CaseInfoAdd'
this.$router.push({ path: '/case-typicalcase-add-or-update' })
}
}
}

Loading…
Cancel
Save