feat: 🔥 优化样式
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 218 KiB |
|
|
@ -1 +0,0 @@
|
|||
import{_,r as o,o as i,c as d,a as s,b as n,w as l,d as r,e as p,p as h,f as v}from"./index.df7b46f6.js";const u="/vue-admin-perfect/assets/403.359d32ca.png",t="/vue-admin-perfect/assets/404_cloud.98e7ac66.png";const m={},a=c=>(h("data-v-c78ca612"),c=c(),v(),c),f={class:"app-container"},g={class:"app-container-inner"},x={class:"wscn-http403-container"},b={class:"wscn-http403"},w=r('<div class="pic-403" data-v-c78ca612><img class="pic-403__parent" src="'+u+'" alt="403" data-v-c78ca612><img class="pic-403__child left" src="'+t+'" alt="403" data-v-c78ca612><img class="pic-403__child mid" src="'+t+'" alt="403" data-v-c78ca612><img class="pic-403__child right" src="'+t+'" alt="403" data-v-c78ca612></div>',1),k={class:"bullshit"},I=a(()=>s("div",{class:"bullshit__oops"},"\u60A8\u6CA1\u6709\u8BBF\u95EE\u6743\u9650\uFF01",-1)),N=a(()=>s("div",{class:"bullshit__info"}," \u8BF7\u68C0\u67E5URL\u5730\u5740\u662F\u5426\u6B63\u786E, \u6216\u70B9\u51FB\u56DE\u5230\u9996\u9875\u3002 ",-1));function S(c,V){const e=o("router-link");return i(),d("div",f,[s("div",g,[s("div",x,[s("div",b,[w,s("div",k,[I,N,n(e,{to:"/",class:"bullshit__return-home"},{default:l(()=>[p("\u56DE\u5230\u9996\u9875")]),_:1})])])])])])}const y=_(m,[["render",S],["__scopeId","data-v-c78ca612"]]);export{y as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_,r as o,o as i,c as d,a as s,t as n,b as l,w as r,d as p,e as h,p as v,f as u}from"./index.df7b46f6.js";const m="/vue-admin-perfect/assets/404_bg.79e0e553.png",e="/vue-admin-perfect/assets/404_cloud.98e7ac66.png";const f={},a=t=>(v("data-v-648266d8"),t=t(),u(),t),g={class:"app-container"},b={class:"app-container-inner"},w={class:"wscn-http404-container"},x={class:"wscn-http404"},S=p('<div class="pic-404" data-v-648266d8><img class="pic-404__parent" src="'+m+'" alt="404" data-v-648266d8><img class="pic-404__child left" src="'+e+'" alt="404" data-v-648266d8><img class="pic-404__child mid" src="'+e+'" alt="404" data-v-648266d8><img class="pic-404__child right" src="'+e+'" alt="404" data-v-648266d8></div>',1),k={class:"bullshit"},I=a(()=>s("div",{class:"bullshit__oops"},"\u9875\u9762\u4E0D\u5B58\u5728\uFF01",-1)),N={class:"bullshit__headline"},V=a(()=>s("div",{class:"bullshit__info"},"\u8BF7\u68C0\u67E5URL\u5730\u5740\u662F\u5426\u6B63\u786E, \u6216\u70B9\u51FB\u56DE\u5230\u9996\u9875\u3002",-1));function y(t,B){const c=o("router-link");return i(),d("div",g,[s("div",b,[s("div",w,[s("div",x,[S,s("div",k,[I,s("div",N,n(t.message),1),V,l(c,{to:"/",class:"bullshit__return-home"},{default:r(()=>[h("\u56DE\u5230\u9996\u9875")]),_:1})])])])])])}const D=_(f,[["render",y],["__scopeId","data-v-648266d8"]]);export{D as default};
|
||||
|
Before Width: | Height: | Size: 227 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
|
@ -1 +0,0 @@
|
|||
import{i as s}from"./index.df40fc31.js";import{g as o,x as r,o as c,c as d,y as l,z as h}from"./index.df7b46f6.js";const m=["id"],g=o({__name:"bar",props:{className:{type:String,default:"chart"},config:{type:Object,default:()=>{}},id:{type:String,default:"chart"},width:{type:String,default:"200px"},height:{type:String,default:"200px"}},setup(t){const a=t,n={grid:{top:10,left:"2%",right:"2%",bottom:"2%",containLabel:!0},xAxis:{type:"category",data:["\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D","\u661F\u671F\u65E5"]},yAxis:{type:"value"},series:[{data:[150,230,150,80,70,110,130],type:"bar"}]};let e;const u=()=>{let i=s(document.getElementById(a.id));return i.setOption(n),i};return r(()=>{e=u(),window.addEventListener("resize",function(){e&&e.resize()})}),(i,p)=>(c(),d("div",{id:t.id,class:l(t.className),style:h({height:t.height,width:t.width})},null,14,m))}});export{g as _};
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
|
@ -1 +0,0 @@
|
|||
import{E as k}from"./exceljs.min.71bead6c.js";const h=(a,n=10)=>(a==null?n=10:a.toString().charCodeAt(0)>255?n=a.toString().length*2:n=a.toString().length,n),g=async({column:a,data:n,filename:s,autoWidth:u,format:c})=>{const e=new k.Workbook;e.creator="Me",e.title=s,e.created=new Date,e.modified=new Date;const i=e.addWorksheet(s),l=[];a.forEach((o,t)=>{const w={header:o.label,key:o.name,width:null};if(u){const d=[h(o.label)];n.forEach(f=>{const x=f[o.name]||"";x&&d.push(h(x))}),w.width=Math.max(...d)+5}l.push(w)}),i.columns=l,i.addRows(n);const b=c==="xlsx"?await e.xlsx.writeBuffer():await e.csv.writeBuffer(),r=new Blob([b],{type:"application/octet-binary"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,s+`.${c}`);else{const o=document.createElement("a");o.href=window.URL.createObjectURL(r),o.download=s+`.${c}`,o.click(),window.URL.revokeObjectURL(o.href)}};function E(a,n){const{color:s,fontSize:u,horizontal:c,bold:e}=n||{};a.fill={type:"pattern",pattern:"solid",fgColor:{argb:s}},a.font={bold:e!=null?e:!0,size:u!=null?u:11,color:{argb:"ff0000"}},a.alignment={vertical:"middle",wrapText:!0,horizontal:c!=null?c:"left"}}const R=async({column:a,data:n,filename:s,autoWidth:u,format:c})=>{const e=new k.Workbook;e.creator="Me",e.title=s,e.created=new Date,e.modified=new Date;const i=e.addWorksheet(s),l=[];a.forEach((t,w)=>{const d={header:t.label,key:t.name,width:null};if(u){const f=[h(t.label)];n.forEach(x=>{const p=x[t.name]||"";p&&f.push(h(p))}),d.width=Math.max(...f)+5}l.push(d)}),i.columns=l,i.addRows(n),i.getRow(1).eachCell(t=>E(t,{color:"dff8ff",fontSize:12,horizontal:"left"}));const r=c==="xlsx"?await e.xlsx.writeBuffer():await e.csv.writeBuffer(),o=new Blob([r],{type:"application/octet-binary"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(o,s+`.${c}`);else{const t=document.createElement("a");t.href=window.URL.createObjectURL(o),t.download=s+`.${c}`,t.click(),window.URL.revokeObjectURL(t.href)}},v=({column:a,data:n,filename:s,autoWidth:u})=>{const c=new k.Workbook,e=c.addWorksheet("sheet1");e.getRow(1).values=["\u5E8F\u53F7","\u65E5\u671F","\u5730\u5740","\u914D\u9001\u6D88\u606F",,,],e.getRow(2).values=["\u5E8F\u53F7","\u65E5\u671F","\u5730\u5740","\u7701\u4EFD","\u57CE\u5E02","\u90AE\u7F16"];const i=[];a.forEach((l,b)=>{if(l.children)l.children.forEach(r=>{const o={key:r.name,width:null},t=[h(r.label)];n.forEach(w=>{const d=w[r.name]||"";d&&t.push(h(d))}),o.width=Math.max(...t)+5,i.push(o)});else{const r={key:l.name,width:null},o=[h(l.label)];n.forEach(t=>{const w=t[l.name]||"";w&&o.push(h(w))}),r.width=Math.max(...o)+5,i.push(r)}}),e.columns=i,e.addRows(n),e.mergeCells("D1:F1"),e.mergeCells("A1:A2"),e.mergeCells("B1:B2"),e.mergeCells("C1:C2"),c.xlsx.writeBuffer().then(l=>{const b=new Blob([l,{type:"application/vnd.ms-excel"}]);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(b,s+".xlsx");else{const r=document.createElement("a");r.href=window.URL.createObjectURL(b),r.download=s+".xlsx",r.click(),window.URL.revokeObjectURL(r.href)}})};export{v as a,R as b,g as e};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{L as a,i as d}from"./index.df40fc31.js";import{g as p,h as b,x as f,o as y,c as h,a as g,_ as x}from"./index.df7b46f6.js";const m={class:"app-container"},_=p({__name:"index",setup(v){const l=b();let s=["2022-01","2022-02","2022-03","2022-04","2022-05","2022-06","2022-07","2022-08","2022-09","2022-10","2022-11","2022-12"],t={jfsbs:[805,860,400,400,400,400,990,985,990,850,560,772],md:[300,390,290,285,290,288,790,795,795,760,660,480],znhbl:[95,78,50,60,85,78,76,70,65,90,74,66]},i={tooltip:{trigger:"axis",axisPointer:{type:"shadow",shadowStyle:{shadowColor:"rgba(60, 161, 246, 0.43)",shadowBlur:10}},backgroundColor:"#FFFFFF",borderColor:"rgba(60, 161, 246, 0.43)",borderWidth:1,shadowColor:" rgba(111, 193, 253, 0.35)",shadowBlur:10,formatter:function(e){e[0].seriesName;let r=e[0].value;e[1].seriesName;let c=e[1].value;e[2].seriesName;let u=e[2].value;return'<div><span style="color:rgba(36, 36, 36, 1);display: inline-block;width: 86px;">\u5BC6\u5EA6\u6570</span><span style="color:#5DB6FB">'+r+'</span></div><div><span style="color:rgba(36, 36, 36, 1);display: inline-block;width: 86px;">\u8BBE\u5907\u6570</span><span style="color:#5DB6FB">'+c+'</span></div><div><span style="color:rgba(36, 36, 36, 1);display: inline-block;width: 86px;">\u667A\u80FD\u5316\u6BD4\u4F8B</span><span style="color:#5DB6FB">'+u+"%</span></div>"},textStyle:{rich:{name:{color:"rgba(36, 36, 36, 1)",fontSize:13,align:"center"},percent:{fontFamily:"DIN",fontWeight:500,fontSize:22,color:"#1D91F5",align:"center"}}}},grid:{left:"2%",right:"4%",bottom:"14%",top:"16%",containLabel:!0},legend:{top:"5%",textStyle:{color:"rgba(128, 125, 125, 1)",fontSize:12},icon:"rect",itemWidth:12,itemHeight:12,itemGap:25},xAxis:{type:"category",data:s,axisLine:{lineStyle:{color:"rgba(204, 204, 204, 1)"}},axisLabel:{textStyle:{color:"rgba(185, 185, 185, 1)"}},axisTick:{show:!1}},yAxis:[{type:"value",axisLabel:{textStyle:{color:"rgba(185, 185, 185, 1)"}},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(237, 237, 237, 1)",type:"dotted"}}},{type:"value",nameTextStyle:{color:"rgba(185, 185, 185, 1)"},position:"right",axisLine:{show:!1},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!0,formatter:"{value} %",textStyle:{color:"rgba(185, 185, 185, 1)"}}}],series:[{name:"\u65B0\u589E\u57FA\u6869\u6570",type:"bar",barWidth:"12px",itemStyle:{normal:{color:new a(0,0,0,1,[{offset:0,color:"rgba(141, 113, 226, 1)"},{offset:1,color:"rgba(141, 113, 226, 0.2)"}])}},data:t.jfsbs},{name:"\u672C\u6708\u68C0\u6D4B\u6570",type:"bar",barWidth:"12px",itemStyle:{normal:{color:new a(0,0,0,1,[{offset:0,color:"rgba(116, 178, 252, 1)"},{offset:1,color:"rgba(116, 178, 252, 0.2)"}])}},data:t.md},{name:"\u7D2F\u8BA1\u5B8C\u6210\u7387",type:"line",smooth:!0,yAxisIndex:1,symbol:"emptycircle",symbolSize:0,itemStyle:{color:"rgba(65, 197, 95, 1)"},areaStyle:{color:new a(0,0,0,1,[{offset:0,color:"rgba(65, 197, 95, 0.4)"},{offset:1,color:"rgba(255,255,255, 0)"}],!1)},data:t.znhbl}]},o;const n=()=>{const e=d(l.value);return e.setOption(i),e};return f(()=>{o=n(),window.addEventListener("resize",function(){o&&o.resize()})}),(e,r)=>(y(),h("div",m,[g("div",{ref_key:"chartsRef",ref:l,class:"app-echarts"},null,512)]))}});const S=x(_,[["__scopeId","data-v-62744798"]]);export{S as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as c,r as e,o,c as r,a as l,b as t,w as _,j as i,V as p}from"./index.df7b46f6.js";const d={},m={class:"app-container"},f={class:"app-container-inner"};function u(v,x){const n=e("el-alert"),a=e("router-view");return o(),r("div",m,[l("div",f,[t(n,{title:"menu 1",closable:!1}),t(a,null,{default:_(({Component:s})=>[(o(),i(p(s)))]),_:1})])])}const w=c(d,[["render",u]]);export{w as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as t,r as n,o,c,b as s}from"./index.df7b46f6.js";const a={},r={style:{padding:"30px"}};function l(_,d){const e=n("el-alert");return o(),c("div",r,[s(e,{title:"menu 1-2-2",type:"warning",closable:!1})])}const p=t(a,[["render",l]]);export{p as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang.9e788c0b.js";import{g as s,r as _,o as a,c,b as e,w as n,e as r,_ as u}from"./index.df7b46f6.js";import"./index.df40fc31.js";const d={class:"echarts-map"},i=s({__name:"index",setup(p){return(m,l)=>{const t=_("el-card");return a(),c("div",d,[e(t,{class:"info"},{default:n(()=>[r("Echarts \u5B9E\u73B0\u98DE\u7EBF\u56FE\u3001\u5730\u56FE\u589E\u52A0\u56FE\u6807\u3001\u9AD8\u4EAE")]),_:1}),e(o,{height:"100%",width:"100%",id:"migration"})])}}});const h=u(i,[["__scopeId","data-v-e6411fd3"]]);export{h as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,o as s,c,a as n}from"./index.df7b46f6.js";const o={},t={class:"app-container"},a=n("div",{class:"app-container-inner"}," \u7B80\u6613\u7248\u672C\u5206\u652F\u5728 \uFF1Avue-admin-simple ",-1),r=[a];function _(i,d){return s(),c("div",t,r)}const l=e(o,[["render",_]]);export{l as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{i as r}from"./index.df40fc31.js";import{g as i,h as l,x as c,o as u,c as d,a as p,_ as f}from"./index.df7b46f6.js";const m={class:"app-container"},_=i({__name:"index",setup(h){const a=l();let s={color:["#03acd1","#04cab7","#03c781","#fce348","#fc2d8a","#0292fe"],title:{text:"\u7F51\u7EDC/\u5B89\u5168\u8BBE\u5907",textStyle:{fontSize:16},padding:0,top:35,left:"center"},tooltip:{show:!0,formatter:"{b}:{d}%"},legend:{orient:"vertical",icon:"circle",padding:0,bottom:"center",right:120,itemWidth:14,itemHeight:14,itemGap:21,textStyle:{fontSize:14}},series:[{name:"\u7F51\u7EDC\u5B89\u5168\u8BBE\u5907",type:"pie",center:["50%","50%"],top:"2%",left:"0%",radius:["0%","70%"],avoidLabelOverlap:!1,clockwise:!1,startAngle:160,roseType:"area",label:{show:!0,position:"outside",formatter:"{b}:{c}"},labelLine:{show:!0,length:30,length2:10,smooth:!0},itemStyle:{borderColor:"rgba(0,0,0,.1)",borderWidth:0},data:[{value:1048,name:"IDS"},{value:735,name:"VPN"},{value:580,name:"\u4EA4\u6362\u673A"},{value:484,name:"\u9632\u706B\u5899"},{value:300,name:" WAF"},{value:600,name:" \u5821\u5792\u673A"}].sort((e,o)=>o.value-e.value),emphasis:{scale:!0,scaleSize:10,itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},t;const n=()=>{const e=r(a.value);return e.setOption(s),e};return c(()=>{t=n(),window.addEventListener("resize",function(){t&&t.resize()})}),(e,o)=>(u(),d("div",m,[p("div",{ref_key:"chartsRef",ref:a,class:"app-echarts"},null,512)]))}});const y=f(_,[["__scopeId","data-v-22993628"]]);export{y as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as s,r as a,o as n,c as o,a as e,b as c}from"./index.df7b46f6.js";const r={},i={class:"app-container"},p={class:"app-container-inner"},_=e("div",{style:{"margin-bottom":"20px"}},"\u6B22\u8FCE\u5927\u5BB6\u52A0\u5FAE\u4FE1\u54C8\uFF0C\u5171\u540C\u8BA8\u8BBA\uFF0C\u5B66\u4E60",-1);function d(l,m){const t=a("el-image");return n(),o("div",i,[e("div",p,[_,c(t,{src:"http://182.61.5.190:8889/we.png","preview-src-list":["http://182.61.5.190:8889/we.png"],style:{"max-width":"200px"},"data-resid":Date.now()},null,8,["preview-src-list","data-resid"])])])}const x=s(r,[["render",d]]);export{x as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{C as c}from"./index.fbff8996.js";import{g as v,h as E,i as I,r as i,o as B,c as g,a as s,b as a,s as u,e as n,w as o,p as D,f as y,_ as A}from"./index.df7b46f6.js";const U=r=>(D("data-v-d0f116c6"),r=r(),y(),r),w={class:"app-container"},k={class:"app-container-inner"},N={style:{"margin-top":"40px","margin-bottom":"30px"}},S={class:"label"},R={class:"label"},T={class:"label"},h=U(()=>s("br",null,null,-1)),j={class:"label"},q={class:"label"},z={class:"label"},G={class:"label"},H=v({__name:"index",setup(r){const f=E();let l=I({startValInput:0,endValInput:9888,durationInput:2e3,decimals:1,prefix:"\u4EF7\u94B1\uFF1A",suffix:"\u5143",separator:","});const d=(b,e)=>{},C=()=>{f.value.start()},V=()=>{f.value.pauseResume()};return(b,e)=>{const m=i("el-input-number"),_=i("el-input"),F=i("el-button"),p=i("el-descriptions-item"),x=i("el-descriptions");return B(),g("div",w,[s("div",k,[a(c,{ref_key:"example",ref:f,class:"count-to","start-val":u(l).startValInput,"end-val":u(l).endValInput,duration:u(l).durationInput,decimals:u(l).decimals,prefix:u(l).prefix,suffix:u(l).suffix,autoplay:!0,separator:u(l).separator},null,8,["start-val","end-val","duration","decimals","prefix","suffix","separator"]),s("div",N,[s("label",S,[n("\u8D77\u59CB\u503C: "),a(m,{modelValue:u(l).startValInput,"onUpdate:modelValue":e[0]||(e[0]=t=>u(l).startValInput=t),onChange:e[1]||(e[1]=t=>d()),min:0,label:"\u63CF\u8FF0\u6587\u5B57"},null,8,["modelValue"])]),s("label",R,[n("\u6700\u7EC8\u503C: "),a(m,{modelValue:u(l).endValInput,"onUpdate:modelValue":e[2]||(e[2]=t=>u(l).endValInput=t),onChange:e[3]||(e[3]=t=>d()),min:1,label:"\u63CF\u8FF0\u6587\u5B57"},null,8,["modelValue"])]),s("label",T,[n("\u6301\u7EED\u65F6\u95F4: "),a(m,{modelValue:u(l).durationInput,"onUpdate:modelValue":e[4]||(e[4]=t=>u(l).durationInput=t),onChange:e[5]||(e[5]=t=>d()),min:1,label:"\u63CF\u8FF0\u6587\u5B57"},null,8,["modelValue"])]),h,s("label",j,[n("\u5C0F\u6570\u4F4D\u6570: "),a(m,{modelValue:u(l).decimals,"onUpdate:modelValue":e[6]||(e[6]=t=>u(l).decimals=t),onChange:e[7]||(e[7]=t=>d()),min:0,label:"\u63CF\u8FF0\u6587\u5B57"},null,8,["modelValue"])]),s("label",q,[n(" \u5206\u9694\u7B26:"),a(_,{modelValue:u(l).separator,"onUpdate:modelValue":e[8]||(e[8]=t=>u(l).separator=t),onChange:e[9]||(e[9]=t=>d()),style:{width:"100px","margin-left":"10px"}},null,8,["modelValue"])]),s("label",z,[n(" \u524D\u7F00:"),a(_,{modelValue:u(l).prefix,"onUpdate:modelValue":e[10]||(e[10]=t=>u(l).prefix=t),onChange:e[11]||(e[11]=t=>d()),style:{width:"100px","margin-left":"10px"}},null,8,["modelValue"])]),s("label",G,[n("\u540E\u7F00: "),a(_,{modelValue:u(l).suffix,"onUpdate:modelValue":e[12]||(e[12]=t=>u(l).suffix=t),onChange:e[13]||(e[13]=t=>d()),style:{width:"100px","margin-left":"10px"}},null,8,["modelValue"])]),a(F,{type:"primary",onClick:C},{default:o(()=>[n("\u5F00\u59CB")]),_:1}),a(F,{type:"danger",onClick:V},{default:o(()=>[n("\u6682\u505C/\u6062\u590D")]),_:1})]),a(x,{title:"\u914D\u7F6E\u9879 ",column:1,border:"",class:"descriptions"},{default:o(()=>[a(p,{label:"startValInput"},{default:o(()=>[n(" \u8D77\u59CB\u503C\uFF0C\u9ED8\u8BA4\u4E3A0 ")]),_:1}),a(p,{label:"endValInput"},{default:o(()=>[n(" \u6700\u7EC8\u503C\uFF0C\u9ED8\u8BA4\u4E3A2017 ")]),_:1}),a(p,{label:"durationInput"},{default:o(()=>[n(" \u6301\u7EED\u65F6\u95F4\uFF0C\u9ED8\u8BA4\u4E3A3000 ")]),_:1}),a(p,{label:"decimals"},{default:o(()=>[n(" \u5C0F\u6570\u4F4D\u6570 ")]),_:1}),a(p,{label:"separator"},{default:o(()=>[n(" \u5206\u9694\u7B26\uFF0C\u9ED8\u8BA4\u4E3A ',' ")]),_:1}),a(p,{label:"prefix"},{default:o(()=>[n(" \u524D\u7F00 ")]),_:1}),a(p,{label:"suffix"},{default:o(()=>[n(" \u540E\u7F00 ")]),_:1})]),_:1})])])}}});const L=A(H,[["__scopeId","data-v-d0f116c6"]]);export{L as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{g as t,r as e,o as u,j as _,w as f,a as n,b as s,bN as o,p,f as d,_ as m}from"./index.df7b46f6.js";const i=c=>(p("data-v-709f7efc"),c=c(),d(),c),r={class:"content-box"},x=i(()=>n("br",null,null,-1)),y=i(()=>n("div",{class:"icon-list"},[n("span",{class:"iconfont icon-dabaoyu"}),n("span",{class:"iconfont icon-yin"}),n("span",{class:"iconfont icon-dabaoyu"}),n("span",{class:"iconfont icon-shuaxin1"}),n("span",{class:"iconfont icon-shuaxin"}),n("span",{class:"iconfont icon-duoyun-2-copy"}),n("span",{class:"iconfont icon-duoyun-1"}),n("span",{class:"iconfont icon-daxue"}),n("span",{class:"iconfont icon-dayu"}),n("span",{class:"iconfont icon-feng"})],-1)),h={class:"icon-list"},g=t({name:"svgIcon"}),v=t({...g,setup(c){return(b,F)=>{const a=e("el-alert"),l=e("u-container-layout");return u(),_(l,{class:"components-container"},{default:f(()=>[n("div",r,[s(a,{title:"\u666E\u901A\u5F15\u5165\u65B9\u5F0F Font Class",type:"warning",closable:!1}),x,y,s(a,{title:"Symbol \u7684\u65B9\u5F0F\u6E32\u67D3\u56FE\u6807 \u652F\u6301\u591A\u8272",type:"warning",closable:!1}),n("div",h,[s(o,{"icon-class":"feng","class-name":"iconfont"}),s(o,{"icon-class":"zhongxue","class-name":"iconfont"}),s(o,{"icon-class":"yangchen","class-name":"iconfont"}),s(o,{"icon-class":"yujiaxue","class-name":"iconfont"}),s(o,{"icon-class":"qing","class-name":"iconfont"}),s(o,{"icon-class":"mai","class-name":"iconfont"}),s(o,{"icon-class":"wu","class-name":"iconfont"}),s(o,{"icon-class":"xiaoyu","class-name":"iconfont"}),s(o,{"icon-class":"xiaoxue","class-name":"iconfont"}),s(o,{"icon-class":"shandian","class-name":"iconfont"}),s(o,{"icon-class":"xue","class-name":"iconfont"})])])]),_:1})}}});const I=m(v,[["__scopeId","data-v-709f7efc"]]);export{I as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{a as A}from"./exprotExcel.12bb2095.js";import{g as B,h,r as a,o as t,c as o,a as b,b as n,w as u,e as C,F as i,D as x,j as p,_ as V}from"./index.df7b46f6.js";import"./exceljs.min.71bead6c.js";const N={class:"app-container"},z={class:"header"},j={class:"footer"},H=B({__name:"index",setup(I){const d=[];for(let l=0;l<10;l++)d.push({date:"2016-05-02",name:"\u738B\u4E94"+l,price:1+l,province:"\u4E0A\u6D77",admin:"admin",sex:l%2?1:0,checked:!0,id:l+1,age:0,city:"\u666E\u9640\u533A",address:"\u4E0A\u6D77\u5E02\u666E\u4E0A\u6D77",zip:200333});const _=[{name:"id",width:60,label:"\u5E8F\u53F7"},{name:"date",label:"\u65E5\u671F"},{name:"address",label:"\u5730\u5740"},{label:"\u914D\u9001\u4FE1\u606F",children:[{name:"province",label:"\u7701\u4EFD",width:130},{name:"city",label:"\u57CE\u5E02"},{name:"zip",label:"\u90AE\u7F16"}]}],c=h(""),E=h(d),w=()=>{A({column:_,data:d,filename:c.value||"\u5BFC\u51FA excel",autoWidth:!0})};return(l,m)=>{const f=a("el-input"),F=a("Download"),v=a("el-icon"),y=a("el-button"),s=a("el-table-column"),k=a("el-table");return t(),o("div",N,[b("div",z,[n(f,{modelValue:c.value,"onUpdate:modelValue":m[0]||(m[0]=e=>c.value=e),placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D",style:{width:"200px","margin-right":"10px"}},null,8,["modelValue"]),n(y,{onClick:w,type:"primary"},{default:u(()=>[n(v,{style:{"margin-right":"6px"}},{default:u(()=>[n(F)]),_:1}),C("\u5BFC\u51FA Excel ")]),_:1})]),b("div",j,[n(k,{data:E.value,style:{width:"100%"},border:""},{default:u(()=>[(t(),o(i,null,x(_,(e,D)=>(t(),o(i,{key:D},[e.children?(t(),p(s,{key:0,prop:e.name,label:e.label,width:e.width},{default:u(()=>[(t(!0),o(i,null,x(e.children,(r,g)=>(t(),p(s,{key:g,prop:r.name,label:r.label,width:r.width},null,8,["prop","label","width"]))),128))]),_:2},1032,["prop","label","width"])):(t(),p(s,{key:1,prop:e.name,label:e.label,width:e.width},null,8,["prop","label","width"]))],64))),64))]),_:1},8,["data"])])])}}});const U=V(H,[["__scopeId","data-v-ed38f37e"]]);export{U as default};
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
import{g as k,h as g,x as M,P as N,r as a,o as U,c as P,b as e,w as t,s as x,bM as j,a as E,F as z,N as L,i as w,j as I,e as C}from"./index.df7b46f6.js";const O=["src"],S=k({__name:"Upload",props:{modelValue:Array},emits:["update:modelValue"],setup(b,{emit:D}){const p=b;let l=g([]);const F=g(""),c=g(!1),V=(n,r)=>{console.log(n,r)},d=(n,r)=>new Promise((i,_)=>{var m=new FileReader;let s=/\.jpg$|\.jpeg$|\.gif$|\.png$/i;m.readAsDataURL(n);let f=n.name;s.test(f)?m.onload=B=>{l.value.push({name:f,url:B.target.result}),D("update:modelValue",l.value),i(B.target.result)}:(L.error("\u8BF7\u4E0A\u4F20\u56FE\u7247"),_())}),u=n=>{F.value=n.url,c.value=!0};return M(()=>{N(()=>p.modelValue,n=>{l.value=n})}),(n,r)=>{const i=a("el-icon"),_=a("el-upload"),m=a("el-dialog");return U(),P(z,null,[e(_,{action:"","before-upload":d,"list-type":"picture-card","on-preview":u,"on-remove":V,"file-list":x(l)},{default:t(()=>[e(i,null,{default:t(()=>[e(x(j))]),_:1})]),_:1},8,["file-list"]),e(m,{modelValue:c.value,"onUpdate:modelValue":r[0]||(r[0]=s=>c.value=s),width:"80%",top:"80px"},{default:t(()=>[E("img",{"w-full":"",src:F.value,alt:"\u9884\u89C8\u56FE\u7247",style:{width:"100%"}},null,8,O)]),_:1},8,["modelValue"])],64)}}}),T={style:{"max-width":"800px"}},G=E("span",{class:"text-gray-500"},"-",-1),J=k({__name:"index",setup(b){const D=g("default"),p=g(),l=w({name:"\u8DD1\u6B65",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:"",img:[]}),F=w({name:[{required:!0,message:"\u8BF7\u8F93\u5165\u6D3B\u52A8\u540D\u79F0\u6D3B\u52A8\u533A\u57DF",trigger:"blur"},{min:3,max:5,message:"\u957F\u5EA6\u5728 3 \u5230 5 \u4E2A\u5B57\u7B26",trigger:"blur"}],img:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u56FE\u7247",trigger:"blur"}],region:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D3B\u52A8\u533A\u57DF",trigger:"change"}],date1:[{type:"date",required:!0,message:"\u8BF7\u9009\u62E9\u65F6\u95F4",trigger:"change"}],date2:[{type:"date",required:!0,message:"\u8BF7\u9009\u62E9\u65F6\u95F4",trigger:"change"}],type:[{type:"array",required:!0,message:"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u6D3B\u52A8\u6027\u8D28",trigger:"change"}],resource:[{required:!0,message:`\u8BF7\u9009\u62E9\u6D3B\u52A8\u8D44\u6E90
|
||||
`,trigger:"change"}],desc:[{required:!0,message:"\u8BF7\u586B\u5199\u6D3B\u52A8\u5F62\u5F0F",trigger:"blur"}]}),c=async d=>{console.log("--FORM---",l),d&&await d.validate((u,n)=>{u?console.log("submit!"):console.log("error submit!",n)})},V=d=>{!d||d.resetFields()};return(d,u)=>{const n=a("el-input"),r=a("el-form-item"),i=a("el-option"),_=a("el-select"),m=a("el-date-picker"),s=a("el-col"),f=a("el-time-picker"),B=a("el-switch"),A=a("el-checkbox"),q=a("el-checkbox-group"),y=a("el-radio"),$=a("el-radio-group"),v=a("el-button"),h=a("el-form"),R=a("u-container-layout");return U(),I(R,null,{default:t(()=>[E("div",T,[e(h,{ref_key:"ruleFormRef",ref:p,model:l,rules:F,"label-width":"120px",class:"demo-ruleForm",size:D.value},{default:t(()=>[e(r,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"},{default:t(()=>[e(n,{modelValue:l.name,"onUpdate:modelValue":u[0]||(u[0]=o=>l.name=o)},null,8,["modelValue"])]),_:1}),e(r,{label:"\u6D3B\u52A8\u533A\u57DF",prop:"region"},{default:t(()=>[e(_,{modelValue:l.region,"onUpdate:modelValue":u[1]||(u[1]=o=>l.region=o),placeholder:"\u6D3B\u52A8\u533A\u57DF"},{default:t(()=>[e(i,{label:"\u533A\u57DF1",value:"\u4E0A\u6D77"}),e(i,{label:"\u533A\u57DF2",value:"\u5317\u4EAC"})]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u5373\u65F6\u914D\u9001",required:""},{default:t(()=>[e(s,{span:11},{default:t(()=>[e(r,{prop:"date1"},{default:t(()=>[e(m,{modelValue:l.date1,"onUpdate:modelValue":u[2]||(u[2]=o=>l.date1=o),type:"date",placeholder:"\u9009\u62E9\u65F6\u95F4",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{class:"text-center",span:2,style:{"text-align":"center"}},{default:t(()=>[G]),_:1}),e(s,{span:11},{default:t(()=>[e(r,{prop:"date2"},{default:t(()=>[e(f,{modelValue:l.date2,"onUpdate:modelValue":u[3]||(u[3]=o=>l.date2=o),placeholder:"\u9009\u62E9\u65F6\u95F4",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(r,{label:"\u5373\u65F6\u914D\u9001",prop:"delivery"},{default:t(()=>[e(B,{modelValue:l.delivery,"onUpdate:modelValue":u[4]||(u[4]=o=>l.delivery=o)},null,8,["modelValue"])]),_:1}),e(r,{label:"\u6D3B\u52A8\u6027\u8D28",prop:"type"},{default:t(()=>[e(q,{modelValue:l.type,"onUpdate:modelValue":u[5]||(u[5]=o=>l.type=o)},{default:t(()=>[e(A,{label:"\u7F8E\u98DF/\u9910\u5385\u7EBF\u4E0A\u6D3B\u52A8",name:"type"}),e(A,{label:"\u5730\u63A8\u6D3B\u52A8",name:"type"}),e(A,{label:"\u7EBF\u4E0B\u4E3B\u9898\u6D3B\u52A8",name:"type"}),e(A,{label:"\u5355\u7EAF\u54C1\u724C\u66DD\u5149",name:"type"})]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u7279\u6B8A\u8D44\u6E90",prop:"resource"},{default:t(()=>[e($,{modelValue:l.resource,"onUpdate:modelValue":u[6]||(u[6]=o=>l.resource=o)},{default:t(()=>[e(y,{label:"\u7EBF\u4E0A\u54C1\u724C\u5546\u8D5E\u52A9"}),e(y,{label:"\u7EBF\u4E0B\u573A\u5730\u514D\u8D39"})]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u4E0A\u4F20\u56FE\u7247",prop:"img"},{default:t(()=>[e(S,{modelValue:l.img,"onUpdate:modelValue":u[7]||(u[7]=o=>l.img=o)},null,8,["modelValue"])]),_:1}),e(r,{label:"\u5907\u6CE8",prop:"desc"},{default:t(()=>[e(n,{modelValue:l.desc,"onUpdate:modelValue":u[8]||(u[8]=o=>l.desc=o),type:"textarea"},null,8,["modelValue"])]),_:1}),e(r,null,{default:t(()=>[e(v,{type:"primary",onClick:u[9]||(u[9]=o=>c(p.value))},{default:t(()=>[C("\u7ACB\u5373\u521B\u5EFA")]),_:1}),e(v,{onClick:u[10]||(u[10]=o=>V(p.value))},{default:t(()=>[C("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model","rules","size"])])]),_:1})}}});export{J as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{g as R,h as i,x as P,P as M,r,o as h,c as F,b as t,w as l,s as C,bM as N,a as v,F as L,N as U,q as S,D,Y as I,e as j,p as T,f as q,_ as Y}from"./index.df7b46f6.js";const z=["src"],G=R({__name:"index",props:{modelValue:Array,multiple:{type:Boolean,default:!0},listType:{type:String,default:"picture-card"},showFileList:{type:Boolean,default:!0}},emits:["update"],setup(d,{emit:y}){const w=d;let f=i([]);const g=i(""),p=i(!1),$=(a,_)=>{console.log(a,_)},b=(a,_)=>new Promise((e,c)=>{var o=new FileReader;let u=/\.jpg$|\.jpeg$|\.gif$|\.png$/i;o.readAsDataURL(a);let s=a.name;u.test(s)?o.onload=n=>{f.value.push({name:s,url:n.target.result}),y("update",f.value),e(n.target.result)}:(U.error("\u8BF7\u4E0A\u4F20\u56FE\u7247"),c())}),B=a=>{g.value=a.url,p.value=!0};return P(()=>{M(()=>w.modelValue,a=>{f.value=a},{immediate:!0})}),(a,_)=>{const e=r("el-icon"),c=r("el-upload"),o=r("el-dialog");return h(),F(L,null,[t(c,{action:"","before-upload":b,"list-type":d.listType,multiple:d.multiple,"on-preview":B,"on-remove":$,"file-list":C(f)},{default:l(()=>[t(e,null,{default:l(()=>[t(C(N))]),_:1})]),_:1},8,["list-type","multiple","file-list"]),t(o,{modelValue:p.value,"onUpdate:modelValue":_[0]||(_[0]=u=>p.value=u),width:"50%",top:"80px"},{default:l(()=>[v("img",{"w-full":"",src:g.value,alt:"\u9884\u89C8\u56FE\u7247",style:{width:"100%"}},null,8,z)]),_:1},8,["modelValue"])],64)}}}),E=d=>(T("data-v-9665cd80"),d=d(),q(),d),H={class:"app-container"},J=E(()=>v("span",null,"\u6309\u94AE\u4E0A\u4F20",-1)),K={class:"demo-image__preview"},O={class:"upload-list"},Q=E(()=>v("span",null,"\u591A\u56FE\u7247\u4E0A\u4F20",-1)),W=E(()=>v("span",null,"\u62D6\u62FD\u4E0A\u4F20",-1)),X={class:"upload-list"},Z=E(()=>v("div",{class:"el-upload__text"},[j(" \u62D6\u62FD\u4E0A\u4F20 "),v("em",null,"\u6216\u8005\u70B9\u51FB\u4E0A\u4F20")],-1)),ee=R({__name:"index",setup(d){const y=i([{url:S,name:"female.png",uid:"1651408956803",status:"success"}]);i([]);const w=i(0),f=i(0),g=i([]),p=i([]),$=e=>{console.log("valll======",e)},b=e=>{w.value=e},B=e=>{w.value=e},a=(e,c)=>new Promise((o,u)=>{var s=new FileReader;let n=/\.jpg$|\.jpeg$|\.gif$|\.png$/i;s.readAsDataURL(e);let x=e.name;n.test(x)?s.onload=m=>{g.value.push(m.target.result),o(m.target.result)}:(U.error("\u8BF7\u4E0A\u4F20\u56FE\u7247"),u())}),_=(e,c)=>new Promise((o,u)=>{var s=new FileReader;let n=/\.jpg$|\.jpeg$|\.gif$|\.png$/i;s.readAsDataURL(e);let x=e.name;n.test(x)?s.onload=m=>{p.value.push(m.target.result),o(m.target.result)}:(U.error("\u8BF7\u4E0A\u4F20\u56FE\u7247"),u())});return(e,c)=>{const o=r("el-image"),u=r("el-button"),s=r("el-upload"),n=r("el-card"),x=r("upload-filled"),m=r("el-icon");return h(),F("div",H,[t(n,{style:{"margin-bottom":"10px"}},{header:l(()=>[J]),default:l(()=>[v("div",K,[(h(!0),F(L,null,D(g.value,(A,V)=>(h(),F("div",O,[t(o,{onClick:I(k=>b(V),["stop"]),style:{width:"100%",height:"100%"},src:A,"preview-src-list":g.value,"initial-index":w.value,fit:"cover"},null,8,["onClick","src","preview-src-list","initial-index"])]))),256))]),t(s,{action:"/",multiple:"","before-upload":a},{default:l(()=>[t(u,{type:"primary"},{default:l(()=>[j("\u70B9\u51FB\u4E0A\u4F20")]),_:1})]),_:1})]),_:1}),t(n,{style:{"margin-bottom":"10px"}},{header:l(()=>[Q]),default:l(()=>[t(G,{onUpdate:$,modelValue:y.value,"onUpdate:modelValue":c[0]||(c[0]=A=>y.value=A)},null,8,["modelValue"])]),_:1}),t(n,null,{header:l(()=>[W]),default:l(()=>[(h(!0),F(L,null,D(p.value,(A,V)=>(h(),F("div",X,[t(o,{onClick:I(k=>B(V),["stop"]),style:{width:"100%",height:"100%"},src:A,"preview-src-list":p.value,"initial-index":f.value,fit:"cover"},null,8,["onClick","src","preview-src-list","initial-index"])]))),256)),t(s,{class:"upload-demo",drag:"","before-upload":_,action:"/",multiple:""},{default:l(()=>[t(m,{class:"el-icon--upload"},{default:l(()=>[t(x)]),_:1}),Z]),_:1})]),_:1})])}}});const le=Y(ee,[["__scopeId","data-v-9665cd80"]]);export{le as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{g as y,h as m,u as N,i as w,r as t,o as x,j as T,w as s,b as e,k as F,a as n,e as q,l as E,E as K,m as L,_ as B,c as P,n as R,p as A,f as D,q as G}from"./index.df7b46f6.js";const j="/vue-admin-perfect/assets/side-logo.74a8e9c4.png",z=y({__name:"LoginForm",setup(u){const r=m(),f=E(),h=N(),i=m("password"),c=m(!1),V=w({password:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",trigger:"blur"}],username:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801",trigger:"blur"}]}),a=w({username:"vue-admin-perfect",password:"123456"}),C=()=>{i.value==="password"?i.value="":i.value="password"},_=d=>{!d||d.validate(o=>{if(o)c.value=!0,setTimeout(async()=>{await h.login(a),await f.push({path:"/"}),K({title:L(),message:"\u6B22\u8FCE\u767B\u5F55 Vue Admin Perfect",type:"success",duration:3e3}),c.value=!0},1e3);else return console.log("error submit!"),!1})};return(d,o)=>{const k=t("UserFilled"),v=t("el-icon"),g=t("el-input"),p=t("el-form-item"),S=t("GoodsFilled"),U=t("svg-icon"),I=t("el-button"),$=t("el-form");return x(),T($,{ref_key:"ruleFormRef",ref:r,model:a,rules:V,"label-width":"0"},{default:s(()=>[e(p,{label:"",prop:"username"},{default:s(()=>[e(g,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",autoComplete:"on",style:{position:"relative"},modelValue:a.username,"onUpdate:modelValue":o[0]||(o[0]=l=>a.username=l),onKeyup:o[1]||(o[1]=F(l=>_(r.value),["enter","native"]))},{prefix:s(()=>[e(v,{class:"el-input__icon"},{default:s(()=>[e(k)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"",prop:"password"},{default:s(()=>[e(g,{placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",autoComplete:"on",onKeyup:o[2]||(o[2]=F(l=>_(r.value),["enter","native"])),modelValue:a.password,"onUpdate:modelValue":o[3]||(o[3]=l=>a.password=l),type:i.value},{prefix:s(()=>[e(v,{class:"el-input__icon"},{default:s(()=>[e(S)]),_:1})]),suffix:s(()=>[n("div",{class:"show-pwd",onClick:C},[e(U,{"icon-class":i.value==="password"?"eye":"eye-open"},null,8,["icon-class"])])]),_:1},8,["modelValue","type"])]),_:1}),e(p,{style:{width:"100%"}},{default:s(()=>[e(I,{loading:c.value,class:"login-btn",type:"primary",onClick:o[4]||(o[4]=l=>_(r.value))},{default:s(()=>[q("\u767B\u5F55")]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","rules"])}}});const H=B(z,[["__scopeId","data-v-e5f5cc0c"]]),b=u=>(A("data-v-0ae0f47c"),u=u(),D(),u),J={class:"login-container"},M={class:"login-box"},O=b(()=>n("div",{class:"login-left"},[n("img",{src:j})],-1)),Q={class:"login-form"},W=b(()=>n("div",{class:"login-title"},[n("img",{class:"icon",src:G,alt:"logo"}),n("h2",{class:"title"},"Vue-Admin-Perfect")],-1)),X=y({__name:"index",setup(u){return(r,f)=>(x(),P("div",J,[n("div",M,[e(R,{class:"login-dark"}),O,n("div",Q,[W,e(H)])])]))}});const Z=B(X,[["__scopeId","data-v-0ae0f47c"]]);export{Z as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as t,r as n,o,c,b as s}from"./index.df7b46f6.js";const a={},r={style:{padding:"30px"}};function l(_,d){const e=n("el-alert");return o(),c("div",r,[s(e,{title:"menu 1-2-1",type:"warning",closable:!1})])}const p=t(a,[["render",l]]);export{p as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
.upload-list[data-v-9665cd80]{overflow:hidden;background-color:#fff;border:1px solid #c0ccda;border-radius:6px;box-sizing:border-box;margin:0 8px 8px 0;padding:0;width:146px;height:146px;display:inline-flex}
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{g as v,h as _,i as E,bO as n,r as B,o as V,c as C,a,b as e,w as t,e as g,s as A,bP as y,p as w,f as x,bQ as D,bR as k,bS as U,bT as q,bU as I,bV as T,_ as S}from"./index.df7b46f6.js";const i=s=>(w("data-v-9e34b3bc"),s=s(),x(),s),H={class:"app-container"},M={class:"app-container-inner"},N=["innerHTML"],R=i(()=>a("div",null,"\u9A8C\u8BC1\u8EAB\u4EFD\u8BC1\u662F\u5426\u6B63\u786E",-1)),L=i(()=>a("div",null,"\u9A8C\u8BC1url\u662F\u5426\u6B63\u786E\u3002",-1)),P=i(()=>a("div",null,"\u662F\u5426\u662Fhtml\u6807\u7B7E",-1)),K=i(()=>a("div",null,"\u662F\u5426\u662F\u6B63\u786E\u7684\u65E5\u671F",-1)),O=i(()=>a("div",null,"\u662F\u5426\u662F\u6B63\u786E\u7684\u90AE\u7BB1",-1)),Q=v({__name:"index",setup(s){const c=_();let m="\u53EA\u8981\u81EA\u5DF1\u4E0D\u653E\u5F03\uFF0C\u6CA1\u6709\u4EFB\u4F55\u4EBA\u53EF\u4EE5\u6253\u5012\u4F60",p=_(m);const u=E({phone:"",keyword:"",percent:"",idCard:null,website:null,html:null,date:null,email:null}),f=E({phone:[{required:!0,validator:n(D,"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"),trigger:["blur","change"]}],idCard:[{required:!0,validator:n(k,"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1"),trigger:["blur","change"]}],website:[{required:!0,validator:n(U,"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7F51\u5740"),trigger:["blur","change"]}],html:[{required:!0,validator:n(q,"\u8BF7\u8F93\u5165\u6B63\u786E\u7684html\u6807\u7B7E"),trigger:["blur","change"]}],date:[{required:!0,validator:n(I,"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u65E5\u671F"),trigger:["blur","change"]}],email:[{required:!0,validator:n(T,"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1"),trigger:["blur","change"]}]}),b=F=>{F?p.value=y(F,m):p.value=m};return(F,l)=>{const r=B("el-input"),d=B("el-form-item"),h=B("el-form");return V(),C("div",H,[a("div",M,[e(h,{ref_key:"ruleFormRef",ref:c,model:u,rules:f,"label-width":"120px","status-icon":"","label-position":"top"},{default:t(()=>[e(d,{label:"\u624B\u673A\u53F7\u7801",prop:"phone"},{default:t(()=>[e(r,{modelValue:u.phone,"onUpdate:modelValue":l[0]||(l[0]=o=>u.phone=o),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u5339\u914D\u6587\u5B57\u53D8\u8272\uFF08\u641C\u7D22\u65F6\uFF09",prop:"keyword",class:"item-form"},{default:t(()=>[a("div",null,[g("\u793A\u4F8B\uFF1A"),a("span",{innerHTML:A(p)},null,8,N)]),e(r,{modelValue:u.keyword,"onUpdate:modelValue":l[1]||(l[1]=o=>u.keyword=o),placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57",onInput:b},null,8,["modelValue"])]),_:1}),e(d,{label:"\u8EAB\u4EFD\u8BC1",prop:"idCard",class:"item-form"},{default:t(()=>[R,e(r,{modelValue:u.idCard,"onUpdate:modelValue":l[2]||(l[2]=o=>u.idCard=o),placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u7F51\u5740",prop:"website",class:"item-form"},{default:t(()=>[L,e(r,{modelValue:u.website,"onUpdate:modelValue":l[3]||(l[3]=o=>u.website=o),placeholder:"\u8BF7\u8F93\u5165url"},null,8,["modelValue"])]),_:1}),e(d,{label:"html\u6807\u7B7E",prop:"html",class:"item-form"},{default:t(()=>[P,e(r,{modelValue:u.html,"onUpdate:modelValue":l[4]||(l[4]=o=>u.html=o),placeholder:"\u8BF7\u8F93\u5165html\u6807\u7B7E"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u65E5\u671F",prop:"date",class:"item-form"},{default:t(()=>[K,e(r,{modelValue:u.date,"onUpdate:modelValue":l[5]||(l[5]=o=>u.date=o),placeholder:"\u8BF7\u8F93\u5165\u65E5\u671F"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u90AE\u7BB1",prop:"email",class:"item-form"},{default:t(()=>[O,e(r,{modelValue:u.email,"onUpdate:modelValue":l[6]||(l[6]=o=>u.email=o),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])])}}});const j=S(Q,[["__scopeId","data-v-9e34b3bc"]]);export{j as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{g as F,h as y,i as W,r as o,o as r,c as k,b as l,w as e,y as U,F as Y,D as M,G as j,j as B,H as O,I as z,a as h,e as f,t as G,_ as E,s as x,N as J,p as L,f as T}from"./index.df7b46f6.js";const q={class:"advancedForm"},K={class:"search-btn"},P=F({__name:"index",props:{labelWidth:{default:"100px"},gutterWidth:{type:Number,default:24},showRow:{type:Number,default:1},columns:{type:Array,default:()=>[]},byHeight:{type:Boolean,default:!1}},emits:["submit","reset"],setup(a,{emit:i}){const v=a,m=y(),u=y(!1),n=W({});for(let s of v.columns)n[s.name]=null;const d=()=>{i("submit",n)},p=s=>{if(console.log("formEl",s),!s)return;s.resetFields(),Object.keys(n).forEach(_=>{n[_]=null}),i("reset",n)};return(s,c)=>{const _=o("el-input"),g=o("el-form-item"),A=o("el-date-picker"),N=o("el-col"),S=o("el-row"),D=o("el-form"),b=o("el-button"),R=o("arrow-down"),$=o("arrow-up"),I=o("el-icon");return r(),k("div",q,[l(D,{ref_key:"ruleFormRef",ref:m,inline:!0,"label-position":"right",model:n,class:"form-inline"},{default:e(()=>[l(S,{class:U({"not-show":a.byHeight&&!u.value}),gutter:a.gutterWidth},{default:e(()=>[(r(!0),k(Y,null,M(a.columns,(t,H)=>j((r(),B(N,{span:t.span,key:t.name},{default:e(()=>[t.type==="input"?(r(),B(g,{key:0,label:t.title,"label-width":a.labelWidth},{default:e(()=>[l(_,{clearable:"",modelValue:n[t.name],"onUpdate:modelValue":w=>n[t.name]=w,placeholder:t.placeholder},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label","label-width"])):t.type==="date"?(r(),B(g,{key:1,label:t.title,"label-width":a.labelWidth},{default:e(()=>[l(A,{"value-format":"YYYY-MM-DD",modelValue:n[t.name],"onUpdate:modelValue":w=>n[t.name]=w,type:"date",placeholder:t.placeholder},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label","label-width"])):O("",!0)]),_:2},1032,["span"])),[[z,a.byHeight?!0:H<a.showRow*3||u.value]])),128))]),_:1},8,["class","gutter"])]),_:1},8,["model"]),h("div",K,[l(b,{type:"primary",onClick:d},{default:e(()=>[f("\u67E5\u8BE2")]),_:1}),l(b,{onClick:c[0]||(c[0]=t=>p(m.value))},{default:e(()=>[f("\u91CD\u7F6E")]),_:1}),l(b,{link:"",type:"primary",onClick:c[1]||(c[1]=t=>u.value=!u.value)},{default:e(()=>[f(G(u.value?"\u5408\u5E76":"\u5C55\u5F00"),1),l(I,null,{default:e(()=>[u.value?(r(),B($,{key:1})):(r(),B(R,{key:0}))]),_:1})]),_:1})])])}}});const C=E(P,[["__scopeId","data-v-b96f41c8"]]),V=a=>(L("data-v-2f2ee3c6"),a=a(),T(),a),Q={class:"advancedForm"},X={class:"card-header"},Z=V(()=>h("span",{style:{"margin-right":"100px"}},"\u6536\u7F29\u8868\u5355 \u901A\u8FC7v-show\u6765\u63A7\u5236\u663E\u9690\u85CF",-1)),ee=V(()=>h("div",{class:"card-header"},[h("span",null,"\u6536\u7F29\u8868\u5355 \u901A\u8FC7\u9AD8\u5EA6\u6765\u63A7\u5236\u663E\u9690\u85CF")],-1)),te=F({__name:"index",setup(a){let i=[{type:"input",name:"name1",title:"\u5B57\u6BB51",placeholder:"\u5B57\u6BB51",span:8},{type:"date",name:"name2",title:"\u5B57\u6BB52",placeholder:"\u5B57\u6BB52",span:8},{type:"input",name:"name3",title:"\u5B57\u6BB53",placeholder:"\u5B57\u6BB53",span:8},{type:"input",name:"name4",title:"\u5B57\u6BB54",placeholder:"\u5B57\u6BB54",span:8},{type:"input",name:"name5",title:"\u5B57\u6BB55",placeholder:"\u5B57\u6BB55",span:8},{type:"input",name:"name6",title:"\u5B57\u6BB56",placeholder:"\u5B57\u6BB56",span:8},{type:"input",name:"name7",title:"\u5B57\u6BB57",placeholder:"\u5B57\u6BB57",span:8},{type:"input",name:"name8",title:"\u5B57\u6BB58",placeholder:"\u5B57\u6BB58",span:8},{type:"input",name:"name9",title:"\u5B57\u6BB59",placeholder:"\u5B57\u6BB59",span:8}];const v=y({}),m=y(1),u=d=>{v.value=d,J.success(JSON.stringify(d))},n=d=>{m.value=d};return(d,p)=>{const s=o("el-button"),c=o("el-card");return r(),k("div",Q,[l(c,{class:"box-card"},{header:e(()=>[h("div",X,[Z,l(s,{onClick:p[0]||(p[0]=_=>n(2)),type:"primary",link:""},{default:e(()=>[f("\u663E\u793A\u4E24\u884C")]),_:1}),l(s,{onClick:p[1]||(p[1]=_=>n(1)),type:"primary",link:""},{default:e(()=>[f("\u663E\u793A\u4E00\u884C")]),_:1})])]),default:e(()=>[l(C,{columns:x(i),onSubmit:u,showRow:m.value},null,8,["columns","showRow"])]),_:1}),l(c,{class:"box-card",style:{"margin-top":"20px"}},{header:e(()=>[ee]),default:e(()=>[l(C,{columns:x(i),onSubmit:u,byHeight:!0},null,8,["columns"])]),_:1})])}}});const ae=E(te,[["__scopeId","data-v-2f2ee3c6"]]);export{ae as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as g,o as s,c as r,F as w,D as v,Y as _,t as x,z as b,H as C,g as k,h as p,l as S,r as d,j as E,w as h,b as f,e as F}from"./index.df7b46f6.js";const N={props:{data:{type:Array,default:()=>[]},left:{type:Number,default:0},type:{type:Number,default:1},dataInfo:{type:Object,default:()=>{}},top:{type:Number,default:0},isViewInfo:{type:Boolean,default:!0}},watch:{left:{handler(e,t){e&&(this.isShow=!0)}}},computed:{style(){let e=document.body.clientHeight,t=this.top;return e-t<100?`left:${this.left}px;bottom:${e-t}px`:`left:${this.left}px;top:${this.top}px`}},data(){return{isShow:!1}},methods:{operatingRightAction(e,t){this.$emit("ok",e,t),this.isShow=!1}},mounted(){let e=this;window.addEventListener("click",function(){e.isShow=!1}),window.addEventListener("mousedown",function(t){t.which===3&&(e.isShow=!1)})}};const $=["onClick"];function A(e,t,a,c,i,l){return i.isShow?(s(),r("div",{key:0,class:"g-right-click-menu",style:b(l.style),ref:"rightMenu"},[(s(!0),r(w,null,v(a.data,(u,o)=>(s(),r("div",{key:o,class:"operating",onClick:_(n=>l.operatingRightAction(n,u),["stop"])},x(u.label),9,$))),128))],4)):C("",!0)}const D=g(N,[["render",A],["__scopeId","data-v-f9c1d2d8"]]),R=k({__name:"index",setup(e){const t=p(0),a=p(0),c=[{label:"\u6253\u5370",value:1,path:"/other/print"},{label:"\u5934\u50CF\u88C1\u526A",value:2,path:"/other/cropper"},{label:"\u5361\u7247\u62D6\u62FD",value:3,path:"/other/grid-sorter"},{label:"\u5206\u5272\u6A21\u5757",value:4,path:"/other/splitpane"},{label:"\u751F\u6210\u4E8C\u7EF4\u7801",value:5,path:"/other/qrcode"}],i=o=>{t.value=o.clientX,a.value=o.clientY},l=S(),u=(o,n)=>{console.log("\u83B7\u53D6\u6570\u636E",n),l.push({path:n.path})};return(o,n)=>{const m=d("el-button"),y=d("u-container-layout");return s(),E(y,{style:{"min-height":"300px"}},{default:h(()=>[f(m,{onContextmenu:_(i,["prevent"]),style:{width:"200px"}},{default:h(()=>[F("\u53F3\u952E\u83DC\u5355")]),_:1},8,["onContextmenu"]),f(D,{left:t.value,top:a.value,onOk:u,data:c},null,8,["left","top"])]),_:1})}}});export{R as default};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import{g as v,h as b,x as D,L as y,r as E,o as h,c as w,b as t,w as u,e as l,bL as k}from"./index.df7b46f6.js";function C(_){const{container:d=document.body,width:c="240",height:n="100",textAlign:f="left",textBaseline:F="bottom",font:s="16px Microsoft Yahei",fillStyle:o="#000",content:e="Vue Admin Perfect",globalAlpha:r=.3,rotate:p=16,zIndex:a=1e3,isCancel:B=!0}=_,i=document.createElement("canvas");i.setAttribute("width",c),i.setAttribute("height",n);const m=i.getContext("2d");m.globalAlpha=r,m.textAlign=f,m.textBaseline=F,m.font=s,m.fillStyle=o,m.rotate(Math.PI*p/180),m.fillText(e,50,50);const x=i.toDataURL(),A=document.querySelector(".__wm")||document.createElement("div"),g=`
|
||||
position:absolute;
|
||||
top:0px;
|
||||
left:0px;
|
||||
width:100%;
|
||||
height:100%;
|
||||
z-index:${a};
|
||||
pointer-events:none;
|
||||
background-repeat:repeat;
|
||||
background-image:url('${x}')`;A.setAttribute("style",g),A.classList.add("__wm"),d.style.position="relative",d.appendChild(A)}const S={class:"m-water-marker"},M=v({__name:"index",setup(_){const d=b(.2);let c=b(-1);const n={rotate:-10,globalAlpha:d.value};function f(o,e){const r=e-o,p=Math.random();return(o+r*p).toFixed(0)}const F=["red"];for(let o=0;o<30;o++)F.push(k());const s=o=>{switch(o){case-1:c.value=o,n.container=document.getElementsByClassName("m-water-marker")[0],C(n);return;case 0:c.value=o,delete n.container,C(n);return;case 1:n.fillStyle="#000",C(n);return;case 2:n.fillStyle=F[f(0,30)],C(n);return;case 3:n.globalAlpha=d.value,C(n);return;case 4:y(()=>{const e=document.getElementsByClassName("__wm")[0];e&&(c.value===-1?e.remove():document.body.removeChild(e))})}};return D(()=>{y(()=>{s(-1)})}),(o,e)=>{const r=E("el-button"),p=E("el-input"),a=E("el-descriptions-item"),B=E("el-descriptions");return h(),w("div",S,[t(r,{onClick:e[0]||(e[0]=i=>s(-1)),type:"primary"},{default:u(()=>[l("\u9ED8\u8BA4\u5C40\u90E8\u6C34\u5370")]),_:1}),t(r,{onClick:e[1]||(e[1]=i=>s(0)),type:"primary"},{default:u(()=>[l("\u751F\u6210\u5168\u5C40\u6C34\u5370")]),_:1}),t(r,{onClick:e[2]||(e[2]=i=>s(1)),type:"primary"},{default:u(()=>[l("\u751F\u6210\u9ED8\u8BA4\u989C\u8272\u6C34\u5370")]),_:1}),t(r,{onClick:e[3]||(e[3]=i=>s(2)),type:"primary"},{default:u(()=>[l("\u751F\u6210\u968F\u673A\u989C\u8272\u6C34\u5370")]),_:1}),t(p,{modelValue:d.value,"onUpdate:modelValue":e[4]||(e[4]=i=>d.value=i),style:{width:"100px","margin-left":"20px"}},null,8,["modelValue"]),t(r,{onClick:e[5]||(e[5]=i=>s(3)),type:"primary"},{default:u(()=>[l("\u8BBE\u7F6E\u900F\u660E\u5EA6")]),_:1}),t(r,{onClick:e[6]||(e[6]=i=>s(4)),type:"primary"},{default:u(()=>[l("\u53D6\u6D88\u6C34\u5370")]),_:1}),t(B,{title:"\u914D\u7F6E\u9879 ",column:1,border:"",class:"descriptions"},{default:u(()=>[t(a,{label:"content"},{default:u(()=>[l(" \u6C34\u5370\u5185\u5BB9\uFF0C\u9ED8\u8BA4\u4E3A 'Vue Admin Perfect' ")]),_:1}),t(a,{label:"container"},{default:u(()=>[l(" \u6C34\u5370\u5BB9\u5668\uFF0C\u9ED8\u8BA4\u751F\u6210\u5728 document.body \u4E0B\u9762 ")]),_:1}),t(a,{label:"globalAlpha"},{default:u(()=>[l(" \u8BBE\u7F6E\u56FE\u5F62\u548C\u56FE\u50CF\u900F\u660E\u5EA6\u7684\u503C\uFF0C\u9ED8\u8BA4\u4E3A 0.3 ")]),_:1}),t(a,{label:"height"},{default:u(()=>[l(" \u6C34\u5370\u9AD8\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A 240 ")]),_:1}),t(a,{label:"width"},{default:u(()=>[l(" \u6C34\u5370\u5BBD\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A 100 ")]),_:1}),t(a,{label:"fillStyle"},{default:u(()=>[l(" \u6C34\u5370\u989C\u8272\uFF0C\u9ED8\u8BA4\u4E3A '#000' ")]),_:1}),t(a,{label:"textAlign"},{default:u(()=>[l(" \u6587\u5B57\u5BF9\u9F50\uFF0C\u9ED8\u8BA4\u4E3A 'left' ")]),_:1}),t(a,{label:"textBaseline"},{default:u(()=>[l(" \u57FA\u51C6\u7EBF\uFF0C\u9ED8\u8BA4\u4E3A 'bottom' ")]),_:1}),t(a,{label:"rotate"},{default:u(()=>[l(" \u6587\u5B57\u65CB\u8F6C\u89D2\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A '16' \u8BA1\u7B97\u65B9\u5F0F\u4E3A (Math.PI * rotate) / 180 ")]),_:1}),t(a,{label:"iconStyle"},{default:u(()=>[l(' \u56FE\u6807\u7684\u6837\u5F0F\uFF0C\u9ED8\u8BA4\u6837\u5F0F\u4E3A { width: "1em", height: " 1em" } ')]),_:1})]),_:1})])}}});export{M as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as t,r as o,o as s,c,b as n}from"./index.df7b46f6.js";const a={},r={style:{padding:"30px"}};function l(_,d){const e=o("el-alert");return s(),c("div",r,[n(e,{title:"menu 1-3",type:"success",closable:!1})])}const i=t(a,[["render",l]]);export{i as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as o,r as t,o as a,c as n,a as s,b as c}from"./index.df7b46f6.js";const r={},_={class:"app-container"},l={class:"app-container-inner"};function i(d,p){const e=t("el-alert");return a(),n("div",_,[s("div",l,[c(e,{title:"menu 2",closable:!1})])])}const m=o(r,[["render",i]]);export{m as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as n,r as e,o as s,c as r,b as t}from"./index.df7b46f6.js";const _={},a={style:{padding:"30px"}};function l(i,p){const o=e("el-alert"),c=e("router-view");return s(),r("div",a,[t(o,{title:"menu 1-2",type:"success",closable:!1}),t(c)])}const m=n(_,[["render",l]]);export{m as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as c,o as t,c as o,p as a,f as d,a as s}from"./index.df7b46f6.js";const _={},n=e=>(a("data-v-f3bd1ed6"),e=e(),d(),e),r={class:"app-container"},p=n(()=>s("div",{class:"app-container-inner"},[s("iframe",{src:"https://ext.dcloud.net.cn/plugin?id=7511",frameborder:"0",class:"full-iframe"})],-1)),i=[p];function f(e,l){return t(),o("div",r,i)}const h=c(_,[["render",f],["__scopeId","data-v-f3bd1ed6"]]);export{h as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{E as N}from"./exceljs.min.71bead6c.js";import{g as j,h as y,r as a,o as p,j as k,w as l,b as s,s as C,U as V,a as i,c as L,F as U,D as H,e as J,N as M}from"./index.df7b46f6.js";const P=i("div",{class:"el-upload__text"},[J(" \u62D6\u62FD\u4E0A\u4F20 "),i("em",null,"\u6216\u8005\u70B9\u51FB\u4E0A\u4F20 Excel")],-1),W=j({__name:"index",setup(R){const f=y([]),h=y([]),g=(m,B)=>new Promise((x,b)=>{const o=new FileReader;o.onload=async r=>{const n=r.target.result,e=new N.Workbook;try{let c=await e.xlsx.load(n);const F=c._worksheets&&c._worksheets.filter(_=>typeof _<"u"),E=[];let u=[];F.forEach(_=>{_._rows.forEach((v,A)=>{if(A===0)v.values.forEach(t=>{u.push(t)});else{let t={},w=[];v.values.forEach(d=>{w.push(d)}),u.forEach((d,D)=>{t[d]=w[D]}),E.push(t)}})}),f.value=E,h.value=u}catch{M.error("\u89E3\u6790\u5931\u8D25")}},o.readAsArrayBuffer(m)});return(m,B)=>{const x=a("el-icon"),b=a("el-upload"),o=a("el-table-column"),r=a("el-table"),n=a("u-container-layout");return p(),k(n,{class:"m-upload-excel"},{default:l(()=>[s(b,{style:{width:"100%"},class:"upload-demo",drag:"",action:"/","before-upload":g,type:"file",accept:".xlsx, .xls"},{default:l(()=>[s(x,{class:"el-icon--upload"},{default:l(()=>[s(C(V))]),_:1}),P]),_:1}),i("div",null,[s(r,{data:f.value,border:"","highlight-current-row":"",style:{width:"100%","margin-top":"20px"}},{default:l(()=>[(p(!0),L(U,null,H(h.value,e=>(p(),k(o,{prop:e,label:e,key:e},null,8,["prop","label"]))),128))]),_:1},8,["data"])])]),_:1})}}});export{W as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{g as x,h as d,i as w,r as t,o as N,c as h,b as e,w as l,a as D,e as _,s as A,J as $,O as U,_ as I}from"./index.df7b46f6.js";import{m as k}from"./system.35eb0269.js";const z={class:"dialog-footer"},P=x({__name:"MenuDrawer",setup(R,{expose:C}){d(k);const i=d(),m=d(),p=w({roleName:[{required:!0,message:"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0",trigger:"blur"}],roleIdentification:[{required:!0,message:"\u8BF7\u8F93\u5165\u89D2\u8272\u6807\u8BC6",trigger:"blur"}]}),f=d("\u65B0\u589E\u83DC\u5355"),n=w({name:"",roleIdentification:"",describe:null,status:!0}),v={value:"menuName",label:"menuName",checkStrictly:!0},B=(r={})=>{f.value="\u65B0\u589E\u83DC\u5355",r.name&&(f.value="\u7F16\u8F91\u83DC\u5355",Object.keys(r).forEach(u=>{n[u]=r[u]})),m.value=!0},y=async r=>{await i.value.validate((u,c)=>{u?console.log("submit!"):console.log("error submit!",c)})};return C({show:B}),(r,u)=>{const c=t("el-radio-button"),F=t("el-radio-group"),a=t("el-form-item"),b=t("el-input"),E=t("el-cascader"),V=t("el-form"),s=t("el-button"),g=t("el-drawer");return N(),h("div",null,[e(g,{modelValue:m.value,"onUpdate:modelValue":u[6]||(u[6]=o=>m.value=o),title:f.value,size:"50%"},{footer:l(()=>[D("span",z,[e(s,{onClick:u[4]||(u[4]=o=>m.value=!1)},{default:l(()=>[_("\u53D6\u6D88")]),_:1}),e(s,{type:"primary",onClick:u[5]||(u[5]=o=>y(i.value))},{default:l(()=>[_("\u786E\u5B9A")]),_:1})])]),default:l(()=>[e(V,{ref_key:"ruleFormRef",ref:i,model:n,rules:p,"label-width":"120px"},{default:l(()=>[e(a,{label:"\u83DC\u5355\u7C7B\u578B",prop:"menuType"},{default:l(()=>[e(F,{modelValue:n.menuType,"onUpdate:modelValue":u[0]||(u[0]=o=>n.menuType=o)},{default:l(()=>[e(c,{label:"\u76EE\u5F55"}),e(c,{label:"\u83DC\u5355"}),e(c,{label:"\u6309\u94AE"})]),_:1},8,["modelValue"])]),_:1}),e(a,{label:"\u83DC\u5355\u540D\u79F0",prop:"menuName"},{default:l(()=>[e(b,{modelValue:n.menuName,"onUpdate:modelValue":u[1]||(u[1]=o=>n.menuName=o),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(a,{label:"\u7236\u7EA7\u83DC\u5355",prop:"role"},{default:l(()=>[e(E,{style:{width:"100%"},options:A(k),props:v,clearable:""},null,8,["options"])]),_:1}),e(a,{label:"\u6743\u9650\u6807\u8BC6",prop:"identification"},{default:l(()=>[e(b,{modelValue:n.identification,"onUpdate:modelValue":u[2]||(u[2]=o=>n.identification=o),placeholder:"\u8BF7\u8F93\u5165\u6743\u9650\u6807\u8BC6"},null,8,["modelValue"])]),_:1}),e(a,{label:"\u8DEF\u7531\u5730\u5740",prop:"identification"},{default:l(()=>[e(b,{modelValue:n.url,"onUpdate:modelValue":u[3]||(u[3]=o=>n.url=o),placeholder:"\u8BF7\u8F93\u5165\u8DEF\u7531\u5730\u5740"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])])}}}),q={class:"app-container"},M={class:"header"},O={class:"footer"},S={class:"util"},j={class:"table-wrap"},J=x({__name:"index",setup(R){const C=d(k);d("\u65B0\u589E");const i=d(),m=d(),p=w({}),f=r=>{},n=()=>{console.log("submit!",p)},v=()=>{i.value.show()},B=r=>{i.value.show(r)},y=r=>{U.confirm("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5F53\u524D\u9879\u5417?","\u6E29\u99A8\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning",draggable:!0}).then(()=>{}).catch(()=>{})};return(r,u)=>{const c=t("el-input"),F=t("el-form-item"),a=t("el-button"),b=t("el-form"),E=t("Plus"),V=t("el-icon"),s=t("el-table-column"),g=t("el-table");return N(),h("div",q,[D("div",M,[e(b,{inline:!0,model:p,ref_key:"ruleFormRef",ref:m},{default:l(()=>[e(F,{label:"\u83DC\u5355\u540D\u79F0",prop:"username"},{default:l(()=>[e(c,{modelValue:p.username,"onUpdate:modelValue":u[0]||(u[0]=o=>p.username=o),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(F,null,{default:l(()=>[e(a,{type:"primary",onClick:n,icon:A($)},{default:l(()=>[_("\u67E5\u8BE2")]),_:1},8,["icon"]),e(a,{onClick:u[1]||(u[1]=o=>f(m.value))},{default:l(()=>[_("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),D("div",O,[D("div",S,[e(a,{type:"primary",onClick:v},{default:l(()=>[e(V,null,{default:l(()=>[e(E)]),_:1}),_(" \u65B0\u589E\u83DC\u5355 ")]),_:1})]),D("div",j,[e(g,{data:C.value,style:{width:"100%"},border:"","default-expand-all":"","row-key":"id",class:"table"},{default:l(()=>[e(s,{prop:"menuName",label:"\u6743\u9650\u540D\u79F0"}),e(s,{prop:"menuType",label:"\u6743\u9650\u7C7B\u578B"}),e(s,{prop:"menuRouter",label:"\u6743\u9650\u8DEF\u7531"}),e(s,{prop:"identification",label:"\u6743\u9650\u6807\u8BC6"}),e(s,{prop:"status",label:"\u64CD\u4F5C"},{default:l(o=>[e(a,{type:"primary",size:"small",icon:"Edit",onClick:T=>B(o.row)},{default:l(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),e(a,{onClick:T=>y(o.row),type:"danger",size:"small",icon:"Delete"},{default:l(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])]),e(P,{ref_key:"menuDrawerRef",ref:i},null,512)])}}});const K=I(J,[["__scopeId","data-v-27d49517"]]);export{K as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as n,r as e,o as s,c as r,b as t}from"./index.df7b46f6.js";const _={},a={style:{padding:"30px"}};function l(i,p){const o=e("el-alert"),c=e("router-view");return s(),r("div",a,[t(o,{title:"menu 1-1",type:"success",closable:!1}),t(c)])}const m=n(_,[["render",l]]);export{m as default};
|
||||