|
@@ -27,7 +27,7 @@
|
|
|
>
|
|
|
</el-cascader>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="菜单标题" prop="Name">
|
|
|
+ <el-form-item :label="nameLabel" prop="Name">
|
|
|
<el-input v-model="form.Name"></el-input>
|
|
|
</el-form-item>
|
|
|
<template v-if="form.MenuType===0">
|
|
@@ -39,9 +39,19 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="路由地址" prop="Path">
|
|
|
<el-input v-model="form.Path"></el-input>
|
|
|
+ <el-tooltip effect="dark" content="页面跳转路径" placement="right">
|
|
|
+ <span class="hint-text">
|
|
|
+ <i class="el-icon-warning-outline"></i>
|
|
|
+ </span>
|
|
|
+ </el-tooltip>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="组件地址" prop="Component">
|
|
|
<el-input v-model="form.Component"></el-input>
|
|
|
+ <el-tooltip effect="dark" content="代码中页面地址" placement="right">
|
|
|
+ <span class="hint-text">
|
|
|
+ <i class="el-icon-warning-outline"></i>
|
|
|
+ </span>
|
|
|
+ </el-tooltip>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<el-form-item label="按钮ID" prop="ButtonCode" v-if="form.MenuType!==0">
|
|
@@ -156,7 +166,15 @@ export default {
|
|
|
//菜单类型-按钮、字段 是否禁用
|
|
|
isbtnDisabled() {
|
|
|
return this.form.treeLevel === 1 && this.openType !== 'add';
|
|
|
- }
|
|
|
+ },
|
|
|
+ nameLabel(){
|
|
|
+ const nameMap = {
|
|
|
+ 0:'菜单标题',
|
|
|
+ 1:'按钮名称',
|
|
|
+ 2:'字段名称'
|
|
|
+ }
|
|
|
+ return nameMap[this.form.MenuType]||'菜单标题'
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
initForm() {
|