2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
import{G as F,H as B,y as O,C as q,I as z,A as C,J as R,P as M,Q as L,w as A,K as I,B as N,D as S}from"./element-plus.b3353ca6.js";import{_ as j}from"./index.892155dd.js";import{o as f,c as n,V as e,M as d,a as g,W as m,a8 as _,T as s,L as b,U as G}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.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 P={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,field110:null,field112:void 0,field113:void 0,field114:void 0,field115:void 0,field116:void 0,field117:void 0,field118:void 0,field119:null},rules:{field101:[],field102:[],field103:[],field104:[],field105:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0",trigger:"blur"}],field106:[{required:!0,message:"\u8BF7\u8F93\u5165\u5408\u540C\u53F7",trigger:"blur"}],field107:[],field108:[],field110:[{required:!0,message:"\u8BF7\u9009\u62E9\u65E5\u671F",trigger:"change"}],field112:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B",trigger:"change"}],field113:[{required:!0,message:"\u7D27\u6025\u7A0B\u5EA6\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],field114:[{required:!0,message:"\u8BF7\u8F93\u5165\u62DB\u5F85\u4EBA",trigger:"blur"}],field115:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u5B9A\u5904\u7406\u4EBA",trigger:"blur"}],field116:[{required:!0,message:"\u8BF7\u8F93\u5165\u6295\u8BC9\u4E3B\u9898",trigger:"blur"}],field117:[],field118:[]},field119Action:"https://jsonplaceholder.typicode.com/posts/",field119fileList:[],field101Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}],field102Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}],field112Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}],field113Options:[{label:"\u666E\u901A",value:1},{label:"\u6025",value:2},{label:"\u975E\u5E38\u6025",value:3}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(p=>{})},resetForm(){this.$refs.elForm.resetFields()},field119BeforeUpload(p){let a=p.size/1024/1024<2;return a||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),a}}},T={style:{display:"flex","justify-content":"space-between"}},H=g("div",{class:"tit"},"\u552E\u540E\u5DE5\u5355",-1),J={style:{display:"flex"}},K=s(" \xA0 \xA0 "),Q=s("\u70B9\u51FB\u4E0A\u4F20"),W=s("\u63D0\u4EA4"),X=s("\u91CD\u7F6E");function Y(p,a,Z,$,o,V){const c=F,y=B,t=O,w=q,r=z,i=C,v=R,h=M,U=L,D=A,x=I,E=N,k=S;return f(),n("div",null,[e(w,null,{default:d(()=>[g("div",T,[H,g("div",J,[e(t,{"label-width":"0",prop:"field101"},{default:d(()=>[e(y,{modelValue:o.formData.field101,"onUpdate:modelValue":a[0]||(a[0]=l=>o.formData.field101=l),placeholder:"\u8BF7\u9009\u62E9\u4E0B\u62C9\u9009\u62E9\u4E0B\u62C9\u9009\u62E9",clearable:"",style:{width:"100%"}},{default:d(()=>[(f(!0),n(m,null,_(o.field101Options,(l,u)=>(f(),b(c,{key:u,label:l.label,value:l.value,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),K,e(t,{"label-width":"0",prop:"field102"},{default:d(()=>[e(y,{modelValue:o.formData.field102,"onUpdate:modelValue":a[1]||(a[1]=l=>o.formData.field102=l),placeholder:"\u8BF7\u9009\u62E9\u4E0B\u62C9\u9009\u62E9\u4E0B\u62C9\u9009\u62E9",style:{width:"100%"}},{default:d(()=>[(f(!0),n(m,null,_(o.field102Options,(l,u)=>(f(),b(c,{key:u,label:l.label,value:l.value,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})])])]),_:1}),e(k,{ref:"elForm",model:o.formData,rules:o.rules,size:"medium","label-width":"100px"},{default:d(()=>[e(w,null,{default:d(()=>[e(E,{gutter:10},{default:d(()=>[e(i,{span:12},{default:d(()=>[e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"field103"},{default:d(()=>[e(r,{modelValue:o.formData.field103,"onUpdate:modelValue":a[2]||(a[2]=l=>o.formData.field103=l),placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:d(()=>[e(t,{label:"\u9879\u76EE\u7F16\u7801",prop:"field104"},{default:d(()=>[e(r,{modelValue:o.formData.field104,"onUpdate:modelValue":a[3]||(a[3]=l=>o.formData.field104=l),placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u7F16\u7801",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:d(()=>[e(t,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field105"},{default:d(()=>[e(r,{modelValue:o.formData.field105,"onUpdate:modelValue":a[4]||(a[4]=l=>o.formData.field105=l),placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:d(()=>[e(t,{label:"\u5408\u540C\u53F7",prop:"field106"},{default:d(()=>[e(r,{modelValue:o.formData.field106,"onUpdate:modelValue":a[5]||(a[5]=l=>o.formData.field106=l),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u53F7",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:d(()=>[e(t,{label:"\u8054\u7CFB\u4EBA",prop:"field107"},{default:d(()=>[e(r,{modelValue:o.formData.field107,"onUpdate:modelValue":a[6]||(a[6]=l=>o.formData.field107=l),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:d(()=>[e(t,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"field108"},{default:d(()=>[e(r,{modelValue:o.formData.field108,"onUpdate:modelValue":a[7]||(a[7]=l=>o.formData.field108=l),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:d(()=>[e(t,{label:"\u65E5\u671F",prop:"field110"},{default:d(()=>[e(v,{modelValue:o.formData.field110,"onUpdate:modelValue":a[8]||(a[8]=l=>o.formData.field110=l),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:d(()=>[e(t,{label:"\u5206\u7C7B",prop:"field112"},{default:d(()=>[e(y,{modelValue:o.formData.field112,"onUpdate:modelValue":a[9]||(a[9]=l=>o.formData.field112=l),placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",clearable:"",style:{width:"100%"}},{default:d(()=>[(f(!0),n(m,null,_(o.field112Options,(l,u)=>(f(),b(c,{key:u,label:l.label,value:l.value,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:14},{default:d(()=>[e(t,{label:"\u7D27\u6025\u7A0B\u5EA6",prop:"field113"},{default:d(()=>[e(U,{modelValue:o.formData.field113,"onUpdate:modelValue":a[10]||(a[10]=l=>o.formData.field113=l),size:"medium"},{default:d(()=>[(f(!0),n(m,null,_(o.field113Options,(l,u)=>(f(),b(h,{key:u,label:l.value,disabled:l.disabled},{default:d(()=>[s(G(l.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:d(()=>[e(t,{label:"\u62DB\u5F85\u4EBA",prop:"field114"},{default:d(()=>[e(r,{modelValue:o.formData.field114,"onUpdate:modelValue":a[11]||(a[11]=l=>o.formData.field114=l),placeholder:"\u8BF7\u8F93\u5165\u62DB\u5F85\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:d(()=>[e(t,{label:"\u6307\u5B9A\u5904\u7406\u4EBA",prop:"field115"},{default:d(()=>[e(r,{modelValue:o.formData.field115,"onUpdate:modelValue":a[12]||(a[12]=l=>o.formData.field115=l),placeholder:"\u8BF7\u8F93\u5165\u6307\u5B9A\u5904\u7406\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:d(()=>[e(t,{label:"\u6295\u8BC9\u4E3B\u9898",prop:"field116"},{default:d(()=>[e(r,{modelValue:o.formData.field116,"onUpdate:modelValue":a[13]||(a[13]=l=>o.formData.field116=l),placeholder:"\u8BF7\u8F93\u5165\u6295\u8BC9\u4E3B\u9898",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:d(()=>[e(t,{label:"\u95EE\u9898\u63CF\u8FF0",prop:"field117"},{default:d(()=>[e(r,{modelValue:o.formData.field117,"onUpdate:modelValue":a[14]||(a[14]=l=>o.formData.field117=l),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u95EE\u9898\u63CF\u8FF0",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:d(()=>[e(t,{label:"\u5907\u6CE8",prop:"field118"},{default:d(()=>[e(r,{modelValue:o.formData.field118,"onUpdate:modelValue":a[15]||(a[15]=l=>o.formData.field118=l),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:d(()=>[e(t,{label:"\u9644\u4EF6",prop:"field119"},{default:d(()=>[e(x,{ref:"field119","file-list":o.field119fileList,action:o.field119Action,"before-upload":V.field119BeforeUpload},{default:d(()=>[e(D,{size:"small",type:"primary",icon:"el-icon-upload"},{default:d(()=>[Q]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1})]),_:1}),e(i,{span:24},{default:d(()=>[e(t,{size:"large"},{default:d(()=>[e(D,{type:"primary",onClick:V.submitForm},{default:d(()=>[W]),_:1},8,["onClick"]),e(D,{onClick:V.resetForm},{default:d(()=>[X]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])}const Ce=j(P,[["render",Y]]);export{Ce as default};
|