Merge branch 'main' into production
This commit is contained in:
commit
8ed15d290a
48
TODOs.md
48
TODOs.md
@ -1,29 +1,11 @@
|
||||
还要做的部分
|
||||
|
||||
小程序提审要做的:
|
||||
|
||||
小程序扫门禁码之后门禁开门(扫码 websocket 推到门禁端),小程序端显示开门成功
|
||||
|
||||
项目部署到服务器
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
小程序端用户头像
|
||||
|
||||
大门 人员进出 后台管理(进出日志)
|
||||
|
||||
后台订单管理页
|
||||
|
||||
每个人创建账号的时候填充一些测试数据进去
|
||||
|
||||
门禁端左侧提示文字修改
|
||||
### 还要做的部分
|
||||
|
||||
后台管理两个端分开
|
||||
用户管理 社区管理员不能修改管理员账号
|
||||
后台管理分两个管理员身份
|
||||
- 不可以删除用户,只允许禁用用户
|
||||
|
||||
后台管理 按照id进行筛选
|
||||
社区管理员管理人员进出权限
|
||||
|
||||
发给老班看一看
|
||||
|
||||
@ -32,13 +14,27 @@
|
||||
项目中的TODO
|
||||
|
||||
|
||||
### 可能会被问到的问题
|
||||
|
||||
商品库存问题
|
||||
|
||||
|
||||
### 其他
|
||||
|
||||
小程序端用户头像
|
||||
|
||||
大门 人员进出 后台管理(进出日志)
|
||||
|
||||
每个人创建账号的时候填充一些测试数据进去
|
||||
|
||||
后台管理 按照id进行筛选
|
||||
|
||||
|
||||
|
||||
更多:
|
||||
|
||||
完成项目代码中的 TODO 部分
|
||||
|
||||
身份码后端接口考虑与其他系统的集成逻辑
|
||||
|
||||
Java代码中小程序AppID、密钥处理,小程序代码中小程序AppID处理
|
||||
|
||||
|
||||
@ -46,6 +42,8 @@ Java代码中小程序AppID、密钥处理,小程序代码中小程序AppID处
|
||||
|
||||
node_modules,.git,.idea,target,out,./postman-collection,@deprecated
|
||||
|
||||
|
||||
|
||||
# host 文件地址
|
||||
|
||||
C:\Windows\System32\drivers\etc
|
||||
|
@ -3,6 +3,7 @@ package com.cxyxiaomo.epp.PageTable.enums;
|
||||
public enum AddType {
|
||||
CAN_NOT_ADD("plainText"),
|
||||
INPUT("input"),
|
||||
INPUT_NUMBER("input-number"),
|
||||
TEXTAREA("textarea"),
|
||||
SELECT("select"),
|
||||
IMAGE("image");
|
||||
|
@ -3,6 +3,7 @@ package com.cxyxiaomo.epp.PageTable.enums;
|
||||
public enum EditType {
|
||||
CAN_NOT_EDIT("plainText"),
|
||||
INPUT("input"),
|
||||
INPUT_NUMBER("input-number"),
|
||||
TEXTAREA("textarea"),
|
||||
SELECT("select"),
|
||||
IMAGE("image");
|
||||
|
@ -43,11 +43,12 @@ public class FieldRuleBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public FieldRuleBuilder number() {
|
||||
rules.put("type", "number");
|
||||
rules.put("message", fieldDisplayName + "必须为数字");
|
||||
return this;
|
||||
}
|
||||
// public FieldRuleBuilder number() {
|
||||
// // rules.put("type", "number"); // 字符串类型的数字匹配不上
|
||||
// rules.put("regexp", "^\\d+?$");
|
||||
// rules.put("message", fieldDisplayName + "必须为数字");
|
||||
// return this;
|
||||
// }
|
||||
|
||||
public FieldRuleBuilder min(Integer min) {
|
||||
rules.put("min", min);
|
||||
@ -61,6 +62,7 @@ public class FieldRuleBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
// 字符串类型长度范围
|
||||
public FieldRuleBuilder minMax(Integer min, Integer max) {
|
||||
rules.put("min", min);
|
||||
rules.put("max", max);
|
||||
@ -68,6 +70,28 @@ public class FieldRuleBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
// 数字类型数值范围
|
||||
// public FieldRuleBuilder range(Integer min, Integer max) {
|
||||
// // rules.put("min", min);
|
||||
// // rules.put("max", max);
|
||||
// rules.put("message", fieldDisplayName + "应大于 " + min + " 且小于 " + max);
|
||||
// return this;
|
||||
// }
|
||||
|
||||
// // 数字类型数字个数
|
||||
// public FieldRuleBuilder price(Integer minLen, Integer maxLen) {
|
||||
// rules.put("regexp", "^\\d{" + minLen + "," + maxLen + "}(\\.\\d{1,2})?$");
|
||||
// rules.put("message", fieldDisplayName + "应大于等于 " + Math.pow(10, minLen - 1) + " ,小于等于 " + (Math.pow(10, maxLen) - 1) + " 且小数位数不超过 2 位");
|
||||
// return this;
|
||||
// }
|
||||
|
||||
// public FieldRuleBuilder regexp(String regexp) {
|
||||
// // rules.put("type", "regexp");
|
||||
// rules.put("pattern", regexp);
|
||||
// rules.put("message", fieldDisplayName + "输入不符合要求,请检查");
|
||||
// return this;
|
||||
// }
|
||||
|
||||
public FieldRuleBuilder length(Integer len) {
|
||||
rules.put("min", len);
|
||||
rules.put("max", len);
|
||||
|
@ -24,6 +24,9 @@
|
||||
</div>
|
||||
<div class="left-container">
|
||||
<h1>进出社区请扫码</h1>
|
||||
<p>1. 打开 微信 > 扫一扫,扫描右侧小程序码</p>
|
||||
<p>2. 点击确认进入,门即开启</p>
|
||||
<!--<h1>进出社区请扫码</h1>
|
||||
<h3>社区居民</h3>
|
||||
<p>1. 打开 微信 > 扫一扫,扫描右侧小程序码</p>
|
||||
<p>2. 点击确认进入,门即开启</p>
|
||||
@ -33,7 +36,7 @@
|
||||
<p>2. 填写进入申请表</p>
|
||||
|
||||
<h3>长期租客</h3>
|
||||
<p>1. 请联系管理员为你添加进出权限</p>
|
||||
<p>1. 请联系管理员为你添加进出权限</p>-->
|
||||
</div>
|
||||
<div class="right-container">
|
||||
<h1 id="no-qrcode">请选择大门</h1>
|
||||
|
@ -0,0 +1 @@
|
||||
import{d as c,dK as l,aU as p,bg as i,o as m,c as E,b as o,a as s,w as a,dc as f,db as h,e as t,bS as v}from"./index.f92c5f31.js";const r=e=>(f("data-v-d4771405"),e=e(),h(),e),B={class:"error-page"},g=r(()=>o("div",{class:"error-code"},[t("4"),o("span",null,"0"),t("3")],-1)),b=r(()=>o("div",{class:"error-desc"},"\u554A\u54E6~ \u4F60\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u9875\u9762\u54E6",-1)),k={class:"error-handle"},x=c({name:"403"}),y=c({...x,setup(e){const u=l(),n=()=>{u.go(-2)};return(C,D)=>{const _=p,d=i("router-link");return m(),E("div",B,[g,b,o("div",k,[s(d,{to:"/"},{default:a(()=>[s(_,{type:"primary",size:"large"},{default:a(()=>[t("\u8FD4\u56DE\u9996\u9875")]),_:1})]),_:1}),s(_,{class:"error-btn",type:"primary",size:"large",onClick:n},{default:a(()=>[t("\u8FD4\u56DE\u4E0A\u4E00\u9875")]),_:1})])])}}});const I=v(y,[["__scopeId","data-v-d4771405"]]);export{I as default};
|
@ -1 +0,0 @@
|
||||
import{d as r,dJ as p,b0 as l,r as i,o as m,c as E,e as o,b as s,w as a,p as f,h,f as t,_ as v}from"./index.f859bf4e.js";const c=e=>(f("data-v-d4771405"),e=e(),h(),e),B={class:"error-page"},g=c(()=>o("div",{class:"error-code"},[t("4"),o("span",null,"0"),t("3")],-1)),k=c(()=>o("div",{class:"error-desc"},"\u554A\u54E6~ \u4F60\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u9875\u9762\u54E6",-1)),x={class:"error-handle"},y=r({name:"403"}),C=r({...y,setup(e){const u=p(),n=()=>{u.go(-2)};return(b,D)=>{const _=l,d=i("router-link");return m(),E("div",B,[g,k,o("div",x,[s(d,{to:"/"},{default:a(()=>[s(_,{type:"primary",size:"large"},{default:a(()=>[t("\u8FD4\u56DE\u9996\u9875")]),_:1})]),_:1}),s(_,{class:"error-btn",type:"primary",size:"large",onClick:n},{default:a(()=>[t("\u8FD4\u56DE\u4E0A\u4E00\u9875")]),_:1})])])}}});const I=v(C,[["__scopeId","data-v-d4771405"]]);export{I as default};
|
@ -1 +0,0 @@
|
||||
import{m as s}from"./manage-list.8ab8e06b.js";import{s as t}from"./send_request.cc43fdb9.js";import{d as n,o as r,c,b as o}from"./index.f859bf4e.js";import"./el-overlay.1542ee54.js";import"./el-input.f35758e8.js";import"./el-progress.d53d438b.js";function u(e){return t({url:"/access/gate/manage/getGateList",method:"GET",params:e})}function a(e){return t({url:"/access/gate/manage/editGate",method:"POST",useQS:!0,params:e})}function i(e){return t({url:"/access/gate/manage/deleteGate",method:"POST",useQS:!0,params:e})}function m(e){return t({url:"/access/gate/manage/exportGateList",method:"GET",params:e})}const d={class:"container"},L=n({__name:"access-gate-setting",setup(e){return(p,f)=>(r(),c("div",d,[o(s,{"list-func":u,"add-func":a,"edit-func":a,"delete-func":i,"export-func":m,"edit-permiss":"access-gate-setting"},null,8,["list-func","add-func","edit-func","delete-func","export-func"])]))}});export{L as default};
|
@ -0,0 +1 @@
|
||||
import{m as s}from"./manage-list.20233657.js";import{s as t}from"./el-input.7b05f86e.js";import{d as n,o as r,c,a as o}from"./index.f92c5f31.js";import"./el-overlay.938d56f5.js";function u(e){return t({url:"/access/gate/manage/getGateList",method:"GET",params:e})}function a(e){return t({url:"/access/gate/manage/editGate",method:"POST",useQS:!0,params:e})}function i(e){return t({url:"/access/gate/manage/deleteGate",method:"POST",useQS:!0,params:e})}function m(e){return t({url:"/access/gate/manage/exportGateList",method:"GET",params:e})}const d={class:"container"},h=n({__name:"access-gate-setting",setup(e){return(f,p)=>(r(),c("div",d,[o(s,{"list-func":u,"add-func":a,"edit-func":a,"delete-func":i,"export-func":m,"edit-permiss":"access-gate-setting"},null,8,["list-func","add-func","edit-func","delete-func","export-func"])]))}});export{h as default};
|
@ -1 +0,0 @@
|
||||
import{m as o}from"./manage-list.8ab8e06b.js";import{s as m}from"./send_request.cc43fdb9.js";import{d as r,o as c,c as a,b as n}from"./index.f859bf4e.js";import"./el-overlay.1542ee54.js";import"./el-input.f35758e8.js";import"./el-progress.d53d438b.js";function p(e){var s,i;let t=JSON.parse(JSON.stringify(e));return delete t.timestamp,Array.isArray(e.timestamp)&&e.timestamp.length==2&&(t.startTime=(s=e.timestamp[0])==null?void 0:s.getTime(),t.endTime=(i=e.timestamp[1])==null?void 0:i.getTime()),m({url:"/access/access-log/manage/getAccessLogList",method:"GET",params:t})}function g(e){var s,i;let t=JSON.parse(JSON.stringify(e));return delete t.timestamp,Array.isArray(e.timestamp)&&e.timestamp.length==2&&(t.startTime=(s=e.timestamp[0])==null?void 0:s.getTime(),t.endTime=(i=e.timestamp[1])==null?void 0:i.getTime()),m({url:"/access/access-log/manage/exportAccessLogList",method:"GET",params:t})}const l={class:"container"},y=r({__name:"access-log",setup(e){return(t,s)=>(c(),a("div",l,[n(o,{"list-func":p,"export-func":g,"edit-permiss":"access-log"},null,8,["list-func","export-func"])]))}});export{y as default};
|
@ -0,0 +1 @@
|
||||
import{m as c}from"./manage-list.20233657.js";import{s as m}from"./el-input.7b05f86e.js";import{d as a,o,c as r,a as n}from"./index.f92c5f31.js";import"./el-overlay.938d56f5.js";function p(e){var s,i;let t=JSON.parse(JSON.stringify(e));return delete t.timestamp,Array.isArray(e.timestamp)&&e.timestamp.length==2&&(t.startTime=(s=e.timestamp[0])==null?void 0:s.getTime(),t.endTime=(i=e.timestamp[1])==null?void 0:i.getTime()),m({url:"/access/access-log/manage/getAccessLogList",method:"GET",params:t})}function g(e){var s,i;let t=JSON.parse(JSON.stringify(e));return delete t.timestamp,Array.isArray(e.timestamp)&&e.timestamp.length==2&&(t.startTime=(s=e.timestamp[0])==null?void 0:s.getTime(),t.endTime=(i=e.timestamp[1])==null?void 0:i.getTime()),m({url:"/access/access-log/manage/exportAccessLogList",method:"GET",params:t})}const l={class:"container"},T=a({__name:"access-log",setup(e){return(t,s)=>(o(),r("div",l,[n(c,{"list-func":p,"export-func":g,"edit-permiss":"access-log"},null,8,["list-func","export-func"])]))}});export{T as default};
|
@ -1 +0,0 @@
|
||||
.el-row[data-v-e670d298]{margin-bottom:20px}.grid-content[data-v-e670d298]{display:flex;align-items:center;height:100px}.grid-cont-right[data-v-e670d298]{flex:1;text-align:center;font-size:14px;color:#999}.grid-num[data-v-e670d298]{font-size:30px;font-weight:700}.grid-con-icon[data-v-e670d298]{font-size:50px;width:100px;height:100px;text-align:center;line-height:100px;color:#fff}.grid-con-1 .grid-con-icon[data-v-e670d298]{background:rgb(45,140,240)}.grid-con-1 .grid-num[data-v-e670d298]{color:#2d8cf0}.grid-con-2 .grid-con-icon[data-v-e670d298]{background:rgb(100,213,114)}.grid-con-2 .grid-num[data-v-e670d298]{color:#64d572}.grid-con-3 .grid-con-icon[data-v-e670d298]{background:rgb(242,94,67)}.grid-con-3 .grid-num[data-v-e670d298]{color:#f25e43}.user-info[data-v-e670d298]{display:flex;align-items:center;padding-bottom:20px;border-bottom:2px solid #ccc;margin-bottom:20px}.user-info-cont[data-v-e670d298]{padding-left:50px;flex:1;font-size:14px;color:#999}.user-info-cont div[data-v-e670d298]:first-child{font-size:30px;color:#222}.user-info-list[data-v-e670d298]{font-size:14px;color:#999;line-height:25px}.user-info-list span[data-v-e670d298]{margin-left:70px}.mgb20[data-v-e670d298]{margin-bottom:20px}.todo-item[data-v-e670d298]{font-size:14px}.todo-item-del[data-v-e670d298]{text-decoration:line-through;color:#999}
|
@ -0,0 +1 @@
|
||||
import{d as n,E as i,o as _,c as d,a as t,w as m,b as s,u as e,t as o,e as u,f}from"./index.f92c5f31.js";import{E as p}from"./el-card.aaaea6a5.js";const h={class:"container"},v={class:"user-info"},E={class:"user-info-cont"},B={class:"user-info-name"},A=s("div",{class:"user-info-list"},[u(" \u4E0A\u6B21\u767B\u5F55\u65F6\u95F4\uFF1A "),s("span",null,"2022-10-01")],-1),F=s("div",{class:"user-info-list"},[u(" \u4E0A\u6B21\u767B\u5F55\u5730\u70B9\uFF1A "),s("span",null,"\u4E1C\u839E")],-1),g=n({name:"dashboard"}),V=n({...g,setup(x){const a=localStorage.getItem("ms_username"),c=a==="admin"?"\u8D85\u7EA7\u7BA1\u7406\u5458":"\u666E\u901A\u7528\u6237";return(C,b)=>{const r=i,l=p;return _(),d("div",h,[t(l,{shadow:"hover",class:"mgb20",style:{height:"252px"}},{default:m(()=>[s("div",v,[t(r,{size:120,src:e(f)},null,8,["src"]),s("div",E,[s("div",B,o(e(a)),1),s("div",null,o(e(c)),1)])]),A,F]),_:1})])}}});export{V as default};
|
@ -1 +0,0 @@
|
||||
import{d as g,E as C,r as _,a as F,o as x,c as y,b as s,w as e,e as o,u as r,t as h,f as t,g as b,p as w,h as A,_ as S}from"./index.f859bf4e.js";import{E as D,a as I,b as V}from"./el-card.0035c23b.js";import{E as N}from"./el-progress.d53d438b.js";const a=d=>(w("data-v-e670d298"),d=d(),A(),d),R={class:"container"},T={class:"user-info"},k={class:"user-info-cont"},G={class:"user-info-name"},U=a(()=>o("div",{class:"user-info-list"},[t(" \u4E0A\u6B21\u767B\u5F55\u65F6\u95F4\uFF1A "),o("span",null,"2022-10-01")],-1)),z=a(()=>o("div",{class:"user-info-list"},[t(" \u4E0A\u6B21\u767B\u5F55\u5730\u70B9\uFF1A "),o("span",null,"\u4E1C\u839E")],-1)),H=a(()=>o("div",{class:"clearfix"},[o("span",null,"\u8BED\u8A00\u8BE6\u60C5")],-1)),L={class:"grid-content grid-con-1"},M=a(()=>o("div",{class:"grid-cont-right"},[o("div",{class:"grid-num"},"1234"),o("div",null,"\u7528\u6237\u8BBF\u95EE\u91CF")],-1)),P={class:"grid-content grid-con-2"},j=a(()=>o("div",{class:"grid-cont-right"},[o("div",{class:"grid-num"},"321"),o("div",null,"\u7CFB\u7EDF\u6D88\u606F")],-1)),q={class:"grid-content grid-con-3"},J=a(()=>o("div",{class:"grid-cont-right"},[o("div",{class:"grid-num"},"500"),o("div",null,"\u5546\u54C1\u6570\u91CF")],-1)),K=g({name:"dashboard"}),O=g({...K,setup(d){const i=localStorage.getItem("ms_username"),f=i==="admin"?"\u8D85\u7EA7\u7BA1\u7406\u5458":"\u666E\u901A\u7528\u6237";return(Q,W)=>{const v=C,n=D,l=N,c=I,m=_("User"),u=F,E=_("ChatDotRound"),B=_("Goods"),p=V;return x(),y("div",R,[s(p,{gutter:20},{default:e(()=>[s(c,{span:8},{default:e(()=>[s(n,{shadow:"hover",class:"mgb20",style:{height:"252px"}},{default:e(()=>[o("div",T,[s(v,{size:120,src:r(b)},null,8,["src"]),o("div",k,[o("div",G,h(r(i)),1),o("div",null,h(r(f)),1)])]),U,z]),_:1}),s(n,{shadow:"hover",style:{height:"252px"}},{header:e(()=>[H]),default:e(()=>[t(" Vue "),s(l,{percentage:79.4,color:"#42b983"},null,8,["percentage"]),t(" TypeScript "),s(l,{percentage:14,color:"#f1e05a"}),t(" CSS "),s(l,{percentage:5.6},null,8,["percentage"]),t(" HTML "),s(l,{percentage:1,color:"#f56c6c"})]),_:1})]),_:1}),s(c,{span:16},{default:e(()=>[s(p,{gutter:20,class:"mgb20"},{default:e(()=>[s(c,{span:8},{default:e(()=>[s(n,{shadow:"hover","body-style":{padding:"0px"}},{default:e(()=>[o("div",L,[s(u,{class:"grid-con-icon"},{default:e(()=>[s(m)]),_:1}),M])]),_:1})]),_:1}),s(c,{span:8},{default:e(()=>[s(n,{shadow:"hover","body-style":{padding:"0px"}},{default:e(()=>[o("div",P,[s(u,{class:"grid-con-icon"},{default:e(()=>[s(E)]),_:1}),j])]),_:1})]),_:1}),s(c,{span:8},{default:e(()=>[s(n,{shadow:"hover","body-style":{padding:"0px"}},{default:e(()=>[o("div",q,[s(u,{class:"grid-con-icon"},{default:e(()=>[s(B)]),_:1}),J])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}}});const $=S(O,[["__scopeId","data-v-e670d298"]]);export{$ as default};
|
@ -1 +0,0 @@
|
||||
import{i as g,j as r,d as u,k as h,o as f,c as N,n as d,u as o,l as m,f as R,t as x,m as B,e as K,q as w,s as _,v,x as p,y as P,z as n,A as j,B as A,C as S,w as k,D as E,F as D}from"./index.f859bf4e.js";const O=Symbol("rowContextKey"),V=g({header:{type:String,default:""},bodyStyle:{type:r([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),L=u({name:"ElCard"}),T=u({...L,props:V,setup(i){const t=h("card");return(s,l)=>(f(),N("div",{class:d([o(t).b(),o(t).is(`${s.shadow}-shadow`)])},[s.$slots.header||s.header?(f(),N("div",{key:0,class:d(o(t).e("header"))},[m(s.$slots,"header",{},()=>[R(x(s.header),1)])],2)):B("v-if",!0),K("div",{class:d(o(t).e("body")),style:w(s.bodyStyle)},[m(s.$slots,"default")],6)],2))}});var q=_(T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const z=v(q),F=g({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:r([Number,Object]),default:()=>p({})},sm:{type:r([Number,Object]),default:()=>p({})},md:{type:r([Number,Object]),default:()=>p({})},lg:{type:r([Number,Object]),default:()=>p({})},xl:{type:r([Number,Object]),default:()=>p({})}}),I=u({name:"ElCol"}),J=u({...I,props:F,setup(i){const t=i,{gutter:s}=P(O,{gutter:n(()=>0)}),l=h("col"),y=n(()=>{const e={};return s.value&&(e.paddingLeft=e.paddingRight=`${s.value/2}px`),e}),b=n(()=>{const e=[];return["span","offset","pull","push"].forEach(a=>{const c=t[a];j(c)&&(a==="span"?e.push(l.b(`${t[a]}`)):c>0&&e.push(l.b(`${a}-${t[a]}`)))}),["xs","sm","md","lg","xl"].forEach(a=>{j(t[a])?e.push(l.b(`${a}-${t[a]}`)):A(t[a])&&Object.entries(t[a]).forEach(([c,C])=>{e.push(c!=="span"?l.b(`${a}-${c}-${C}`):l.b(`${a}-${C}`))})}),s.value&&e.push(l.is("guttered")),[l.b(),e]});return(e,$)=>(f(),S(E(e.tag),{class:d(o(b)),style:w(o(y))},{default:k(()=>[m(e.$slots,"default")]),_:3},8,["class","style"]))}});var G=_(J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ee=v(G),H=["start","center","end","space-around","space-between","space-evenly"],M=["top","middle","bottom"],Q=g({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:H,default:"start"},align:{type:String,values:M,default:"top"}}),U=u({name:"ElRow"}),W=u({...U,props:Q,setup(i){const t=i,s=h("row"),l=n(()=>t.gutter);D(O,{gutter:l});const y=n(()=>{const e={};return t.gutter&&(e.marginRight=e.marginLeft=`-${t.gutter/2}px`),e}),b=n(()=>[s.b(),s.is(`justify-${t.justify}`,t.justify!=="start"),s.is(`align-${t.align}`,t.align!=="top")]);return(e,$)=>(f(),S(E(e.tag),{class:d(o(b)),style:w(o(y))},{default:k(()=>[m(e.$slots,"default")]),_:3},8,["class","style"]))}});var X=_(W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const te=v(X);export{z as E,ee as a,te as b};
|
@ -0,0 +1 @@
|
||||
.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}
|
@ -0,0 +1 @@
|
||||
import{g as n,h as c,d,i as p,o,c as t,n as r,u as s,r as l,e as i,t as u,j as y,b as m,k as h,_ as f,l as v}from"./index.f92c5f31.js";const S=n({header:{type:String,default:""},bodyStyle:{type:c([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),_=d({name:"ElCard"}),b=d({..._,props:S,setup(C){const a=p("card");return(e,g)=>(o(),t("div",{class:r([s(a).b(),s(a).is(`${e.shadow}-shadow`)])},[e.$slots.header||e.header?(o(),t("div",{key:0,class:r(s(a).e("header"))},[l(e.$slots,"header",{},()=>[i(u(e.header),1)])],2)):y("v-if",!0),m("div",{class:r(s(a).e("body")),style:h(e.bodyStyle)},[l(e.$slots,"default")],6)],2))}});var w=f(b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const E=v(w);export{E};
|
@ -0,0 +1 @@
|
||||
import{g as b,h as u,aW as r,d as p,a9 as k,U as o,i as _,av as g,az as O,o as h,V as w,w as $,r as v,n as j,u as c,k as N,Y as C,_ as x,l as E,ah as S}from"./index.f92c5f31.js";const R=Symbol("rowContextKey"),K=b({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:u([Number,Object]),default:()=>r({})},sm:{type:u([Number,Object]),default:()=>r({})},md:{type:u([Number,Object]),default:()=>r({})},lg:{type:u([Number,Object]),default:()=>r({})},xl:{type:u([Number,Object]),default:()=>r({})}}),P=p({name:"ElCol"}),B=p({...P,props:K,setup(f){const t=f,{gutter:l}=k(R,{gutter:o(()=>0)}),a=_("col"),i=o(()=>{const e={};return l.value&&(e.paddingLeft=e.paddingRight=`${l.value/2}px`),e}),m=o(()=>{const e=[];return["span","offset","pull","push"].forEach(s=>{const n=t[s];g(n)&&(s==="span"?e.push(a.b(`${t[s]}`)):n>0&&e.push(a.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{g(t[s])?e.push(a.b(`${s}-${t[s]}`)):O(t[s])&&Object.entries(t[s]).forEach(([n,y])=>{e.push(n!=="span"?a.b(`${s}-${n}-${y}`):a.b(`${s}-${y}`))})}),l.value&&e.push(a.is("guttered")),[a.b(),e]});return(e,d)=>(h(),w(C(e.tag),{class:j(c(m)),style:N(c(i))},{default:$(()=>[v(e.$slots,"default")]),_:3},8,["class","style"]))}});var L=x(B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Y=E(L),A=["start","center","end","space-around","space-between","space-evenly"],D=["top","middle","bottom"],I=b({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:A,default:"start"},align:{type:String,values:D,default:"top"}}),J=p({name:"ElRow"}),T=p({...J,props:I,setup(f){const t=f,l=_("row"),a=o(()=>t.gutter);S(R,{gutter:a});const i=o(()=>{const e={};return t.gutter&&(e.marginRight=e.marginLeft=`-${t.gutter/2}px`),e}),m=o(()=>[l.b(),l.is(`justify-${t.justify}`,t.justify!=="start"),l.is(`align-${t.align}`,t.align!=="top")]);return(e,d)=>(h(),w(C(e.tag),{class:j(c(m)),style:N(c(i))},{default:$(()=>[v(e.$slots,"default")]),_:3},8,["class","style"]))}});var U=x(T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const q=E(U);export{Y as E,q as a};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);-webkit-animation:indeterminate 3s infinite;animation:indeterminate 3s infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@-webkit-keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}
|
@ -1,6 +0,0 @@
|
||||
import{i as M,j as m,d as T,k as A,z as r,G as V,H as O,I as j,J as q,K as G,L as H,M as C,o as l,c,n as i,u as t,e as y,q as f,l as _,t as D,m as I,C as N,w as J,D as K,a as R,s as U,v as Q}from"./index.f859bf4e.js";const X=M({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:u=>u>=0&&u<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:m(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:m([String,Array,Function]),default:""},format:{type:m(Function),default:u=>`${u}%`}}),Y=["aria-valuenow"],Z={viewBox:"0 0 100 100"},ee=["d","stroke","stroke-width"],te=["d","stroke","opacity","stroke-linecap","stroke-width"],se={key:0},ae=T({name:"ElProgress"}),re=T({...ae,props:X,setup(u){const s=u,v={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},a=A("progress"),x=r(()=>({width:`${s.percentage}%`,animationDuration:`${s.duration}s`,backgroundColor:P(s.percentage)})),g=r(()=>(s.strokeWidth/s.width*100).toFixed(1)),b=r(()=>["circle","dashboard"].includes(s.type)?Number.parseInt(`${50-Number.parseFloat(g.value)/2}`,10):0),$=r(()=>{const e=b.value,o=s.type==="dashboard";return`
|
||||
M 50 50
|
||||
m 0 ${o?"":"-"}${e}
|
||||
a ${e} ${e} 0 1 1 0 ${o?"-":""}${e*2}
|
||||
a ${e} ${e} 0 1 1 0 ${o?"":"-"}${e*2}
|
||||
`}),h=r(()=>2*Math.PI*b.value),k=r(()=>s.type==="dashboard"?.75:1),w=r(()=>`${-1*h.value*(1-k.value)/2}px`),B=r(()=>({strokeDasharray:`${h.value*k.value}px, ${h.value}px`,strokeDashoffset:w.value})),z=r(()=>({strokeDasharray:`${h.value*k.value*(s.percentage/100)}px, ${h.value}px`,strokeDashoffset:w.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),E=r(()=>{let e;return s.color?e=P(s.percentage):e=v[s.status]||v.default,e}),F=r(()=>s.status==="warning"?V:s.type==="line"?s.status==="success"?O:j:s.status==="success"?q:G),W=r(()=>s.type==="line"?12+s.strokeWidth*.4:s.width*.111111+2),S=r(()=>s.format(s.percentage));function L(e){const o=100/e.length;return e.map((n,p)=>C(n)?{color:n,percentage:(p+1)*o}:n).sort((n,p)=>n.percentage-p.percentage)}const P=e=>{var o;const{color:d}=s;if(H(d))return d(e);if(C(d))return d;{const n=L(d);for(const p of n)if(p.percentage>e)return p.color;return(o=n[n.length-1])==null?void 0:o.color}};return(e,o)=>(l(),c("div",{class:i([t(a).b(),t(a).m(e.type),t(a).is(e.status),{[t(a).m("without-text")]:!e.showText,[t(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(l(),c("div",{key:0,class:i(t(a).b("bar"))},[y("div",{class:i(t(a).be("bar","outer")),style:f({height:`${e.strokeWidth}px`})},[y("div",{class:i([t(a).be("bar","inner"),{[t(a).bem("bar","inner","indeterminate")]:e.indeterminate}]),style:f(t(x))},[(e.showText||e.$slots.default)&&e.textInside?(l(),c("div",{key:0,class:i(t(a).be("bar","innerText"))},[_(e.$slots,"default",{percentage:e.percentage},()=>[y("span",null,D(t(S)),1)])],2)):I("v-if",!0)],6)],6)],2)):(l(),c("div",{key:1,class:i(t(a).b("circle")),style:f({height:`${e.width}px`,width:`${e.width}px`})},[(l(),c("svg",Z,[y("path",{class:i(t(a).be("circle","track")),d:t($),stroke:`var(${t(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":t(g),fill:"none",style:f(t(B))},null,14,ee),y("path",{class:i(t(a).be("circle","path")),d:t($),stroke:t(E),fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":t(g),style:f(t(z))},null,14,te)]))],6)),(e.showText||e.$slots.default)&&!e.textInside?(l(),c("div",{key:2,class:i(t(a).e("text")),style:f({fontSize:`${t(W)}px`})},[_(e.$slots,"default",{percentage:e.percentage},()=>[e.status?(l(),N(t(R),{key:1},{default:J(()=>[(l(),N(K(t(F))))]),_:1})):(l(),c("span",se,D(t(S)),1))])],6)):I("v-if",!0)],10,Y))}});var oe=U(re,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const le=Q(oe);export{le as E};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
.login-wrap[data-v-0fd4c22f]{width:100%;height:100%}.login-container[data-v-0fd4c22f]{width:100%;height:100%;display:grid;place-items:center}.ms-title[data-v-0fd4c22f]{width:100%;padding:18px 24px;box-sizing:border-box;text-align:center;font-size:20px;color:#fff;border-bottom:1px solid #ddd}.ms-login[data-v-0fd4c22f]{width:min(380px,95vw);padding:5px 10px;border-radius:5px;background:rgba(255,255,255,.3);overflow:hidden}.ms-content[data-v-0fd4c22f]{padding:30px}.login-btn[data-v-0fd4c22f]{text-align:center}.login-btn button[data-v-0fd4c22f]{width:100%;height:36px;margin-bottom:10px}.company-info[data-v-0fd4c22f]{color:#7589b6;text-align:center;position:absolute;left:0;right:0;bottom:10px;font-size:13px;letter-spacing:1px}
|
@ -1 +0,0 @@
|
||||
import{d as E,dJ as x,aR as C,ac as k,dK as N,r as R,o as b,c as h,e as d,t as F,u,b as o,w as a,aT as S,f as T,m as q,bP as B,b0 as D,a as K,bX as f,dL as L,dM as M,_ as U}from"./index.f859bf4e.js";import{E as $,s as j,t as A}from"./el-input.f35758e8.js";import{u as J}from"./user.0bac8e4f.js";import"./send_request.cc43fdb9.js";const O={class:"login-wrap"},P={class:"login-container"},X={class:"ms-login"},z={class:"ms-title"},G={class:"login-btn"},H={key:0,class:"company-info"},Q=E({__name:"login",setup(W){const _=x(),r=C({username:"root",password:"root"}),V={username:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",trigger:"blur"}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801",trigger:"blur"}]},p=k(),v=g=>{!g||g.validate(async(s,l)=>{if(!s){console.log("invalidFields",l),Object.values(l).forEach(e=>{e.forEach(t=>{B.error({message:t.message,grouping:!0})})});return}J({username:r.username,password:r.password}).then(async e=>{var i,c,m,n,y,I,w;if(!e)return;console.log("login data",e,e.userInfo),B.success("\u767B\u5F55\u6210\u529F"),localStorage.setItem("ms_username",(i=e.userInfo)==null?void 0:i.username),localStorage.setItem("ms_realname",(c=e.userInfo)==null?void 0:c.realname),localStorage.setItem("ms_user_id",(m=e.userInfo)==null?void 0:m.id),localStorage.setItem("ms_role_id",(n=e.userInfo)==null?void 0:n.roleId);let t=(w=(I=(y=_.currentRoute)==null?void 0:y.value)==null?void 0:I.query)==null?void 0:w.redirectTo;t&&!t.includes("/login")?_.push(t):_.push("/")})})};return N().clearTags(),(g,s)=>{const l=D,e=$,t=j,i=R("Right"),c=K,m=A;return b(),h("div",O,[d("div",P,[d("div",X,[d("div",z,F(u(f).siteFullTitle),1),o(m,{model:r,rules:V,ref_key:"login",ref:p,"label-width":"0px",class:"ms-content"},{default:a(()=>[o(t,{prop:"username"},{default:a(()=>[o(e,{modelValue:r.username,"onUpdate:modelValue":s[0]||(s[0]=n=>r.username=n),placeholder:"\u7528\u6237\u540D"},{prepend:a(()=>[o(l,{icon:u(L)},null,8,["icon"])]),_:1},8,["modelValue"])]),_:1}),o(t,{prop:"password"},{default:a(()=>[o(e,{type:"password",placeholder:"\u5BC6\u7801",modelValue:r.password,"onUpdate:modelValue":s[1]||(s[1]=n=>r.password=n),onKeyup:s[2]||(s[2]=S(n=>v(p.value),["enter"]))},{prepend:a(()=>[o(l,{icon:u(M)},null,8,["icon"])]),_:1},8,["modelValue"])]),_:1}),d("div",G,[o(l,{type:"primary",onClick:s[3]||(s[3]=n=>v(p.value))},{default:a(()=>[T(" \u767B \u5F55\xA0"),o(c,null,{default:a(()=>[o(i)]),_:1})]),_:1})])]),_:1},8,["model"])])]),u(f).companyName?(b(),h("div",H,F(u(f).companyName),1)):q("",!0)])}}});const te=U(Q,[["__scopeId","data-v-0fd4c22f"]]);export{te as default};
|
@ -0,0 +1 @@
|
||||
import{d as C,dK as x,aI as N,R as S,dL as k,bg as R,X as D,o as B,c as E,b as d,t as h,u as l,a as o,w as a,aL as T,e as q,j as K,bM as f,aU as L,c9 as v,dM as M,dN as U,bS as j}from"./index.f92c5f31.js";import{E as A,t as $,v as O}from"./el-input.7b05f86e.js";import{b as X}from"./user.c71eb139.js";const z={class:"login-wrap"},G={class:"login-container"},H={class:"ms-login"},J={class:"ms-title"},P={class:"login-btn"},Q={key:0,class:"company-info"},W=C({__name:"login",setup(Y){const _=x(),r=N({username:"admin",password:"admin"}),V={username:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",trigger:"blur"}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801",trigger:"blur"}]},p=S(),I=g=>{!g||g.validate(async(s,u)=>{if(!s){console.log("invalidFields",u),Object.values(u).forEach(e=>{e.forEach(t=>{f.error({message:t.message,grouping:!0})})});return}X({username:r.username,password:r.password}).then(async e=>{var i,c,m,n,y,F,w,b;if(!e)return;if(console.log("login data",e,e.userInfo),![1,2].includes((i=e.userInfo)==null?void 0:i.roleId)){f.error("\u60A8\u6240\u5728\u7528\u6237\u7EC4\u65E0\u6743\u767B\u5F55\u5F53\u524D\u7CFB\u7EDF");return}f.success("\u767B\u5F55\u6210\u529F"),localStorage.setItem("ms_username",(c=e.userInfo)==null?void 0:c.username),localStorage.setItem("ms_realname",(m=e.userInfo)==null?void 0:m.realname),localStorage.setItem("ms_user_id",(n=e.userInfo)==null?void 0:n.id),localStorage.setItem("ms_role_id",(y=e.userInfo)==null?void 0:y.roleId);let t=(b=(w=(F=_.currentRoute)==null?void 0:F.value)==null?void 0:w.query)==null?void 0:b.redirectTo;t&&!t.includes("/login")?_.push(t):_.push("/")})})};return k().clearTags(),(g,s)=>{const u=L,e=A,t=$,i=R("Right"),c=D,m=O;return B(),E("div",z,[d("div",G,[d("div",H,[d("div",J,h(l(v).siteFullTitle),1),o(m,{model:r,rules:V,ref_key:"login",ref:p,"label-width":"0px",class:"ms-content"},{default:a(()=>[o(t,{prop:"username"},{default:a(()=>[o(e,{modelValue:r.username,"onUpdate:modelValue":s[0]||(s[0]=n=>r.username=n),placeholder:"\u7528\u6237\u540D"},{prepend:a(()=>[o(u,{icon:l(M)},null,8,["icon"])]),_:1},8,["modelValue"])]),_:1}),o(t,{prop:"password"},{default:a(()=>[o(e,{type:"password",placeholder:"\u5BC6\u7801",modelValue:r.password,"onUpdate:modelValue":s[1]||(s[1]=n=>r.password=n),onKeyup:s[2]||(s[2]=T(n=>I(p.value),["enter"]))},{prepend:a(()=>[o(u,{icon:l(U)},null,8,["icon"])]),_:1},8,["modelValue"])]),_:1}),d("div",P,[o(u,{type:"primary",onClick:s[3]||(s[3]=n=>I(p.value))},{default:a(()=>[q(" \u767B \u5F55\xA0"),o(c,null,{default:a(()=>[o(i)]),_:1})]),_:1})])]),_:1},8,["model"])])]),l(v).companyName?(B(),E("div",Q,h(l(v).companyName),1)):K("",!0)])}}});const te=j(W,[["__scopeId","data-v-ae431c4c"]]);export{te as default};
|
@ -0,0 +1 @@
|
||||
.login-wrap[data-v-ae431c4c]{width:100%;height:100%}.login-container[data-v-ae431c4c]{width:100%;height:100%;display:grid;place-items:center}.ms-title[data-v-ae431c4c]{width:100%;padding:18px 24px;box-sizing:border-box;text-align:center;font-size:20px;color:#fff;border-bottom:1px solid #ddd}.ms-login[data-v-ae431c4c]{width:min(380px,95vw);padding:5px 10px;border-radius:5px;background:rgba(255,255,255,.3);overflow:hidden}.ms-content[data-v-ae431c4c]{padding:30px}.login-btn[data-v-ae431c4c]{text-align:center}.login-btn button[data-v-ae431c4c]{width:100%;height:36px;margin-bottom:10px}.company-info[data-v-ae431c4c]{color:#7589b6;text-align:center;position:absolute;left:0;right:0;bottom:10px;font-size:13px;letter-spacing:1px}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
import{m as t}from"./manage-list.20233657.js";import{g as s,e,d as r,a as n}from"./user.c71eb139.js";import{d as i,o as a,c as o,a as c}from"./index.f92c5f31.js";import"./el-overlay.938d56f5.js";import"./el-input.7b05f86e.js";const d={class:"container"},U=i({__name:"privilege-user-setting",setup(p){return(u,f)=>(a(),o("div",d,[c(t,{"list-func":s,"add-func":e,"edit-func":e,"delete-func":r,"export-func":n,"edit-permiss":"privilege-user-setting"},null,8,["list-func","add-func","edit-func","delete-func","export-func"])]))}});export{U as default};
|
@ -1 +0,0 @@
|
||||
import{m as t}from"./manage-list.8ab8e06b.js";import{g as s,e,d as r,a as i}from"./user.0bac8e4f.js";import{d as n,o,c as a,b as c}from"./index.f859bf4e.js";import"./el-overlay.1542ee54.js";import"./el-input.f35758e8.js";import"./el-progress.d53d438b.js";import"./send_request.cc43fdb9.js";const p={class:"container"},L=n({__name:"privilege-user-setting",setup(d){return(m,u)=>(o(),a("div",p,[c(t,{"list-func":s,"add-func":e,"edit-func":e,"delete-func":r,"export-func":i,"edit-permiss":"privilege-user-setting"},null,8,["list-func","add-func","edit-func","delete-func","export-func"])]))}});export{L as default};
|
@ -0,0 +1 @@
|
||||
import{m}from"./manage-list.20233657.js";import{s}from"./el-input.7b05f86e.js";import{d as o,o as n,c as a,a as p}from"./index.f92c5f31.js";import"./el-overlay.938d56f5.js";function c(e){var r,i;let t=JSON.parse(JSON.stringify(e));return delete t.timestamp,Array.isArray(e.timestamp)&&e.timestamp.length==2&&(t.startTime=(r=e.timestamp[0])==null?void 0:r.getTime(),t.endTime=(i=e.timestamp[1])==null?void 0:i.getTime()),s({url:"/access/report/manage/getReportList",method:"GET",params:t})}function l(e){var r,i;let t=JSON.parse(JSON.stringify(e));return delete t.timestamp,Array.isArray(e.timestamp)&&e.timestamp.length==2&&(t.startTime=(r=e.timestamp[0])==null?void 0:r.getTime(),t.endTime=(i=e.timestamp[1])==null?void 0:i.getTime()),s({url:"/access/report/manage/exportReportList",method:"GET",params:t})}const u={class:"container"},T=o({__name:"report-log",setup(e){return(t,r)=>(n(),a("div",u,[p(m,{"list-func":c,"export-func":l,"edit-permiss":"privilege-user-setting"},null,8,["list-func","export-func"])]))}});export{T as default};
|
@ -1 +0,0 @@
|
||||
import{m}from"./manage-list.8ab8e06b.js";import{s}from"./send_request.cc43fdb9.js";import{d as o,o as n,c as p,b as a}from"./index.f859bf4e.js";import"./el-overlay.1542ee54.js";import"./el-input.f35758e8.js";import"./el-progress.d53d438b.js";function c(e){var r,i;let t=JSON.parse(JSON.stringify(e));return delete t.timestamp,Array.isArray(e.timestamp)&&e.timestamp.length==2&&(t.startTime=(r=e.timestamp[0])==null?void 0:r.getTime(),t.endTime=(i=e.timestamp[1])==null?void 0:i.getTime()),s({url:"/access/report/manage/getReportList",method:"GET",params:t})}function l(e){var r,i;let t=JSON.parse(JSON.stringify(e));return delete t.timestamp,Array.isArray(e.timestamp)&&e.timestamp.length==2&&(t.startTime=(r=e.timestamp[0])==null?void 0:r.getTime(),t.endTime=(i=e.timestamp[1])==null?void 0:i.getTime()),s({url:"/access/report/manage/exportReportList",method:"GET",params:t})}const u={class:"container"},h=o({__name:"report-log",setup(e){return(t,r)=>(n(),p("div",u,[a(m,{"list-func":c,"export-func":l,"edit-permiss":"privilege-user-setting"},null,8,["list-func","export-func"])]))}});export{h as default};
|
@ -1 +0,0 @@
|
||||
import{bU as O,bV as S,bW as P,bX as j,bY as L,bP as b}from"./index.f859bf4e.js";import{v as N}from"./el-input.f35758e8.js";var o=O,g=Object.prototype.hasOwnProperty,x=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},E=function(i){return i.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},v=function(i,e){return i&&typeof i=="string"&&e.comma&&i.indexOf(",")>-1?i.split(","):i},A="utf8=%26%2310003%3B",D="utf8=%E2%9C%93",H=function(e,r){var n={},c=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=r.parameterLimit===1/0?void 0:r.parameterLimit,t=c.split(r.delimiter,u),l=-1,a,f=r.charset;if(r.charsetSentinel)for(a=0;a<t.length;++a)t[a].indexOf("utf8=")===0&&(t[a]===D?f="utf-8":t[a]===A&&(f="iso-8859-1"),l=a,a=t.length);for(a=0;a<t.length;++a)if(a!==l){var d=t[a],p=d.indexOf("]="),h=p===-1?d.indexOf("="):p+1,y,m;h===-1?(y=r.decoder(d,s.decoder,f,"key"),m=r.strictNullHandling?null:""):(y=r.decoder(d.slice(0,h),s.decoder,f,"key"),m=o.maybeMap(v(d.slice(h+1),r),function(w){return r.decoder(w,s.decoder,f,"value")})),m&&r.interpretNumericEntities&&f==="iso-8859-1"&&(m=E(m)),d.indexOf("[]=")>-1&&(m=x(m)?[m]:m),g.call(n,y)?n[y]=o.combine(n[y],m):n[y]=m}return n},C=function(i,e,r,n){for(var c=n?e:v(e,r),u=i.length-1;u>=0;--u){var t,l=i[u];if(l==="[]"&&r.parseArrays)t=[].concat(c);else{t=r.plainObjects?Object.create(null):{};var a=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,f=parseInt(a,10);!r.parseArrays&&a===""?t={0:c}:!isNaN(f)&&l!==a&&String(f)===a&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(t=[],t[f]=c):a!=="__proto__"&&(t[a]=c)}c=t}return c},Q=function(e,r,n,c){if(!!e){var u=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,t=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,a=n.depth>0&&t.exec(u),f=a?u.slice(0,a.index):u,d=[];if(f){if(!n.plainObjects&&g.call(Object.prototype,f)&&!n.allowPrototypes)return;d.push(f)}for(var p=0;n.depth>0&&(a=l.exec(u))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&g.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(a[1])}return a&&d.push("["+u.slice(a.index)+"]"),C(d,r,n,c)}},T=function(e){if(!e)return s;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?s.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?s.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:s.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:s.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:s.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:s.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:s.comma,decoder:typeof e.decoder=="function"?e.decoder:s.decoder,delimiter:typeof e.delimiter=="string"||o.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:s.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:s.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:s.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:s.strictNullHandling}},_=function(i,e){var r=T(e);if(i===""||i===null||typeof i>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof i=="string"?H(i,r):i,c=r.plainObjects?Object.create(null):{},u=Object.keys(n),t=0;t<u.length;++t){var l=u[t],a=Q(l,n[l],r,typeof i=="string");c=o.merge(c,a,r)}return r.allowSparse===!0?c:o.compact(c)},$=S,I=_,U=P,V={formats:U,parse:I,stringify:$};async function M({url:i,method:e="POST",params:r,useQS:n=!1,callback:c}){if(!i)return!1;const u=N.service({lock:!0,text:"\u8BF7\u7A0D\u5019",background:"rgba(0, 0, 0, 0.7)"});let t={baseURL:j.backendHost,url:i,method:e,withCredentials:!0};return e.toUpperCase()=="POST"?(t.headers={"content-type":"application/x-www-form-urlencoded"},t.data=n?V.stringify(r):r):e.toUpperCase()=="GET"&&(t.params=r),L(t).then(l=>{let a=l.data;if(!a.success)return b.error((a==null?void 0:a.msg)||"\u670D\u52A1\u5668\u9519\u8BEF"),null;let f=a.data;return typeof c=="function"&&c(f),f}).catch(l=>(console.error(l),b.error(l.message),!1)).finally(()=>{u.close()})}export{M as s};
|
@ -1 +0,0 @@
|
||||
import{m as r}from"./manage-list.8ab8e06b.js";import{s as t}from"./send_request.cc43fdb9.js";import{d as a,o as n,c as s,b as u}from"./index.f859bf4e.js";import"./el-overlay.1542ee54.js";import"./el-input.f35758e8.js";import"./el-progress.d53d438b.js";function i(e){return t({url:"/shop/good/manage/getCategoryList",method:"GET",params:e})}function o(e){return t({url:"/shop/good/manage/editCategory",method:"POST",useQS:!0,params:e})}function c(e){return t({url:"/shop/good/manage/deleteCategory",method:"POST",useQS:!0,params:e})}function d(e){return t({url:"/shop/good/manage/exportCategoryList",method:"GET",params:e})}const m={class:"container"},L=a({__name:"shop-cate-setting",setup(e){return(p,f)=>(n(),s("div",m,[u(r,{"list-func":i,"add-func":o,"edit-func":o,"delete-func":c,"export-func":d,"edit-permiss":"shop-cate-setting"},null,8,["list-func","add-func","edit-func","delete-func","export-func"])]))}});export{L as default};
|
@ -0,0 +1 @@
|
||||
import{m as a}from"./manage-list.20233657.js";import{s as t}from"./el-input.7b05f86e.js";import{d as n,o as r,c as s,a as u}from"./index.f92c5f31.js";import"./el-overlay.938d56f5.js";function c(e){return t({url:"/shop/good/manage/getCategoryList",method:"GET",params:e})}function o(e){return t({url:"/shop/good/manage/editCategory",method:"POST",useQS:!0,params:e})}function d(e){return t({url:"/shop/good/manage/deleteCategory",method:"POST",useQS:!0,params:e})}function i(e){return t({url:"/shop/good/manage/exportCategoryList",method:"GET",params:e})}const m={class:"container"},C=n({__name:"shop-cate-setting",setup(e){return(p,f)=>(r(),s("div",m,[u(a,{"list-func":c,"add-func":o,"edit-func":o,"delete-func":d,"export-func":i,"edit-permiss":"shop-cate-setting"},null,8,["list-func","add-func","edit-func","delete-func","export-func"])]))}});export{C as default};
|
@ -0,0 +1 @@
|
||||
import{m as n}from"./manage-list.20233657.js";import{s as o}from"./el-input.7b05f86e.js";import{d as s,o as r,c as d,a}from"./index.f92c5f31.js";import"./el-overlay.938d56f5.js";function u(e){return o({url:"/shop/good/manage/getGoodList",method:"GET",params:e})}function t(e){return o({url:"/shop/good/manage/editGood",method:"POST",useQS:!0,params:e})}function i(e){return o({url:"/shop/good/manage/deleteGood",method:"POST",useQS:!0,params:e})}function c(e){return o({url:"/shop/good/manage/exportGoodList",method:"GET",params:e})}const m={class:"container"},G=s({__name:"shop-good-setting",setup(e){return(p,f)=>(r(),d("div",m,[a(n,{"list-func":u,"add-func":t,"edit-func":t,"delete-func":i,"export-func":c,"edit-permiss":"shop-good-setting"},null,8,["list-func","add-func","edit-func","delete-func","export-func"])]))}});export{G as default};
|
@ -1 +0,0 @@
|
||||
import{m as n}from"./manage-list.8ab8e06b.js";import{s as e}from"./send_request.cc43fdb9.js";import{d as r,o as s,c as d,b as a}from"./index.f859bf4e.js";import"./el-overlay.1542ee54.js";import"./el-input.f35758e8.js";import"./el-progress.d53d438b.js";function u(o){return e({url:"/shop/good/manage/getGoodList",method:"GET",params:o})}function t(o){return e({url:"/shop/good/manage/editGood",method:"POST",useQS:!0,params:o})}function i(o){return e({url:"/shop/good/manage/deleteGood",method:"POST",useQS:!0,params:o})}function m(o){return e({url:"/shop/good/manage/exportGoodList",method:"GET",params:o})}const c={class:"container"},L=r({__name:"shop-good-setting",setup(o){return(p,f)=>(s(),d("div",c,[a(n,{"list-func":u,"add-func":t,"edit-func":t,"delete-func":i,"export-func":m,"edit-permiss":"shop-good-setting"},null,8,["list-func","add-func","edit-func","delete-func","export-func"])]))}});export{L as default};
|
@ -0,0 +1 @@
|
||||
.line-height{line-height:2.7em}.row-index{width:110px;display:inline-block}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{s as r}from"./send_request.cc43fdb9.js";function u({username:e,password:s}){return r({url:"/user/login",method:"POST",useQS:!0,params:{username:e,password:s}})}function a(e){return r({url:"/user/manage/getUserList",method:"GET",params:e})}function n(e){return r({url:"/user/manage/editUser",method:"POST",useQS:!0,params:e})}function o(e){return r({url:"/user/manage/deleteUser",method:"POST",useQS:!0,params:e})}function m(e){return r({url:"/user/manage/exportUserList",method:"GET",params:e})}export{m as a,o as d,n as e,a as g,u};
|
File diff suppressed because one or more lines are too long
@ -6,4 +6,4 @@
|
||||
* Released under the MIT license
|
||||
*
|
||||
* Date: 2022-11-20T05:30:43.444Z
|
||||
*/.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.info[data-v-cdea44c0]{text-align:center;padding:35px 0}.info-image[data-v-cdea44c0]{position:relative;margin:auto;width:100px;height:100px;background:#f8f8f8;border:1px solid #eee;border-radius:50px;overflow:hidden}.info-edit[data-v-cdea44c0]{display:flex;justify-content:center;align-items:center;position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);opacity:0;transition:opacity .3s ease}.info-edit i[data-v-cdea44c0]{color:#eee;font-size:25px}.info-image:hover .info-edit[data-v-cdea44c0]{opacity:1}.info-name[data-v-cdea44c0]{margin:15px 0 10px;font-size:24px;font-weight:500;color:#262626}.crop-demo-btn[data-v-cdea44c0]{position:relative}.crop-input[data-v-cdea44c0]{position:absolute;width:100px;height:40px;left:0;top:0;opacity:0;cursor:pointer}
|
||||
*/.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.info[data-v-e7288b09]{text-align:center;padding:35px 0}.info-image[data-v-e7288b09]{position:relative;margin:auto;width:100px;height:100px;background:#f8f8f8;border:1px solid #eee;border-radius:50px;overflow:hidden}.info-edit[data-v-e7288b09]{display:flex;justify-content:center;align-items:center;position:absolute;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);opacity:0;transition:opacity .3s ease}.info-edit i[data-v-e7288b09]{color:#eee;font-size:25px}.info-image:hover .info-edit[data-v-e7288b09]{opacity:1}.info-name[data-v-e7288b09]{margin:15px 0 10px;font-size:24px;font-weight:500;color:#262626}.crop-demo-btn[data-v-e7288b09]{position:relative}.crop-input[data-v-e7288b09]{position:absolute;width:100px;height:40px;left:0;top:0;opacity:0;cursor:pointer}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
import{s as r}from"./el-input.7b05f86e.js";function a({username:e,password:s}){return r({url:"/user/login",method:"POST",useQS:!0,params:{username:e,password:s}})}function n({oldpwd:e,newpwd:s}){let t=localStorage.getItem("ms_user_id");return r({url:"/user/updatePwd",method:"POST",useQS:!0,params:{userId:t,oldpwd:e,newpwd:s}})}function d(e){return r({url:"/user/manage/getUserList",method:"GET",params:e})}function o(e){return r({url:"/user/manage/editUser",method:"POST",useQS:!0,params:e})}function m(e){return r({url:"/user/manage/deleteUser",method:"POST",useQS:!0,params:e})}function i(e){return r({url:"/user/manage/exportUserList",method:"GET",params:e})}export{i as a,a as b,m as d,o as e,d as g,n as u};
|
@ -7,8 +7,8 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="https://at.alicdn.com/t/font_830376_qzecyukz0s.css">
|
||||
<script type="module" crossorigin src="./assets/index.f859bf4e.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.87e2e9b7.css">
|
||||
<script type="module" crossorigin src="./assets/index.f92c5f31.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.ca6f3a66.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -56,7 +56,7 @@ public class GoodController {
|
||||
searchText = null;
|
||||
}
|
||||
}
|
||||
List<GoodVO> list = goodService.list(cateId, searchText);
|
||||
List<GoodVO> list = goodService.listOnSale(cateId, searchText);
|
||||
return Res.success(list);
|
||||
}
|
||||
|
||||
@ -100,7 +100,8 @@ public class GoodController {
|
||||
|
||||
// 分类列表
|
||||
List<GoodCategory> cateList = goodService.getCateList();
|
||||
String cateListForMock = JSONArray.from(cateList.stream().map(i -> i.getId()).collect(Collectors.toList())).toString();
|
||||
String cateListForMock = JSONArray.from(cateList.stream()
|
||||
.map(i -> i.getId().toString()).collect(Collectors.toList())).toString();
|
||||
|
||||
// id列 字段名(区分大小写;以VO中的变量名为准)
|
||||
// 新增、修改弹窗时,使用该列作为主键列进行操作
|
||||
@ -119,7 +120,7 @@ public class GoodController {
|
||||
null // "IMG 120x120,随机图片"
|
||||
)
|
||||
.add("goodsName", "goodsName", "商品名称", "",
|
||||
FieldType.TEXT, SearchType.INPUT, AddType.INPUT, EditType.CAN_NOT_EDIT,
|
||||
FieldType.TEXT, SearchType.INPUT, AddType.INPUT, EditType.INPUT,
|
||||
FieldBuilder.SEARCH_PLACEHOLDER_SAME_AS_FIELDNAME,
|
||||
"商品名称", FieldBuilder.EDIT_PLACEHOLDER_SAME_AS_ADD_PLACEHOLDER,
|
||||
FieldRuleListBuilder.create()
|
||||
@ -133,7 +134,7 @@ public class GoodController {
|
||||
"商品分类", FieldBuilder.EDIT_PLACEHOLDER_SAME_AS_ADD_PLACEHOLDER,
|
||||
FieldRuleListBuilder.create()
|
||||
.add(FieldRuleBuilder.create("商品分类").required()),
|
||||
"DPD @pick(" + cateListForMock + "])"
|
||||
"DPD @pick(" + cateListForMock + ")"
|
||||
)
|
||||
.add("brand", "brand", "商品品牌", "",
|
||||
FieldType.TEXT, SearchType.INPUT, AddType.INPUT, EditType.INPUT,
|
||||
@ -153,7 +154,7 @@ public class GoodController {
|
||||
.add(FieldRuleBuilder.create("商品简介").minMax(6, 30)),
|
||||
"DPD @cword(15, 30)"
|
||||
)
|
||||
.add("isOnSale", "isOnSale", "状态", true,
|
||||
.add("isOnSale", "isOnSaleDisplay", "状态", true,
|
||||
FieldType.TEXT, SearchType.SELECT, AddType.SELECT, EditType.SELECT,
|
||||
FieldBuilder.SEARCH_PLACEHOLDER_SAME_AS_FIELDNAME,
|
||||
"状态", FieldBuilder.EDIT_PLACEHOLDER_SAME_AS_ADD_PLACEHOLDER,
|
||||
@ -177,20 +178,24 @@ public class GoodController {
|
||||
"DPD @cword(1, 2)"
|
||||
)
|
||||
.add("counterPrice", "counterPrice", "专柜价格", "",
|
||||
FieldType.TEXT, SearchType.INPUT, AddType.INPUT, EditType.INPUT,
|
||||
FieldType.TEXT, SearchType.INPUT, AddType.INPUT_NUMBER, EditType.INPUT_NUMBER,
|
||||
"专柜价/原价/划线价",
|
||||
"专柜价格 / 原价 / 划线价", FieldBuilder.EDIT_PLACEHOLDER_SAME_AS_ADD_PLACEHOLDER,
|
||||
FieldRuleListBuilder.create()
|
||||
.add(FieldRuleBuilder.create("专柜价格").required()),
|
||||
"DTD /^\\d+?(\\.?\\d+?)?$/"
|
||||
.add(FieldRuleBuilder.create("专柜价格").required())
|
||||
// .add(FieldRuleBuilder.create("专柜价格").regexp("^(\\d+(\\.\\d{1,2})?)$"))
|
||||
,
|
||||
"DTD /^[1-9]\\d{0,4}(\\.?\\d{1,2})?$/"
|
||||
)
|
||||
.add("retailPrice", "retailPrice", "零售价格", "",
|
||||
FieldType.TEXT, SearchType.INPUT, AddType.INPUT, EditType.INPUT,
|
||||
FieldType.TEXT, SearchType.INPUT, AddType.INPUT_NUMBER, EditType.INPUT_NUMBER,
|
||||
"零售价/售价/未划线价",
|
||||
"零售价 / 售价 / 未划线价", FieldBuilder.EDIT_PLACEHOLDER_SAME_AS_ADD_PLACEHOLDER,
|
||||
FieldRuleListBuilder.create()
|
||||
.add(FieldRuleBuilder.create("零售价格").required()),
|
||||
"DTD /^\\d+?(\\.?\\d+?)?$/"
|
||||
.add(FieldRuleBuilder.create("零售价格").required())
|
||||
// .add(FieldRuleBuilder.create("零售价格").regexp("^(\\d+(\\.\\d{1,2})?)$"))
|
||||
,
|
||||
"DTD /^[1-9]\\d{0,2}(\\.?\\d{1,2})?$/"
|
||||
)
|
||||
.add("detail", "detail", "商品详细介绍", "暂无商品详细介绍",
|
||||
FieldType.LONG_TEXT, SearchType.INPUT, AddType.TEXTAREA, EditType.TEXTAREA,
|
||||
@ -212,7 +217,7 @@ public class GoodController {
|
||||
// build
|
||||
JSONArray fieldMapper = FieldMapperBuilder.create()
|
||||
.add("categoryId", "categoryName", cateMap)
|
||||
.add("isOnSale", "isOnSale", stateMap)
|
||||
.add("isOnSale", "isOnSaleDisplay", stateMap)
|
||||
.build();
|
||||
|
||||
// 拼装返回结果
|
||||
@ -237,6 +242,18 @@ public class GoodController {
|
||||
@ResponseBody
|
||||
public Res editGood(@ModelAttribute GoodVO goodVO) {
|
||||
Good good = GoodVO.convertTo(goodVO);
|
||||
Double retailPrice = good.getRetailPrice();
|
||||
if (Objects.nonNull(retailPrice)) {
|
||||
if (retailPrice < 0 || retailPrice > 99999999.99) {
|
||||
return Res.error("零售价格输入不符,须在 0 - 99999999.99 之间");
|
||||
}
|
||||
}
|
||||
Double counterPrice = good.getCounterPrice();
|
||||
if (Objects.nonNull(counterPrice)) {
|
||||
if (counterPrice < 0 || counterPrice > 99999999.99) {
|
||||
return Res.error("专柜价格输入不符,须在 0 - 99999999.99 之间");
|
||||
}
|
||||
}
|
||||
|
||||
// 先查询商品是否存在
|
||||
Good existGood = goodService.getGoodById(good.getId());
|
||||
|
@ -14,6 +14,8 @@ public interface GoodDao {
|
||||
|
||||
List<Good> list(@Param("cateId") Integer cateId, @Param("searchText") String searchText);
|
||||
|
||||
List<Good> listOnSale(@Param("cateId") Integer cateId, @Param("searchText") String searchText);
|
||||
|
||||
Good getById(Long id);
|
||||
|
||||
Good selectById(Long id);
|
||||
|
@ -27,6 +27,13 @@ public class GoodService {
|
||||
return goodVOS;
|
||||
}
|
||||
|
||||
// 只列出上架状态的商品
|
||||
public List<GoodVO> listOnSale(Integer cateId, String searchText) {
|
||||
List<Good> list = goodDao.listOnSale(cateId, searchText);
|
||||
List<GoodVO> goodVOS = GoodVO.convertFrom(list);
|
||||
return goodVOS;
|
||||
}
|
||||
|
||||
public GoodVO getById(Long id) {
|
||||
Good good = goodDao.getById(id);
|
||||
GoodVO goodVO = GoodVO.convertFrom(good);
|
||||
|
@ -37,6 +37,18 @@
|
||||
</if>
|
||||
order by `sort_order` asc
|
||||
</select>
|
||||
<select id="listOnSale" resultType="com.cxyxiaomo.epp.common.pojo.Good">
|
||||
SELECT *
|
||||
FROM goods
|
||||
WHERE is_on_sale = 1
|
||||
<if test="cateId != null">
|
||||
AND category_id = #{cateId}
|
||||
</if>
|
||||
<if test="searchText != null">
|
||||
AND goods_name LIKE concat('%',#{searchText,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
order by `sort_order` asc
|
||||
</select>
|
||||
<select id="getById" parameterType="java.lang.Long" resultType="com.cxyxiaomo.epp.common.pojo.Good">
|
||||
SELECT *
|
||||
FROM goods
|
||||
|
105
database/epp.sql
105
database/epp.sql
@ -11,7 +11,7 @@
|
||||
Target Server Version : 80012
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 18/04/2023 22:57:18
|
||||
Date: 25/04/2023 02:57:07
|
||||
*/
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
@ -28,19 +28,28 @@ CREATE TABLE `access_log` (
|
||||
`user_real_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户真实姓名',
|
||||
`gate_id` bigint(20) NOT NULL COMMENT '大门id',
|
||||
`type` enum('IN','OUT') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '类型(进门 OR 出门)'
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '人员进出记录表' ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '人员进出记录表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of access_log
|
||||
-- ----------------------------
|
||||
INSERT INTO `access_log` VALUES (1759407313074130949, '2023-04-18 00:56:32', 3, '用户 密码user', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759408311121350660, '2023-04-18 01:00:30', 3, '用户 密码user', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759408461545869315, '2023-04-18 01:01:05', 3, '用户 密码user', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759409402835767298, '2023-04-18 01:04:50', 3, '用户 密码user', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759410073555308546, '2023-04-18 01:07:30', 3, '用户 密码user', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759411594028257285, '2023-04-18 01:13:32', 3, '用户 密码user', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759412052071419911, '2023-04-18 01:15:22', 3, '用户 密码user', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759412344213082116, '2023-04-18 01:16:31', 3, '用户 密码user', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759407313074130949, '2023-04-18 00:56:32', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759408311121350660, '2023-04-18 01:00:30', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759408461545869315, '2023-04-18 01:01:05', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759409402835767298, '2023-04-18 01:04:50', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759410073555308546, '2023-04-18 01:07:30', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759411594028257285, '2023-04-18 01:13:32', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759412052071419911, '2023-04-18 01:15:22', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1759412344213082116, '2023-04-18 01:16:31', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1761945003858464777, '2023-04-25 01:00:24', 3, '普通用户acsu1', 1758638368624873480, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1761946898962452483, '2023-04-25 01:07:56', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1761946945452118019, '2023-04-25 01:08:07', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1761946984043909124, '2023-04-25 01:08:16', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1761947169356648453, '2023-04-25 01:09:01', 3, '普通用户acsu1', 1758638368624873480, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1761947208124600320, '2023-04-25 01:09:10', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1761955409775693833, '2023-04-25 01:41:45', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1761958712752345097, '2023-04-25 01:54:53', 3, '普通用户acsu1', 1758617522619420679, 'IN');
|
||||
INSERT INTO `access_log` VALUES (1761960057291018242, '2023-04-25 02:00:13', 3, '普通用户acsu1', 1758638368624873480, 'IN');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for apply1
|
||||
@ -57,7 +66,7 @@ CREATE TABLE `apply1` (
|
||||
`state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:通过,2:驳回)',
|
||||
`reason` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '驳回原因',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of apply1
|
||||
@ -73,22 +82,6 @@ INSERT INTO `apply1` VALUES (10, 12, '1', '飞机', '1', '2022-06-15 10:53:00',
|
||||
INSERT INTO `apply1` VALUES (11, 2, '1', '飞机', '1', '2022-10-23 16:17:00', '2022-10-23 18:17:00', 1, '');
|
||||
INSERT INTO `apply1` VALUES (12, 13, '1', '飞机', '1', '2022-10-26 19:25:00', '2022-10-26 21:25:00', 1, '');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for count1
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `count1`;
|
||||
CREATE TABLE `count1` (
|
||||
`date` date NOT NULL COMMENT '日期',
|
||||
`time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '时间',
|
||||
`in_num` int(11) NULL DEFAULT NULL COMMENT '入校人数',
|
||||
`out_num` int(11) NULL DEFAULT NULL COMMENT '出校人数',
|
||||
PRIMARY KEY (`date`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of count1
|
||||
-- ----------------------------
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for feedback1
|
||||
-- ----------------------------
|
||||
@ -101,7 +94,7 @@ CREATE TABLE `feedback1` (
|
||||
`user_id` int(11) NULL DEFAULT NULL COMMENT '反馈用户id',
|
||||
`reply` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回复',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of feedback1
|
||||
@ -117,11 +110,11 @@ INSERT INTO `feedback1` VALUES (5, '123', '123456', '2022-03-28 19:34:04', 2, NU
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `gate`;
|
||||
CREATE TABLE `gate` (
|
||||
`id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT '雪花id',
|
||||
`id` bigint(11) NOT NULL COMMENT '雪花id',
|
||||
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '大门显示名称',
|
||||
`open` tinyint(1) NOT NULL DEFAULT 1 COMMENT '大门是否开放 1为开放 2为关闭',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1758638368624873480 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '社区大门' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '社区大门' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of gate
|
||||
@ -144,7 +137,7 @@ CREATE TABLE `goods` (
|
||||
`gallery` varchar(1023) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '[]' COMMENT '商品宣传图片列表,采用JSON数组格式',
|
||||
`brief` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品简介',
|
||||
`is_on_sale` tinyint(1) NULL DEFAULT 1 COMMENT '是否上架 0为下架 1为上架',
|
||||
`sort_order` smallint(4) NULL DEFAULT 100 COMMENT '排序',
|
||||
`sort_order` int(11) NULL DEFAULT 100 COMMENT '排序',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品页面商品图片',
|
||||
`type` tinyint(1) NULL DEFAULT 0 COMMENT '商品类型',
|
||||
`unit` varchar(31) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '件' COMMENT '商品单位,例如件、盒',
|
||||
@ -260,7 +253,7 @@ CREATE TABLE `goods_category` (
|
||||
`category_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品分类名',
|
||||
`order` int(11) NULL DEFAULT NULL COMMENT '排序',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of goods_category
|
||||
@ -272,7 +265,7 @@ INSERT INTO `goods_category` VALUES (4, '防疫物资', 0);
|
||||
INSERT INTO `goods_category` VALUES (5, '零食', 3);
|
||||
INSERT INTO `goods_category` VALUES (6, '肉类', 2);
|
||||
INSERT INTO `goods_category` VALUES (7, '饮料酒水', 4);
|
||||
INSERT INTO `goods_category` VALUES (8, '测试6', 11);
|
||||
INSERT INTO `goods_category` VALUES (8, '测试', 11);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for notice1
|
||||
@ -284,7 +277,7 @@ CREATE TABLE `notice1` (
|
||||
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
|
||||
`time` date NULL DEFAULT NULL COMMENT '时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of notice1
|
||||
@ -321,19 +314,20 @@ CREATE TABLE `order` (
|
||||
-- ----------------------------
|
||||
INSERT INTO `order` VALUES (1748800678865801225, 3, '2023-03-21 15:50:19', 'Cancelled', 21.99, NULL, '2023-04-17 22:16:07', NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1749495597129404427, 3, '2023-03-21 16:30:54', 'Cancelled', 5.99, '2023-04-17 22:40:03', '2023-04-17 22:57:59', NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1749495896040673288, 3, '2023-03-21 16:32:06', 'Processing', 5.99, '2023-04-17 22:59:17', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1749495896040673288, 3, '2023-03-21 16:32:06', 'Cancelled', 5.99, '2023-04-17 22:59:17', '2023-04-24 22:27:49', NULL, NULL, '', '管理员取消了您的订单,费用已退回至您的帐户,如有疑问请联系管理员');
|
||||
INSERT INTO `order` VALUES (1749496012575215624, 3, '2023-03-21 16:32:33', 'Shipped', 17.97, '2023-04-17 22:59:37', NULL, NULL, NULL, '111', '222');
|
||||
INSERT INTO `order` VALUES (1750312359831932932, 3, '2023-03-23 22:36:26', 'Delivered', 87.50, '2023-04-17 23:01:59', NULL, NULL, '2023-04-17 23:13:54', '111', '222');
|
||||
INSERT INTO `order` VALUES (1750312445567700999, 3, '2023-03-23 22:36:46', 'Pending', 87.50, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1750313361633054722, 3, '2023-03-23 22:40:25', 'Pending', 2.50, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1758148329772027912, 3, '2023-04-14 13:33:47', 'Pending', 2.00, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1758148627185930246, 3, '2023-04-14 13:34:58', 'Pending', 2.00, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1758148669368045578, 3, '2023-04-14 13:35:08', 'Pending', 3.00, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1758659566150750208, 3, '2023-04-15 23:25:15', 'Pending', 19.90, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1758148627185930246, 3, '2023-04-14 13:34:58', 'Shipped', 2.00, '2023-04-17 22:59:17', NULL, '2023-04-24 22:33:25', NULL, '1', '1111111');
|
||||
INSERT INTO `order` VALUES (1758148669368045578, 3, '2023-04-14 13:35:08', 'Shipped', 3.00, '2023-04-17 22:59:17', NULL, '2023-04-22 23:46:45', NULL, 'aaa', 'aaa');
|
||||
INSERT INTO `order` VALUES (1758659566150750208, 3, '2023-04-15 23:25:15', 'Shipped', 19.90, '2023-04-17 22:59:17', NULL, '2023-04-22 23:39:41', NULL, '', '123');
|
||||
INSERT INTO `order` VALUES (1758659642495471619, 3, '2023-04-15 23:25:33', 'Pending', 138.00, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1758659766395211784, 3, '2023-04-15 23:26:03', 'Delivered', 59.80, '2023-04-17 23:40:11', NULL, '2023-04-17 23:40:36', '2023-04-17 23:40:54', '111', '222');
|
||||
INSERT INTO `order` VALUES (1758659860087574537, 3, '2023-04-15 23:26:25', 'Pending', 98.00, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `order` VALUES (1758660000932302858, 3, '2023-04-15 23:26:59', 'Delivered', 37932.00, '2023-04-17 23:14:14', NULL, NULL, '2023-04-17 23:14:42', '111', NULL);
|
||||
INSERT INTO `order` VALUES (1761154434357923843, 3, '2023-04-22 20:38:58', 'Pending', 3.99, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for order_detail
|
||||
@ -350,7 +344,7 @@ CREATE TABLE `order_detail` (
|
||||
INDEX `good_id`(`good_id`) USING BTREE,
|
||||
CONSTRAINT `order_detail_ibfk_1` FOREIGN KEY (`good_id`) REFERENCES `goods` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
|
||||
CONSTRAINT `order_detail_ibfk_2` FOREIGN KEY (`order_id`) REFERENCES `order` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 53 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 55 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of order_detail
|
||||
@ -376,6 +370,7 @@ INSERT INTO `order_detail` VALUES (50, 1758659642495471619, 38, 1, 138.00);
|
||||
INSERT INTO `order_detail` VALUES (51, 1758659766395211784, 46, 2, 29.90);
|
||||
INSERT INTO `order_detail` VALUES (52, 1758659860087574537, 36, 1, 98.00);
|
||||
INSERT INTO `order_detail` VALUES (53, 1758660000932302858, 89, 1, 37932.00);
|
||||
INSERT INTO `order_detail` VALUES (54, 1761154434357923843, 16, 1, 3.99);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for report
|
||||
@ -389,23 +384,23 @@ CREATE TABLE `report` (
|
||||
`temperature` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '体温是否正常',
|
||||
`address` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 84 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 85 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of report
|
||||
-- ----------------------------
|
||||
INSERT INTO `report` VALUES (53, 3, '用户 密码user', '2022-12-26 20:35:38', '1', '湖北省武汉市洪山区文治街南湖雅园(洪山区信访局对面)');
|
||||
INSERT INTO `report` VALUES (55, 3, '用户 密码user', '2022-12-27 21:03:24', '0', '湖北省武汉市洪山区文治街508号南湖雅园F栋2-104号');
|
||||
INSERT INTO `report` VALUES (57, 3, '用户 密码user', '2022-12-28 21:47:57', '0', '湖北省武汉市洪山区文治街南湖雅园(洪山区信访局对面)');
|
||||
INSERT INTO `report` VALUES (58, 3, '用户 密码user', '2022-12-29 18:20:00', '1', '湖北省武汉市洪山区鲁磨路209号');
|
||||
INSERT INTO `report` VALUES (59, 3, '用户 密码user', '2023-03-17 00:27:21', '0', '湖北省武汉市洪山区雄楚大道珞狮南路南湖雅园F-4-106');
|
||||
INSERT INTO `report` VALUES (60, 3, '用户 密码user', '2023-03-20 00:47:22', '0', '湖北省武汉市武昌区武车路');
|
||||
INSERT INTO `report` VALUES (61, 3, '用户 密码user', '2023-03-23 22:24:14', '0', '湖北省武汉市武昌区修远路');
|
||||
INSERT INTO `report` VALUES (62, 3, '用户 密码user', '2023-03-13 22:54:12', '0', '湖北省武汉市洪山区文治街102-4号');
|
||||
INSERT INTO `report` VALUES (70, 3, '用户 密码user', '2023-04-14 00:36:55', '0', '湖北省武汉市洪山区文治街102-4号');
|
||||
INSERT INTO `report` VALUES (71, 3, '用户 密码user', '2023-04-14 13:36:23', '0', '湖北省武汉市洪山区紫菘花园东路');
|
||||
INSERT INTO `report` VALUES (72, 3, '用户 密码user', '2023-04-15 23:24:18', '0', '湖北省武汉市洪山区紫菘花园东路');
|
||||
INSERT INTO `report` VALUES (84, 3, '用户 密码user', '2023-04-17 23:41:21', '0', '湖北省武汉市洪山区紫菘花园东路');
|
||||
INSERT INTO `report` VALUES (53, 3, '普通用户acsu1', '2022-12-26 20:35:38', '1', '湖北省武汉市洪山区文治街南湖雅园(洪山区信访局对面)');
|
||||
INSERT INTO `report` VALUES (55, 3, '普通用户acsu1', '2022-12-27 21:03:24', '0', '湖北省武汉市洪山区文治街508号南湖雅园F栋2-104号');
|
||||
INSERT INTO `report` VALUES (57, 3, '普通用户acsu1', '2022-12-28 21:47:57', '0', '湖北省武汉市洪山区文治街南湖雅园(洪山区信访局对面)');
|
||||
INSERT INTO `report` VALUES (58, 3, '普通用户acsu1', '2022-12-29 18:20:00', '1', '湖北省武汉市洪山区鲁磨路209号');
|
||||
INSERT INTO `report` VALUES (59, 3, '普通用户acsu1', '2023-03-17 00:27:21', '0', '湖北省武汉市洪山区雄楚大道珞狮南路南湖雅园F-4-106');
|
||||
INSERT INTO `report` VALUES (60, 3, '普通用户acsu1', '2023-03-20 00:47:22', '0', '湖北省武汉市武昌区武车路');
|
||||
INSERT INTO `report` VALUES (61, 3, '普通用户acsu1', '2023-03-23 22:24:14', '0', '湖北省武汉市武昌区修远路');
|
||||
INSERT INTO `report` VALUES (62, 3, '普通用户acsu1', '2023-03-13 22:54:12', '0', '湖北省武汉市洪山区文治街102-4号');
|
||||
INSERT INTO `report` VALUES (70, 3, '普通用户acsu1', '2023-04-14 00:36:55', '0', '湖北省武汉市洪山区文治街102-4号');
|
||||
INSERT INTO `report` VALUES (71, 3, '普通用户acsu1', '2023-04-14 13:36:23', '0', '湖北省武汉市洪山区紫菘花园东路');
|
||||
INSERT INTO `report` VALUES (72, 3, '普通用户acsu1', '2023-04-15 23:24:18', '0', '湖北省武汉市洪山区紫菘花园东路');
|
||||
INSERT INTO `report` VALUES (84, 3, '普通用户acsu1', '2023-04-17 23:41:21', '0', '湖北省武汉市洪山区紫菘花园东路');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for role
|
||||
@ -415,7 +410,7 @@ CREATE TABLE `role` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'role_id',
|
||||
`role_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'roleName',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of role
|
||||
@ -470,7 +465,7 @@ CREATE TABLE `user` (
|
||||
-- ----------------------------
|
||||
INSERT INTO `user` VALUES (1, 'root', '99adc231b045331e514a516b4b7680f588e3823213abe901738bc3ad67b2f6fcb3c64efb93d18002588d3ccc1a49efbae1ce20cb43df36b38651f11fa75678e8', '管理员 密码root', '420111111111111112', '18911111111', 1, '28-1', '1101', '1', NULL, NULL);
|
||||
INSERT INTO `user` VALUES (2, 'admin', 'c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec', '社区管理员 密码admin', '420111111111111111', '027-22222121', 2, '16-3', '0203', '1', NULL, NULL);
|
||||
INSERT INTO `user` VALUES (3, 'user', 'b14361404c078ffd549c03db443c3fede2f3e534d73f78f77301ed97d4a436a9fd9db05ee8b325c0ad36438b43fec8510c204fc1c1edb21d0941c00e9e2c1ce2', '用户 密码user', '420111111111111111', '18911111111', 3, '20-2', '0802', '1', NULL, 'oFzuC4pvbPzY7vI6vmP6_57iTk-U');
|
||||
INSERT INTO `user` VALUES (3, 'user', 'b14361404c078ffd549c03db443c3fede2f3e534d73f78f77301ed97d4a436a9fd9db05ee8b325c0ad36438b43fec8510c204fc1c1edb21d0941c00e9e2c1ce2', '普通用户acsu1', '420111111111111111', '18911111111', 3, '20-2', '0802', '1', NULL, 'oFzuC4pvbPzY7vI6vmP6_57iTk-U');
|
||||
INSERT INTO `user` VALUES (4, 'user2', 'b14361404c078ffd549c03db443c3fede2f3e534d73f78f77301ed97d4a436a9fd9db05ee8b325c0ad36438b43fec8510c204fc1c1edb21d0941c00e9e2c1ce2', '用户2 密码user', '420111111111111111', '027-22222121', 3, '20-2', '0802', '1', NULL, NULL);
|
||||
INSERT INTO `user` VALUES (5, 'user3', 'b14361404c078ffd549c03db443c3fede2f3e534d73f78f77301ed97d4a436a9fd9db05ee8b325c0ad36438b43fec8510c204fc1c1edb21d0941c00e9e2c1ce2', '用户3 密码user', '420111111111111111', '112', 3, '20-2', '0802', '1', NULL, NULL);
|
||||
INSERT INTO `user` VALUES (6, 'user4', 'b14361404c078ffd549c03db443c3fede2f3e534d73f78f77301ed97d4a436a9fd9db05ee8b325c0ad36438b43fec8510c204fc1c1edb21d0941c00e9e2c1ce2', '用户4 密码user', '420111111111111111', '112', 3, '20-2', '0802', '1', NULL, NULL);
|
||||
@ -506,7 +501,7 @@ CREATE TABLE `visitor1` (
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:成功,2:驳回)',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of visitor1
|
||||
|
1
frontend/components.d.ts
vendored
1
frontend/components.d.ts
vendored
@ -27,7 +27,6 @@ declare module '@vue/runtime-core' {
|
||||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
||||
ElOption: typeof import('element-plus/es')['ElOption']
|
||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||
ElProgress: typeof import('element-plus/es')['ElProgress']
|
||||
ElRadio: typeof import('element-plus/es')['ElRadio']
|
||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||
ElRow: typeof import('element-plus/es')['ElRow']
|
||||
|
@ -5,9 +5,9 @@
|
||||
<!-- 筛选 -->
|
||||
<div class="handle-box">
|
||||
<template v-for="field in searchFields">
|
||||
<el-input v-if="field.searchType == 'input'" v-model="query[field.field]"
|
||||
@keyup.enter.native="handleSearch" :placeholder="field.placeholder" :prefix-icon="Filter"
|
||||
class="handle-input mr10"></el-input>
|
||||
<el-input v-if="field.searchType == 'input' || field.searchType == 'input-number'"
|
||||
v-model="query[field.field]" @keyup.enter.native="handleSearch" :placeholder="field.placeholder"
|
||||
:prefix-icon="Filter" class="handle-input mr10"></el-input>
|
||||
<el-select v-else-if="field.searchType == 'select'" v-model="query[field.field]" :clearable="true"
|
||||
@change="handleSearch" :placeholder="field.placeholder" class="handle-select mr10">
|
||||
<template #prefix>
|
||||
@ -61,7 +61,7 @@
|
||||
<template #default="scope">
|
||||
<template v-if="props.customEditHandle">
|
||||
<el-button text :icon="List"
|
||||
@click="props.customEditHandle((scope as any).$index, (scope as any).row, getData)"
|
||||
@click="props.customEditHandle?.((scope as any).$index, (scope as any).row, getData)"
|
||||
v-permiss="props.editPermiss">
|
||||
管理
|
||||
</el-button>
|
||||
@ -98,6 +98,9 @@
|
||||
<el-input v-if="(formId > 0 ? field.editType : field.addType) == 'input'"
|
||||
:placeholder="formId > 0 ? field.editPlaceholder : field.addPlaceholder" class="popup-item"
|
||||
v-model="form[field.field]"></el-input>
|
||||
<el-input v-else-if="(formId > 0 ? field.editType : field.addType) == 'input-number'" type="number"
|
||||
:placeholder="formId > 0 ? field.editPlaceholder : field.addPlaceholder" class="popup-item"
|
||||
v-model="form[field.field]"></el-input>
|
||||
<el-input v-else-if="(formId > 0 ? field.editType : field.addType) == 'textarea'"
|
||||
:placeholder="formId > 0 ? field.editPlaceholder : field.addPlaceholder" class="popup-item"
|
||||
v-model="form[field.field]" type="textarea" :rows="4"></el-input>
|
||||
@ -396,7 +399,8 @@ const handleEdit = (index: number, row: any) => {
|
||||
for (let f of dialogFields.value) {
|
||||
switch (f.editType) {
|
||||
case "select":
|
||||
// 下拉框的值要为 string 类型
|
||||
case "input-number":
|
||||
// 下拉框、数字输入框的值要为 string 类型
|
||||
form[f.field] = String(row[f.field]);
|
||||
break;
|
||||
default:
|
||||
@ -416,7 +420,8 @@ const handleNew = () => {
|
||||
for (let f of dialogFields.value) {
|
||||
switch (f.editType) {
|
||||
case "select":
|
||||
// 下拉框的值要为 string 类型
|
||||
case "input-number":
|
||||
// 下拉框、数字输入框的值要为 string 类型
|
||||
form[f.field] = String(f.default);
|
||||
break;
|
||||
default:
|
||||
|
@ -15,17 +15,17 @@ export const usePermissStore = defineStore('permiss', {
|
||||
|
||||
"dashboard",
|
||||
|
||||
"access",
|
||||
"access-log",
|
||||
"access-gate-setting",
|
||||
// "access",
|
||||
// "access-log",
|
||||
// "access-gate-setting",
|
||||
|
||||
"report",
|
||||
"report-log",
|
||||
// "report",
|
||||
// "report-log",
|
||||
|
||||
"shop",
|
||||
"shop-cate-setting",
|
||||
"shop-good-setting",
|
||||
"shop-order-setting",
|
||||
// "shop",
|
||||
// "shop-cate-setting",
|
||||
// "shop-good-setting",
|
||||
// "shop-order-setting",
|
||||
|
||||
"privilege",
|
||||
"privilege-user-setting",
|
||||
@ -49,8 +49,8 @@ export const usePermissStore = defineStore('permiss', {
|
||||
"shop-good-setting",
|
||||
"shop-order-setting",
|
||||
|
||||
"privilege",
|
||||
"privilege-user-setting",
|
||||
// "privilege",
|
||||
// "privilege-user-setting",
|
||||
]
|
||||
};
|
||||
},
|
||||
|
@ -67,8 +67,8 @@ interface RoleInfo {
|
||||
|
||||
const router = useRouter();
|
||||
const param = reactive<LoginInfo>({
|
||||
username: 'root',
|
||||
password: 'root'
|
||||
username: 'admin',
|
||||
password: 'admin'
|
||||
});
|
||||
|
||||
const rules: FormRules = {
|
||||
|
16
z 论文TODO.txt
16
z 论文TODO.txt
@ -7,20 +7,4 @@ TODO
|
||||
文档中的TODO处理
|
||||
|
||||
|
||||
|
||||
论文可以参考一下:https://blog.csdn.net/WeiXin_DZbishe/article/details/127091024
|
||||
|
||||
|
||||
【中英论文下载】
|
||||
强烈推荐使用谷歌浏览器
|
||||
卡号:356983353,密码:270045
|
||||
打开链接
|
||||
www.mv616.xyz,点击页面顶端【会员登录】
|
||||
输入发给你的卡号卡密,点击【资源列表】然后点击【中文/英文数据库】
|
||||
_________________________________________________________________
|
||||
|
||||
1,每个数据库里面很多入口,选择一个点击进去,搜不到或者不能下载的,换其他入口使用即可!
|
||||
2,三小时内5星带10字以上好评告知客服,免费送第三方查重工具哦!
|
||||
|
||||
|
||||
*不限制下载数量,遇到使用问题请咨询客服或者留言,不满意支持退款的哦!
|
||||
|
Loading…
Reference in New Issue
Block a user