(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d221f96"],{cd43:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("a-form",{staticClass:"form",attrs:{form:e.form},on:{submit:e.handleSubmit}},[t("a-row",{staticClass:"form-row",attrs:{gutter:16}},[t("a-col",{attrs:{lg:6,md:12,sm:24}},[t("a-form-item",{attrs:{label:"仓库名"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.name",{rules:[{required:!0,message:"请输入仓库名称",whitespace:!0}]}],expression:"[\n 'repository.name',\n {rules: [{ required: true, message: '请输入仓库名称', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入仓库名称"}})],1)],1),t("a-col",{attrs:{xl:{span:7,offset:1},lg:{span:8},md:{span:12},sm:24}},[t("a-form-item",{attrs:{label:"仓库域名"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.domain",{rules:[{required:!0,message:"请输入仓库域名",whitespace:!0},{validator:e.validate}]}],expression:"[\n 'repository.domain',\n {rules: [{ required: true, message: '请输入仓库域名', whitespace: true}, {validator: validate}]}\n ]"}],attrs:{addonBefore:"http://",addonAfter:".com",placeholder:"请输入"}})],1)],1),t("a-col",{attrs:{xl:{span:9,offset:1},lg:{span:10},md:{span:24},sm:24}},[t("a-form-item",{attrs:{label:"仓库管理员"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.manager",{rules:[{required:!0,message:"请选择管理员"}]}],expression:"[ 'repository.manager', {rules: [{ required: true, message: '请选择管理员'}]} ]"}],attrs:{placeholder:"请选择管理员"}},[t("a-select-option",{attrs:{value:"王同学"}},[e._v("王同学")]),t("a-select-option",{attrs:{value:"李同学"}},[e._v("李同学")]),t("a-select-option",{attrs:{value:"黄同学"}},[e._v("黄同学")])],1)],1)],1)],1),t("a-row",{staticClass:"form-row",attrs:{gutter:16}},[t("a-col",{attrs:{lg:6,md:12,sm:24}},[t("a-form-item",{attrs:{label:"审批人"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.auditor",{rules:[{required:!0,message:"请选择审批员"}]}],expression:"[ 'repository.auditor', {rules: [{ required: true, message: '请选择审批员'}]} ]"}],attrs:{placeholder:"请选择审批员"}},[t("a-select-option",{attrs:{value:"王晓丽"}},[e._v("王晓丽")]),t("a-select-option",{attrs:{value:"李军"}},[e._v("李军")])],1)],1)],1),t("a-col",{attrs:{xl:{span:7,offset:1},lg:{span:8},md:{span:12},sm:24}},[t("a-form-item",{attrs:{label:"生效日期"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.effectiveDate",{rules:[{required:!0,message:"请选择生效日期"}]}],expression:"[\n 'repository.effectiveDate',\n {rules: [{ required: true, message: '请选择生效日期'}]}\n ]"}],staticStyle:{width:"100%"}})],1)],1),t("a-col",{attrs:{xl:{span:9,offset:1},lg:{span:10},md:{span:24},sm:24}},[t("a-form-item",{attrs:{label:"仓库类型"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.type",{rules:[{required:!0,message:"请选择仓库类型"}]}],expression:"[\n 'repository.type',\n {rules: [{ required: true, message: '请选择仓库类型'}]}\n ]"}],attrs:{placeholder:"请选择仓库类型"}},[t("a-select-option",{attrs:{value:"公开"}},[e._v("公开")]),t("a-select-option",{attrs:{value:"私密"}},[e._v("私密")])],1)],1)],1)],1),e.showSubmit?t("a-form-item",[t("a-button",{attrs:{htmlType:"submit"}},[e._v("Submit")])],1):e._e()],1)},s=[],o={name:"RepositoryForm",props:{showSubmit:{type:Boolean,default:!1}},data:function(){return{form:this.$form.createForm(this)}},methods:{handleSubmit:function(e){var t=this;e.preventDefault(),this.form.validateFields((function(e,r){e||t.$notification["error"]({message:"Received values of form:",description:r})}))},validate:function(e,t,r){var a=/^user-(.*)$/;a.test(t)||r("需要以 user- 开头"),r()}}},i=o,l=r("2877"),n=Object(l["a"])(i,a,s,!1,null,"cba1edea",null);t["default"]=n.exports}}]);