Fixing route names, moving translation keys,

parent 4c36c23d
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</h1> </h1>
<el-breadcrumb separator="/"> <el-breadcrumb separator="/">
<el-breadcrumb-item> <el-breadcrumb-item>
<a href="/backend">Home</a> <a href="/backend">{{ trans('core.breadcrumb.home') }}</a>
</el-breadcrumb-item> </el-breadcrumb-item>
<el-breadcrumb-item :to="{name: 'admin.user.roles.index'}">{{ trans('roles.title.roles') }} <el-breadcrumb-item :to="{name: 'admin.user.roles.index'}">{{ trans('roles.title.roles') }}
</el-breadcrumb-item> </el-breadcrumb-item>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class="actions el-col el-col-8"> <div class="actions el-col el-col-8">
<router-link :to="{name: 'admin.user.roles.create'}"> <router-link :to="{name: 'admin.user.roles.create'}">
<el-button type="primary"><i class="el-icon-edit"></i> <el-button type="primary"><i class="el-icon-edit"></i>
{{ trans('roles.button.new-role') }} {{ trans('roles.new-role') }}
</el-button> </el-button>
</router-link> </router-link>
</div> </div>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<template scope="scope"> <template scope="scope">
<el-button-group> <el-button-group>
<edit-button <edit-button
:to="{name: 'admin.page.page.edit', params: {pageId: scope.row.id}}"></edit-button> :to="{name: 'admin.user.roles.edit', params: {roleId: scope.row.id}}"></edit-button>
<delete-button :scope="scope" :rows="data"></delete-button> <delete-button :scope="scope" :rows="data"></delete-button>
</el-button-group> </el-button-group>
</template> </template>
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
this.queryServer({ search: query }); this.queryServer({ search: query });
}, },
goToEdit(scope) { goToEdit(scope) {
this.$router.push({ name: 'admin.page.page.edit', params: { pageId: scope.row.id } }); this.$router.push({ name: 'admin.user.roles.edit', params: { roleId: scope.row.id } });
}, },
}, },
mounted() { mounted() {
......
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