2 lines
9.1 KiB
JavaScript
2 lines
9.1 KiB
JavaScript
import{G as k,B as q,H as F,J as C,K as x,I as B,y as z,A as R,w as A,L,M as O,N as S,C as I}from"./element-plus.b8743002.js";import{_ as N}from"./index.f6cf97bc.js";import{o as f,c as b,U as e,L as l,V as y,a7 as c,S as m,K as V,T as G}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.92e7f918.js";import"./dayjs.79cf08f3.js";import"./axios.77c85d3e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.3080e53f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.54284180.js";import"./color.1c59b943.js";import"./clone.0c702ab2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.66e2071a.js";import"./ms.a9ae1d6d.js";import"./nprogress.81114d43.js";import"./vue-clipboard3.f3fb4eed.js";import"./clipboard.c973b911.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const K={components:{},props:[],data(){return{formData:{field101:void 0,field102:void 0,field103:void 0,field104:void 0,field105:1,field106:void 0,field108:null,field109:null,field110:null,field111:void 0,field112:void 0,field113:void 0,field114:void 0,field116:void 0,field117:null},rules:{field101:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u4F9B\u5E94\u5546",trigger:"blur"}],field102:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field103:[],field104:[{required:!0,message:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0",trigger:"blur"}],field105:[{required:!0,message:"\u91C7\u8D2D\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],field106:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u8D44\u4EA7\u5355\u53F7",trigger:"blur"}],field108:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",trigger:"change"}],field109:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",trigger:"change"}],field110:[],field111:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u65B9\u5F0F",trigger:"change"}],field112:[{required:!0,message:"\u8BF7\u8F93\u5165\u5408\u540C\u91D1\u989D",trigger:"blur"}],field113:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field114:[],field116:[]},field117Action:"https://jsonplaceholder.typicode.com/posts/",field117fileList:[],field105Options:[{label:"\u8D44\u4EA7\u91C7\u8D2D",value:1},{label:"\u884C\u653F\u91C7\u8D2D",value:2}],field111Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(u=>{})},resetForm(){this.$refs.elForm.resetFields()},field117BeforeUpload(u){let t=u.size/1024/1024<2;return t||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),t}}},T=m("\u70B9\u51FB\u4E0A\u4F20"),j=m("\u63D0\u4EA4"),H=m("\u91CD\u7F6E");function J(u,t,P,Q,d,n){const i=k,a=q,r=F,g=C,D=x,s=B,w=z,U=R,p=A,v=L,h=O,E=S,M=I;return f(),b("div",null,[e(M,null,{default:l(()=>[e(E,{ref:"elForm",model:d.formData,rules:d.rules,size:"medium","label-width":"120px","label-position":"left"},{default:l(()=>[e(h,{gutter:10},{default:l(()=>[e(r,{span:12},{default:l(()=>[e(a,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"field101"},{default:l(()=>[e(i,{modelValue:d.formData.field101,"onUpdate:modelValue":t[0]||(t[0]=o=>d.formData.field101=o),placeholder:"\u70B9\u51FB\u9009\u62E9\u4F9B\u5E94\u5546",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u4F9B\u5E94\u5546\u7F16\u7801",prop:"field102"},{default:l(()=>[e(i,{modelValue:d.formData.field102,"onUpdate:modelValue":t[1]||(t[1]=o=>d.formData.field102=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u5408\u540C\u7F16\u53F7",prop:"field103"},{default:l(()=>[e(i,{modelValue:d.formData.field103,"onUpdate:modelValue":t[2]||(t[2]=o=>d.formData.field103=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u5408\u540C\u540D\u79F0",prop:"field104"},{default:l(()=>[e(i,{modelValue:d.formData.field104,"onUpdate:modelValue":t[3]||(t[3]=o=>d.formData.field104=o),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u91C7\u8D2D\u5206\u7C7B",prop:"field105"},{default:l(()=>[e(D,{modelValue:d.formData.field105,"onUpdate:modelValue":t[4]||(t[4]=o=>d.formData.field105=o),size:"medium"},{default:l(()=>[(f(!0),b(y,null,c(d.field105Options,(o,_)=>(f(),V(g,{key:_,label:o.value,disabled:o.disabled},{default:l(()=>[m(G(o.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u8D44\u4EA7\u7533\u8BF7\u5355\u53F7",prop:"field106"},{default:l(()=>[e(i,{modelValue:d.formData.field106,"onUpdate:modelValue":t[5]||(t[5]=o=>d.formData.field106=o),placeholder:"\u70B9\u51FB\u9009\u62E9\u8D44\u4EA7\u5355\u53F7",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u5F00\u59CB\u65E5\u671F",prop:"field108"},{default:l(()=>[e(s,{modelValue:d.formData.field108,"onUpdate:modelValue":t[6]||(t[6]=o=>d.formData.field108=o),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u7ED3\u675F\u65E5\u671F",prop:"field109"},{default:l(()=>[e(s,{modelValue:d.formData.field109,"onUpdate:modelValue":t[7]||(t[7]=o=>d.formData.field109=o),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u7B7E\u7EA6\u65E5\u671F",prop:"field110"},{default:l(()=>[e(s,{modelValue:d.formData.field110,"onUpdate:modelValue":t[8]||(t[8]=o=>d.formData.field110=o),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(r,{span:12},{default:l(()=>[e(a,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"field111"},{default:l(()=>[e(U,{modelValue:d.formData.field111,"onUpdate:modelValue":t[9]||(t[9]=o=>d.formData.field111=o),placeholder:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u65B9\u5F0F",clearable:"",style:{width:"100%"}},{default:l(()=>[(f(!0),b(y,null,c(d.field111Options,(o,_)=>(f(),V(w,{key:_,label:o.label,value:o.value,disabled:o.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u5408\u540C\u91D1\u989D",prop:"field112"},{default:l(()=>[e(i,{modelValue:d.formData.field112,"onUpdate:modelValue":t[10]||(t[10]=o=>d.formData.field112=o),placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u91D1\u989D",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(a,{label:"\u5408\u540C\u91D1\u989D\u5927\u5199",prop:"field113"},{default:l(()=>[e(i,{modelValue:d.formData.field113,"onUpdate:modelValue":t[11]||(t[11]=o=>d.formData.field113=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(a,{label:"\u5408\u540C\u4E3B\u8981\u6761\u6B3E",prop:"field114"},{default:l(()=>[e(i,{modelValue:d.formData.field114,"onUpdate:modelValue":t[12]||(t[12]=o=>d.formData.field114=o),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u4E3B\u8981\u6761\u6B3E",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(a,{label:"\u5907\u6CE8",prop:"field116"},{default:l(()=>[e(i,{modelValue:d.formData.field116,"onUpdate:modelValue":t[13]||(t[13]=o=>d.formData.field116=o),placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(a,{label:"\u9644\u4EF6",prop:"field117",required:""},{default:l(()=>[e(v,{ref:"field117","file-list":d.field117fileList,action:d.field117Action,"before-upload":n.field117BeforeUpload},{default:l(()=>[e(p,{size:"small",type:"primary",icon:"el-icon-upload"},{default:l(()=>[T]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(a,{size:"large"},{default:l(()=>[e(p,{type:"primary",onClick:n.submitForm},{default:l(()=>[j]),_:1},8,["onClick"]),e(p,{onClick:n.resetForm},{default:l(()=>[H]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const Fe=N(K,[["render",J]]);export{Fe as default};
|