|
|
|
@ -11,11 +11,11 @@ |
|
|
|
<el-radio v-for="(type, index) in dataForm.typeList" :label="index" :key="index">{{ type }}</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="dataForm.typeList[dataForm.type] + buttons.code ||'编号'" prop="menuId"> |
|
|
|
<el-input :readonly="dataForm.id?true:false" style="width: 349px;" v-model="dataForm.menuId" ></el-input> |
|
|
|
<el-form-item label="目录编号" prop="menuId"> |
|
|
|
<el-input :readonly="dataForm.id?true:false" style="width: 349px;" v-model="dataForm.menuId"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="dataForm.typeList[dataForm.type] + buttons.typeName ||'名称'" prop="name"> |
|
|
|
<el-input style="width: 349px;" v-model="dataForm.name" ></el-input> |
|
|
|
<el-form-item label="目录名称" prop="name"> |
|
|
|
<el-input style="width: 349px;" v-model="dataForm.name"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="buttons.parentName ||'上级菜单'" prop="parentName"> |
|
|
|
<el-popover |
|
|
|
@ -173,7 +173,6 @@ |
|
|
|
params: this.$http.adornParams() |
|
|
|
}).then(({data}) => { |
|
|
|
this.menuList = treeDataTranslate(data.menuList, 'menuId') |
|
|
|
console.log( this.menuList) |
|
|
|
}).then(() => { |
|
|
|
this.visible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
@ -216,7 +215,7 @@ |
|
|
|
searchFunctionButtonList(queryButton).then(({data}) => { |
|
|
|
if (data.code == 0 && data.data) { |
|
|
|
this.buttons = data.data |
|
|
|
this.typeList= [this.buttons.type1,this.buttons.type2,this.buttons.type3] |
|
|
|
this.typeList= [this.buttons.type1, this.buttons.type2, this.buttons.type3] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|