2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
import{I as q,y as F,A as C,G as M,H as z,P as B,Q as R,J as O,w as L,K as P,B as j,D as A,C as I}from"./element-plus.258bf9e7.js";import{_ as S}from"./index.ec401e3b.js";import{o as r,c as p,V as e,M as l,W as V,a8 as _,T as n,L as D,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 G={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:void 0,field110:void 0,field111:void 0,field112:void 0,field113:void 0,field114:void 0,field115:void 0,field116:void 0,field117:void 0,field118:void 0,field119:void 0,field120:void 0,field121:void 0,field122:void 0,field123:void 0,field124:void 0,field125:null,field126:null,field127:void 0,field128:void 0,field129:null},rules:{field101:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u5BA2\u6237",trigger:"blur"}],field102:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u6295\u6807\u7F16\u53F7",trigger:"blur"}],field103:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u9879\u76EE\u540D\u79F0",trigger:"blur"}],field104:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",trigger:"blur"}],field105:[{required:!0,message:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0",trigger:"blur"}],field106:[{required:!0,message:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7",trigger:"blur"}],field107:[{required:!0,message:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B",trigger:"change"}],field108:[{required:!0,message:"\u5408\u540C\u8BA1\u4EF7\u65B9\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],field109:[],field110:[],field111:[],field112:[],field113:[],field114:[],field115:[],field116:[],field117:[],field118:[],field119:[],field120:[],field121:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D",trigger:"blur"}],field122:[],field123:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u4E1A\u52A1\u8D1F\u8D23\u4EBA",trigger:"blur"}],field124:[],field125:[],field126:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B7E\u7EA6\u65E5\u671F",trigger:"change"}],field127:[],field128:[]},field129Action:"https://jsonplaceholder.typicode.com/posts/",field129fileList:[],field107Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}],field108Options:[{label:"\u603B\u4EF7\u5408\u540C",value:1},{label:"\u6E05\u5355\u8BA1\u4EF7",value:2}],field124Options:[{label:"\u6267\u884C\u4E2D",value:1},{label:"\u7ED3\u675F`",value:2},{label:"\u610F\u5916\u7EC8\u6B62",value:3}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(m=>{})},resetForm(){this.$refs.elForm.resetFields()},field129BeforeUpload(m){let a=m.size/1024/1024<2;return a||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),a}}},N=n("\u70B9\u51FB\u4E0A\u4F20"),T=n("\u63D0\u4EA4"),H=n("\u91CD\u7F6E");function J(m,a,K,Q,o,s){const t=q,i=F,f=C,U=M,h=z,y=B,g=R,w=O,b=L,x=P,v=j,E=A,k=I;return r(),p("div",null,[e(k,null,{default:l(()=>[e(E,{ref:"elForm",model:o.formData,rules:o.rules,size:"medium","label-width":"100px","label-position":"left"},{default:l(()=>[e(v,{gutter:10},{default:l(()=>[e(f,{span:12},{default:l(()=>[e(i,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field101"},{default:l(()=>[e(t,{modelValue:o.formData.field101,"onUpdate:modelValue":a[0]||(a[0]=d=>o.formData.field101=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u5BA2\u6237",disabled:!0,clearable:"","suffix-icon":"el-icon-search",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u6295\u6807\u7F16\u53F7",prop:"field102"},{default:l(()=>[e(t,{modelValue:o.formData.field102,"onUpdate:modelValue":a[1]||(a[1]=d=>o.formData.field102=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u6295\u6807\u7F16\u53F7",disabled:!0,clearable:"","suffix-icon":"el-icon-search",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"field103"},{default:l(()=>[e(t,{modelValue:o.formData.field103,"onUpdate:modelValue":a[2]||(a[2]=d=>o.formData.field103=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u9879\u76EE\u540D\u79F0",disabled:!0,clearable:"","suffix-icon":"el-icon-search",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u9879\u76EE\u7F16\u7801",prop:"field104"},{default:l(()=>[e(t,{modelValue:o.formData.field104,"onUpdate:modelValue":a[3]||(a[3]=d=>o.formData.field104=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"","suffix-icon":"el-icon-search",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u5408\u540C\u540D\u79F0",prop:"field105"},{default:l(()=>[e(t,{modelValue:o.formData.field105,"onUpdate:modelValue":a[4]||(a[4]=d=>o.formData.field105=d),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0",clearable:"","suffix-icon":"el-icon-search",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u5408\u540C\u7F16\u53F7",prop:"field106"},{default:l(()=>[e(t,{modelValue:o.formData.field106,"onUpdate:modelValue":a[5]||(a[5]=d=>o.formData.field106=d),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7",clearable:"","suffix-icon":"el-icon-search",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u5408\u540C\u7C7B\u578B",prop:"field107"},{default:l(()=>[e(h,{modelValue:o.formData.field107,"onUpdate:modelValue":a[6]||(a[6]=d=>o.formData.field107=d),placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u7C7B\u578B",clearable:"",style:{width:"100%"}},{default:l(()=>[(r(!0),p(V,null,_(o.field107Options,(d,u)=>(r(),D(U,{key:u,label:d.label,value:d.value,disabled:d.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u5408\u540C\u8BA1\u4EF7\u65B9\u5F0F",prop:"field108","label-width":"115px"},{default:l(()=>[e(g,{modelValue:o.formData.field108,"onUpdate:modelValue":a[7]||(a[7]=d=>o.formData.field108=d),size:"medium"},{default:l(()=>[(r(!0),p(V,null,_(o.field108Options,(d,u)=>(r(),D(y,{key:u,label:d.value,disabled:d.disabled},{default:l(()=>[n(c(d.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u7532\u65B9",prop:"field109"},{default:l(()=>[e(t,{modelValue:o.formData.field109,"onUpdate:modelValue":a[8]||(a[8]=d=>o.formData.field109=d),placeholder:"\u8BF7\u8F93\u5165\u7532\u65B9",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u4E59\u65B9",prop:"field110"},{default:l(()=>[e(t,{modelValue:o.formData.field110,"onUpdate:modelValue":a[9]||(a[9]=d=>o.formData.field110=d),placeholder:"\u8BF7\u8F93\u5165\u4E59\u65B9",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u901A\u8BAF\u5730\u5740",prop:"field111"},{default:l(()=>[e(t,{modelValue:o.formData.field111,"onUpdate:modelValue":a[10]||(a[10]=d=>o.formData.field111=d),placeholder:"\u8BF7\u8F93\u5165\u901A\u8BAF\u5730\u5740",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u901A\u8BAF\u5730\u5740",prop:"field112"},{default:l(()=>[e(t,{modelValue:o.formData.field112,"onUpdate:modelValue":a[11]||(a[11]=d=>o.formData.field112=d),placeholder:"\u8BF7\u8F93\u5165\u901A\u8BAF\u5730\u5740",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u4E3B\u8981\u8D1F\u8D23\u4EBA",prop:"field113"},{default:l(()=>[e(t,{modelValue:o.formData.field113,"onUpdate:modelValue":a[12]||(a[12]=d=>o.formData.field113=d),placeholder:"\u8BF7\u8F93\u5165\u4E3B\u8981\u8D1F\u8D23\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u4E3B\u8981\u8D1F\u8D23\u4EBA",prop:"field114"},{default:l(()=>[e(t,{modelValue:o.formData.field114,"onUpdate:modelValue":a[13]||(a[13]=d=>o.formData.field114=d),placeholder:"\u8BF7\u8F93\u5165\u4E3B\u8981\u8D1F\u8D23\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u7535\u8BDD",prop:"field115"},{default:l(()=>[e(t,{modelValue:o.formData.field115,"onUpdate:modelValue":a[14]||(a[14]=d=>o.formData.field115=d),placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u7535\u8BDD",prop:"field116"},{default:l(()=>[e(t,{modelValue:o.formData.field116,"onUpdate:modelValue":a[15]||(a[15]=d=>o.formData.field116=d),placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u624B\u673A",prop:"field117"},{default:l(()=>[e(t,{modelValue:o.formData.field117,"onUpdate:modelValue":a[16]||(a[16]=d=>o.formData.field117=d),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u624B\u673A",prop:"field118"},{default:l(()=>[e(t,{modelValue:o.formData.field118,"onUpdate:modelValue":a[17]||(a[17]=d=>o.formData.field118=d),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u90AE\u7BB1",prop:"field119"},{default:l(()=>[e(t,{modelValue:o.formData.field119,"onUpdate:modelValue":a[18]||(a[18]=d=>o.formData.field119=d),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u90AE\u7BB1",prop:"field120"},{default:l(()=>[e(t,{modelValue:o.formData.field120,"onUpdate:modelValue":a[19]||(a[19]=d=>o.formData.field120=d),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u91D1\u989D",prop:"field121"},{default:l(()=>[e(t,{modelValue:o.formData.field121,"onUpdate:modelValue":a[20]||(a[20]=d=>o.formData.field121=d),placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u91D1\u989D\u5927\u5199",prop:"field122"},{default:l(()=>[e(t,{modelValue:o.formData.field122,"onUpdate:modelValue":a[21]||(a[21]=d=>o.formData.field122=d),placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D\u5927\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u4E1A\u52A1\u8D1F\u8D23\u4EBA",prop:"field123"},{default:l(()=>[e(t,{modelValue:o.formData.field123,"onUpdate:modelValue":a[22]||(a[22]=d=>o.formData.field123=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u4E1A\u52A1\u8D1F\u8D23\u4EBA",disabled:!0,clearable:"","suffix-icon":"el-icon-search",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u72B6\u6001",prop:"field124"},{default:l(()=>[e(g,{modelValue:o.formData.field124,"onUpdate:modelValue":a[23]||(a[23]=d=>o.formData.field124=d),size:"medium"},{default:l(()=>[(r(!0),p(V,null,_(o.field124Options,(d,u)=>(r(),D(y,{key:u,label:d.value,disabled:d.disabled},{default:l(()=>[n(c(d.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u5408\u540C\u6709\u6548\u671F",prop:"field125"},{default:l(()=>[e(w,{modelValue:o.formData.field125,"onUpdate:modelValue":a[24]||(a[24]=d=>o.formData.field125=d),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u5408\u540C\u6709\u6548\u671F",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:l(()=>[e(i,{label:"\u7B7E\u7EA6\u65E5\u671F",prop:"field126"},{default:l(()=>[e(w,{modelValue:o.formData.field126,"onUpdate:modelValue":a[25]||(a[25]=d=>o.formData.field126=d),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u7B7E\u7EA6\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:24},{default:l(()=>[e(i,{label:"\u4E3B\u8981\u6761\u6B3E",prop:"field127"},{default:l(()=>[e(t,{modelValue:o.formData.field127,"onUpdate:modelValue":a[26]||(a[26]=d=>o.formData.field127=d),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u4E3B\u8981\u6761\u6B3E",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:24},{default:l(()=>[e(i,{label:"\u5907\u6CE8",prop:"field128"},{default:l(()=>[e(t,{modelValue:o.formData.field128,"onUpdate:modelValue":a[27]||(a[27]=d=>o.formData.field128=d),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:24},{default:l(()=>[e(i,{label:"\u9644\u4EF6",prop:"field129"},{default:l(()=>[e(x,{ref:"field129","file-list":o.field129fileList,action:o.field129Action,"before-upload":s.field129BeforeUpload},{default:l(()=>[e(b,{size:"small",type:"primary",icon:"el-icon-upload"},{default:l(()=>[N]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1})]),_:1}),e(f,{span:24},{default:l(()=>[e(i,{size:"large"},{default:l(()=>[e(b,{type:"primary",onClick:s.submitForm},{default:l(()=>[T]),_:1},8,["onClick"]),e(b,{onClick:s.resetForm},{default:l(()=>[H]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const qe=S(G,[["render",J]]);export{qe as default};
|