(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d217e2b"],{c943:function(e,a,l){"use strict";l.r(a);var t=function(){var e=this,a=e.$createElement,l=e._self._c||a;return l("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[l("a-spin",{attrs:{spinning:e.confirmLoading}},[l("a-form-model",{ref:"form",attrs:{"label-col":e.labelCol,"wrapper-col":e.wrapperCol,model:e.model,rules:e.validatorRules}},[l("a-form-model-item",{attrs:{label:"姓名",required:"",prop:"name",hasFeedback:""}},[l("a-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.model.name,callback:function(a){e.$set(e.model,"name",a)},expression:"model.name"}})],1),l("a-form-model-item",{attrs:{label:"关键词",prop:"keyWord",hasFeedback:""}},[l("a-input",{attrs:{placeholder:"请输入关键词"},model:{value:e.model.keyWord,callback:function(a){e.$set(e.model,"keyWord",a)},expression:"model.keyWord"}})],1),l("a-form-model-item",{attrs:{label:"打卡时间",prop:"punchTime",hasFeedback:""}},[l("a-date-picker",{attrs:{showTime:"",valueFormat:"YYYY-MM-DD HH:mm:ss"},model:{value:e.model.punchTime,callback:function(a){e.$set(e.model,"punchTime",a)},expression:"model.punchTime"}})],1),l("a-form-model-item",{attrs:{label:"性别",prop:"sex",hasFeedback:""}},[l("j-dict-select-tag",{attrs:{type:"radio","trigger-change":!0,dictCode:"sex"},model:{value:e.model.sex,callback:function(a){e.$set(e.model,"sex",a)},expression:"model.sex"}})],1),l("a-form-model-item",{attrs:{label:"年龄",prop:"age",hasFeedback:""}},[l("a-input",{attrs:{placeholder:"请输入年龄"},model:{value:e.model.age,callback:function(a){e.$set(e.model,"age",a)},expression:"model.age"}})],1),l("a-form-model-item",{attrs:{label:"生日",prop:"age",hasFeedback:""}},[l("a-date-picker",{attrs:{valueFormat:"YYYY-MM-DD"},model:{value:e.model.birthday,callback:function(a){e.$set(e.model,"birthday",a)},expression:"model.birthday"}})],1),l("a-form-model-item",{attrs:{label:"邮箱",prop:"email",hasFeedback:""}},[l("a-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.model.email,callback:function(a){e.$set(e.model,"email",a)},expression:"model.email"}})],1),l("a-form-model-item",{attrs:{label:"个人简介",prop:"content",hasFeedback:""}},[l("a-input",{attrs:{type:"textarea",placeholder:"请输入个人简介"},model:{value:e.model.content,callback:function(a){e.$set(e.model,"content",a)},expression:"model.content"}})],1)],1)],1)],1)},o=[],s=l("0fea"),i={name:"JeecgDemoModal",data:function(){return{title:"操作",visible:!1,model:{},layout:{labelCol:{span:3},wrapperCol:{span:14}},labelCol:{xs:{span:24},sm:{span:3}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{name:[{required:!0,message:"请输入姓名!"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}],email:[{required:!1,type:"email",message:"邮箱格式不正确",trigger:"blur"}]},url:{add:"/test/jeecgDemo/add",edit:"/test/jeecgDemo/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){this.model=Object.assign({},e),this.visible=!0},close:function(){this.$refs.form.resetFields(),this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,a=this;this.$refs.form.validate((function(l){if(l){a.confirmLoading=!0;var t="",o="";e.model.id?(t+=e.url.edit,o="put"):(t+=e.url.add,o="post"),Object(s["h"])(t,e.model,o).then((function(e){e.success?(a.$message.success(e.message),a.$emit("ok")):a.$message.warning(e.message)})).finally((function(){a.confirmLoading=!1,a.close()}))}}))},handleCancel:function(){this.close()}}},r=i,n=l("2877"),m=Object(n["a"])(r,t,o,!1,null,"64dcf271",null);a["default"]=m.exports}}]);