123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- /*
- * Copyright (c) 2018-2025, lengleng All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * Neither the name of the pig4cloud.com developer nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- * Author: lengleng (wangiegie@gmail.com)
- */
- import iconList from '@/const/iconList'
- export const tableOption = {
- tip: false,
- dialogWidth: "60%",
- tree: true,
- border: true,
- index: true,
- viewBtn: true,
- align: 'center',
- column: [
- {
- label: "菜单名称",
- prop: "name",
- width: 180,
- rules: [
- {
- required: true,
- message: "请输入菜单名称",
- trigger: "blur"
- }
- ]
- },
- {
- label: "路由路径",
- prop: "path",
- width: 180,
- overHidden: true,
- rules: [
- {
- required: true,
- message: "请输入路由地址",
- trigger: "blur"
- }
- ]
- },
- {
- label: "上级菜单",
- prop: "parentId",
- type: "tree",
- dicUrl: "/admin/menu/tree",
- hide: true,
- props: {
- label: "name",
- value: "id"
- },
- rules: [
- {
- required: false,
- message: "请选择上级菜单",
- trigger: "click"
- }
- ]
- },
- {
- label: "图标",
- prop: "icon",
- type: "icon-select",
- slot: true,
- iconList: iconList,
- rules: [
- {
- required: true,
- message: "请输入图标",
- trigger: "click"
- }
- ]
- },
- {
- label: "类型",
- prop: "type",
- type: "radio",
- slot: true,
- valueFormat: "string",
- dicData: [
- {
- label: "菜单",
- value: "0"
- },
- {
- label: "按钮",
- value: "1"
- }
- ],
- rules: [
- {
- required: true,
- message: "请选择菜单类型",
- trigger: "blur"
- }
- ]
- },
- {
- label: "权限标识",
- prop: "code",
- rules: [
- {
- message: "菜单类型可不填",
- trigger: "blur"
- }
- ]
- },
- {
- label: "排序",
- prop: "sort",
- type: "number",
- rules: [
- {
- required: true,
- message: "请输入菜单排序",
- trigger: "blur"
- }
- ]
- }
- ]
- }
|