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: [//这个数组中内容，需要按照权限字符串，在服务端构造
            {title: "删除",type: "text",icon: "md-trash",key:"delete" },
            {title: "编辑",type: "text",icon: "",key:"edit" },
            {title: "启用",type: "text",icon: "",key:"enable"},
          ]
        }
      ],
      "form":{
         name:"xxx",
         data:[
          {
            "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":"基本信息",
             ctls:[
              {"type":"input","label":"账号","prop":"userName","placeHolder":"登录账号","style":"",rules:[ { "required": true, "message": '  ', "trigger": 'blur' },]},
               {"type":"input","label":"昵称","prop":"nickName","placeHolder":"昵称","style":"",rules:[ { "required": true, "message": '  ', "trigger": 'blur' },]},
               {"type":"input","label":"电话","prop":"mobile","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":""},
             ]
          }
        ]
      },
      "search":[
        {
          "title":"基本查询",
           ctls:[
             {"type":"input","label":"昵称","prop":"nickName","placeHolder":"请输入昵称","style":""},
           ]
        },
      ],
      "auths":{
        "add":[
          {"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
          {"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
        ],
        "edit":[
          {"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
        ],
        "delete":[
          {"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
          {"icon":"el-icon-edit","title":"停用","type":"default","key":"stopUser","isInRow":true,"boolProp":"isEnabled","falseText":"启用"},
    
        ],
        "common":[
          {"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
        ],
      }
}