2 lines
9.7 KiB
JavaScript
2 lines
9.7 KiB
JavaScript
import{I as E,y as F,A as C,P as x,Q as z,J as q,w as B,K as M,B as O,D as R,C as L}from"./element-plus.258bf9e7.js";import{_ as P}from"./index.ec401e3b.js";import{o as f,c as p,V as e,M as l,W as g,a8 as D,T as u,L as y,U as c}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 A={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:null,field109:void 0,field110:void 0,field111:void 0,field112:void 0,field113:void 0,field114:void 0,field115:void 0,field116:void 0,field117:null},rules:{field101:[],field102:[],field103:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",trigger:"blur"}],field104:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field105:[],field106:[],field107:[{required:!0,message:"\u5408\u540C\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],field108:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B7E\u8BA2\u65E5\u671F",trigger:"change"}],field109:[],field110:[{required:!0,message:"\u8D26\u671F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],field111:[],field112:[],field113:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field114:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D28\u4FDD\u91D1\u6BD4\u4F8B(%)",trigger:"blur"}],field115:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u8BA1\u7B97",trigger:"blur"}],field116:[]},field117Action:"https://jsonplaceholder.typicode.com/posts/",field117fileList:[],field107Options:[{label:"\u6750\u6599\u8BBE\u5907",value:1},{label:"\u65BD\u5DE5",value:2},{label:"\u59D4\u5916",value:3},{label:"\u673A\u5177",value:4},{label:"\u5176\u4ED6",value:5}],field109Options:[{label:"\u627F\u5151",value:1},{label:"\u7535\u6C47",value:2},{label:"\u652F\u7968",value:3}],field110Options:[{label:"\u73B0\u7ED3",value:1},{label:"\u6708\u7ED3",value:2},{label:"\u5B63\u5EA6\u7ED3",value:3}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(n=>{})},resetForm(){this.$refs.elForm.resetFields()},field117BeforeUpload(n){let a=n.size/1024/1024<2;return a||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),a}}},I=u("\u70B9\u51FB\u4E0A\u4F20"),N=u("\u63D0\u4EA4"),S=u("\u91CD\u7F6E");function T(n,a,j,G,o,s){const r=E,t=F,i=C,b=x,_=z,w=q,V=B,U=M,v=O,h=R,k=L;return f(),p("div",null,[e(k,null,{default:l(()=>[e(h,{ref:"elForm",model:o.formData,rules:o.rules,size:"medium","label-width":"120px","label-position":"left"},{default:l(()=>[e(v,{gutter:10},{default:l(()=>[e(i,{span:12},{default:l(()=>[e(t,{label:"\u5408\u540C\u7F16\u53F7",prop:"field101"},{default:l(()=>[e(r,{modelValue:o.formData.field101,"onUpdate:modelValue":a[0]||(a[0]=d=>o.formData.field101=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u5408\u540C\u7F16\u53F7",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u4F9B\u5E94\u5546\u5408\u540C\u53F7",prop:"field102"},{default:l(()=>[e(r,{modelValue:o.formData.field102,"onUpdate:modelValue":a[1]||(a[1]=d=>o.formData.field102=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u4F9B\u5E94\u5546\u5408\u540C\u53F7",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"field103"},{default:l(()=>[e(r,{modelValue:o.formData.field103,"onUpdate:modelValue":a[2]||(a[2]=d=>o.formData.field103=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u4F9B\u5E94\u5546\u7F16\u7801",prop:"field104"},{default:l(()=>[e(r,{modelValue:o.formData.field104,"onUpdate:modelValue":a[3]||(a[3]=d=>o.formData.field104=d),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(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"field105"},{default:l(()=>[e(r,{modelValue:o.formData.field105,"onUpdate:modelValue":a[4]||(a[4]=d=>o.formData.field105=d),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(t,{label:"\u9879\u76EE\u7F16\u7801",prop:"field106"},{default:l(()=>[e(r,{modelValue:o.formData.field106,"onUpdate:modelValue":a[5]||(a[5]=d=>o.formData.field106=d),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(t,{label:"\u5408\u540C\u7C7B\u578B",prop:"field107"},{default:l(()=>[e(_,{modelValue:o.formData.field107,"onUpdate:modelValue":a[6]||(a[6]=d=>o.formData.field107=d),size:"medium"},{default:l(()=>[(f(!0),p(g,null,D(o.field107Options,(d,m)=>(f(),y(b,{key:m,label:d.value,disabled:d.disabled},{default:l(()=>[u(c(d.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u7B7E\u8BA2\u65E5\u671F",prop:"field108"},{default:l(()=>[e(w,{modelValue:o.formData.field108,"onUpdate:modelValue":a[7]||(a[7]=d=>o.formData.field108=d),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u7B7E\u8BA2\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"field109"},{default:l(()=>[e(_,{modelValue:o.formData.field109,"onUpdate:modelValue":a[8]||(a[8]=d=>o.formData.field109=d),size:"medium"},{default:l(()=>[(f(!0),p(g,null,D(o.field109Options,(d,m)=>(f(),y(b,{key:m,label:d.value,disabled:d.disabled},{default:l(()=>[u(c(d.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u8D26\u671F",prop:"field110"},{default:l(()=>[e(_,{modelValue:o.formData.field110,"onUpdate:modelValue":a[9]||(a[9]=d=>o.formData.field110=d),size:"medium"},{default:l(()=>[(f(!0),p(g,null,D(o.field110Options,(d,m)=>(f(),y(b,{key:m,label:d.value,disabled:d.disabled},{default:l(()=>[u(c(d.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u5408\u540C\u91D1\u989D",prop:"field111"},{default:l(()=>[e(r,{modelValue:o.formData.field111,"onUpdate:modelValue":a[10]||(a[10]=d=>o.formData.field111=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D",prop:"field112"},{default:l(()=>[e(r,{modelValue:o.formData.field112,"onUpdate:modelValue":a[11]||(a[11]=d=>o.formData.field112=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u8BA1\u7B97",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{label:"\u91D1\u989D\u5927\u5199",prop:"field113"},{default:l(()=>[e(r,{modelValue:o.formData.field113,"onUpdate:modelValue":a[12]||(a[12]=d=>o.formData.field113=d),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(t,{label:"\u8D28\u4FDD\u91D1\u6BD4\u4F8B(%)",prop:"field114"},{default:l(()=>[e(r,{modelValue:o.formData.field114,"onUpdate:modelValue":a[13]||(a[13]=d=>o.formData.field114=d),placeholder:"\u8BF7\u8F93\u5165\u8D28\u4FDD\u91D1\u6BD4\u4F8B(%)",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u8D28\u4FDD\u91D1",prop:"field115"},{default:l(()=>[e(r,{modelValue:o.formData.field115,"onUpdate:modelValue":a[14]||(a[14]=d=>o.formData.field115=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u8BA1\u7B97",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{label:"\u5907\u6CE8",prop:"field116"},{default:l(()=>[e(r,{modelValue:o.formData.field116,"onUpdate:modelValue":a[15]||(a[15]=d=>o.formData.field116=d),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(t,{label:"\u9644\u4EF6",prop:"field117"},{default:l(()=>[e(U,{ref:"field117","file-list":o.field117fileList,action:o.field117Action,"before-upload":s.field117BeforeUpload},{default:l(()=>[e(V,{size:"small",type:"primary",icon:"el-icon-upload"},{default:l(()=>[I]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{size:"large"},{default:l(()=>[e(V,{type:"primary",onClick:s.submitForm},{default:l(()=>[N]),_:1},8,["onClick"]),e(V,{onClick:s.resetForm},{default:l(()=>[S]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const he=P(A,[["render",T]]);export{he as default};
|