Skip to content

Commit 05c87c9

Browse files
committed
fix(view): 新增路由字段
1 parent 1f8a7f0 commit 05c87c9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

admin/src/views/permission/add.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
<el-col :span="14"/>
99
</el-form-item>
1010

11+
<el-form-item label="路由" prop="route">
12+
<el-col :span="10">
13+
<el-input v-model="form.route"/>
14+
</el-col>
15+
<el-col :span="14"/>
16+
</el-form-item>
17+
1118
<el-form-item label="新增权限赋值角色" prop="roles">
1219
<template>
1320
<el-checkbox-group v-model="form.checkedRoles" @change="handleCheckedRolesChange">
@@ -33,6 +40,7 @@ export default {
3340
return {
3441
form: {
3542
name: '',
43+
route: '',
3644
checkedRoles: [],
3745
roles: [],
3846
isIndeterminate: true,

admin/src/views/permission/edit.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
</el-col>
88
<el-col :span="14"/>
99
</el-form-item>
10+
<el-form-item label="路由" prop="route">
11+
<el-col :span="10">
12+
<el-input v-model="form.route"/>
13+
</el-col>
14+
<el-col :span="14"/>
15+
</el-form-item>
1016

1117
<el-form-item>
1218
<el-button type="primary" @click="onSubmit('form')">提交</el-button>
@@ -25,6 +31,7 @@ export default {
2531
return {
2632
form: {
2733
name: '',
34+
route: '',
2835
loading: false
2936
},
3037
rules: {

0 commit comments

Comments
 (0)