|
|
@ -39,6 +39,12 @@ |
|
|
<el-form-item v-if="dataForm.type !== 2" label="排序号" prop="orderNum"> |
|
|
<el-form-item v-if="dataForm.type !== 2" label="排序号" prop="orderNum"> |
|
|
<el-input-number v-model="dataForm.orderNum" controls-position="right" :min="0" label="排序号"></el-input-number> |
|
|
<el-input-number v-model="dataForm.orderNum" controls-position="right" :min="0" label="排序号"></el-input-number> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="菜单类型" prop="menuType"> |
|
|
|
|
|
<el-select v-model="dataForm.menuType"> |
|
|
|
|
|
<el-option label="pc" value="pc"></el-option> |
|
|
|
|
|
<el-option label="pda" value="pda"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item v-if="dataForm.type !== 2" label="菜单图标" prop="icon"> |
|
|
<el-form-item v-if="dataForm.type !== 2" label="菜单图标" prop="icon"> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="22"> |
|
|
<el-col :span="22"> |
|
|
@ -102,7 +108,8 @@ |
|
|
perms: '', |
|
|
perms: '', |
|
|
orderNum: 0, |
|
|
orderNum: 0, |
|
|
icon: '', |
|
|
icon: '', |
|
|
iconList: [] |
|
|
|
|
|
|
|
|
iconList: [], |
|
|
|
|
|
menuType: '' |
|
|
}, |
|
|
}, |
|
|
dataRule: { |
|
|
dataRule: { |
|
|
name: [ |
|
|
name: [ |
|
|
@ -134,6 +141,7 @@ |
|
|
params: this.$http.adornParams() |
|
|
params: this.$http.adornParams() |
|
|
}).then(({data}) => { |
|
|
}).then(({data}) => { |
|
|
this.menuList = treeDataTranslate(data.menuList, 'menuId') |
|
|
this.menuList = treeDataTranslate(data.menuList, 'menuId') |
|
|
|
|
|
console.log( this.menuList) |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.visible = true |
|
|
this.visible = true |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
@ -158,6 +166,7 @@ |
|
|
this.dataForm.perms = data.menu.perms |
|
|
this.dataForm.perms = data.menu.perms |
|
|
this.dataForm.orderNum = data.menu.orderNum |
|
|
this.dataForm.orderNum = data.menu.orderNum |
|
|
this.dataForm.icon = data.menu.icon |
|
|
this.dataForm.icon = data.menu.icon |
|
|
|
|
|
this.dataForm.menuType = data.menu.menuType |
|
|
this.menuListTreeSetCurrentNode() |
|
|
this.menuListTreeSetCurrentNode() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|