2 lines
9.1 KiB
JavaScript
2 lines
9.1 KiB
JavaScript
import{G as V,B as y,I as D,w as g,L as _,N as w,C as U}from"./element-plus.b8743002.js";import{_ as c}from"./index.c58396e2.js";import{o as h,c as q,U as e,L as r,S as m}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 M={components:{},props:[],data(){return{formData:{field101:void 0,field102:void 0,field120:void 0,field121:void 0,field106:void 0,field107:void 0,field105:void 0,field122:void 0,field110:void 0,field123:void 0,field125:void 0,field126:void 0,field127:void 0,field128:null,field129:null,field130:void 0,field131:void 0,field132:void 0,field133:null},rules:{field101:[{required:!0,message:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u540D\u79F0",trigger:"blur"}],field102:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0",trigger:"blur"}],field120:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u4F9B\u5E94\u5546",trigger:"blur"}],field121:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field106:[],field107:[],field105:[],field122:[],field110:[{required:!0,message:"\u8BF7\u8F93\u5165\u7968\u636E\u7F16\u53F7",trigger:"blur"}],field123:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field125:[],field126:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field127:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field128:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"change"}],field129:[],field130:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D",trigger:"blur"}],field131:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field132:[]},field133Action:"https://jsonplaceholder.typicode.com/posts/",field133fileList:[]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(a=>{})},resetForm(){this.$refs.elForm.resetFields()},field133BeforeUpload(a){let d=a.size/1024/1024<2;return d||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),d}}},F=m("\u70B9\u51FB\u4E0A\u4F20"),x=m("\u63D0\u4EA4"),k=m("\u91CD\u7F6E");function E(a,d,B,C,l,f){const t=V,i=y,p=D,u=g,n=_,s=w,b=U;return h(),q("div",null,[e(b,null,{default:r(()=>[e(s,{ref:"elForm",model:l.formData,rules:l.rules,size:"medium","label-width":"120px","label-position":"left"},{default:r(()=>[e(i,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"field101"},{default:r(()=>[e(t,{modelValue:l.formData.field101,"onUpdate:modelValue":d[0]||(d[0]=o=>l.formData.field101=o),placeholder:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u540D\u79F0",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u90E8\u95E8\u540D\u79F0",prop:"field102"},{default:r(()=>[e(t,{modelValue:l.formData.field102,"onUpdate:modelValue":d[1]||(d[1]=o=>l.formData.field102=o),placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"field120"},{default:r(()=>[e(t,{modelValue:l.formData.field120,"onUpdate:modelValue":d[2]||(d[2]=o=>l.formData.field120=o),placeholder:"\u70B9\u51FB\u9009\u62E9\u4F9B\u5E94\u5546",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4F9B\u5E94\u5546\u7F16\u7801",prop:"field121"},{default:r(()=>[e(t,{modelValue:l.formData.field121,"onUpdate:modelValue":d[3]||(d[3]=o=>l.formData.field121=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5408\u540C\u7F16\u53F7",prop:"field106"},{default:r(()=>[e(t,{modelValue:l.formData.field106,"onUpdate:modelValue":d[4]||(d[4]=o=>l.formData.field106=o),placeholder:"\u70B9\u51FB\u9009\u62E9\u5408\u540C",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5408\u540C\u540D\u79F0",prop:"field107"},{default:r(()=>[e(t,{modelValue:l.formData.field107,"onUpdate:modelValue":d[5]||(d[5]=o=>l.formData.field107=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u9879\u76EE\u7F16\u7801",prop:"field105"},{default:r(()=>[e(t,{modelValue:l.formData.field105,"onUpdate:modelValue":d[6]||(d[6]=o=>l.formData.field105=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5408\u540C\u7C7B\u578B",prop:"field122"},{default:r(()=>[e(t,{modelValue:l.formData.field122,"onUpdate:modelValue":d[7]||(d[7]=o=>l.formData.field122=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u7968\u636E\u7F16\u53F7",prop:"field110"},{default:r(()=>[e(t,{modelValue:l.formData.field110,"onUpdate:modelValue":d[8]||(d[8]=o=>l.formData.field110=o),placeholder:"\u8BF7\u8F93\u5165\u7968\u636E\u7F16\u53F7",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5F00\u6237\u94F6\u884C",prop:"field123"},{default:r(()=>[e(t,{modelValue:l.formData.field123,"onUpdate:modelValue":d[9]||(d[9]=o=>l.formData.field123=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8D26\u6237\u7F16\u7801",prop:"field125"},{default:r(()=>[e(t,{modelValue:l.formData.field125,"onUpdate:modelValue":d[10]||(d[10]=o=>l.formData.field125=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u6C47\u7968\u7C7B\u578B",prop:"field126"},{default:r(()=>[e(t,{modelValue:l.formData.field126,"onUpdate:modelValue":d[11]||(d[11]=o=>l.formData.field126=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u6C47\u7968\u627F\u5151\u94F6\u884C",prop:"field127"},{default:r(()=>[e(t,{modelValue:l.formData.field127,"onUpdate:modelValue":d[12]||(d[12]=o=>l.formData.field127=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u6C47\u7968\u5230\u671F\u65E5\u671F",prop:"field128"},{default:r(()=>[e(p,{modelValue:l.formData.field128,"onUpdate:modelValue":d[13]||(d[13]=o=>l.formData.field128=o),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",clearable:"",disabled:!0},null,8,["modelValue"])]),_:1}),e(i,{label:"\u4ED8\u6B3E\u65E5\u671F",prop:"field129"},{default:r(()=>[e(p,{modelValue:l.formData.field129,"onUpdate:modelValue":d[14]||(d[14]=o=>l.formData.field129=o),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1}),e(i,{label:"\u91D1\u989D",prop:"field130"},{default:r(()=>[e(t,{modelValue:l.formData.field130,"onUpdate:modelValue":d[15]||(d[15]=o=>l.formData.field130=o),placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u91D1\u989D\u5927\u5199",prop:"field131"},{default:r(()=>[e(t,{modelValue:l.formData.field131,"onUpdate:modelValue":d[16]||(d[16]=o=>l.formData.field131=o),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5907\u6CE8",prop:"field132"},{default:r(()=>[e(t,{modelValue:l.formData.field132,"onUpdate:modelValue":d[17]||(d[17]=o=>l.formData.field132=o),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:"field133"},{default:r(()=>[e(n,{ref:"field133","file-list":l.field133fileList,action:l.field133Action,"before-upload":f.field133BeforeUpload},{default:r(()=>[e(u,{size:"small",type:"primary",icon:"el-icon-upload"},{default:r(()=>[F]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1}),e(i,{size:"large"},{default:r(()=>[e(u,{type:"primary",onClick:f.submitForm},{default:r(()=>[x]),_:1},8,["onClick"]),e(u,{onClick:f.resetForm},{default:r(()=>[k]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const ne=c(M,[["render",E]]);export{ne as default};
|