hotime/example/tpt/js/chunk-1968ce68.4d1eb226.js
2022-03-26 16:53:40 +08:00

1 line
22 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(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"),O=l("8418"),l=l("1dde")("splice"),j=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),u=m(r.length),s=b(e,u),e=arguments.length;if(0===e?l=a=0:a=1===e?(l=0,u-s):(l=e-2,h(j(d(t),0),u-s)),9007199254740991<u+l-a)throw TypeError("Maximum allowed length exceeded");for(i=p(r,a),o=0;o<a;o++)(c=s+o)in r&&O(i,o,r[c]);if(l<(i.length=a)){for(o=s;o<u-a;o++)n=o+l,(c=o+a)in r?r[n]=r[c]:delete r[n];for(o=u;u-a+l<o;o--)delete r[o-1]}else if(a<l)for(o=u-a;s<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+s]=arguments[o+2];return r.length=u-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"}},O={key:0,style:{color:"red"}},j={key:0,class:"select-wrap"},h=Object(m.q)("添加"),y={key:1,class:"select-list",style:{"margin-left":"100px"}},v=["title"],g=Object(m.q)(" "),k=["title"],w=Object(m.q)("删除"),F=Object(m.q)("上移"),V={key:2,class:"form-list-common form-list"},T=["title"],x=Object(m.q)(" "),B=["title"],D=Object(m.q)("删除"),K=Object(m.q)("上移"),U={key:3,class:"form-list-file form-list"},M={key:0,class:"img-item"},_=["title"],C=Object(m.q)("删除"),S=Object(m.o)("i",{class:"el-icon-plus",style:{"line-height":"60px"}},null,-1),q={key:1,class:"file-item",style:{display:"flex"}},E=["title"],A=Object(m.q)("文件上传"),$=Object(m.q)("删除"),P=["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.T)("el-option"),n=Object(m.T)("el-select"),r=Object(m.T)("el-input"),u=Object(m.T)("el-input-number"),s=Object(m.T)("el-button"),b=Object(m.T)("el-upload"),d=Object(m.T)("el-dialog");return Object(m.K)(),Object(m.n)("div",f,[Object(m.o)("div",p,[Object(m.r)(n,{modelValue:i.selectType,"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.selectType=e}),placeholder:"类型",onChange:o.selectChange},{default:Object(m.ib)(function(){return[Object(m.r)(c,{label:"text",value:"text"}),Object(m.r)(c,{label:"mz",value:"mz"}),Object(m.r)(c,{label:"select",value:"select"}),Object(m.r)(c,{label:"number",value:"number"}),Object(m.r)(c,{label:"img",value:"img"}),Object(m.r)(c,{label:"file",value:"file"})]}),_:1},8,["modelValue","onChange"]),Object(m.r)(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.jb)(Object(m.r)(n,{modelValue:i.addBasicForm.value,"onUpdate:modelValue":t[2]||(t[2]=function(e){return i.addBasicForm.value=e}),placeholder:"民族"},{default:Object(m.ib)(function(){return[(Object(m.K)(!0),Object(m.n)(m.b,null,Object(m.R)(i.mzOptions,function(e,t){return Object(m.K)(),Object(m.l)(c,{key:t,label:e,value:e},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"]),[[m.fb,"mz"===i.addType]]),Object(m.jb)(Object(m.r)(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.fb,"common"===i.addType&&"number"!==i.selectType]]),Object(m.jb)(Object(m.r)(u,{modelValue:i.addBasicForm.value,"onUpdate:modelValue":t[4]||(t[4]=function(e){return i.addBasicForm.value=e}),placeholder:"表单值"},null,8,["modelValue"]),[[m.fb,"common"===i.addType&&"number"===i.selectType]]),Object(m.jb)(Object(m.r)(u,{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.fb,"img"===i.selectType||"file"===i.selectType]]),Object(m.r)(s,{type:"primary",style:{"margin-right":"5px"},icon:"el-icon-plus",onClick:o.clickAddForm},null,8,["onClick"]),i.formErrorMsg?(Object(m.K)(),Object(m.n)("span",O,Object(m.X)(i.formErrorMsg),1)):Object(m.m)("",!0)]),i.showAddSelect?(Object(m.K)(),Object(m.n)("div",j,[Object(m.o)("span",{class:"select-add-name",style:Object(m.B)([{"margin-right":"2px"},{color:i.selectErrorMsg?"red":"black"}])},Object(m.X)(i.selectErrorMsg||"单列数据:"),5),Object(m.r)(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.r)(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.r)(s,{type:"primary",onClick:o.clickAddSelectOption},{default:Object(m.ib)(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.K)(),Object(m.n)("div",y,[(Object(m.K)(!0),Object(m.n)(m.b,null,Object(m.R)(i.addBasicForm.options,function(t,l){return Object(m.K)(),Object(m.n)("div",{class:"select-list-item",key:l},[Object(m.o)("div",{class:"name",title:t.label},Object(m.X)(t.label),9,v),g,Object(m.o)("div",{class:"value",title:t.value},Object(m.X)(t.value),9,k),Object(m.r)(s,{type:"danger",onClick:function(e){return o.clickDeleteSelect(l)}},{default:Object(m.ib)(function(){return[w]}),_:2},1032,["onClick"]),Object(m.r)(s,{type:"primary",onClick:function(e){return o.clickMoveSelect(t,l)}},{default:Object(m.ib)(function(){return[F]}),_:2},1032,["onClick"])])}),128))])):Object(m.m)("",!0),i.form.form&&0<i.form.form.length?(Object(m.K)(),Object(m.n)("div",V,[(Object(m.K)(!0),Object(m.n)(m.b,null,Object(m.R)(i.form.form,function(t,l){return Object(m.K)(),Object(m.n)("div",{class:"form-common-item",style:{display:"flex"},key:l},[Object(m.o)("div",{class:"name",title:t.label},Object(m.X)(t.label),9,T),x,"select"!==t.type?(Object(m.K)(),Object(m.n)("div",{key:0,class:"value",title:t.value},Object(m.X)(t.value),9,B)):Object(m.m)("",!0),"select"===t.type?(Object(m.K)(),Object(m.l)(n,{key:1,modelValue:t.value,"onUpdate:modelValue":function(e){return t.value=e},placeholder:"请选择"},{default:Object(m.ib)(function(){return[(Object(m.K)(!0),Object(m.n)(m.b,null,Object(m.R)(t.options,function(e,t){return Object(m.K)(),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.r)(s,{type:"danger",onClick:function(e){return o.clickDeleteForm(l)}},{default:Object(m.ib)(function(){return[D]}),_:2},1032,["onClick"]),Object(m.r)(s,{type:"primary",onClick:function(e){return o.clickMoveForm(t,l)}},{default:Object(m.ib)(function(){return[K]}),_:2},1032,["onClick"])])}),128))])):Object(m.m)("",!0),i.form.files&&0<i.form.files.length?(Object(m.K)(),Object(m.n)("div",U,[(Object(m.K)(!0),Object(m.n)(m.b,null,Object(m.R)(i.form.files,function(l,t){return Object(m.K)(),Object(m.n)("div",{class:"form-file-item",key:t},["img"==l.type?(Object(m.K)(),Object(m.n)("div",M,[Object(m.o)("div",{class:"name",title:l.label},[Object(m.q)(Object(m.X)(l.label)+" ",1),Object(m.r)(s,{type:"danger",style:{float:"right"},onClick:function(e){return o.clickDeleteFile(t)}},{default:Object(m.ib)(function(){return[C]}),_:2},1032,["onClick"])],8,_),Object(m.r)(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.ib)(function(){return[S]}),_:2},1032,["on-preview","on-remove","file-list","limit","before-upload"])])):Object(m.m)("",!0),"file"==l.type?(Object(m.K)(),Object(m.n)("div",q,[Object(m.o)("div",{class:"name",title:l.label},Object(m.X)(l.label)+"",9,E),Object(m.r)(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.ib)(function(){return[Object(m.r)(s,{type:"primary"},{default:Object(m.ib)(function(){return[A]}),_:1})]}),_:2},1032,["on-remove","file-list","limit","before-upload"]),Object(m.r)(s,{type:"danger",onClick:function(e){return o.clickDeleteFile(t)}},{default:Object(m.ib)(function(){return[$]}),_:2},1032,["onClick"])])):Object(m.m)("",!0)])}),128))])):Object(m.m)("",!0),Object(m.r)(d,{modelValue:i.imgDialogVisible,"onUpdate:modelValue":t[8]||(t[8]=function(e){return i.imgDialogVisible=e}),style:{width:"800px",height:"600px"}},{default:Object(m.ib)(function(){return[Object(m.o)("img",{style:{width:"100%",height:"400px"},src:i.imgDialogImageUrl,alt:"图片预览"},null,8,P)]}),_: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.N)("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.q)("上传文件"),V=["title"],T={key:1},x={key:1,class:"radio-wrap"},B=Object(h.q)("新建"),D=Object(h.q)("取消");Object(h.L)();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.T)("el-button"),n=Object(h.T)("el-form-item"),r=Object(h.T)("el-input"),u=Object(h.T)("el-input-number"),s=Object(h.T)("el-date-picker"),b=Object(h.T)("el-upload"),d=Object(h.T)("BasicForm"),m=Object(h.T)("el-option"),f=Object(h.T)("el-select"),p=Object(h.T)("el-radio"),O=Object(h.T)("el-affix"),j=Object(h.T)("el-form");return Object(h.K)(),Object(h.l)(j,{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.ib)(function(){return[(Object(h.K)(!0),Object(h.n)(h.b,null,Object(h.R)(i.templateData.columns,function(t){return Object(h.K)(),Object(h.n)("div",{key:t.type},[null!=t.link?(Object(h.K)(),Object(h.n)("div",y,[0!=t.add?(Object(h.K)(),Object(h.l)(n,{key:0,label:t.label+":"},{default:Object(h.ib)(function(){return[Object(h.r)(c,{icon:"el-icon-link",href:"javascript:;",onClick:function(e){return o.clickLink(t,i.form)}},{default:Object(h.ib)(function(){return[Object(h.q)(Object(h.X)(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.K)(),Object(h.n)("div",v,[0!=t.add?(Object(h.K)(),Object(h.l)(n,{key:0,label:t.label+":",style:{width:"400px"}},{default:Object(h.ib)(function(){return[null==t.options?(Object(h.K)(),Object(h.n)("div",g,["password"==t.type?(Object(h.K)(),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.K)(),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.K)(),Object(h.l)(u,{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.K)(),Object(h.l)(s,{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.K)(),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.ib)(function(){return[i.form[t.value]?(Object(h.K)(),Object(h.n)("img",{key:0,src:i.baseurl+i.form[t.value]},null,8,k)):(Object(h.K)(),Object(h.n)("i",w))]}),_:2},1032,["before-upload"])):Object(h.m)("",!0),"file"==t.type?(Object(h.K)(),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.ib)(function(){return[Object(h.r)(c,{type:"primary"},{default:Object(h.ib)(function(){return[F]}),_:1}),Object(h.o)("span",{class:"file-name",title:i.fileName},Object(h.X)(i.fileName),9,V)]}),_:2},1032,["before-upload"])):Object(h.m)("",!0),"form"==t.type?(Object(h.K)(),Object(h.l)(d,{key:6,ref:"basicForm"},null,512)):Object(h.m)("",!0)])):Object(h.m)("",!0),null!=t.options?(Object(h.K)(),Object(h.n)("div",T,[3<t.options.length?(Object(h.K)(),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.ib)(function(){return[(Object(h.K)(!0),Object(h.n)(h.b,null,Object(h.R)(t.options,function(e){return Object(h.K)(),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.K)(),Object(h.n)("div",x,[(Object(h.K)(!0),Object(h.n)(h.b,null,Object(h.R)(t.options,function(e){return Object(h.K)(),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.ib)(function(){return[Object(h.q)(Object(h.X)(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.r)(O,{position:"bottom",offset:0,style:{width:"100%"}},{default:Object(h.ib)(function(){return[Object(h.r)(n,{style:{background:"white","padding-bottom":"10px"}},{default:Object(h.ib)(function(){return[Object(h.r)(c,{type:"primary",onClick:o.onSubmit},{default:Object(h.ib)(function(){return[B]}),_:1},8,["onClick"]),Object(h.r)(c,{onClick:o.close},{default:Object(h.ib)(function(){return[D]}),_:1},8,["onClick"])]}),_:1})]}),_:1})]}),_:1},8,["model"])},a.__scopeId="data-v-d9262c54";t.default=a}}]);