(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-37f4f178"],{2532:function(t,e,a){"use strict";a.d(e,"s",(function(){return r})),a.d(e,"m",(function(){return s})),a.d(e,"l",(function(){return n})),a.d(e,"u",(function(){return o})),a.d(e,"k",(function(){return l})),a.d(e,"i",(function(){return c})),a.d(e,"h",(function(){return d})),a.d(e,"g",(function(){return f})),a.d(e,"j",(function(){return u})),a.d(e,"f",(function(){return m})),a.d(e,"e",(function(){return p})),a.d(e,"d",(function(){return h})),a.d(e,"v",(function(){return y})),a.d(e,"c",(function(){return g})),a.d(e,"t",(function(){return R})),a.d(e,"a",(function(){return V})),a.d(e,"b",(function(){return v})),a.d(e,"n",(function(){return b})),a.d(e,"q",(function(){return k})),a.d(e,"p",(function(){return L})),a.d(e,"r",(function(){return T})),a.d(e,"o",(function(){return w}));var i=a("6b2d");const r=t=>i.a.get("/RealVerifyType/list",{params:t}),s=t=>i.a.get("/RealVerifyType/detail",{params:t}),n=t=>i.a.get("/RealVerifyType/del",{params:t}),o=t=>i.a.post("/RealVerifyType/update",t),l=t=>i.a.post("/RealVerifyType/create",t),c=t=>i.a.get("/RealVerifyTip/list",{params:t}),d=t=>i.a.get("/RealVerifyTip/detail",{params:t}),f=t=>i.a.get("/RealVerifyTip/del",{params:t}),u=t=>i.a.post("/RealVerifyTip/update",t),m=t=>i.a.post("/RealVerifyTip/create",t),p=t=>i.a.get("/RealVerify/list",{params:t}),h=t=>i.a.get("/RealVerify/detail",{params:t}),y=t=>i.a.post("/RealVerify/update",t),g=t=>i.a.get("/RealVerify/del",{params:t}),R=t=>i.a.post("/RealVerifyType/save",t),V=t=>i.a.post("/RealVerifyConfig/edit",t),v=t=>i.a.get("/RealVerifyConfig/list",{params:t}),b=t=>i.a.post("/RealVerifyTypeField/create",t),k=t=>i.a.get("/RealVerifyTypeField/list",{params:t}),L=t=>i.a.get("/RealVerifyTypeField/detail",{params:t}),T=t=>i.a.post("/RealVerifyTypeField/update",t),w=t=>i.a.get("/RealVerifyTypeField/del",{params:t})},c6dd:function(t,e,a){"use strict";a.r(e);var i=a("2532"),r=a("b3ad"),s=(a("b6c4"),{data:()=>({form:{name:""},checkList:[],dataList:[{type:"text",name:""}]}),components:{MaterialSelect:r.a},methods:{submitForm(t){this.$refs[t].validate(t=>{if(!t)return!1;this.addParam()})},addParam(){for(var t=0;t<this.checkList.length;t++)"需要身份证正面"==this.checkList[t]&&(this.checkList[t]="身份证正面"),"需要身份证反面"==this.checkList[t]&&(this.checkList[t]="身份证反面");var e=[];for(t=0;t<this.dataList.length;t++)""!=this.dataList[t].name&&e.push(this.dataList[t]);for(t=0;t<this.checkList.length;t++)e.push({type:"image",name:this.checkList[t]});this.form.data=e,delete this.form.data,Object(i.k)(this.form).then(t=>{1==t.code?(this.$message.success("新增成功!"),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(t.msg)})},test(t){},addLine(){this.dataList.push({type:"text",name:""})},delLine(t){this.dataList.splice(t,1)},loadDetail(){Object(i.m)({id:this.form.id}).then(t=>{this.form=t.data;for(var e=0;e<this.form.data.length;e++)"image"==this.form.data[e].type&&"身份证正面"==this.form.data[e].name?this.checkList.push("需要身份证正面"):"image"==this.form.data[e].type&&"身份证反面"==this.form.data[e].name?this.checkList.push("需要身份证反面"):this.dataList.push(this.form.data[e])})}},mounted(){},created(){}}),n=a("2877"),o=Object(n.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ls-card"},[a("el-page-header",{attrs:{content:"新增认证类型"},on:{back:function(e){return t.$router.go(-1)}}})],1),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("新增认证类型")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[a("el-form-item",{attrs:{required:"",prop:"name",label:"类型名称"}},[a("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{required:"",prop:"icon",label:"提示图标"}},[a("material-select",{attrs:{limit:1},model:{value:t.form.icon,callback:function(e){t.$set(t.form,"icon",e)},expression:"form.icon"}})],1)],1)],1)]),a("div",{staticClass:"bg-white ls-fixed-footer"},[a("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v("新增")])],1)])])}),[],!1,null,null,null);e.default=o.exports}}]);