
//note 定义触发类型
const validateClick=[
    {
        "key": "鼠标移出（如:文本框）",
        "value": "blur"
    },{
        "key": "改变选中的值(如:下拉框、单选)",
        "value": "change"
    }];


//note 定义自定义校驗類型
const validateCustomeAllType=[
    {
        "key": "是",
        "value": "all"
    },{
        "key": "否",
        "value": ""
    }];


//note 定义校验类型
const validateType=[
    {
        "key": "自定义 custom",
        "value": "custom"
    },
    {
        "key": "支持数字和字母 numAndLetter",
        "value": "numAndLetter"
    },
    {
        "key": "手机 mobile",
        "value": "mobile"
    },
    {
        "key": "手机加座机 mobilePhone",
        "value": "mobilePhone"
    },
    {
        "key": "手机加座机(可空) mobilePhone1",
        "value": "mobilePhone1"
    },
    {
        "key": "银行账号校验 bankCard",
        "value": "bankCard"
    },
    {
        "key": "数字校验 number",
        "value": "number"
    },
    {
        "key": "身份证有效期校验 validDate",
        "value": "validDate"
    },
    {
        "key": "身份证校验 identification",
        "value": "identification"
    },
    {
        "key": "身份证校验非必填 identification2",
        "value": "identification2"
    },
    {
        "key": "日期校验 daterange",
        "value": "daterange"
    },
    {
        "key": "职工总数的校验 workerNum",
        "value": "workerNum"
    },
    {
        "key": "时间不能超过7天 noMoreDay",
        "value": "noMoreDay"
    },
    {
        "key": "预案地址校验 checkAddress",
        "value": "checkAddress"
    },
    {
        "key": "占地面积 area",
        "value": "area"
    },
    {
        "key": "食品，面积增加校验50平以下，增加校验，问题重新梳理 area2",
        "value": "area2"
    },
    {
        "key": "传真 faxx",
        "value": "faxx"
    },
    {
        "key": "数字首字母可以为0 number1",
        "value": "number1"
    },
    {
        "key": "正整数不包括0 number2",
        "value": "number2"
    },
    {
        "key": "数字两位小数 number3",
        "value": "number3"
    },
    {
        "key": "仅支持两位整数 number4",
        "value": "number4"
    },
    {
        "key": "数字四位小数 number5",
        "value": "number5"
    },
    {
        "key": "邮编 stamp",
        "value": "stamp"
    },
    {
        "key": "邮箱 email",
        "value": "email"
    },
    {
        "key": "输入文本内容不超过多少字 notMoreWords",
        "value": "notMoreWords"
    },
    {
        "key": "只支持中英文 userName",
        "value": "userName"
    },
    {
        "key": "不输入的时候的校验 notNumber",
        "value": "notNumber"
    },
    {
        "key": "统一社会信用代码校验 socialCode",
        "value": "socialCode"
    },
    {
        "key": "车牌号校验 vehicleLicense",
        "value": "vehicleLicense"
    },
    {
        "key": "联动必填校验 linkage",
        "value": "linkage"
    },
    {
        "key": "环评批复文号格式 sevenNumber",
        "value": "sevenNumber"
    },
    {
        "key": "社会保障卡卡号 sna/sns开头加9位数字 insuranceCardNum",
        "value": "insuranceCardNum"
    },
    {
        "key": "验证截止时间 endTimeStr",
        "value": "endTimeStr"
    },
    {
        "key": "不动产产权验证 estateRules",
        "value": "estateRules"
    },
    {
        "key": "不动产单元证号验证规则 realEstateUnit",
        "value": "realEstateUnit"
    },
    {
        "key": "中文校验 chinese",
        "value": "chinese"
    }


];



