2 lines
8.1 KiB
JavaScript
2 lines
8.1 KiB
JavaScript
import{I as c,y as D,A as w,J as g,w as U,K as h,B,C as E,D as F}from"./element-plus.83b6d1e4.js";import{_ as M}from"./index.1676748b.js";import{o as x,c as k,V as e,M as l,a as b,T as p}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const v={components:{},props:[],data(){return{formData:{field101:void 0,field102:void 0,field103:void 0,field104:void 0,field105:void 0,field106:void 0,field107:void 0,field108:void 0,field109:null,field110:null,field111:void 0,field112:null,field113:void 0,field114:void 0,field115:void 0},rules:{field101:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u6295\u6807\u51B3\u7B56",trigger:"blur"}],field102:[],field103:[],field104:[],field105:[],field106:[],field107:[],field108:[],field109:[],field110:[],field111:[],field113:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F00\u6237\u94F6\u884C",trigger:"blur"}],field114:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F00\u6237\u540D\u79F0",trigger:"blur"}],field115:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D26\u53F7",trigger:"blur"}]},field112Action:"https://jsonplaceholder.typicode.com/posts/",field112fileList:[]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(f=>{})},resetForm(){this.$refs.elForm.resetFields()},field112BeforeUpload(f){let o=f.size/1024/1024<2;return o||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),o}}},C=b("div",{class:"tit"},"\u6295\u6807\u4FDD\u8BC1\u91D1\u7533\u8BF7",-1),z=p("\u70B9\u51FB\u4E0A\u4F20"),q=b("div",{class:"tit"},"\u6536\u6B3E\u4EBA\u4FE1\u606F",-1),R=p("\u63D0\u4EA4"),A=p("\u91CD\u7F6E");function I(f,o,N,L,d,u){const r=c,a=D,i=w,n=g,m=U,V=h,s=B,_=E,y=F;return x(),k("div",null,[e(y,{ref:"elForm",model:d.formData,rules:d.rules,size:"medium","label-width":"120px","label-position":"left"},{default:l(()=>[e(_,null,{default:l(()=>[C,e(s,{gutter:10},{default:l(()=>[e(i,{span:12},{default:l(()=>[e(a,{label:"\u6295\u6807\u7F16\u53F7",prop:"field101"},{default:l(()=>[e(r,{modelValue:d.formData.field101,"onUpdate:modelValue":o[0]||(o[0]=t=>d.formData.field101=t),placeholder:"\u70B9\u51FB\u9009\u62E9\u6295\u6807\u51B3\u7B56",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u7533\u8BF7\u4EBA",prop:"field102"},{default:l(()=>[e(r,{modelValue:d.formData.field102,"onUpdate:modelValue":o[1]||(o[1]=t=>d.formData.field102=t),placeholder:"\u8BF7\u8F93\u5165\u7533\u8BF7\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field103"},{default:l(()=>[e(r,{modelValue:d.formData.field103,"onUpdate:modelValue":o[2]||(o[2]=t=>d.formData.field103=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"field104"},{default:l(()=>[e(r,{modelValue:d.formData.field104,"onUpdate:modelValue":o[3]||(o[3]=t=>d.formData.field104=t),placeholder:"\u8BF7\u8F93\u5165\u4ED8\u6B3E\u65B9\u5F0F",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"field105"},{default:l(()=>[e(r,{modelValue:d.formData.field105,"onUpdate:modelValue":o[4]||(o[4]=t=>d.formData.field105=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u9879\u76EE\u7F16\u7801",prop:"field106"},{default:l(()=>[e(r,{modelValue:d.formData.field106,"onUpdate:modelValue":o[5]||(o[5]=t=>d.formData.field106=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u4FDD\u8BC1\u91D1\u91D1\u989D",prop:"field107"},{default:l(()=>[e(r,{modelValue:d.formData.field107,"onUpdate:modelValue":o[6]||(o[6]=t=>d.formData.field107=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u5927\u5199",prop:"field108"},{default:l(()=>[e(r,{modelValue:d.formData.field108,"onUpdate:modelValue":o[7]||(o[7]=t=>d.formData.field108=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u6295\u6807\u65F6\u95F4",prop:"field109"},{default:l(()=>[e(n,{modelValue:d.formData.field109,"onUpdate:modelValue":o[8]||(o[8]=t=>d.formData.field109=t),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",clearable:"",disabled:!0},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u9884\u8BA1\u9000\u8FD8\u65F6\u95F4",prop:"field110"},{default:l(()=>[e(n,{modelValue:d.formData.field110,"onUpdate:modelValue":o[9]||(o[9]=t=>d.formData.field110=t),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u9884\u8BA1\u9000\u8FD8\u65F6\u95F4",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{label:"\u5907\u6CE8",prop:"field111"},{default:l(()=>[e(r,{modelValue:d.formData.field111,"onUpdate:modelValue":o[10]||(o[10]=t=>d.formData.field111=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{label:"\u9644\u4EF6",prop:"field112"},{default:l(()=>[e(V,{ref:"field112","file-list":d.field112fileList,action:d.field112Action,"before-upload":u.field112BeforeUpload},{default:l(()=>[e(m,{size:"small",type:"primary",icon:"el-icon-upload"},{default:l(()=>[z]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1}),e(_,null,{default:l(()=>[q,e(s,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(a,{label:"\u5F00\u6237\u94F6\u884C",prop:"field113"},{default:l(()=>[e(r,{modelValue:d.formData.field113,"onUpdate:modelValue":o[11]||(o[11]=t=>d.formData.field113=t),placeholder:"\u8BF7\u8F93\u5165\u5F00\u6237\u94F6\u884C",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{label:"\u5F00\u6237\u540D\u79F0",prop:"field114"},{default:l(()=>[e(r,{modelValue:d.formData.field114,"onUpdate:modelValue":o[12]||(o[12]=t=>d.formData.field114=t),placeholder:"\u8BF7\u8F93\u5165\u5F00\u6237\u540D\u79F0",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{label:"\u8D26\u53F7",prop:"field115"},{default:l(()=>[e(r,{modelValue:d.formData.field115,"onUpdate:modelValue":o[13]||(o[13]=t=>d.formData.field115=t),placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{size:"large"},{default:l(()=>[e(m,{type:"primary",onClick:u.submitForm},{default:l(()=>[R]),_:1},8,["onClick"]),e(m,{onClick:u.resetForm},{default:l(()=>[A]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])}const ce=M(v,[["render",I]]);export{ce as default};
|