2 lines
7.9 KiB
JavaScript
2 lines
7.9 KiB
JavaScript
import{G as w,B as U,a3 as k,I as h,w as E,L as F,J as v,K as B,N as x,C as M}from"./element-plus.b8743002.js";import{_ as R}from"./index.c58396e2.js";import{o as p,c as s,U as e,L as i,V as z,a7 as C,S as f,K as L,T as q}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 H={components:{},props:[],data(){return{formData:{field101:void 0,field102:void 0,field103:void 0,field104:void 0,field105:null,field106:void 0,field107:void 0,field108:void 0,field110:void 0,field111:null,field112:void 0,field113:void 0,field114:void 0,field115:void 0,field116:void 0,field117:null},rules:{field101:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u6295\u6807\u62A5\u4FDD\u8BC1\u91D1",trigger:"blur"}],field102:[],field103:[],field104:[],field105:[],field106:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",trigger:"blur"}],field107:[],field108:[{required:!0,message:"",trigger:"change"}],field110:[],field112:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u8D26\u53F7",trigger:"blur"}],field113:[],field114:[],field115:[],field116:[],field117:[]},field111Action:"https://jsonplaceholder.typicode.com/posts/",field111fileList:[],field116Options:[{label:"\u662F",value:1},{label:"\u5426",value:2}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(a=>{})},resetForm(){this.$refs.elForm.resetFields()},field111BeforeUpload(a){let o=a.size/1024/1024<2;return o||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),o}}},I=f("\u70B9\u51FB\u4E0A\u4F20"),N=f("\u63D0\u4EA4"),S=f("\u91CD\u7F6E");function T(a,o,A,G,l,m){const r=w,t=U,b=k,n=h,u=E,_=F,V=v,y=B,D=x,c=M;return p(),s("div",null,[e(c,null,{default:i(()=>[e(D,{ref:"elForm",model:l.formData,rules:l.rules,size:"medium","label-width":"120px","label-position":"left"},{default:i(()=>[e(t,{label:"\u6295\u6807\u7F16\u53F7",prop:"field101"},{default:i(()=>[e(r,{modelValue:l.formData.field101,"onUpdate:modelValue":o[0]||(o[0]=d=>l.formData.field101=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u6295\u6807\u62A5\u4FDD\u8BC1\u91D1",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field102"},{default:i(()=>[e(r,{modelValue:l.formData.field102,"onUpdate:modelValue":o[1]||(o[1]=d=>l.formData.field102=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"field103"},{default:i(()=>[e(r,{modelValue:l.formData.field103,"onUpdate:modelValue":o[2]||(o[2]=d=>l.formData.field103=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u9879\u76EE\u7F16\u7801",prop:"field104"},{default:i(()=>[e(r,{modelValue:l.formData.field104,"onUpdate:modelValue":o[3]||(o[3]=d=>l.formData.field104=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u6295\u6807\u65F6\u95F4",prop:"field105"},{default:i(()=>[e(b,{modelValue:l.formData.field105,"onUpdate:modelValue":o[4]||(o[4]=d=>l.formData.field105=d),format:"HH:mm:ss","value-format":"HH:mm:ss","picker-options":{selectableRange:"00:00:00-23:59:59"},style:{width:"100%"},placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",clearable:"",disabled:!0},null,8,["modelValue"])]),_:1}),e(t,{label:"\u9000\u6B3E\u91D1\u989D",prop:"field106"},{default:i(()=>[e(r,{modelValue:l.formData.field106,"onUpdate:modelValue":o[5]||(o[5]=d=>l.formData.field106=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u9000\u6B3E\u91D1\u989D\u5927\u5199",prop:"field107"},{default:i(()=>[e(r,{modelValue:l.formData.field107,"onUpdate:modelValue":o[6]||(o[6]=d=>l.formData.field107=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u9000\u6B3E\u65E5\u671F",prop:"field108"},{default:i(()=>[e(n,{modelValue:l.formData.field108,"onUpdate:modelValue":o[7]||(o[7]=d=>l.formData.field108=d),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},clearable:""},null,8,["modelValue"])]),_:1}),e(t,{label:"\u5907\u6CE8",prop:"field110"},{default:i(()=>[e(r,{modelValue:l.formData.field110,"onUpdate:modelValue":o[8]||(o[8]=d=>l.formData.field110=d),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u9644\u4EF6",prop:"field111"},{default:i(()=>[e(_,{ref:"field111","file-list":l.field111fileList,action:l.field111Action,"before-upload":m.field111BeforeUpload},{default:i(()=>[e(u,{size:"small",type:"primary",icon:"el-icon-upload"},{default:i(()=>[I]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1}),e(t,{label:"\u8D26\u6237\u7F16\u7801",prop:"field112"},{default:i(()=>[e(r,{modelValue:l.formData.field112,"onUpdate:modelValue":o[9]||(o[9]=d=>l.formData.field112=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u8D26\u53F7",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u5F00\u6237\u94F6\u884C",prop:"field113"},{default:i(()=>[e(r,{modelValue:l.formData.field113,"onUpdate:modelValue":o[10]||(o[10]=d=>l.formData.field113=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u5F00\u6237\u540D\u79F0",prop:"field114"},{default:i(()=>[e(r,{modelValue:l.formData.field114,"onUpdate:modelValue":o[11]||(o[11]=d=>l.formData.field114=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u8D26\u53F7",prop:"field115"},{default:i(()=>[e(r,{modelValue:l.formData.field115,"onUpdate:modelValue":o[12]||(o[12]=d=>l.formData.field115=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(t,{label:"\u662F\u5426\u8BA1\u610F",prop:"field116"},{default:i(()=>[e(y,{modelValue:l.formData.field116,"onUpdate:modelValue":o[13]||(o[13]=d=>l.formData.field116=d),size:"medium"},{default:i(()=>[(p(!0),s(z,null,C(l.field116Options,(d,g)=>(p(),L(V,{key:g,label:d.value,disabled:d.disabled},{default:i(()=>[f(q(d.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(t,{label:"\u5F00\u59CB\u8BA1\u610F\u65E5\u671F",prop:"field117"},{default:i(()=>[e(n,{modelValue:l.formData.field117,"onUpdate:modelValue":o[14]||(o[14]=d=>l.formData.field117=d),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u8BA1\u610F\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1}),e(t,{size:"large"},{default:i(()=>[e(u,{type:"primary",onClick:m.submitForm},{default:i(()=>[N]),_:1},8,["onClick"]),e(u,{onClick:m.resetForm},{default:i(()=>[S]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const ke=R(H,[["render",T]]);export{ke as default};
|