export default {
    bizCode:"userinfo",
    name:"用户信息维护",
    list: [
        { title: '姓名', key: 'name', sortable: true ,insearch:true},
        { title: '邮件', key: 'email', editable: true,insearch:true},
        { title: '创建时间', key: 'createTime' },
        {
          title: 'Handle',
          key: 'handle',
          button: [//这个数组中内容，需要按照权限字符串，在服务端构造
          ]
        }
      ],
      "form":{
         name:"xxx",
         main:[
        //   {
        //     "title":"控制信息",
        //      ctls:[
        //        {"type":"switch","label":"是否管理员","prop":"isAdmin","opentext":"是","closetext":"否","trurcolor":"","falsecolor":"","placeHolder":"请输入单次使用消耗的宝币数","style":""},
        //  //      {"type":"select","refModel":"pmproduct","isMulti":false,"label":"所属产品","prop":"pmproduct_id","labelField":"name","valueField":"id","style":""},
        //        {"type":"dic-select","dicName":"app_type","isMulti":true,"label":"所属产品","prop":"apptype","placeHolder":"请选择 应用类型"},
        //        {"type":"model-select","refModel":"user","isMulti":false,"label":"所属产品","prop":"uid","placeHolder":"请选择 应用类型","labelField":"name","valueField":"id"},
        //        {"type":"remote-select","refModel":"user","isMulti":false,"label":"所属产品x","prop":"xid","placeHolder":"请选择 应用类型","labelField":"name","valueField":"id"},
        //        {"type":"checkgroup","refModel":"user","label":"所属产品","prop":"mmmid","placeHolder":"请选择 应用类型","labelField":"name","valueField":"id","isBorder":true},
        //        {"type":"radiogroup","refModel":"user","label":"所属产品","prop":"xmmmid","placeHolder":"请选择 应用类型","labelField":"name","valueField":"id","isBorder":true},
        //      ]
        //   },
          {
            "title":"基本信息",
            "key":"baseinfo",
             ctls:[
              {"type":"input","label":"姓名","prop":"name","placeHolder":"登录账号","style":"",rules:[ { "required": true, "message": '  ', "trigger": 'blur' },]},
               {"type":"input","label":"邮件","prop":"email","placeHolder":"昵称","style":"",rules:[ { "required": true, "message": '  ', "trigger": 'blur' },]},
               {"type":"input","label":"创建时间","prop":"createTime","placeHolder":"请输入电话","style":"",rules:[ { "validator":"validatex","trigger": 'blur' },{ "required": true, "message": '  ', "trigger": 'blur' },]},
              //  {"type":"select","refModel":"auth.role","isMulti":true,"label":"角色","prop":"roles","labelField":"name","valueField":"id","style":""},
             ]
          }
        ],
        lists:[
          {
            title:"子列表",
            refBizCode:"xxx"
          }
        ]
      },
      "search":{
        name:"search",
        main:[
          {
            "title":"基本信息",
            "key":"baseinfo",
             ctls:[
              {"type":"input","label":"姓名","prop":"name","placeHolder":"登录账号","style":"",rules:[ { "required": true, "message": '  ', "trigger": 'blur' },]},
               {"type":"input","label":"邮件","prop":"email","placeHolder":"昵称","style":"",rules:[ { "required": true, "message": '  ', "trigger": 'blur' },]},
               {"type":"input","label":"创建时间","prop":"createTime","placeHolder":"请输入电话","style":"",rules:[ { "validator":"validatex","trigger": 'blur' },{ "required": true, "message": '  ', "trigger": 'blur' },]},
              //  {"type":"select","refModel":"auth.role","isMulti":true,"label":"角色","prop":"roles","labelField":"name","valueField":"id","style":""},
             ]
          }
        ]
       
      },
      "auths":{
        "add":[
          {"icon":"el-icon-plus","title":"新增","type":"text","key":"new","isOnGrid":true},
          {"icon":"el-icon-save","title":"保存","type":"text","key":"save","isOnForm":true},
        ],
        "edit":[
          {"icon":"el-icon-edit","title":"修改","type":"text","key":"edit","isInRow":true},
        ],
        "delete":[
          {"icon":"el-icon-remove","title":"删除","type":"text","key":"delete","isInRow":true},
          {"icon":"el-icon-edit","title":"停用","type":"text","key":"stopUser","isInRow":true,"boolProp":"isEnabled","falseText":"启用"},
    
        ],
        "common":[
          {"icon":"el-icon-cancel","title":"取消","type":"text","key":"cancel","isOnForm":true},
          {"icon":"el-icon-cancel","title":"取消","type":"text","key":"cancel-search","isInSearch":true},
          {"icon":"el-icon-cancel","title":"搜索","type":"text","key":"start-search","isInSearch":true},
        ],
      }
}