2 lines
9.8 KiB
JavaScript
2 lines
9.8 KiB
JavaScript
import{I as E,y as x,P as z,Q as F,J as O,G as B,H as C,w as R,K as h,D as q,C as L}from"./element-plus.517d4382.js";import{_ as I}from"./index.8b1962e9.js";import{o as t,c as m,V as d,M as a,W as n,a8 as p,T as u,L as s,U as D}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 S={components:{},props:[],data(){return{formData:{field102:void 0,field101:void 0,field103:void 0,field104:void 0,field105:void 0,field107:null,field108:null,field109:void 0,field110:void 0,field111:void 0,field112:void 0,field113:null,field114:null,field115:void 0,field117:void 0,field118:void 0,field119:void 0,field120:null},rules:{field102:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u9879\u76EE",trigger:"blur"}],field101:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field103:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field104:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u4F30\u7B97",trigger:"blur"}],field105:[],field107:[],field108:[],field109:[],field110:[],field111:[],field112:[],field113:[],field114:[],field115:[],field117:[],field118:[],field119:[]},field120Action:"https://jsonplaceholder.typicode.com/posts/",field120fileList:[],field105Options:[{label:"\u81EA\u7B79",value:1},{label:"\u8D22\u653F\u62E8\u6B3E",value:2},{label:"\u653F\u5E9C\u8865\u8D34",value:3},{label:"\u5176\u4ED6",value:4}],field109Options:[{label:"\u516C\u5F00\u62DB\u6807",value:1},{label:"\u9080\u6807",value:2},{label:"\u8BAE\u6807",value:3}],field111Options:[{label:"\u662F",value:1},{label:"\u5426",value:2}],field115Options:[{label:"\u6709",value:1},{label:"\u65E0",value:2}],field117Options:[{label:"0%",value:0},{label:"10%",value:1},{label:"20%",value:2},{label:"30%",value:3},{label:"40%",value:4},{label:"50%",value:5},{label:"60%",value:6},{label:"70%",value:7},{label:"80%",value:8},{label:"90%",value:19},{label:"100%",value:10}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(b=>{})},resetForm(){this.$refs.elForm.resetFields()},field120BeforeUpload(b){let o=b.size/1024/1024<2;return o||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),o}}},A=u("\u70B9\u51FB\u4E0A\u4F20"),G=u("\u63D0\u4EA4"),N=u("\u91CD\u7F6E");function P(b,o,T,j,l,v){const f=E,i=x,y=z,_=F,V=O,g=B,w=C,c=R,U=h,M=q,k=L;return t(),m("div",null,[d(k,null,{default:a(()=>[d(M,{ref:"elForm",model:l.formData,rules:l.rules,size:"medium","label-width":"130px","label-position":"left"},{default:a(()=>[d(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"field102"},{default:a(()=>[d(f,{modelValue:l.formData.field102,"onUpdate:modelValue":o[0]||(o[0]=e=>l.formData.field102=e),placeholder:"\u70B9\u51FB\u9009\u62E9\u9879\u76EE",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),d(i,{label:"\u9879\u76EE\u7F16\u7801",prop:"field101"},{default:a(()=>[d(f,{modelValue:l.formData.field101,"onUpdate:modelValue":o[1]||(o[1]=e=>l.formData.field101=e),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),d(i,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field103"},{default:a(()=>[d(f,{modelValue:l.formData.field103,"onUpdate:modelValue":o[2]||(o[2]=e=>l.formData.field103=e),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),d(i,{label:"\u9879\u76EE\u4F30\u7B97(\u4E07)",prop:"field104"},{default:a(()=>[d(f,{modelValue:l.formData.field104,"onUpdate:modelValue":o[3]||(o[3]=e=>l.formData.field104=e),placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u4F30\u7B97",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),d(i,{label:"\u62DB\u6807\u9879\u76EE\u8D44\u91D1\u6765\u6E90",prop:"field105"},{default:a(()=>[d(_,{modelValue:l.formData.field105,"onUpdate:modelValue":o[4]||(o[4]=e=>l.formData.field105=e),size:"medium"},{default:a(()=>[(t(!0),m(n,null,p(l.field105Options,(e,r)=>(t(),s(y,{key:r,label:e.value,disabled:e.disabled},{default:a(()=>[u(D(e.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),d(i,{label:"\u6295\u6807\u65F6\u95F4",prop:"field107"},{default:a(()=>[d(V,{modelValue:l.formData.field107,"onUpdate:modelValue":o[5]||(o[5]=e=>l.formData.field107=e),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u6295\u6807\u65F6\u95F4",clearable:""},null,8,["modelValue"])]),_:1}),d(i,{label:"\u8D2D\u4E70\u6807\u4E66\u65F6\u95F4",prop:"field108"},{default:a(()=>[d(V,{modelValue:l.formData.field108,"onUpdate:modelValue":o[6]||(o[6]=e=>l.formData.field108=e),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u8D2D\u4E70\u6807\u4E66\u65F6\u95F4",clearable:""},null,8,["modelValue"])]),_:1}),d(i,{label:"\u62DB\u6807\u65B9\u5F0F",prop:"field109"},{default:a(()=>[d(_,{modelValue:l.formData.field109,"onUpdate:modelValue":o[7]||(o[7]=e=>l.formData.field109=e),size:"medium"},{default:a(()=>[(t(!0),m(n,null,p(l.field109Options,(e,r)=>(t(),s(y,{key:r,label:e.value,disabled:e.disabled},{default:a(()=>[u(D(e.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),d(i,{label:"\u7ADE\u4E89\u5BF9\u624B",prop:"field110"},{default:a(()=>[d(f,{modelValue:l.formData.field110,"onUpdate:modelValue":o[8]||(o[8]=e=>l.formData.field110=e),placeholder:"\u8BF7\u8F93\u5165\u7ADE\u4E89\u5BF9\u624B",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),d(i,{label:"\u662F\u5426\u9700\u8981\u4FDD\u8BC1\u91D1",prop:"field111"},{default:a(()=>[d(_,{modelValue:l.formData.field111,"onUpdate:modelValue":o[9]||(o[9]=e=>l.formData.field111=e),size:"medium"},{default:a(()=>[(t(!0),m(n,null,p(l.field111Options,(e,r)=>(t(),s(y,{key:r,label:e.value,disabled:e.disabled},{default:a(()=>[u(D(e.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),d(i,{label:"\u4FDD\u8BC1\u91D1\u91D1\u989D(\u5143)",prop:"field112"},{default:a(()=>[d(f,{modelValue:l.formData.field112,"onUpdate:modelValue":o[10]||(o[10]=e=>l.formData.field112=e),placeholder:"\u8BF7\u8F93\u5165\u4FDD\u8BC1\u91D1\u91D1\u989D(\u5143)",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),d(i,{label:"\u5F00\u6807\u65E5\u671F",prop:"field113"},{default:a(()=>[d(V,{modelValue:l.formData.field113,"onUpdate:modelValue":o[11]||(o[11]=e=>l.formData.field113=e),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u5F00\u6807\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1}),d(i,{label:"\u4FDD\u8BC1\u91D1\u9000\u8FD8\u65F6\u95F4",prop:"field114"},{default:a(()=>[d(V,{modelValue:l.formData.field114,"onUpdate:modelValue":o[12]||(o[12]=e=>l.formData.field114=e),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u4FDD\u8BC1\u91D1\u9000\u8FD8\u65F6\u95F4",clearable:""},null,8,["modelValue"])]),_:1}),d(i,{label:"\u6709\u65E0\u5185\u90E8\u8D44\u6E90",prop:"field115"},{default:a(()=>[d(_,{modelValue:l.formData.field115,"onUpdate:modelValue":o[13]||(o[13]=e=>l.formData.field115=e),size:"medium"},{default:a(()=>[(t(!0),m(n,null,p(l.field115Options,(e,r)=>(t(),s(y,{key:r,label:e.value,disabled:e.disabled},{default:a(()=>[u(D(e.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),d(i,{label:"\u9879\u76EE\u628A\u63E1\u5EA6",prop:"field117"},{default:a(()=>[d(w,{modelValue:l.formData.field117,"onUpdate:modelValue":o[14]||(o[14]=e=>l.formData.field117=e),placeholder:"\u9879\u76EE\u628A\u63E1\u5EA6",clearable:"",style:{width:"100%"}},{default:a(()=>[(t(!0),m(n,null,p(l.field117Options,(e,r)=>(t(),s(g,{key:r,label:e.label,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),d(i,{label:"\u62DB\u6807\u9879\u76EE\u6982\u51B5",prop:"field118"},{default:a(()=>[d(f,{modelValue:l.formData.field118,"onUpdate:modelValue":o[15]||(o[15]=e=>l.formData.field118=e),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u62DB\u6807\u9879\u76EE\u6982\u51B5",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),d(i,{label:"\u9879\u76EE\u7B80\u4ECB",prop:"field119"},{default:a(()=>[d(f,{modelValue:l.formData.field119,"onUpdate:modelValue":o[16]||(o[16]=e=>l.formData.field119=e),type:"textarea",placeholder:"\u9879\u76EE\u7B80\u4ECB",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),d(i,{label:"\u9644\u4EF6",prop:"field120"},{default:a(()=>[d(U,{ref:"field120","file-list":l.field120fileList,action:l.field120Action,"before-upload":v.field120BeforeUpload},{default:a(()=>[d(c,{size:"small",type:"primary",icon:"el-icon-upload"},{default:a(()=>[A]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1}),d(i,{size:"large"},{default:a(()=>[d(c,{type:"primary",onClick:v.submitForm},{default:a(()=>[G]),_:1},8,["onClick"]),d(c,{onClick:v.resetForm},{default:a(()=>[N]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const Me=I(S,[["render",P]]);export{Me as default};
|