|
|
@@ -44,8 +44,8 @@
|
|
|
highlight-current-row @current-change="currHandler" size="small">
|
|
|
<el-table-column type="index" label="序号" align="center" width="60"> </el-table-column>
|
|
|
<!-- <el-table-column prop="attribute" label="大类" width="80"> </el-table-column> -->
|
|
|
- <el-table-column prop="name" label="菜单名称" width="180"></el-table-column>
|
|
|
- <el-table-column prop="value" label="路由地址" width="300"></el-table-column>
|
|
|
+ <el-table-column prop="name" label="菜单名称" min-width="180"></el-table-column>
|
|
|
+ <el-table-column prop="value" label="路由地址" min-width="300"></el-table-column>
|
|
|
<el-table-column label="图标" width="130">
|
|
|
<template #default="scope">
|
|
|
<div style="line-height:15px; height:15px; display:flex;">
|
|
|
@@ -143,7 +143,7 @@ export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- category: '后台',
|
|
|
+ category: '侧边栏',
|
|
|
categorys: ['后台', '侧边栏'],
|
|
|
forms: {
|
|
|
keyword: "",
|
|
|
@@ -180,10 +180,10 @@ export default {
|
|
|
addDialog(row) {
|
|
|
//const res=await this.$http.post('url',this.forms)
|
|
|
this.formDialogVisible = true;
|
|
|
- this.forms = { parentID: row.id, category: row.attribute };
|
|
|
+ this.forms = { parentID: row.id, category: row.attribute || this.category };
|
|
|
},
|
|
|
rootDialog() {
|
|
|
- this.forms = {};
|
|
|
+ this.forms = { category: this.category };
|
|
|
this.formDialogVisible = true;
|
|
|
},
|
|
|
close() {
|