//note 定义按钮类型
const buttonType=[
    {
        "key": "成功",
        "value": "success"
    },
    {
        "key": "失败",
        "value": "error"
    },
    {
        "key": "警告",
        "value": "warning"
    }
];
//note 定义地址请求自取或者邮寄
const addressReq=[
    {
        "key": "自取",
        "value": "0"
    },
    {
        "key": "邮寄",
        "value": "1"
    }
];
//note 定义文件上传类型
const attachFileType=[
    {
        "key": "有操作",
        "value": "withAction"
    },
    {
        "key": "无操作",
        "value": "noAction"
    }
];
//note 定义单元各类型
const cellType=[
    {
        "key": "下拉框或单选框",
        "value": "select"
    },
    {
        "key": "多选框",
        "value": "checkboxMultiple"
    },
    {
        "key": "二维多选框",
        "value": "checkboxMultipleRadio"
    },
    {
        "key": "非下拉框",
        "value": ""
    }
];
//note 定义日期校验时间类型
const dateType=[
    {
        "key": "之前",
        "value": "before"
    },
    {
        "key": "之后",
        "value": "after"
    },
    {
        "key": "今天之前",
        "value": "beforeToday"
    },
    {
        "key": "今天之后",
        "value": "afterToday"
    },
    {
        "key": "在开始时间之后",
        "value": "afterStartTime"
    },
    {
        "key": "两天之后",
        "value": "afterTowDays"
    },
    {
        "key": "依赖日期或者大于依赖日期一定天数的日期",
        "value": "beforeTodayAndAfterEnd"
    },
    {
        "key": "禁选早于依赖日期或者大于依赖日期一定天数的日期",
        "value": "beforeStartAndAfterDays"
    },
    {
        "key": "禁选早于依赖日期或者大于依赖日期一定天数的日期包含起始日期   ",
        "value": "beforeStartAndAfterDaysIncludeStart"
    },
    {
        "key": "禁选早于依赖日期或者大于依赖日期一定天数的日期包含结束日期",
        "value": "beforeStartAndAfterDaysIncludeEnd"
    },
    {
        "key": "禁选早于依赖日期一定天数的日期或者晚于依赖日期包含起止日期",
        "value": "beforeStartAndAfterDaysIncludeBoth"
    },
    {
        "key": "禁选早于依赖日期一定天数的日期或者晚于依赖日期",
        "value": "afterStartAndbeforeDays"
    }, {
        "key": "禁选早于依赖日期一定天数的日期或者晚于依赖日期 包含起始日期",
        "value": "afterStartAndbeforeDaysIncludeStart"
    },
    {
        "key": "禁选早于依赖日期一定天数的日期或者晚于依赖日期 包含结束日期",
        "value": "afterStartAndbeforeDaysIncludeEnd"
    },
    {
        "key": "禁选早于依赖日期一定天数的日期或者晚于依赖日期 包含起止日期",
        "value": "afterStartAndbeforeDaysIncludeBoth"
    }
];
//note 定义点击事件类型
const clickType=[
    {
        "key":"提交",
        "value":"submitClick"
    },
    {
        "key":"上一步",
        "value":"prevStepClick"
    },
    {
        "key": "办事指南",
        "value": "guideClick"
    },
    {
        "key": "下一步",
        "value": "nextStepClick"
    },
    {
        "key": "保存",
        "value": "saveClick"
    }
];

//note 定义时间类型
const timeType=[
    {
        "key": "时分",
        "value": "HH:mm"
    },
    {
        "key": "时分秒",
        "value": "HH:mm:ss"
    }

];
//note 定义文本框类型
const inputType=[
    {
        "key": "文本框",
        "value": "text"
    },
    {
        "key": "密码框",
        "value": "password"
    },
    {
        "key": "多行文本输入框",
        "value": "textarea"
    }
];
//note 定义步骤下拉列表
const stepSelect=[
    {
        "key": "填写资料",
        "value": "填写资料"
    },
    {
        "key": "上传附件",
        "value": "上传附件"
    },
    {
        "key": "提交审核",
        "value": "提交审核"
    },
    {
        "key": "支付缴费",
        "value": "支付缴费"
    },
    {
        "key": "已办结",
        "value": "已办结"
    }
];

//note 定义实例内容
const instanceArr=[
    "gaea_instance_box_IImV",
    "gaea_instance_form_53Io",
    "gaea_instance_1nl3oltonaj",
    "gaea_instance_13aw5o5b9c3",
    "gaea_instance_rl2n7u7ilw",
    "gaea_instance_2e9ptf3knhw",
    "gaea_instance_fo5ww3hpwb",
    "gaea_instance_28urawo5lyh",
    "gaea_instance_vthuhnycgh",
    "gaea_instance_6bf0wzs2vx",
    "gaea_instance_2bt3l06er55",
    "gaea_instance_25svevg5g37"
];
const config={
    instances:instanceArr,
    buttonType:buttonType,
    addressReq:addressReq,
    attachFileType:attachFileType,
    cellType:cellType,
    dateType:dateType,
    clickType:clickType,
    inputType:inputType,
    timeType:timeType,
    stepSelect:stepSelect,
    TITLE: [
        {
            "label": "填写资料",
            "value": "填写资料"
        },
        {
            "label": "上传附件",
            "value": "上传附件"
        },
        {
            "label": "提交审核",
            "value": "提交审核"
        },
        {
            "label": "支付缴费",
            "value": "支付缴费"
        },
        {
            "label": "已办结",
            "value": "已办结"
        }],
    //NOTE  配置步数
    MAXSTEPS: [{
        "label": "4",
        "value": "4"
    },
        {
            "label": "5",
            "value": "5"
        }],
    //note 图标按钮操作
    iconBtnType:[
        {
            "key": "删除",
            "value": "icoDel"
        }
    ],
    //note 添加校验类型
    validateType:validateType,
    validateCustomeAllType:validateCustomeAllType,
    validateClick:validateClick,
    page: {
        "title": "填写资料",
        "maxSteps": 1,
        "fullModel": {
        "templateCache": {
            "validators": []
        }
    },
    randomFormName(len) {
            len = len || 10;
            var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';    /****默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1****/
            var maxPos = $chars.length;
            var pwd = '';
            for (let i = 0; i < len; i++) {
                pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
            }
            return pwd;
        }
}

}

export default config;

