2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
import{I as E,y as v,A as x,J as F,H as k,w as R,K as B,B as q,C as z,P as C,Q as M,D as L}from"./element-plus.258bf9e7.js";import{_ as A}from"./index.ec401e3b.js";import{o as s,c as b,V as e,M as l,W as H,a8 as I,a as V,T as u,L as N,U as O}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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const S={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,field111:void 0,field118:void 0,field115:void 0,field117:void 0,field119:void 0,field120:void 0,field121:null,field128:void 0,field122:void 0,field124:void 0,field129:void 0},rules:{field101:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u4F9B\u5E94\u5546",trigger:"blur"}],field102:[],field103:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u91C7\u8D2D/\u5206\u5305\u5408\u540C",trigger:"blur"}],field104:[],field105:[],field106:[],field107:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field108:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field111:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u6B3E\u91D1\u989D",trigger:"blur"}],field118:[],field115:[{required:!0,message:"\u8BF7\u8F93\u5165\u9000\u6B3E\u65E5\u671F",trigger:"change"}],field117:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u6B3E\u65B9\u5F0F",trigger:"change"}],field119:[],field120:[],field128:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u6536\u6B3E\u8D26\u6237",trigger:"blur"}],field122:[],field124:[],field129:[]},field121Action:"https://jsonplaceholder.typicode.com/posts/",field121fileList:[],field111Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}],field129Options:[{label:"\u662F",value:1},{label:"\u5426",value:2}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(f=>{})},resetForm(){this.$refs.elForm.resetFields()},field121BeforeUpload(f){let o=f.size/1024/1024<2;return o||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),o}}},P=V("div",{class:"tit"},"\u4F9B\u5E94\u5546\u9000\u6B3E\u8BB0\u5F55",-1),T=u("\u70B9\u51FB\u4E0A\u4F20"),j=V("div",{class:"tit"},"\u6536\u6B3E\u8D26\u6237",-1),G=u("\u63D0\u4EA4"),J=u("\u91CD\u7F6E");function K(f,o,Q,W,d,m){const r=E,a=v,i=x,D=F,y=k,n=R,c=B,p=q,_=z,g=C,w=M,U=L;return s(),b("div",null,[e(U,{ref:"elForm",model:d.formData,rules:d.rules,size:"medium","label-width":"120px","label-position":"left"},{default:l(()=>[e(_,null,{default:l(()=>[P,e(p,{gutter:10},{default:l(()=>[e(i,{span:12},{default:l(()=>[e(a,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",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\u4F9B\u5E94\u5546",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u4F9B\u5E94\u5546\u7F16\u7801",prop:"field102"},{default:l(()=>[e(r,{modelValue:d.formData.field102,"onUpdate:modelValue":o[1]||(o[1]=t=>d.formData.field102=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:"\u5408\u540C\u7F16\u53F7",prop:"field103"},{default:l(()=>[e(r,{modelValue:d.formData.field103,"onUpdate:modelValue":o[2]||(o[2]=t=>d.formData.field103=t),placeholder:"\u70B9\u51FB\u9009\u62E9\u91C7\u8D2D/\u5206\u5305\u5408\u540C",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u5408\u540C\u540D\u79F0",prop:"field104"},{default:l(()=>[e(r,{modelValue:d.formData.field104,"onUpdate:modelValue":o[3]||(o[3]=t=>d.formData.field104=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\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:"\u5408\u540C\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:"\u7D2F\u8BA1\u5DF2\u652F\u4ED8",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:"\u9000\u6B3E\u91D1\u989D",prop:"field111"},{default:l(()=>[e(r,{modelValue:d.formData.field111,"onUpdate:modelValue":o[8]||(o[8]=t=>d.formData.field111=t),placeholder:"\u8BF7\u9009\u62E9\u9000\u6B3E\u91D1\u989D",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u91D1\u989D\u5927\u5199",prop:"field118"},{default:l(()=>[e(r,{modelValue:d.formData.field118,"onUpdate:modelValue":o[9]||(o[9]=t=>d.formData.field118=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u8F6C\u6362",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u9000\u6B3E\u65E5\u671F",prop:"field115"},{default:l(()=>[e(D,{modelValue:d.formData.field115,"onUpdate:modelValue":o[10]||(o[10]=t=>d.formData.field115=t),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(a,{label:"\u9000\u6B3E\u65B9\u5F0F",prop:"field117"},{default:l(()=>[e(y,{modelValue:d.formData.field117,"onUpdate:modelValue":o[11]||(o[11]=t=>d.formData.field117=t),placeholder:"\u8BF7\u9009\u62E9\u9000\u6B3E\u65B9\u5F0F",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{label:"\u9000\u6B3E\u539F\u56E0",prop:"field119"},{default:l(()=>[e(r,{modelValue:d.formData.field119,"onUpdate:modelValue":o[12]||(o[12]=t=>d.formData.field119=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u539F\u56E0",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{label:"\u5907\u6CE8",prop:"field120"},{default:l(()=>[e(r,{modelValue:d.formData.field120,"onUpdate:modelValue":o[13]||(o[13]=t=>d.formData.field120=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:"field121"},{default:l(()=>[e(c,{ref:"field121","file-list":d.field121fileList,action:d.field121Action,"before-upload":m.field121BeforeUpload},{default:l(()=>[e(n,{size:"small",type:"primary",icon:"el-icon-upload"},{default:l(()=>[T]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1}),e(_,null,{default:l(()=>[j,e(p,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(a,{label:"\u8D26\u6237\u7F16\u7801",prop:"field128"},{default:l(()=>[e(r,{modelValue:d.formData.field128,"onUpdate:modelValue":o[14]||(o[14]=t=>d.formData.field128=t),placeholder:"\u70B9\u51FB\u9009\u62E9\u6536\u6B3E\u8D26\u6237",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{label:"\u5F00\u6237\u94F6\u884C",prop:"field122"},{default:l(()=>[e(r,{modelValue:d.formData.field122,"onUpdate:modelValue":o[15]||(o[15]=t=>d.formData.field122=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{label:"\u8D26\u53F7",prop:"field124"},{default:l(()=>[e(r,{modelValue:d.formData.field124,"onUpdate:modelValue":o[16]||(o[16]=t=>d.formData.field124=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{label:"\u662F\u5426\u8BA1\u610F",prop:"field129"},{default:l(()=>[e(w,{modelValue:d.formData.field129,"onUpdate:modelValue":o[17]||(o[17]=t=>d.formData.field129=t),size:"medium"},{default:l(()=>[(s(!0),b(H,null,I(d.field129Options,(t,h)=>(s(),N(g,{key:h,label:t.value,disabled:t.disabled},{default:l(()=>[u(O(t.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(a,{size:"large"},{default:l(()=>[e(n,{type:"primary",onClick:m.submitForm},{default:l(()=>[G]),_:1},8,["onClick"]),e(n,{onClick:m.resetForm},{default:l(()=>[J]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])}const Re=A(S,[["render",K]]);export{Re as default};
|