2 lines
7.4 KiB
JavaScript
2 lines
7.4 KiB
JavaScript
import{I as D,y as w,G as y,H as h,w as x,K as U,D as F,C as v}from"./element-plus.258bf9e7.js";import{_ as z}from"./index.ec401e3b.js";import{o as u,c as n,V as e,M as d,W as C,a8 as E,T as p,L as R}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 k={components:{},props:[],data(){return{formData:{field101:void 0,field104:void 0,field109:void 0,field105:void 0,field108:void 0,field130:void 0,field131:void 0,field132:void 0,field134:void 0,field135:void 0,field136:void 0,field137:void 0,field138: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"}],field105:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",trigger:"blur"}],field108:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",trigger:"blur"}],field130:[{required:!0,message:"\u6559\u9009\u62E9\u76EE\u9879\u70B9\u9700\u6C42\u540D\u79F0",trigger:"blur"}],field131:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ADE\u4E89\u5BF9\u624B\u8054\u7CFB\u4EBA",trigger:"blur"}],field132:[],field134:[],field135:[],field136:[],field137:[]},field138Action:"https://jsonplaceholder.typicode.com/posts/",field138fileList:[],field104Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(a=>{})},resetForm(){this.$refs.elForm.resetFields()},field138BeforeUpload(a){let o=a.size/1024/1024<2;return o||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),o}}},q=p("\u70B9\u51FB\u4E0A\u4F20"),B=p("\u63D0\u4EA4"),L=p("\u91CD\u7F6E");function I(a,o,O,A,l,f){const r=D,i=w,s=y,b=h,m=x,_=U,V=F,c=v;return u(),n("div",null,[e(c,null,{default:d(()=>[e(V,{ref:"elForm",model:l.formData,rules:l.rules,size:"medium","label-width":"130px","label-position":"left"},{default:d(()=>[e(i,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"field101"},{default:d(()=>[e(r,{modelValue:l.formData.field101,"onUpdate:modelValue":o[0]||(o[0]=t=>l.formData.field101=t),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:d(()=>[e(b,{modelValue:l.formData.field104,"onUpdate:modelValue":o[1]||(o[1]=t=>l.formData.field104=t),placeholder:"\u8BF7\u9009\u62E9\u90E8\u95E8\u540D\u79F0",clearable:"",style:{width:"100%"}},{default:d(()=>[(u(!0),n(C,null,E(l.field104Options,(t,g)=>(u(),R(s,{key:g,label:t.label,value:t.value,disabled:t.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"field109"},{default:d(()=>[e(r,{modelValue:l.formData.field109,"onUpdate:modelValue":o[2]||(o[2]=t=>l.formData.field109=t),placeholder:"\u70B9\u6559\u9009\u62E9\u9879\u76EE",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9879\u76EE\u7F16\u7801",prop:"field105"},{default:d(()=>[e(r,{modelValue:l.formData.field105,"onUpdate:modelValue":o[3]||(o[3]=t=>l.formData.field105=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field108"},{default:d(()=>[e(r,{modelValue:l.formData.field108,"onUpdate:modelValue":o[4]||(o[4]=t=>l.formData.field108=t),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9700\u6C42\u540D\u79F0",prop:"field130"},{default:d(()=>[e(r,{modelValue:l.formData.field130,"onUpdate:modelValue":o[5]||(o[5]=t=>l.formData.field130=t),placeholder:"\u70B9\u51FB\u9009\u62E9\u76EE\u9879\u70B9\u9700\u6C42\u540D\u79F0",disabled:!0,clearable:"","suffix-icon":"el-icon-search",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u7ADE\u4E89\u5BF9\u624B\u8054\u7CFB\u4EBA",prop:"field131","label-width":"132px"},{default:d(()=>[e(r,{modelValue:l.formData.field131,"onUpdate:modelValue":o[6]||(o[6]=t=>l.formData.field131=t),placeholder:"\u8BF7\u8F93\u5165\u7ADE\u4E89\u5BF9\u624B\u8054\u7CFB\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8054\u7CFB\u4EBA\u7535\u8BDD",prop:"field132"},{default:d(()=>[e(r,{modelValue:l.formData.field132,"onUpdate:modelValue":o[7]||(o[7]=t=>l.formData.field132=t),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA\u7535\u8BDD",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u7ADE\u4E89\u80FD\u529B",prop:"field134"},{default:d(()=>[e(r,{modelValue:l.formData.field134,"onUpdate:modelValue":o[8]||(o[8]=t=>l.formData.field134=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u7ADE\u4E89\u80FD\u529B",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u7ADE\u4E89\u80FD\u5BF9\u624B\u4F18\u52BF",prop:"field135"},{default:d(()=>[e(r,{modelValue:l.formData.field135,"onUpdate:modelValue":o[9]||(o[9]=t=>l.formData.field135=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u7ADE\u4E89\u80FD\u5BF9\u624B\u4F18\u52BF",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u7ADE\u4E89\u80FD\u5BF9\u624B\u52A3\u52BF",prop:"field136"},{default:d(()=>[e(r,{modelValue:l.formData.field136,"onUpdate:modelValue":o[10]||(o[10]=t=>l.formData.field136=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u7ADE\u4E89\u80FD\u5BF9\u624B\u52A3\u52BF",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5907\u6CE8",prop:"field137"},{default:d(()=>[e(r,{modelValue:l.formData.field137,"onUpdate:modelValue":o[11]||(o[11]=t=>l.formData.field137=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9644\u4EF6",prop:"field138"},{default:d(()=>[e(_,{ref:"field138","file-list":l.field138fileList,action:l.field138Action,"before-upload":f.field138BeforeUpload},{default:d(()=>[e(m,{size:"small",type:"primary",icon:"el-icon-upload"},{default:d(()=>[q]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1}),e(i,{size:"large"},{default:d(()=>[e(m,{type:"primary",onClick:f.submitForm},{default:d(()=>[B]),_:1},8,["onClick"]),e(m,{onClick:f.resetForm},{default:d(()=>[L]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const ce=z(k,[["render",I]]);export{ce as default};
|