1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1968ce68"],{"0c81":function(e,t,l){},"2e51":function(e,t,l){},"31f3":function(e,t,l){},3291:function(e,t,l){"use strict";l("2e51")},5985:function(e,t,l){"use strict";l("31f3")},"72ad":function(e){e.exports=JSON.parse('{"form":[{"type":"select","label":"mz","name":"民族","value":1,"options":[{"name":"汉","value":1},{"name":"汉2","value":2},{"name":"汉3","value":3}]},{"type":"time","label":"time","name":"开业时间","value":"2021-10-10"},{"type":"text","label":"address","name":"开业地址","value":"四川省成都市"},{"type":"image","label":"sfz-front","name":"身份证正面","value":""},{"type":"image","label":"sfz-back","name":"身份证反面","value":""},{"type":"file","label":"file","name":"证明材料","fileName":"证明材料.txt","value":""},{"type":"select","label":"radio-test","name":"状态","value":1,"options":[{"name":"成功","value":1},{"name":"失败","value":2}]}]}')},7784:function(e,t,l){"use strict";l("0c81")},a434:function(e,t,l){"use strict";var a=l("23e7"),b=l("23cb"),d=l("a691"),m=l("50c4"),f=l("7b0b"),p=l("65f0"),j=l("8418"),l=l("1dde")("splice"),O=Math.max,h=Math.min;a({target:"Array",proto:!0,forced:!l},{splice:function(e,t){var l,a,i,o,c,n,r=f(this),s=m(r.length),u=b(e,s),e=arguments.length;if(0===e?l=a=0:a=1===e?(l=0,s-u):(l=e-2,h(O(d(t),0),s-u)),9007199254740991<s+l-a)throw TypeError("Maximum allowed length exceeded");for(i=p(r,a),o=0;o<a;o++)(c=u+o)in r&&j(i,o,r[c]);if(l<(i.length=a)){for(o=u;o<s-a;o++)n=o+l,(c=o+a)in r?r[n]=r[c]:delete r[n];for(o=s;s-a+l<o;o--)delete r[o-1]}else if(a<l)for(o=s-a;u<o;o--)n=o+l-1,(c=o+a-1)in r?r[n]=r[c]:delete r[n];for(o=0;o<l;o++)r[o+u]=arguments[o+2];return r.length=s-a+l,i}})},acf7:function(e,t,l){"use strict";var m=l("9f9f"),f={class:"basic-form"},p={class:"add-wrap",style:{"margin-bottom":"5px"}},j={key:0,style:{color:"red"}},O={key:0,class:"select-wrap"},h=Object(m.r)("添加"),y={key:1,class:"select-list",style:{"margin-left":"100px"}},v=["title"],g=Object(m.r)(": "),k=["title"],w=Object(m.r)("删除"),F=Object(m.r)("上移"),V={key:2,class:"form-list-common form-list"},L=["title"],U=Object(m.r)(": "),x=["title"],B=Object(m.r)("删除"),D=Object(m.r)("上移"),T={key:3,class:"form-list-file form-list"},S={key:0,class:"img-item"},M=["title"],C=Object(m.r)("删除"),_=Object(m.o)("i",{class:"el-icon-plus",style:{"line-height":"60px"}},null,-1),E={key:1,class:"file-item",style:{display:"flex"}},A=["title"],$=Object(m.r)("文件上传"),P=Object(m.r)("删除"),z=["src"];l("a434"),l("b0c0");var i=l("2934"),a=l("b775"),o={props:{basicForm:{type:String,default:JSON.stringify({form:[],files:[]})},basicForm1:{type:String,default:JSON.stringify({form:[],files:[]})},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{imgDialogImageUrl:"",imgDialogVisible:!1,addType:"common",selectType:"",formErrorMsg:"",selectErrorMsg:"",addBasicForm:{type:"",label:"",value:"",options:[]},form:"",showAddSelect:!1,selectLabel:"",selectValue:"",baseurl:a.a,disabledDate:function(e){return e.getTime()>Date.now()},shortcuts:[{text:"今天",value:new Date},{text:"昨天",value:((e=new Date).setTime(e.getTime()-864e5),e)},{text:"一周前",value:((e=new Date).setTime(e.getTime()-6048e5),e)}],mzOptions:["汉族","蒙古族","回族","藏族","维吾尔族","苗族","彝族","壮族","布依族","朝鲜族","满族","侗族","瑶族","白族","土家族","哈尼族","哈萨克族","傣族","黎族","傈僳族","佤族","畲族","高山族","拉祜族","水族","东乡族","纳西族","景颇族","柯尔克孜族","土族","达斡尔族","仫佬族","羌族","布朗族","撒拉族","毛南族","仡佬族","锡伯族","阿昌族","普米族","塔吉克族","怒族","乌孜别克族","俄罗斯族","鄂温克族","德昂族","保安族","裕固族","京族","塔塔尔族","独龙族","鄂伦春族","赫哲族","门巴族","珞巴族","基诺族"]};var e},watch:{basicForm:function(e){this.form=e&&"null"!=e?JSON.parse(e):{form:[],files:[]}}},created:function(){this.basicForm&&"null"!=this.basicForm?this.form=JSON.parse(this.basicForm):this.form={form:[],files:[]}},mounted:function(){},computed:{formStyle:function(){return this.inline?{display:"flex"}:{display:"block"}}},methods:{handleImgRemove:function(e,t,l){l.value=t},handleFileRemove:function(e,t,l){l.value=t},handlePictureCardPreview:function(e){this.imgDialogImageUrl=e.url,this.imgDialogVisible=!0},clickAddSelectOption:function(){var e;this.selectLabel?this.selectValue?(this.selectErrorMsg="",e={label:this.selectLabel,value:this.selectValue},this.addBasicForm.options.push(e),this.selectLabel="",this.selectValue=""):this.selectErrorMsg=" 请输入单列值":this.selectErrorMsg="请输入单列名"},clickDeleteFile:function(e){this.form.files.splice(e,1)},clickDeleteForm:function(e){this.form.form.splice(e,1)},clickMoveForm:function(e,t){0!==t&&(this.form.form.splice(t-1,0,e),this.form.form.splice(t+1,1))},clickDeleteSelect:function(e){this.addBasicForm.options.splice(e,1)},clickMoveSelect:function(e,t){0!==t&&(this.addBasicForm.options.splice(t-1,0,e),this.addBasicForm.options.splice(t+1,1))},selectChange:function(e){this.showAddSelect=!1,"img"===e||"file"===e?(this.addType="file",this.addBasicForm={type:this.selectType,label:"",s:9,value:[]}):"mz"===e?(this.addType="mz",this.addBasicForm={type:this.selectType,label:"",value:""}):"select"===e?(this.addType="common",this.showAddSelect=!0,this.addBasicForm={type:this.selectType,label:"",value:"",options:[]}):(this.addType="common",this.addBasicForm={type:this.selectType,label:"",value:""})},clickAddForm:function(){var e;"file"===this.addType?(e={type:this.addBasicForm.type,label:this.addBasicForm.label,s:this.addBasicForm.s,value:this.addBasicForm.value},this.addBasicForm.label?(this.form.files.push(e),this.addBasicForm.type="",this.addBasicForm.label="",this.addBasicForm.s=9,this.addBasicForm.value=[],this.formErrorMsg="",this.selectType="",this.addType="common"):this.formErrorMsg="请输入名称"):this.addBasicForm.label?this.addBasicForm.value?(this.formErrorMsg="",e={type:this.addBasicForm.type,label:this.addBasicForm.label,value:this.addBasicForm.value},"select"===this.selectType&&(e.options=this.addBasicForm.options,this.showAddSelect=!1),this.form.form.push(e),this.addBasicForm.type="",this.addBasicForm.label="",this.addBasicForm.value="",this.addBasicForm.options=[],this.selectType=""):"mz"===this.addType?this.formErrorMsg="请选择民族":this.formErrorMsg="请输入值":this.formErrorMsg="请输入名称"},beforeImgUpload:function(e,t){var l=this;return null==e||Object(i.f)(e).then(function(e){t.value.push({url:l.baseurl+e.result})}),!1},beforeFileUpload:function(t,l){var a=this;return null==t||Object(i.f)(t).then(function(e){l.value.push({name:t.name,url:a.baseurl+e.result})}),!1}}};l("5985");o.render=function(e,t,l,a,i,o){var c=Object(m.U)("el-option"),n=Object(m.U)("el-select"),r=Object(m.U)("el-input"),s=Object(m.U)("el-input-number"),u=Object(m.U)("el-button"),b=Object(m.U)("el-upload"),d=Object(m.U)("el-dialog");return Object(m.L)(),Object(m.n)("div",f,[Object(m.o)("div",p,[Object(m.s)(n,{modelValue:i.selectType,"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.selectType=e}),placeholder:"类型",onChange:o.selectChange},{default:Object(m.jb)(function(){return[Object(m.s)(c,{label:"text",value:"text"}),Object(m.s)(c,{label:"mz",value:"mz"}),Object(m.s)(c,{label:"select",value:"select"}),Object(m.s)(c,{label:"number",value:"number"}),Object(m.s)(c,{label:"img",value:"img"}),Object(m.s)(c,{label:"file",value:"file"})]}),_:1},8,["modelValue","onChange"]),Object(m.s)(r,{modelValue:i.addBasicForm.label,"onUpdate:modelValue":t[1]||(t[1]=function(e){return i.addBasicForm.label=e}),modelModifiers:{trim:!0},placeholder:"表单名称"},null,8,["modelValue"]),Object(m.kb)(Object(m.s)(n,{modelValue:i.addBasicForm.value,"onUpdate:modelValue":t[2]||(t[2]=function(e){return i.addBasicForm.value=e}),placeholder:"民族"},{default:Object(m.jb)(function(){return[(Object(m.L)(!0),Object(m.n)(m.b,null,Object(m.S)(i.mzOptions,function(e,t){return Object(m.L)(),Object(m.l)(c,{key:t,label:e,value:e},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"]),[[m.gb,"mz"===i.addType]]),Object(m.kb)(Object(m.s)(r,{modelValue:i.addBasicForm.value,"onUpdate:modelValue":t[3]||(t[3]=function(e){return i.addBasicForm.value=e}),modelModifiers:{trim:!0},placeholder:"表单值"},null,8,["modelValue"]),[[m.gb,"common"===i.addType&&"number"!==i.selectType]]),Object(m.kb)(Object(m.s)(s,{modelValue:i.addBasicForm.value,"onUpdate:modelValue":t[4]||(t[4]=function(e){return i.addBasicForm.value=e}),placeholder:"表单值"},null,8,["modelValue"]),[[m.gb,"common"===i.addType&&"number"===i.selectType]]),Object(m.kb)(Object(m.s)(s,{modelValue:i.addBasicForm.s,"onUpdate:modelValue":t[5]||(t[5]=function(e){return i.addBasicForm.s=e}),min:1,max:10,placeholder:"最大上传"},null,8,["modelValue"]),[[m.gb,"img"===i.selectType||"file"===i.selectType]]),Object(m.s)(u,{type:"primary",style:{"margin-right":"5px"},icon:"el-icon-plus",onClick:o.clickAddForm},null,8,["onClick"]),i.formErrorMsg?(Object(m.L)(),Object(m.n)("span",j,Object(m.Y)(i.formErrorMsg),1)):Object(m.m)("",!0)]),i.showAddSelect?(Object(m.L)(),Object(m.n)("div",O,[Object(m.o)("span",{class:"select-add-name",style:Object(m.C)([{"margin-right":"2px"},{color:i.selectErrorMsg?"red":"black"}])},Object(m.Y)(i.selectErrorMsg||"单列数据:"),5),Object(m.s)(r,{modelValue:i.selectLabel,"onUpdate:modelValue":t[6]||(t[6]=function(e){return i.selectLabel=e}),modelModifiers:{trim:!0},placeholder:"单列名"},null,8,["modelValue"]),Object(m.s)(r,{modelValue:i.selectValue,"onUpdate:modelValue":t[7]||(t[7]=function(e){return i.selectValue=e}),modelModifiers:{trim:!0},placeholder:"单列值"},null,8,["modelValue"]),Object(m.s)(u,{type:"primary",onClick:o.clickAddSelectOption},{default:Object(m.jb)(function(){return[h]}),_:1},8,["onClick"])])):Object(m.m)("",!0),null!=i.showAddSelect&&null!=i.addBasicForm&&null!=i.addBasicForm.options&&0<i.addBasicForm.options.length?(Object(m.L)(),Object(m.n)("div",y,[(Object(m.L)(!0),Object(m.n)(m.b,null,Object(m.S)(i.addBasicForm.options,function(t,l){return Object(m.L)(),Object(m.n)("div",{class:"select-list-item",key:l},[Object(m.o)("div",{class:"name",title:t.label},Object(m.Y)(t.label),9,v),g,Object(m.o)("div",{class:"value",title:t.value},Object(m.Y)(t.value),9,k),Object(m.s)(u,{type:"danger",onClick:function(e){return o.clickDeleteSelect(l)}},{default:Object(m.jb)(function(){return[w]}),_:2},1032,["onClick"]),Object(m.s)(u,{type:"primary",onClick:function(e){return o.clickMoveSelect(t,l)}},{default:Object(m.jb)(function(){return[F]}),_:2},1032,["onClick"])])}),128))])):Object(m.m)("",!0),i.form.form&&0<i.form.form.length?(Object(m.L)(),Object(m.n)("div",V,[(Object(m.L)(!0),Object(m.n)(m.b,null,Object(m.S)(i.form.form,function(t,l){return Object(m.L)(),Object(m.n)("div",{class:"form-common-item",style:{display:"flex"},key:l},[Object(m.o)("div",{class:"name",title:t.label},Object(m.Y)(t.label),9,L),U,"select"!==t.type?(Object(m.L)(),Object(m.n)("div",{key:0,class:"value",title:t.value},Object(m.Y)(t.value),9,x)):Object(m.m)("",!0),"select"===t.type?(Object(m.L)(),Object(m.l)(n,{key:1,modelValue:t.value,"onUpdate:modelValue":function(e){return t.value=e},placeholder:"请选择"},{default:Object(m.jb)(function(){return[(Object(m.L)(!0),Object(m.n)(m.b,null,Object(m.S)(t.options,function(e,t){return Object(m.L)(),Object(m.l)(c,{key:t,label:e.label,value:e.value},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue"])):Object(m.m)("",!0),Object(m.s)(u,{type:"danger",onClick:function(e){return o.clickDeleteForm(l)}},{default:Object(m.jb)(function(){return[B]}),_:2},1032,["onClick"]),Object(m.s)(u,{type:"primary",onClick:function(e){return o.clickMoveForm(t,l)}},{default:Object(m.jb)(function(){return[D]}),_:2},1032,["onClick"])])}),128))])):Object(m.m)("",!0),i.form.files&&0<i.form.files.length?(Object(m.L)(),Object(m.n)("div",T,[(Object(m.L)(!0),Object(m.n)(m.b,null,Object(m.S)(i.form.files,function(l,t){return Object(m.L)(),Object(m.n)("div",{class:"form-file-item",key:t},["img"==l.type?(Object(m.L)(),Object(m.n)("div",S,[Object(m.o)("div",{class:"name",title:l.label},[Object(m.r)(Object(m.Y)(l.label)+": ",1),Object(m.s)(u,{type:"danger",style:{float:"right"},onClick:function(e){return o.clickDeleteFile(t)}},{default:Object(m.jb)(function(){return[C]}),_:2},1032,["onClick"])],8,M),Object(m.s)(b,{action:"#","show-file-list":!0,"on-preview":o.handlePictureCardPreview,"on-remove":function(e,t){o.handleImgRemove(e,t,l)},"list-type":"picture-card","file-list":l.value,limit:l.s||9,style:{width:"400px"},"before-upload":function(e){return o.beforeImgUpload(e,l)}},{default:Object(m.jb)(function(){return[_]}),_:2},1032,["on-preview","on-remove","file-list","limit","before-upload"])])):Object(m.m)("",!0),"file"==l.type?(Object(m.L)(),Object(m.n)("div",E,[Object(m.o)("div",{class:"name",title:l.label},Object(m.Y)(l.label)+":",9,A),Object(m.s)(b,{action:"#",class:"upload-file","show-file-list":!0,"on-remove":function(e,t){o.handleFileRemove(e,t,l)},"file-list":l.value,limit:l.s||9,style:{width:"250px"},"before-upload":function(e){return o.beforeFileUpload(e,l)}},{default:Object(m.jb)(function(){return[Object(m.s)(u,{type:"primary"},{default:Object(m.jb)(function(){return[$]}),_:1})]}),_:2},1032,["on-remove","file-list","limit","before-upload"]),Object(m.s)(u,{type:"danger",onClick:function(e){return o.clickDeleteFile(t)}},{default:Object(m.jb)(function(){return[P]}),_:2},1032,["onClick"])])):Object(m.m)("",!0)])}),128))])):Object(m.m)("",!0),Object(m.s)(d,{modelValue:i.imgDialogVisible,"onUpdate:modelValue":t[8]||(t[8]=function(e){return i.imgDialogVisible=e}),style:{width:"800px",height:"600px"}},{default:Object(m.jb)(function(){return[Object(m.o)("img",{style:{width:"100%",height:"400px"},src:i.imgDialogImageUrl,alt:"图片预览"},null,8,z)]}),_:1},8,["modelValue"])])};t.a=o},d0c8:function(e,t,l){"use strict";l.r(t);l("9911"),l("b0c0");var h=l("9f9f");Object(h.O)("data-v-d9262c54");var y={key:0},v={key:1},g={key:0},k=["src"],w={key:1,class:"el-icon-plus avatar-uploader-icon"},F=Object(h.r)("上传文件"),V=["title"],L={key:1},U={key:1,class:"radio-wrap"},x=Object(h.r)("新建"),B=Object(h.r)("取消");Object(h.M)();var c=l("b85c"),a=l("acf7"),n=l("2934"),i=l("b775"),o=l("83c5"),r=l("72ad"),a={props:{routerPath:String,routerQuery:Object,editDialogPath:String},components:{BasicForm:a.a},data:function(){return{formJson:r,fileName:"",templateData:{},baseurl:i.a,formLink:{},form:{},shortcuts:[{text:"今天",value:new Date},{text:"昨天",value:((e=new Date).setTime(e.getTime()-864e5),e)},{text:"一周前",value:((e=new Date).setTime(e.getTime()-6048e5),e)}]};var e},methods:{clickLink:function(t,l){var e={name:"Table",path:window.Hotime.tableMapData[t.link].path,title:window.Hotime.tableMapData[t.link].parent.label+"-"+window.Hotime.tableMapData[t.link].label};null!=this.editDialogPath?(e.id=0,o.a.$emit("tabs-edit",e)):(o.a.$off("table:"+window.Hotime.tableMapData[t.link].path),o.a.$emit("dialog-edit",e)),o.a.$on("table:"+window.Hotime.tableMapData[t.link].path,function(e){l[t.link]=e,l[t.name]=e.id})},close:function(){null!=this.routerPath&&0<this.routerPath.length?o.a.$emit("tabs-close",{name:"Add",path:this.templateData.path}):null!=this.editDialogPath?o.a.$emit("tabs-edit-close",{name:"Add",path:this.templateData.path}):this.$router.go(-1)},beforeFileUpload:function(e,t){this.fileName=e.name;var l=this;return null==e||Object(n.f)(e).then(function(e){l.form[t]=e.result}),!1},beforeAvatarUpload:function(e,t){var l=this;return null==e||Object(n.f)(e).then(function(e){l.form[t]=e.result}),!1},onSubmit:function(){var l=this,a=this;this.$confirm("此操作将进行新建操作,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e,t=window.Hotime;l.$refs.basicForm&&(e=l.$refs.basicForm.form,a.form.rule=JSON.stringify(e)),Object(n.a)(t.data.name+"/"+a.templateData.name,a.form).then(function(e){0==e.status?(a.$message({type:"success",message:"新建成功!"}),a.close()):a.$message({type:"warn",message:e.error.msg})})})},routeInit:function(){var e=this,a=window.Hotime,t={},t=null!=a.mapData[this.routerPath]?(this.templateData=a.mapData[this.routerPath],this.routerQuery):null!=this.editDialogPath?(this.templateData=a.mapData[this.editDialogPath],this.routerQuery):(this.templateData=a.mapData[this.$route.path.substring(0,this.$route.path.lastIndexOf("/add"))],this.$route.query);if(null!=this.templateData){if(null!=this.templateData.columns){var i,l=Object(c.a)(this.templateData.columns);try{for(l.s();!(i=l.n()).done;)!function(){var t,l=i.value;null==l.value&&(l.value=l.name),null!=l.link&&(t=e,Object(n.e)(a.data.name+"/"+l.link,{pageSize:100}).then(function(e){0==e.status&&(t.formLink[l.link]=e.result.data)}))}()}catch(e){l.e(e)}finally{l.f()}}for(var o in t)null==t[o]?this.form[o]="":this.form[o]=t[o]}}},watch:{},mounted:function(){this.routeInit()}};l("7784"),l("3291");a.render=function(e,t,l,a,i,o){var c=Object(h.U)("el-button"),n=Object(h.U)("el-form-item"),r=Object(h.U)("el-input"),s=Object(h.U)("el-input-number"),u=Object(h.U)("el-date-picker"),b=Object(h.U)("el-upload"),d=Object(h.U)("BasicForm"),m=Object(h.U)("el-option"),f=Object(h.U)("el-select"),p=Object(h.U)("el-radio"),j=Object(h.U)("el-affix"),O=Object(h.U)("el-form");return Object(h.L)(),Object(h.l)(O,{ref:"form",model:i.form,"label-width":"180px",size:"mini",style:{"padding-top":"10px","overflow-y":"auto",width:"90%","padding-right":"30px",background:"white",display:"block","flex-direction":"row","flex-wrap":"wrap","align-content":"flex-start","justify-content":"flex-start"}},{default:Object(h.jb)(function(){return[(Object(h.L)(!0),Object(h.n)(h.b,null,Object(h.S)(i.templateData.columns,function(t){return Object(h.L)(),Object(h.n)("div",{key:t.type},[null!=t.link?(Object(h.L)(),Object(h.n)("div",y,[0!=t.add?(Object(h.L)(),Object(h.l)(n,{key:0,label:t.label+":"},{default:Object(h.jb)(function(){return[Object(h.s)(c,{icon:"el-icon-link",href:"javascript:;",onClick:function(e){return o.clickLink(t,i.form)}},{default:Object(h.jb)(function(){return[Object(h.r)(Object(h.Y)(i.form[t.link]?i.form[t.link][t.value]:"选择"),1)]}),_:2},1032,["onClick"])]}),_:2},1032,["label"])):Object(h.m)("",!0)])):Object(h.m)("",!0),null==t.link?(Object(h.L)(),Object(h.n)("div",v,[0!=t.add?(Object(h.L)(),Object(h.l)(n,{key:0,label:t.label+":",style:{width:"400px"}},{default:Object(h.jb)(function(){return[null==t.options?(Object(h.L)(),Object(h.n)("div",g,["password"==t.type?(Object(h.L)(),Object(h.l)(r,{key:0,modelValue:i.form[t.value],"onUpdate:modelValue":function(e){return i.form[t.value]=e},"show-password":"",style:{width:"400px"}},null,8,["modelValue","onUpdate:modelValue"])):Object(h.m)("",!0),"text"==t.type?(Object(h.L)(),Object(h.l)(r,{key:1,modelValue:i.form[t.value],"onUpdate:modelValue":function(e){return i.form[t.value]=e},type:"textarea",style:{width:"400px"}},null,8,["modelValue","onUpdate:modelValue"])):Object(h.m)("",!0),"number"==t.type?(Object(h.L)(),Object(h.l)(s,{key:2,modelValue:i.form[t.value],"onUpdate:modelValue":function(e){return i.form[t.value]=e},style:{width:"400px"}},null,8,["modelValue","onUpdate:modelValue"])):Object(h.m)("",!0),"time"==t.type?(Object(h.L)(),Object(h.l)(u,{key:3,modelValue:i.form[t.value],"onUpdate:modelValue":function(e){return i.form[t.value]=e},style:{width:"400px"},align:"right","value-format":"X",type:"datetime",placeholder:"选择日期","disabled-date":e.disabledDate,shortcuts:i.shortcuts},null,8,["modelValue","onUpdate:modelValue","disabled-date","shortcuts"])):Object(h.m)("",!0),"image"==t.type?(Object(h.L)(),Object(h.l)(b,{key:4,action:"#","show-file-list":!1,style:{width:"400px"},"before-upload":function(e){return o.beforeAvatarUpload(e,t.value)}},{default:Object(h.jb)(function(){return[i.form[t.value]?(Object(h.L)(),Object(h.n)("img",{key:0,src:i.baseurl+i.form[t.value]},null,8,k)):(Object(h.L)(),Object(h.n)("i",w))]}),_:2},1032,["before-upload"])):Object(h.m)("",!0),"file"==t.type?(Object(h.L)(),Object(h.l)(b,{key:5,class:"file-upload",action:"#","show-file-list":!1,style:{width:"400px"},"before-upload":function(e){return o.beforeFileUpload(e,t.value)}},{default:Object(h.jb)(function(){return[Object(h.s)(c,{type:"primary"},{default:Object(h.jb)(function(){return[F]}),_:1}),Object(h.o)("span",{class:"file-name",title:i.fileName},Object(h.Y)(i.fileName),9,V)]}),_:2},1032,["before-upload"])):Object(h.m)("",!0),"form"==t.type?(Object(h.L)(),Object(h.l)(d,{key:6,ref:"basicForm"},null,512)):Object(h.m)("",!0)])):Object(h.m)("",!0),null!=t.options?(Object(h.L)(),Object(h.n)("div",L,[3<t.options.length?(Object(h.L)(),Object(h.l)(f,{key:0,modelValue:i.form[t.value],"onUpdate:modelValue":function(e){return i.form[t.value]=e},placeholder:"请选择",style:{width:"400px"}},{default:Object(h.jb)(function(){return[(Object(h.L)(!0),Object(h.n)(h.b,null,Object(h.S)(t.options,function(e){return Object(h.L)(),Object(h.l)(m,{key:e.value,label:e.name,value:e.value},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue"])):Object(h.m)("",!0),t.options.length<4?(Object(h.L)(),Object(h.n)("div",U,[(Object(h.L)(!0),Object(h.n)(h.b,null,Object(h.S)(t.options,function(e){return Object(h.L)(),Object(h.l)(p,{key:e,modelValue:i.form[t.value],"onUpdate:modelValue":function(e){return i.form[t.value]=e},label:e.value},{default:Object(h.jb)(function(){return[Object(h.r)(Object(h.Y)(e.name),1)]}),_:2},1032,["modelValue","onUpdate:modelValue","label"])}),128))])):Object(h.m)("",!0)])):Object(h.m)("",!0)]}),_:2},1032,["label"])):Object(h.m)("",!0)])):Object(h.m)("",!0)])}),128)),Object(h.s)(j,{position:"bottom",offset:0,style:{width:"100%"}},{default:Object(h.jb)(function(){return[Object(h.s)(n,{style:{background:"white","padding-bottom":"10px"}},{default:Object(h.jb)(function(){return[Object(h.s)(c,{type:"primary",onClick:o.onSubmit},{default:Object(h.jb)(function(){return[x]}),_:1},8,["onClick"]),Object(h.s)(c,{onClick:o.close},{default:Object(h.jb)(function(){return[B]}),_:1},8,["onClick"])]}),_:1})]}),_:1})]}),_:1},8,["model"])},a.__scopeId="data-v-d9262c54";t.default=a}}]); |