| | |
| | | <a-form-item field="menuType" label="资源类型"> |
| | | <a-select v-model="resourceform.menuType" :options="options" :field-names="fieldNames" |
| | | :style="{width:'320px'}" |
| | | placeholder="请选择" /> |
| | | placeholder="请选择" /> |
| | | </a-form-item> |
| | | <a-form-item field="perms" label="资源控制权限字符"> |
| | | <a-input v-model="resourceform.perms" /> |
| | |
| | | // 0目录 1菜单 2按钮 |
| | | let options = ref([ |
| | | { |
| | | key: "0", |
| | | key: "3", |
| | | value: "目录" |
| | | }, |
| | | { |
| | | key: "1", |
| | | key: "0", |
| | | value: "菜单" |
| | | }, |
| | | { |
| | | key: "2", |
| | | key: "1", |
| | | value: "按钮" |
| | | } |
| | | ]); |
| | |
| | | |
| | | const onIconClick = (nodeData) => { |
| | | resourceform.value.parentId = nodeData.menuId; |
| | | resourceform.value.component = ""; |
| | | resourceform.value.createTime = ""; |
| | | resourceform.value.description = ""; |
| | | resourceform.value.icon = ""; |
| | | resourceform.value.menuId = ""; |
| | | resourceform.value.menuName = ""; |
| | | resourceform.value.menuType = ""; |
| | | resourceform.value.orderNum = "0" |
| | | resourceform.value.parentName = nodeData.menuName; |
| | | resourceform.value.path = ""; |
| | | resourceform.value.perms = ""; |
| | | resourceform.value.status = ""; |
| | | resourceform.value.syesourcetype = ""; |
| | | |
| | | visible.value = true; |
| | | }; |
| | | |