2 lines
7.1 KiB
JavaScript
2 lines
7.1 KiB
JavaScript
import{I as E,y as k,G as F,H as x,P as z,Q as B,J as C,w as q,K as M,D as O,C as R}from"./element-plus.258bf9e7.js";import{_ as L}from"./index.ec401e3b.js";import{o as a,c as s,V as e,M as t,W as _,a8 as b,T as u,L as c,U as N}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 I={components:{},props:[],data(){return{formData:{field101:void 0,field104:void 0,field109:void 0,field108:void 0,field105:void 0,field110:void 0,field111:void 0,field112:void 0,field113:void 0,field114:null,field115:void 0,field116:null},rules:{field101:[{required:!0,message:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u540D\u79F0",trigger:"blur"}],field104:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8\u540D\u79F0",trigger:"change"}],field109:[{required:!0,message:"\u70B9\u6559\u9009\u62E9\u9879\u76EE",trigger:"blur"}],field108:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",trigger:"blur"}],field105:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",trigger:"blur"}],field110:[{required:!0,message:"\u8BF7\u8F93\u5165\u9700\u6C42",trigger:"blur"}],field111:[],field112:[],field113:[],field114:[],field115:[]},field116Action:"https://jsonplaceholder.typicode.com/posts/",field116fileList:[],field104Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}],field113Options:[{label:"\u975E\u5E38\u91CD\u8981",value:1},{label:"\u91CD\u8981",value:2},{label:"\u4E00\u822C",value:3},{label:"\u4E0D\u91CD\u8981",value:4}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(f=>{})},resetForm(){this.$refs.elForm.resetFields()},field116BeforeUpload(f){let d=f.size/1024/1024<2;return d||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),d}}},S=u("\u70B9\u51FB\u4E0A\u4F20"),A=u("\u63D0\u4EA4"),G=u("\u91CD\u7F6E");function P(f,d,T,j,o,m){const r=E,i=k,V=F,y=x,D=z,g=B,w=C,n=q,v=M,U=O,h=R;return a(),s("div",null,[e(h,null,{default:t(()=>[e(U,{ref:"elForm",model:o.formData,rules:o.rules,size:"medium","label-width":"100px","label-position":"left"},{default:t(()=>[e(i,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"field101"},{default:t(()=>[e(r,{modelValue:o.formData.field101,"onUpdate:modelValue":d[0]||(d[0]=l=>o.formData.field101=l),placeholder:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u540D\u79F0",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u90E8\u95E8\u540D\u79F0",prop:"field104"},{default:t(()=>[e(y,{modelValue:o.formData.field104,"onUpdate:modelValue":d[1]||(d[1]=l=>o.formData.field104=l),placeholder:"\u8BF7\u9009\u62E9\u90E8\u95E8\u540D\u79F0",clearable:"",style:{width:"100%"}},{default:t(()=>[(a(!0),s(_,null,b(o.field104Options,(l,p)=>(a(),c(V,{key:p,label:l.label,value:l.value,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"field109"},{default:t(()=>[e(r,{modelValue:o.formData.field109,"onUpdate:modelValue":d[2]||(d[2]=l=>o.formData.field109=l),placeholder:"\u9009\u62E9\u9879\u76EE",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field108"},{default:t(()=>[e(r,{modelValue:o.formData.field108,"onUpdate:modelValue":d[3]||(d[3]=l=>o.formData.field108=l),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9879\u76EE\u7F16\u7801",prop:"field105"},{default:t(()=>[e(r,{modelValue:o.formData.field105,"onUpdate:modelValue":d[4]||(d[4]=l=>o.formData.field105=l),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9700\u6C42\u4E3B\u9898",prop:"field110"},{default:t(()=>[e(r,{modelValue:o.formData.field110,"onUpdate:modelValue":d[5]||(d[5]=l=>o.formData.field110=l),placeholder:"\u8BF7\u8F93\u5165\u9700\u6C42",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5BA2\u6237\u9700\u6C42\u63D0\u4F9B\u4EBA",prop:"field111","label-width":"120px"},{default:t(()=>[e(r,{modelValue:o.formData.field111,"onUpdate:modelValue":d[6]||(d[6]=l=>o.formData.field111=l),placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u9700\u6C42\u63D0\u4F9B\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u63D0\u4F9B\u8054\u7CFB\u4EBA",prop:"field112"},{default:t(()=>[e(r,{modelValue:o.formData.field112,"onUpdate:modelValue":d[7]||(d[7]=l=>o.formData.field112=l),placeholder:"\u8BF7\u8F93\u5165\u63D0\u4F9B\u8054\u7CFB\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u91CD\u8981\u7A0B\u5EA6",prop:"field113"},{default:t(()=>[e(g,{modelValue:o.formData.field113,"onUpdate:modelValue":d[8]||(d[8]=l=>o.formData.field113=l),size:"medium"},{default:t(()=>[(a(!0),s(_,null,b(o.field113Options,(l,p)=>(a(),c(D,{key:p,label:l.value,disabled:l.disabled},{default:t(()=>[u(N(l.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u8BB0\u5F55\u65F6\u95F4",prop:"field114"},{default:t(()=>[e(w,{modelValue:o.formData.field114,"onUpdate:modelValue":d[9]||(d[9]=l=>o.formData.field114=l),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u8BB0\u5F55\u65F6\u95F4",clearable:""},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9700\u6C42\u5185\u5BB9",prop:"field115"},{default:t(()=>[e(r,{modelValue:o.formData.field115,"onUpdate:modelValue":d[10]||(d[10]=l=>o.formData.field115=l),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u9700\u6C42\u5185\u5BB9",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9644\u4EF6",prop:"field116"},{default:t(()=>[e(v,{ref:"field116","file-list":o.field116fileList,action:o.field116Action,"before-upload":m.field116BeforeUpload},{default:t(()=>[e(n,{size:"small",type:"primary",icon:"el-icon-upload"},{default:t(()=>[S]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1}),e(i,{size:"large"},{default:t(()=>[e(n,{type:"primary",onClick:m.submitForm},{default:t(()=>[A]),_:1},8,["onClick"]),e(n,{onClick:m.resetForm},{default:t(()=>[G]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const he=L(I,[["render",P]]);export{he as default};
|