|
@@ -49,6 +49,9 @@
|
|
|
<el-form-item label="URL" prop="url">
|
|
|
<el-input placeholder="请输入URL" v-model="addParentForm.url"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="全URL" prop="fullUrl">
|
|
|
+ <el-input placeholder="请输入全URL" v-model="addParentForm.fullUrl" :disabled="!isAdmin"></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="图标" prop="icon">
|
|
|
<div class="iconInput">
|
|
|
<div class="icon" v-if="addParentForm.icon"><i :class="addParentForm.icon"></i></div>
|
|
@@ -147,6 +150,7 @@ export default {
|
|
|
oneMenu: '',
|
|
|
code: '',
|
|
|
url: '',
|
|
|
+ fullUrl: '',
|
|
|
icon: '',
|
|
|
sort: 0,
|
|
|
},
|
|
@@ -549,6 +553,7 @@ export default {
|
|
|
oneMenu: res.data.moduleName,
|
|
|
code: res.data.code,
|
|
|
url: res.data.url,
|
|
|
+ fullUrl: res.data.fullUrl,
|
|
|
icon: res.data.icon,
|
|
|
sort: res.data.sortNum
|
|
|
}
|
|
@@ -570,6 +575,7 @@ export default {
|
|
|
moduleName: this.addParentForm.oneMenu,
|
|
|
code: this.addParentForm.code,
|
|
|
url: this.addParentForm.url,
|
|
|
+ fullUrl: this.addParentForm.fullUrl,
|
|
|
icon: this.addParentForm.icon,
|
|
|
sortNum: this.addParentForm.sort,
|
|
|
parentId: 0,
|
|
@@ -582,7 +588,7 @@ export default {
|
|
|
this.$successMsg('编辑成功');
|
|
|
})
|
|
|
}else {
|
|
|
- params.type = 2;
|
|
|
+ // params.type = 2;
|
|
|
addMenu(params).then(res => {
|
|
|
this.cancelAddParentForm();
|
|
|
this.getList();
|
|
@@ -660,7 +666,7 @@ export default {
|
|
|
fullUrl: this.addChildForm.fullUrl,
|
|
|
icon: this.addChildForm.icon,
|
|
|
sortNum: this.addChildForm.sort,
|
|
|
- type: 2
|
|
|
+ // type: 2
|
|
|
}
|
|
|
addMenu(params).then(res => {
|
|
|
this.cancelAddChildForm();
|