erp-frontend/assets/Welcome-DwFFMcoh.js
2026-04-06 21:14:31 +08:00

1 line
6.6 KiB
JavaScript
Executable File

import{F as e,Gt as t,H as n,R as r,_ as i,d as a,et as o,m as s,t as c,ut as l,v as u,y as d}from"./_plugin-vue_export-helper-BmDUjPB3.js";var f={class:`welcome-container`},p={class:`welcome-card`},m={class:`welcome-content`},h={class:`welcome-text`},g={class:`user-info-card`},_={class:`system-features`},v={class:`quick-actions`},y={viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,style:{"margin-right":`6px`}},b={viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,style:{"margin-right":`6px`}},x={viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,style:{"margin-right":`6px`}},S={viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,style:{"margin-right":`6px`}},C={class:`welcome-footer`},w={class:`footer-text`},T={viewBox:`0 0 24 24`,width:`14`,height:`14`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,style:{"margin-right":`6px`}},E=c({__name:`Welcome`,setup(c){let E=l({username:``,name:``,role:``}),D=l(``);return e(()=>{let e=localStorage.getItem(`current_user`);if(e)try{E.value=JSON.parse(e)}catch(e){console.error(`解析用户信息失败:`,e)}D.value=new Date().toLocaleString(`zh-CN`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`})}),(e,c)=>{let l=n(`el-tag`),O=n(`el-descriptions-item`),k=n(`el-descriptions`),A=n(`el-col`),j=n(`el-row`),M=n(`el-button`),N=n(`el-space`),P=n(`el-divider`);return r(),s(`div`,f,[a(`div`,p,[c[17]||=i(`<div class="welcome-header" data-v-b2b1d097><div class="welcome-icon" data-v-b2b1d097><svg viewBox="0 0 48 48" width="48" height="48" data-v-b2b1d097><defs data-v-b2b1d097><linearGradient id="iconGrad" x1="0%" y1="0%" x2="100%" y2="100%" data-v-b2b1d097><stop offset="0%" style="stop-color:#d4af37;" data-v-b2b1d097></stop><stop offset="100%" style="stop-color:#f5e6a3;" data-v-b2b1d097></stop></linearGradient></defs><circle cx="24" cy="24" r="20" fill="none" stroke="url(#iconGrad)" stroke-width="2" data-v-b2b1d097></circle><path d="M14 24 L21 31 L34 17" fill="none" stroke="url(#iconGrad)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" data-v-b2b1d097></path></svg></div><h1 data-v-b2b1d097>欢迎进入ERP管理系统</h1></div>`,1),a(`div`,m,[a(`p`,h,[c[0]||=u(` 您已成功登录系统。当前登录账号: `,-1),d(l,{class:`user-tag`,type:`warning`,size:`large`,effect:`dark`},{default:o(()=>[u(t(E.value.username),1)]),_:1})]),a(`div`,g,[c[1]||=a(`div`,{class:`info-card-title`},`账户信息`,-1),d(k,{column:2,border:``},{default:o(()=>[d(O,{label:`用户名`},{default:o(()=>[u(t(E.value.username),1)]),_:1}),d(O,{label:`姓名`},{default:o(()=>[u(t(E.value.name),1)]),_:1}),d(O,{label:`角色`},{default:o(()=>[d(l,{type:E.value.role===`admin`?`danger`:`success`,size:`small`},{default:o(()=>[u(t(E.value.role===`admin`?`管理员`:`普通用户`),1)]),_:1},8,[`type`])]),_:1}),d(O,{label:`登录时间`},{default:o(()=>[u(t(D.value),1)]),_:1})]),_:1})]),a(`div`,_,[c[5]||=a(`div`,{class:`section-title`},`系统功能模块`,-1),d(j,{gutter:20},{default:o(()=>[d(A,{span:8},{default:o(()=>[...c[2]||=[a(`div`,{class:`feature-card`},[a(`div`,{class:`feature-icon-wrap gold`},[a(`svg`,{viewBox:`0 0 24 24`,width:`32`,height:`32`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[a(`path`,{d:`M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z`}),a(`line`,{x1:`3`,y1:`6`,x2:`21`,y2:`6`}),a(`path`,{d:`M16 10a4 4 0 0 1-8 0`})])]),a(`h4`,null,`订单管理`),a(`p`,null,`创建、查看和处理客户订单`)],-1)]]),_:1}),d(A,{span:8},{default:o(()=>[...c[3]||=[a(`div`,{class:`feature-card`},[a(`div`,{class:`feature-icon-wrap blue`},[a(`svg`,{viewBox:`0 0 24 24`,width:`32`,height:`32`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[a(`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`})])]),a(`h4`,null,`商品管理`),a(`p`,null,`管理商品信息和库存`)],-1)]]),_:1}),d(A,{span:8},{default:o(()=>[...c[4]||=[a(`div`,{class:`feature-card`},[a(`div`,{class:`feature-icon-wrap green`},[a(`svg`,{viewBox:`0 0 24 24`,width:`32`,height:`32`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[a(`rect`,{x:`1`,y:`3`,width:`15`,height:`13`}),a(`polygon`,{points:`16 8 20 8 23 11 23 16 16 16 16 8`}),a(`circle`,{cx:`5.5`,cy:`18.5`,r:`2.5`}),a(`circle`,{cx:`18.5`,cy:`18.5`,r:`2.5`})])]),a(`h4`,null,`仓库管理`),a(`p`,null,`管理仓库和库存位置`)],-1)]]),_:1})]),_:1})]),a(`div`,v,[c[14]||=a(`div`,{class:`section-title`},`快速操作`,-1),d(N,{wrap:``},{default:o(()=>[d(M,{type:`primary`,class:`action-btn gold-btn`},{default:o(()=>[(r(),s(`svg`,y,[...c[6]||=[a(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`},null,-1),a(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`},null,-1)]])),c[7]||=u(` 新建订单 `,-1)]),_:1}),d(M,{class:`action-btn white-btn`},{default:o(()=>[(r(),s(`svg`,b,[...c[8]||=[a(`circle`,{cx:`11`,cy:`11`,r:`8`},null,-1),a(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`},null,-1)]])),c[9]||=u(` 查询库存 `,-1)]),_:1}),d(M,{class:`action-btn white-btn`},{default:o(()=>[(r(),s(`svg`,x,[...c[10]||=[a(`circle`,{cx:`12`,cy:`12`,r:`3`},null,-1),a(`path`,{d:`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z`},null,-1)]])),c[11]||=u(` 系统设置 `,-1)]),_:1}),d(M,{class:`action-btn white-btn`},{default:o(()=>[(r(),s(`svg`,S,[...c[12]||=[a(`circle`,{cx:`12`,cy:`12`,r:`10`},null,-1),a(`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`},null,-1),a(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`},null,-1)]])),c[13]||=u(` 使用帮助 `,-1)]),_:1})]),_:1})])]),a(`div`,C,[d(P),a(`p`,w,[(r(),s(`svg`,T,[...c[15]||=[a(`circle`,{cx:`12`,cy:`12`,r:`10`},null,-1),a(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`},null,-1),a(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`},null,-1)]])),c[16]||=u(` 提示:这是一个演示系统。所有数据均为模拟数据。 `,-1)])])])])}}},[[`__scopeId`,`data-v-b2b1d097`]]);export{E as default};