docs: 统一修正全项目“SN管理”相关术语为“序列号”
本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{_ as S,o as E,a as L,c as q,b as o,w as n,r as s,u as I,d as b,e as M,f as N,g as z,h as c,i as B,E as v,j as y,s as C,k as p}from"./index-CZ641VGk.js";const U={class:"login-wrap"},K={__name:"Login",setup(R){const f=b(),l=I(),a=p("admin"),r=p(""),u=p(!1);function m(){if(localStorage.getItem("token")){const t=l.query.redirect&&l.query.redirect!=="/login"?l.query.redirect:"/work-order";return f.replace(t),!0}return!1}function g(t){t.key==="token"&&t.newValue&&m()}E(()=>{m()||window.addEventListener("storage",g)}),L(()=>{window.removeEventListener("storage",g)});async function i(){if(!a.value||!r.value)return v.warning("请输入账号和密码");u.value=!0;try{const t=await y.post("/login",{username:a.value,password:r.value});C(t.accessToken,{username:a.value});const e=await y.get("/userinfo");localStorage.setItem("user",JSON.stringify(e)),/^\d+$/.test(r.value)&&v.warning("当前密码为纯数字,安全级别低,建议登录后立即修改密码"),f.replace(l.query.redirect||"/work-order")}catch{}finally{u.value=!1}}return(t,e)=>{const _=s("el-input"),w=s("el-form-item"),k=s("el-button"),V=s("el-form"),x=s("el-card");return M(),q("div",U,[o(x,{class:"login-card"},{default:n(()=>[e[5]||(e[5]=N("h2",{class:"title"},"MES 产线控制",-1)),o(V,{onSubmit:z(i,["prevent"])},{default:n(()=>[o(w,null,{default:n(()=>[o(_,{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=d=>a.value=d),placeholder:"用户名",size:"large"},{prefix:n(()=>[...e[2]||(e[2]=[c("👤",-1)])]),_:1},8,["modelValue"])]),_:1}),o(w,null,{default:n(()=>[o(_,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=d=>r.value=d),type:"password",placeholder:"密码",size:"large","show-password":"",onKeyup:B(i,["enter"])},{prefix:n(()=>[...e[3]||(e[3]=[c("🔒",-1)])]),_:1},8,["modelValue"])]),_:1}),o(k,{type:"primary",size:"large",style:{width:"100%"},loading:u.value,onClick:i},{default:n(()=>[...e[4]||(e[4]=[c("登 录",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})])}}},j=S(K,[["__scopeId","data-v-656908a6"]]);export{j as default};
|
||||
Reference in New Issue
Block a user