|
@@ -30,7 +30,7 @@
|
|
|
label="文件路径">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="parentPermission"
|
|
|
- label="高亮地址">
|
|
|
+ label="高亮路径">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="permission"
|
|
|
label="权限标识">
|
|
@@ -74,6 +74,11 @@
|
|
|
<el-input v-model="form.permission"
|
|
|
autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="高亮路径"
|
|
|
+ :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.path"
|
|
|
+ autocomplete="off"></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="组件名"
|
|
|
:label-width="formLabelWidth">
|
|
|
<el-input v-model="form.component"
|
|
@@ -134,7 +139,8 @@ export default {
|
|
|
sort: 1,
|
|
|
component: null,
|
|
|
hid: 1,
|
|
|
- type: 1
|
|
|
+ type: 1,
|
|
|
+ parentPermission: null
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -168,7 +174,8 @@ export default {
|
|
|
component: row.component,
|
|
|
id: row.id,
|
|
|
hid: row.hid,
|
|
|
- type: Number(row.type)
|
|
|
+ type: Number(row.type),
|
|
|
+ parentPermission: row.parentPermission
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -183,7 +190,8 @@ export default {
|
|
|
sort: form.sort,
|
|
|
parentId: form.parentId,
|
|
|
hid: form.hid,
|
|
|
- type: form.type
|
|
|
+ type: form.type,
|
|
|
+ parentPermission: form.parentPermission
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('添加成功')
|
|
@@ -223,7 +231,8 @@ export default {
|
|
|
component: res.component,
|
|
|
sort: res.sort,
|
|
|
hid: res.hid,
|
|
|
- type: res.type
|
|
|
+ type: res.type,
|
|
|
+ parentPermission: res.parentPermission
|
|
|
}
|
|
|
if (res.sysMenus && res.sysMenus.length > 0) {
|
|
|
tempList.children = this.setTableData(res.sysMenus)
|
|
@@ -250,7 +259,8 @@ export default {
|
|
|
sort: 1,
|
|
|
component: null,
|
|
|
hid: 1,
|
|
|
- type: 1
|
|
|
+ type: 1,
|
|
|
+ parentPermission: null
|
|
|
}
|
|
|
this.$refs[formName].resetFields()
|
|
|
}
|