2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
import{G as C,B as x,H as O,I as R,y as z,A as M,w as q,L as H,M as L,C as N,J as P,K as S,a3 as A,N as I}from"./element-plus.b8743002.js";import{_ as T}from"./index.f6cf97bc.js";import{o as f,c as m,U as e,L as l,V as b,a7 as V,a as U,S as p,K as c,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:null,field103:void 0,field104:void 0,field105:void 0,field106:void 0,field107:void 0,field108:void 0,field109:void 0,field110:void 0,field111:void 0,field112:void 0,field113:void 0,field114:void 0,field115:null,field116:void 0,field117:void 0,field118:void 0,field119:void 0,field120:null},rules:{field101:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u5BA2\u6237",trigger:"blur"}],field102:[],field103:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u9500\u552Ei/\u9879\u76EE\u5408\u540C",trigger:"blur"}],field104:[],field105:[],field106:[],field107:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D",trigger:"blur"}],field108:[],field109:[],field110:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u65B9\u5F0F",trigger:"change"}],field111:[],field112:[],field113:[],field114:[],field116:[{required:!0,message:"\u70B9\u51FB\u9009\u62E9\u6536\u6B3E\u8D26\u6237",trigger:"blur"}],field117:[],field118:[],field119:[],field120:[]},field115Action:"https://jsonplaceholder.typicode.com/posts/",field115fileList:[],field105Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}],field110Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}],field119Options:[{label:"\u662F",value:1},{label:"\u5426",value:2}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(n=>{})},resetForm(){this.$refs.elForm.resetFields()},field115BeforeUpload(n){let a=n.size/1024/1024<2;return a||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),a}}},j=U("div",{class:"tit"},"\u56DE\u6B3E\u8BB0\u5F55",-1),J=p("\u70B9\u51FB\u4E0A\u4F20"),Q=U("div",{class:"tit"},"\u6536\u6B3E\u8D26\u6237",-1),W=p("\u63D0\u4EA4"),X=p("\u91CD\u7F6E");function Y(n,a,Z,$,o,s){const r=C,t=x,i=O,v=R,D=z,y=M,_=q,k=H,g=L,w=N,E=P,h=S,F=A,B=I;return f(),m("div",null,[e(B,{ref:"elForm",model:o.formData,rules:o.rules,size:"medium","label-width":"120px","label-position":"left"},{default:l(()=>[e(w,null,{default:l(()=>[j,e(g,{gutter:10},{default:l(()=>[e(i,{span:12},{default:l(()=>[e(t,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field101"},{default:l(()=>[e(r,{modelValue:o.formData.field101,"onUpdate:modelValue":a[0]||(a[0]=d=>o.formData.field101=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u5BA2\u6237",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u65E5\u671F",prop:"field102"},{default:l(()=>[e(v,{modelValue:o.formData.field102,"onUpdate:modelValue":a[1]||(a[1]=d=>o.formData.field102=d),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u5408\u540C\u7F16\u53F7",prop:"field103"},{default:l(()=>[e(r,{modelValue:o.formData.field103,"onUpdate:modelValue":a[2]||(a[2]=d=>o.formData.field103=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u9500\u552Ei/\u9879\u76EE\u5408\u540C",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u5408\u540C\u540D\u79F0",prop:"field104"},{default:l(()=>[e(r,{modelValue:o.formData.field104,"onUpdate:modelValue":a[3]||(a[3]=d=>o.formData.field104=d),disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u671F\u6B21",prop:"field105"},{default:l(()=>[e(y,{modelValue:o.formData.field105,"onUpdate:modelValue":a[4]||(a[4]=d=>o.formData.field105=d),placeholder:"\u8BF7\u9009\u62E9\u671F\u6B21",clearable:"",style:{width:"100%"}},{default:l(()=>[(f(!0),m(b,null,V(o.field105Options,(d,u)=>(f(),c(D,{key:u,label:d.label,value:d.value,disabled:d.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u6536\u6B3E\u6027\u8D28",prop:"field106"},{default:l(()=>[e(r,{modelValue:o.formData.field106,"onUpdate:modelValue":a[5]||(a[5]=d=>o.formData.field106=d),placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u6027\u8D28",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u91D1\u989D",prop:"field107"},{default:l(()=>[e(r,{modelValue:o.formData.field107,"onUpdate:modelValue":a[6]||(a[6]=d=>o.formData.field107=d),placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u91D1\u989D\u5927\u5199",prop:"field108"},{default:l(()=>[e(r,{modelValue:o.formData.field108,"onUpdate:modelValue":a[7]||(a[7]=d=>o.formData.field108=d),disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u5F00\u7968\u72B6\u6001",prop:"field109"},{default:l(()=>[e(r,{modelValue:o.formData.field109,"onUpdate:modelValue":a[8]||(a[8]=d=>o.formData.field109=d),placeholder:"\u8BF7\u8F93\u5165\u5F00\u7968\u72B6\u6001",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"field110"},{default:l(()=>[e(y,{modelValue:o.formData.field110,"onUpdate:modelValue":a[9]||(a[9]=d=>o.formData.field110=d),placeholder:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u65B9\u5F0F",clearable:"",style:{width:"100%"}},{default:l(()=>[(f(!0),m(b,null,V(o.field110Options,(d,u)=>(f(),c(D,{key:u,label:d.label,value:d.value,disabled:d.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u7D2F\u8BA1\u56DE\u6570",prop:"field111"},{default:l(()=>[e(r,{modelValue:o.formData.field111,"onUpdate:modelValue":a[10]||(a[10]=d=>o.formData.field111=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(t,{label:"\u6B3E\u9879\u8BF4\u660E",prop:"field112"},{default:l(()=>[e(r,{modelValue:o.formData.field112,"onUpdate:modelValue":a[11]||(a[11]=d=>o.formData.field112=d),placeholder:"\u8BF7\u8F93\u5165\u6B3E\u9879\u8BF4\u660E",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{label:"\u6536\u6B3E\u4EBA",prop:"field113"},{default:l(()=>[e(r,{modelValue:o.formData.field113,"onUpdate:modelValue":a[12]||(a[12]=d=>o.formData.field113=d),placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{label:"\u5907\u6CE8",prop:"field114"},{default:l(()=>[e(r,{modelValue:o.formData.field114,"onUpdate:modelValue":a[13]||(a[13]=d=>o.formData.field114=d),placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{label:"\u9644\u4EF6",prop:"field115"},{default:l(()=>[e(k,{ref:"field115","file-list":o.field115fileList,action:o.field115Action,"before-upload":s.field115BeforeUpload},{default:l(()=>[e(_,{size:"small",type:"primary",icon:"el-icon-upload"},{default:l(()=>[J]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1})]),_:1})]),_:1})]),_:1}),e(w,null,{default:l(()=>[Q,e(g,{gutter:10},{default:l(()=>[e(i,{span:24},{default:l(()=>[e(t,{label:"\u8D26\u6237\u7F16\u7801",prop:"field116"},{default:l(()=>[e(r,{modelValue:o.formData.field116,"onUpdate:modelValue":a[14]||(a[14]=d=>o.formData.field116=d),placeholder:"\u70B9\u51FB\u9009\u62E9\u6536\u6B3E\u8D26\u6237",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{label:"\u5F00\u6237\u94F6\u884C",prop:"field117"},{default:l(()=>[e(r,{modelValue:o.formData.field117,"onUpdate:modelValue":a[15]||(a[15]=d=>o.formData.field117=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{label:"\u8D26\u53F7",prop:"field118"},{default:l(()=>[e(r,{modelValue:o.formData.field118,"onUpdate:modelValue":a[16]||(a[16]=d=>o.formData.field118=d),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u586B\u5199",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{label:"\u662F\u5426\u8BA1\u606F",prop:"field119"},{default:l(()=>[e(h,{modelValue:o.formData.field119,"onUpdate:modelValue":a[17]||(a[17]=d=>o.formData.field119=d),size:"medium"},{default:l(()=>[(f(!0),m(b,null,V(o.field119Options,(d,u)=>(f(),c(E,{key:u,label:d.value,disabled:d.disabled},{default:l(()=>[p(G(d.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{label:"\u5F00\u59CB\u8BA1\u606F\u65E5\u671F",prop:"field120"},{default:l(()=>[e(F,{modelValue:o.formData.field120,"onUpdate:modelValue":a[18]||(a[18]=d=>o.formData.field120=d),format:"HH:mm:ss","value-format":"HH:mm:ss","picker-options":{selectableRange:"00:00:00-23:59:59"},style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u8BA1\u606F\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:24},{default:l(()=>[e(t,{size:"large"},{default:l(()=>[e(_,{type:"primary",onClick:s.submitForm},{default:l(()=>[W]),_:1},8,["onClick"]),e(_,{onClick:s.resetForm},{default:l(()=>[X]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])}const Me=T(K,[["render",Y]]);export{Me as default};
|