提交 fb90cefb 编写于 作者: 刘英杰's avatar 刘英杰

版本:Build 1.0.0 - 250526 1.0.1

上级 87c8b719
流水线 #35241 已通过 ,包含阶段
in 4 minute 和 53 second
...@@ -26,4 +26,6 @@ ...@@ -26,4 +26,6 @@
D:\ASC_web\A00051\occupancyManagement\wx D:\ASC_web\A00051\occupancyManagement\wx
# 维护记录
### 版本:Build 1.0.0 - 250526 1.0.1
- 1.签到界面》定位时,记录定位参数,通过后端接口记录;
import{f as u,h as l,u as p,i as f,c as m,a as d,j as _,L as y,o as k,k as g,p as h,l as v,n as x,q as T,r as I,t as q}from"./index-D_Gydj3j.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},S={__name:"SSO",setup(A){const n=u(),r=l(),o=p();function a(){I().then(t=>{t.response.role_list.forEach((e,s)=>{e==="1"&&t.response.role_list.splice(s,1)}),n.setUserInfo({...t.response,role:t.response.role_list[0]}),q().then(e=>{r.setDomainInfo(e.response)}),o.replace({name:"welcome"})})}function c(){o.replace({name:"403"})}const i=async()=>{({wx:()=>{h({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?c():(n.setToken(e.response),a())})},asc:async()=>{v({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?c():(n.setToken(e.response),a())})},first:()=>{let e={sign:o.currentRoute.value.query.sign,code:o.currentRoute.value.query.code,timestamp:o.currentRoute.value.query.timestamp};x(e).then(s=>{s.code!==1?c():(n.setToken(s.response),a())})},test:()=>{T({card:"syjs295"}).then(e=>{e.code!==1?c():(n.setToken(e.response),a())})}})[o.currentRoute.value.query.type]()};return f(()=>{i()}),(t,e)=>{const s=y;return k(),m("div",R,[d(s,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>[g(" 登录中")]),_:1})])}}};export{S as default}; import{f as u,h as l,u as p,i as f,c as m,a as d,j as _,L as y,o as k,k as g,p as h,l as v,n as x,q as T,r as I,t as q}from"./index-B3zhRcce.js";const R={style:{display:"flex","justify-content":"center","margin-top":"50%"}},S={__name:"SSO",setup(A){const n=u(),r=l(),o=p();function a(){I().then(t=>{t.response.role_list.forEach((e,s)=>{e==="1"&&t.response.role_list.splice(s,1)}),n.setUserInfo({...t.response,role:t.response.role_list[0]}),q().then(e=>{r.setDomainInfo(e.response)}),o.replace({name:"welcome"})})}function c(){o.replace({name:"403"})}const i=async()=>{({wx:()=>{h({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?c():(n.setToken(e.response),a())})},asc:async()=>{v({token:o.currentRoute.value.query.token}).then(e=>{e.code!==1?c():(n.setToken(e.response),a())})},first:()=>{let e={sign:o.currentRoute.value.query.sign,code:o.currentRoute.value.query.code,timestamp:o.currentRoute.value.query.timestamp};x(e).then(s=>{s.code!==1?c():(n.setToken(s.response),a())})},test:()=>{T({card:"syjs295"}).then(e=>{e.code!==1?c():(n.setToken(e.response),a())})}})[o.currentRoute.value.query.type]()};return f(()=>{i()}),(t,e)=>{const s=y;return k(),m("div",R,[d(s,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>[g(" 登录中")]),_:1})])}}};export{S as default};
import{f as i,u as l,v as p,i as d,c as u,a as f,j as _,p as y,L as m,o as v,k,r as x}from"./index-D_Gydj3j.js";const g={style:{display:"flex","justify-content":"center","margin-top":"50%"}},R={__name:"SSOInfo",setup(h){const s=i(),t=l(),n=p({data:{type:""}});function r(){x().then(e=>{e.response.role_list.forEach((a,o)=>{a==="1"&&e.response.role_list.splice(o,1)}),s.setUserInfo({...e.response,role:e.response.role_list[0]}),n.data.type==="Badness"?t.replace({name:"adverseActivityRecord",query:{name:"adverseActivityRecord"}}):t.replace({name:"details",query:{id:t.currentRoute.value.query.id,type:"record",name:"welcome"}})})}function c(){y({token:idt.GetToken()}).then(e=>{e.code!==1?goTo403():(s.setToken(e.response),r())})}return d(()=>{n.data.type=t.currentRoute.value.query.type,c()}),(e,a)=>{const o=m;return v(),u("div",g,[f(o,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>[k(" 登录中")]),_:1})])}}};export{R as default}; import{f as i,u as l,v as p,i as d,c as u,a as f,j as _,p as y,L as m,o as v,k,r as x}from"./index-B3zhRcce.js";const g={style:{display:"flex","justify-content":"center","margin-top":"50%"}},R={__name:"SSOInfo",setup(h){const s=i(),t=l(),n=p({data:{type:""}});function r(){x().then(e=>{e.response.role_list.forEach((a,o)=>{a==="1"&&e.response.role_list.splice(o,1)}),s.setUserInfo({...e.response,role:e.response.role_list[0]}),n.data.type==="Badness"?t.replace({name:"adverseActivityRecord",query:{name:"adverseActivityRecord"}}):t.replace({name:"details",query:{id:t.currentRoute.value.query.id,type:"record",name:"welcome"}})})}function c(){y({token:idt.GetToken()}).then(e=>{e.code!==1?goTo403():(s.setToken(e.response),r())})}return d(()=>{n.data.type=t.currentRoute.value.query.type,c()}),(e,a)=>{const o=m;return v(),u("div",g,[f(o,{size:"38px",color:"#1989fa",vertical:""},{default:_(()=>[k(" 登录中")]),_:1})])}}};export{R as default};
import{_ as D,y as i,v as G,i as H,o as h,c as w,a as t,j as s,A as l,k as d,F as C,H as J,B as P,W as V,bI as K,K as W,M as Q,N as X,P as Y,S as Z,bJ as ee}from"./index-D_Gydj3j.js";import{a as oe,T as ae}from"./index-C5JduiSQ.js";import{P as te}from"./index-D78nwNjN.js";import{L as se}from"./index-DSEHVgwH.js";import"./index-C6bNzAj8.js";import{C as le,R as ne}from"./index-C0yZrlys.js";import{C as re}from"./index-VTw5wR90.js";import{P as ie}from"./index-W_RNZtRd.js";import"./index-O2oN3mFW.js";import"./index-OH6kQdPz.js";const de={class:"title-filter"},ue={class:"form-field"},me={class:"btn"},pe={class:"w-full p-3 h-[calc(100%-66px)]"},ce={class:"sticky top-0 w-full h-[64px] z-50"},fe={style:{"border-top":"1px solid #ebedf0"}},_e={class:"w-full h-[calc(100%-124px)] overflow-y-auto"},ve=["title"],he=["src"],we=["src"],xe={__name:"admin",emits:["getTabBarIndex"],setup(ye,{emit:R}){const x=i(0),o=G({roomType:{value:"",columns:[],showPicker:!1},sex:{value:"",columns:[{text:"不限",value:"不限"},{text:"女",value:"女"},{text:"男",value:"男"}],showPicker:!1},data:{array:[]},params:{room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),m=i([]),u=i(!1),p=i(!1),r=i(!1),c=()=>{K(o.params).then(n=>{r.value&&(m.value=[],r.value=!1),n.response.data.length===0&&(p.value=!0,r.value=!1),n.response.data.forEach(e=>{m.value.push(e)}),u.value=!1,o.params.page_index++,r.value=!1})},U=()=>{p.value=!1,u.value=!0,o.params.page_index=1,c()};function B(){o.advancedfilter.show=!0}let y=i("");function I(n){f()}function f(){o.params.page_index=1,m.value=[],p.value=!1,u.value=!0,clearTimeout(y.value),y.value=setTimeout(()=>c(),500)}function L(){o.params={room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},["sex","roomType"].forEach(e=>o[e].value=""),f(),o.advancedfilter.show=!1}function $(){f(),o.advancedfilter.show=!1}function z(n){const e=n.selectedOptions[0];o.roomType.value=e.text,o.params.room_type_id=e.value,o.roomType.showPicker=!1}function N(n){const e=n.selectedOptions[0];o.sex.value=e.text,o.params.sex=e.value,o.sex.showPicker=!1}async function j(){o.roomType.columns=await re.getRoomType()}return H(()=>{document.title="房间列表",j()}),(n,e)=>{const E=W,g=Q,_=X,b=le,F=ne,v=Y,k=ie,S=Z,q=ee,A=se,M=te,T=oe,O=ae;return h(),w(C,null,[t(v,{show:o.advancedfilter.show,"onUpdate:show":e[5]||(e[5]=a=>o.advancedfilter.show=a),round:"",position:"bottom",style:{height:"65%"}},{default:s(()=>[l("div",de,[d(" 高级筛选"),l("span",{class:"icon",onClick:e[0]||(e[0]=a=>o.advancedfilter.show=!1)},[t(E,{name:"cross"})])]),l("div",ue,[t(g,{modelValue:o.roomType.value,"onUpdate:modelValue":e[1]||(e[1]=a=>o.roomType.value=a),label:"房间类型",readonly:"",onClick:e[2]||(e[2]=a=>o.roomType.showPicker=!0),placeholder:"请选择房间类型",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"]),t(g,{modelValue:o.sex.value,"onUpdate:modelValue":e[3]||(e[3]=a=>o.sex.value=a),label:"性别",readonly:"",onClick:e[4]||(e[4]=a=>o.sex.showPicker=!0),placeholder:"请选择性别",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"])]),l("div",me,[t(F,{gutter:"20"},{default:s(()=>[t(b,{span:"12"},{default:s(()=>[t(_,{type:"default",round:"",style:{width:"100%",height:"38px"},onClick:L},{default:s(()=>[d("重置 ")]),_:1})]),_:1}),t(b,{span:"12"},{default:s(()=>[t(_,{type:"primary",round:"",style:{width:"100%",height:"38px"},onClick:$},{default:s(()=>[d("查找 ")]),_:1})]),_:1})]),_:1})])]),_:1},8,["show"]),t(v,{show:o.roomType.showPicker,"onUpdate:show":e[7]||(e[7]=a=>o.roomType.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"房间类型","show-toolbar":"",columns:o.roomType.columns,onConfirm:z,onCancel:e[6]||(e[6]=a=>o.roomType.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),t(v,{show:o.sex.showPicker,"onUpdate:show":e[9]||(e[9]=a=>o.sex.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"性别","show-toolbar":"",columns:o.sex.columns,onConfirm:N,onCancel:e[8]||(e[8]=a=>o.sex.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),l("div",pe,[l("div",ce,[l("div",fe,[t(S,{clearable:"",modelValue:o.params.room_name,"onUpdate:modelValue":[e[10]||(e[10]=a=>o.params.room_name=a),I],style:{display:"flex","justify-content":"center","align-items":"center"},"show-action":"",placeholder:"请输入房间名称"},{action:s(()=>[t(_,{type:"default",style:{width:"100px","font-size":"15px","border-radius":"8px"},onClick:B},{default:s(()=>[d("高级筛选 ")]),_:1})]),_:1},8,["modelValue"])])]),l("div",_e,[t(M,{modelValue:r.value,"onUpdate:modelValue":e[12]||(e[12]=a=>r.value=a),onRefresh:U},{default:s(()=>[t(A,{loading:u.value,"onUpdate:loading":e[11]||(e[11]=a=>u.value=a),finished:p.value,"finished-text":"没有更多了",onLoad:c},{default:s(()=>[(h(!0),w(C,null,J(m.value,a=>(h(),w("div",{key:a,title:a,class:"w-full min-h-[40px]"},[t(q,{item:a},null,8,["item"])],8,ve))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),t(O,{class:"w-full h-[80px]",fixed:"",modelValue:x.value,"onUpdate:modelValue":e[13]||(e[13]=a=>x.value=a),onChange:e[14]||(e[14]=a=>R("getTabBarIndex",a))},{default:s(()=>[t(T,{icon:"home-o"},{icon:s(()=>[l("img",{src:P(V)("cwgl1"),class:"w-[20px] h-[20px]"},null,8,he)]),default:s(()=>[d("房间管理 ")]),_:1}),t(T,{icon:"search"},{icon:s(()=>[l("img",{src:P(V)("bljl2"),class:"w-[20px] h-[20px]"},null,8,we)]),default:s(()=>[d("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])],64)}}},Ie=D(xe,[["__scopeId","data-v-f7f313b2"]]);export{Ie as default};
import{_ as O,y as i,v as D,i as G,o as h,c as w,a as t,j as s,A as l,k as d,F as C,H,B as P,W as V,bJ as J,K as W,M as Q,N as X,P as Y,S as Z,bK as ee}from"./index-B3zhRcce.js";import{a as oe,T as ae}from"./index-DCb5w2sN.js";import{P as te}from"./index-CbzrglTY.js";import{L as se}from"./index-CWVmoBon.js";import"./index-CNXep50-.js";import{C as le,R as ne}from"./index-CyFwnob6.js";import{C as re}from"./index-DS-HesyP.js";import{P as ie}from"./index-mJN-eOV-.js";import"./index-zS8mYSgR.js";import"./index-DJ1F6XO-.js";const de={class:"title-filter"},ue={class:"form-field"},me={class:"btn"},pe={class:"w-full p-3 h-[calc(100%-66px)]"},ce={class:"sticky top-0 w-full h-[64px] z-50"},fe={style:{"border-top":"1px solid #ebedf0"}},_e={class:"w-full h-[calc(100%-124px)] overflow-y-auto"},ve=["title"],he=["src"],we=["src"],xe={__name:"admin",emits:["getTabBarIndex"],setup(ye,{emit:R}){const x=i(0),o=D({roomType:{value:"",columns:[],showPicker:!1},sex:{value:"",columns:[{text:"不限",value:"不限"},{text:"女",value:"女"},{text:"男",value:"男"}],showPicker:!1},data:{array:[]},params:{room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),m=i([]),u=i(!1),p=i(!1),r=i(!1),c=()=>{J(o.params).then(n=>{r.value&&(m.value=[],r.value=!1),n.response.data.length===0&&(p.value=!0,r.value=!1),n.response.data.forEach(e=>{m.value.push(e)}),u.value=!1,o.params.page_index++,r.value=!1})},U=()=>{p.value=!1,u.value=!0,o.params.page_index=1,c()};function B(){o.advancedfilter.show=!0}let y=i("");function I(n){f()}function f(){o.params.page_index=1,m.value=[],p.value=!1,u.value=!0,clearTimeout(y.value),y.value=setTimeout(()=>c(),500)}function L(){o.params={room_name:"",room_type_id:"",sex:"",page_index:1,page_size:10},["sex","roomType"].forEach(e=>o[e].value=""),f(),o.advancedfilter.show=!1}function $(){f(),o.advancedfilter.show=!1}function z(n){const e=n.selectedOptions[0];o.roomType.value=e.text,o.params.room_type_id=e.value,o.roomType.showPicker=!1}function N(n){const e=n.selectedOptions[0];o.sex.value=e.text,o.params.sex=e.value,o.sex.showPicker=!1}async function j(){o.roomType.columns=await re.getRoomType()}return G(()=>{document.title="房间列表",j()}),(n,e)=>{const E=W,g=Q,_=X,b=le,F=ne,v=Y,k=ie,S=Z,q=ee,A=se,K=te,T=oe,M=ae;return h(),w(C,null,[t(v,{show:o.advancedfilter.show,"onUpdate:show":e[5]||(e[5]=a=>o.advancedfilter.show=a),round:"",position:"bottom",style:{height:"65%"}},{default:s(()=>[l("div",de,[d(" 高级筛选"),l("span",{class:"icon",onClick:e[0]||(e[0]=a=>o.advancedfilter.show=!1)},[t(E,{name:"cross"})])]),l("div",ue,[t(g,{modelValue:o.roomType.value,"onUpdate:modelValue":e[1]||(e[1]=a=>o.roomType.value=a),label:"房间类型",readonly:"",onClick:e[2]||(e[2]=a=>o.roomType.showPicker=!0),placeholder:"请选择房间类型",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"]),t(g,{modelValue:o.sex.value,"onUpdate:modelValue":e[3]||(e[3]=a=>o.sex.value=a),label:"性别",readonly:"",onClick:e[4]||(e[4]=a=>o.sex.showPicker=!0),placeholder:"请选择性别",border:!1,colon:!0,"right-icon":"arrow-down","label-align":"right","label-width":"4.3em"},null,8,["modelValue"])]),l("div",me,[t(F,{gutter:"20"},{default:s(()=>[t(b,{span:"12"},{default:s(()=>[t(_,{type:"default",round:"",style:{width:"100%",height:"38px"},onClick:L},{default:s(()=>[d("重置 ")]),_:1})]),_:1}),t(b,{span:"12"},{default:s(()=>[t(_,{type:"primary",round:"",style:{width:"100%",height:"38px"},onClick:$},{default:s(()=>[d("查找 ")]),_:1})]),_:1})]),_:1})])]),_:1},8,["show"]),t(v,{show:o.roomType.showPicker,"onUpdate:show":e[7]||(e[7]=a=>o.roomType.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"房间类型","show-toolbar":"",columns:o.roomType.columns,onConfirm:z,onCancel:e[6]||(e[6]=a=>o.roomType.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),t(v,{show:o.sex.showPicker,"onUpdate:show":e[9]||(e[9]=a=>o.sex.showPicker=a),position:"bottom",round:""},{default:s(()=>[t(k,{title:"性别","show-toolbar":"",columns:o.sex.columns,onConfirm:N,onCancel:e[8]||(e[8]=a=>o.sex.showPicker=!1)},null,8,["columns"])]),_:1},8,["show"]),l("div",pe,[l("div",ce,[l("div",fe,[t(S,{clearable:"",modelValue:o.params.room_name,"onUpdate:modelValue":[e[10]||(e[10]=a=>o.params.room_name=a),I],style:{display:"flex","justify-content":"center","align-items":"center"},"show-action":"",placeholder:"请输入房间名称"},{action:s(()=>[t(_,{type:"default",style:{width:"100px","font-size":"15px","border-radius":"8px"},onClick:B},{default:s(()=>[d("高级筛选 ")]),_:1})]),_:1},8,["modelValue"])])]),l("div",_e,[t(K,{modelValue:r.value,"onUpdate:modelValue":e[12]||(e[12]=a=>r.value=a),onRefresh:U},{default:s(()=>[t(A,{loading:u.value,"onUpdate:loading":e[11]||(e[11]=a=>u.value=a),finished:p.value,"finished-text":"没有更多了",onLoad:c},{default:s(()=>[(h(!0),w(C,null,H(m.value,a=>(h(),w("div",{key:a,title:a,class:"w-full min-h-[40px]"},[t(q,{item:a},null,8,["item"])],8,ve))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),t(M,{class:"w-full h-[80px]",fixed:"",modelValue:x.value,"onUpdate:modelValue":e[13]||(e[13]=a=>x.value=a),onChange:e[14]||(e[14]=a=>R("getTabBarIndex",a))},{default:s(()=>[t(T,{icon:"home-o"},{icon:s(()=>[l("img",{src:P(V)("cwgl1"),class:"w-[20px] h-[20px]"},null,8,he)]),default:s(()=>[d("房间管理 ")]),_:1}),t(T,{icon:"search"},{icon:s(()=>[l("img",{src:P(V)("bljl2"),class:"w-[20px] h-[20px]"},null,8,we)]),default:s(()=>[d("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])],64)}}},Ie=O(xe,[["__scopeId","data-v-f7f313b2"]]);export{Ie as default};
import{_ as S,y as i,v as j,i as A,c as f,A as d,a as s,j as t,S as G,o as _,F as U,H as z,k as v,B as w,W as k,aB as D,ay as E,N as F,b0 as q,ac as K,Z as $,b1 as H,J}from"./index-D_Gydj3j.js";import{T as M,a as W}from"./index-C5JduiSQ.js";import{P as Z}from"./index-D78nwNjN.js";import{L as O}from"./index-DSEHVgwH.js";import{C as Q}from"./index-VTw5wR90.js";import"./index-O2oN3mFW.js";import"./index-OH6kQdPz.js";const X={class:"w-full p-3 h-[calc(100%-66px)]"},Y={class:"sticky top-0 w-full h-[54px] z-50"},ee={style:{"border-top":"1px solid #ebedf0"}},ae={class:"w-full h-[calc(100%-124px)] py-3 overflow-y-auto"},te=["title"],se={class:"w-full h-full flex justify-end"},oe=["src"],le=["src"],ne={__name:"adminNoGoodRecord",emits:["getTabBarIndex"],setup(ie,{emit:B}){const h=i(1),o=j({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),u=i([]),r=i(!1),c=i(!1),n=i(!1),p=()=>{D(o.params).then(l=>{n.value&&(u.value=[],n.value=!1),l.response.data.length===0&&(c.value=!0,n.value=!1),l.response.data.forEach(e=>{u.value.push({...e,imageKey:E.appointmentImageKey[e.state]})}),r.value=!1,o.params.page_index++,n.value=!1})},R=()=>{c.value=!1,r.value=!0,o.params.page_index=1,p()};let x=i({});function V(l){g()}function g(){o.params.page_index=1,u.value=[],c.value=!1,r.value=!0,clearTimeout(x.value),x.value=setTimeout(()=>p(),500)}async function C(){o.seatRoom.columns=await Q.getRoom()}function T(l,e){({cancelBadRecord:()=>{K(()=>$(()=>H({id:l.id}).then(m=>(m.code===1&&g(),m))))},details:()=>{J.push({path:"/details",query:{id:l.id,type:"record"}})}})[e]()}return A(()=>{document.title="座位预约记录",C()}),(l,e)=>{const y=G,m=F,L=q,N=O,I=Z,b=W,P=M;return _(),f("div",X,[d("div",Y,[d("div",ee,[s(y,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:o.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>o.params.key_name=a),V],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),d("div",ae,[s(I,{modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=a=>n.value=a),onRefresh:R},{default:t(()=>[s(N,{loading:r.value,"onUpdate:loading":e[1]||(e[1]=a=>r.value=a),finished:c.value,"finished-text":"没有更多了",onLoad:p},{default:t(()=>[(_(!0),f(U,null,z(u.value,a=>(_(),f("div",{key:a,title:a,class:"w-full min-h-[40px]"},[s(L,{item:a},{default:t(()=>[d("div",se,[s(m,{disabled:a.state===2,onClick:de=>{T(a,"cancelBadRecord")},class:"w-[48%]",plain:"",size:"small",type:"primary"},{default:t(()=>[v("取消不良记录 ")]),_:2},1032,["disabled","onClick"])])]),_:2},1032,["item"])],8,te))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),s(P,{class:"w-full h-[80px]",fixed:"",modelValue:h.value,"onUpdate:modelValue":e[3]||(e[3]=a=>h.value=a),onChange:e[4]||(e[4]=a=>B("getTabBarIndex",a))},{default:t(()=>[s(b,{icon:"home-o"},{icon:t(()=>[d("img",{src:w(k)("cwgl2"),class:"w-[20px] h-[20px]"},null,8,oe)]),default:t(()=>[v("座位管理 ")]),_:1}),s(b,{icon:"search"},{icon:t(()=>[d("img",{src:w(k)("bljl1"),class:"w-[20px] h-[20px]"},null,8,le)]),default:t(()=>[v("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])}}},ve=S(ne,[["__scopeId","data-v-23f9ae15"]]);export{ve as default}; import{_ as S,y as i,v as j,i as A,c as f,A as d,a as s,j as t,S as G,o as _,F as U,H as z,k as v,B as w,W as k,aB as D,ay as E,N as F,b1 as q,ac as K,Z as $,b2 as H,J}from"./index-B3zhRcce.js";import{T as M,a as W}from"./index-DCb5w2sN.js";import{P as Z}from"./index-CbzrglTY.js";import{L as O}from"./index-CWVmoBon.js";import{C as Q}from"./index-DS-HesyP.js";import"./index-zS8mYSgR.js";import"./index-DJ1F6XO-.js";const X={class:"w-full p-3 h-[calc(100%-66px)]"},Y={class:"sticky top-0 w-full h-[54px] z-50"},ee={style:{"border-top":"1px solid #ebedf0"}},ae={class:"w-full h-[calc(100%-124px)] py-3 overflow-y-auto"},te=["title"],se={class:"w-full h-full flex justify-end"},oe=["src"],le=["src"],ne={__name:"adminNoGoodRecord",emits:["getTabBarIndex"],setup(ie,{emit:B}){const h=i(1),o=j({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),u=i([]),r=i(!1),c=i(!1),n=i(!1),p=()=>{D(o.params).then(l=>{n.value&&(u.value=[],n.value=!1),l.response.data.length===0&&(c.value=!0,n.value=!1),l.response.data.forEach(e=>{u.value.push({...e,imageKey:E.appointmentImageKey[e.state]})}),r.value=!1,o.params.page_index++,n.value=!1})},R=()=>{c.value=!1,r.value=!0,o.params.page_index=1,p()};let x=i({});function V(l){g()}function g(){o.params.page_index=1,u.value=[],c.value=!1,r.value=!0,clearTimeout(x.value),x.value=setTimeout(()=>p(),500)}async function C(){o.seatRoom.columns=await Q.getRoom()}function T(l,e){({cancelBadRecord:()=>{K(()=>$(()=>H({id:l.id}).then(m=>(m.code===1&&g(),m))))},details:()=>{J.push({path:"/details",query:{id:l.id,type:"record"}})}})[e]()}return A(()=>{document.title="座位预约记录",C()}),(l,e)=>{const y=G,m=F,L=q,N=O,I=Z,b=W,P=M;return _(),f("div",X,[d("div",Y,[d("div",ee,[s(y,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:o.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>o.params.key_name=a),V],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),d("div",ae,[s(I,{modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=a=>n.value=a),onRefresh:R},{default:t(()=>[s(N,{loading:r.value,"onUpdate:loading":e[1]||(e[1]=a=>r.value=a),finished:c.value,"finished-text":"没有更多了",onLoad:p},{default:t(()=>[(_(!0),f(U,null,z(u.value,a=>(_(),f("div",{key:a,title:a,class:"w-full min-h-[40px]"},[s(L,{item:a},{default:t(()=>[d("div",se,[s(m,{disabled:a.state===2,onClick:de=>{T(a,"cancelBadRecord")},class:"w-[48%]",plain:"",size:"small",type:"primary"},{default:t(()=>[v("取消不良记录 ")]),_:2},1032,["disabled","onClick"])])]),_:2},1032,["item"])],8,te))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),s(P,{class:"w-full h-[80px]",fixed:"",modelValue:h.value,"onUpdate:modelValue":e[3]||(e[3]=a=>h.value=a),onChange:e[4]||(e[4]=a=>B("getTabBarIndex",a))},{default:t(()=>[s(b,{icon:"home-o"},{icon:t(()=>[d("img",{src:w(k)("cwgl2"),class:"w-[20px] h-[20px]"},null,8,oe)]),default:t(()=>[v("座位管理 ")]),_:1}),s(b,{icon:"search"},{icon:t(()=>[d("img",{src:w(k)("bljl1"),class:"w-[20px] h-[20px]"},null,8,le)]),default:t(()=>[v("不良记录 ")]),_:1})]),_:1},8,["modelValue"])])}}},ve=S(ne,[["__scopeId","data-v-23f9ae15"]]);export{ve as default};
const __vite__fileDeps=["./reserveASeat-Co3XDHhh.js","./index-D_Gydj3j.js","./index-CZiMdQLq.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); const __vite__fileDeps=["./reserveASeat-Ds-rG-WV.js","./index-B3zhRcce.js","./index-CGadlQNA.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{_ as V,v as P,y as n,i as B,c as d,A as m,a as r,j as _,S as A,o as v,F as D,H as E,D as S,E as N,aB as I,ay as T,J as f,aC as U}from"./index-D_Gydj3j.js";import{P as j}from"./index-D78nwNjN.js";import{L as q}from"./index-DSEHVgwH.js";import{N as z}from"./index-aHzLKF67.js";import{C as F}from"./index-VTw5wR90.js";import"./index-O2oN3mFW.js";import"./index-OH6kQdPz.js";const G={class:"w-screen h-screen bg-gray-100 box-border relative"},K={class:"sticky top-0 w-full h-[112px] z-50"},H={style:{"border-top":"1px solid #ebedf0"}},J={class:"w-full h-[calc(100%-112px)] p-3 overflow-y-auto"},M=["title"],O={__name:"adverseActivityRecord",setup($){S(()=>N(()=>import("./reserveASeat-Co3XDHhh.js"),__vite__mapDeps([0,1,2]),import.meta.url));const t=P({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),i=n([]),l=n(!1),u=n(!1),o=n(!1),c=()=>{I(t.params).then(s=>{o.value&&(i.value=[],o.value=!1),s.response.data.length===0&&(u.value=!0,o.value=!1),s.response.data.forEach(e=>{i.value.push({...e,imageKey:T.appointmentImageKey[e.state]})}),l.value=!1,t.params.page_index++,o.value=!1})},h=()=>{u.value=!1,l.value=!0,t.params.page_index=1,c()};let p=n({});function x(s){y()}function y(){t.params.page_index=1,i.value=[],u.value=!1,l.value=!0,clearTimeout(p.value),p.value=setTimeout(()=>c(),500)}function g(){let s=f.currentRoute.value.query.name;s?f.replace({name:s}):f.back()}async function k(){t.seatRoom.columns=await F.getRoom()}return B(()=>{k()}),(s,e)=>{const w=z,R=A,L=U,b=q,C=j;return v(),d("div",G,[m("div",K,[r(w,{"left-text":"返回","left-arrow":"",onClickLeft:g,title:"座位使用违约记录"}),m("div",H,[r(R,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:t.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>t.params.key_name=a),x],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),m("div",J,[r(C,{modelValue:o.value,"onUpdate:modelValue":e[2]||(e[2]=a=>o.value=a),onRefresh:h},{default:_(()=>[r(b,{loading:l.value,"onUpdate:loading":e[1]||(e[1]=a=>l.value=a),finished:u.value,"finished-text":"没有更多了",onLoad:c},{default:_(()=>[(v(!0),d(D,null,E(i.value,a=>(v(),d("div",{key:a,title:a,class:"w-full min-h-[100px]"},[r(L,{item:a},null,8,["item"])],8,M))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])}}},te=V(O,[["__scopeId","data-v-04667cc1"]]);export{te as default}; import{_ as V,v as P,y as n,i as B,c as d,A as m,a as r,j as _,S as A,o as v,F as D,H as E,D as S,E as N,aB as I,ay as T,J as f,aC as U}from"./index-B3zhRcce.js";import{P as j}from"./index-CbzrglTY.js";import{L as q}from"./index-CWVmoBon.js";import{N as z}from"./index-CHbds04z.js";import{C as F}from"./index-DS-HesyP.js";import"./index-zS8mYSgR.js";import"./index-DJ1F6XO-.js";const G={class:"w-screen h-screen bg-gray-100 box-border relative"},K={class:"sticky top-0 w-full h-[112px] z-50"},H={style:{"border-top":"1px solid #ebedf0"}},J={class:"w-full h-[calc(100%-112px)] p-3 overflow-y-auto"},M=["title"],O={__name:"adverseActivityRecord",setup($){S(()=>N(()=>import("./reserveASeat-Ds-rG-WV.js"),__vite__mapDeps([0,1,2]),import.meta.url));const t=P({seatDate:{value:"",columns:[],showPicker:!1},seatRoom:{value:"",columns:[],showPicker:!1},singState:{value:"",columns:[{text:"签到",value:1},{text:"签退",value:2},{text:"未签到",value:0}],showPicker:!1},activityState:{value:"",columns:[{text:"待使用",value:0},{text:"使用中",value:1},{text:"已结束",value:2},{text:"踢除",value:3},{text:"已取消",value:9}],showPicker:!1},data:{array:[]},params:{key_name:"",page_index:1,page_size:10},advancedfilter:{show:!1}}),i=n([]),l=n(!1),u=n(!1),o=n(!1),c=()=>{I(t.params).then(s=>{o.value&&(i.value=[],o.value=!1),s.response.data.length===0&&(u.value=!0,o.value=!1),s.response.data.forEach(e=>{i.value.push({...e,imageKey:T.appointmentImageKey[e.state]})}),l.value=!1,t.params.page_index++,o.value=!1})},h=()=>{u.value=!1,l.value=!0,t.params.page_index=1,c()};let p=n({});function x(s){y()}function y(){t.params.page_index=1,i.value=[],u.value=!1,l.value=!0,clearTimeout(p.value),p.value=setTimeout(()=>c(),500)}function g(){let s=f.currentRoute.value.query.name;s?f.replace({name:s}):f.back()}async function k(){t.seatRoom.columns=await F.getRoom()}return B(()=>{k()}),(s,e)=>{const w=z,R=A,L=U,b=q,C=j;return v(),d("div",G,[m("div",K,[r(w,{"left-text":"返回","left-arrow":"",onClickLeft:g,title:"座位使用违约记录"}),m("div",H,[r(R,{style:{display:"flex","justify-content":"center","align-items":"center"},modelValue:t.params.key_name,"onUpdate:modelValue":[e[0]||(e[0]=a=>t.params.key_name=a),x],placeholder:"请输入关键词",clearable:""},null,8,["modelValue"])])]),m("div",J,[r(C,{modelValue:o.value,"onUpdate:modelValue":e[2]||(e[2]=a=>o.value=a),onRefresh:h},{default:_(()=>[r(b,{loading:l.value,"onUpdate:loading":e[1]||(e[1]=a=>l.value=a),finished:u.value,"finished-text":"没有更多了",onLoad:c},{default:_(()=>[(v(!0),d(D,null,E(i.value,a=>(v(),d("div",{key:a,title:a,class:"w-full min-h-[100px]"},[r(L,{item:a},null,8,["item"])],8,M))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])])}}},te=V(O,[["__scopeId","data-v-04667cc1"]]);export{te as default};
import{_ as c,f as i,i as u,c as p,J as s,Z as d,bs as _,bt as l,o as f,a2 as m,a3 as h,A as v}from"./index-B3zhRcce.js";import"./seat-CjX1HhE7.js";const x=e=>(m("data-v-7274a561"),e=e(),h(),e),w={class:"container ccFlex"},I=x(()=>v("div",{class:"im"},null,-1)),b=[I],k={__name:"downloadTransfer",setup(e){const a=i();function r(){var o=window.navigator.userAgent.toLowerCase();return o.match(/MicroMessenger/i)=="micromessenger"}function n(){a.tokenInfo.access_token.token_content=s.currentRoute.value.query.xxx;const o=JSON.parse(s.currentRoute.value.query.params);d(()=>_(o,{responseType:"blob"}).then(t=>(l(t),t)),!0,"正在导出...")}return u(()=>{r()||n()}),(o,t)=>(f(),p("div",w,b))}},g=c(k,[["__scopeId","data-v-7274a561"]]);export{g as default};
import{_ as c,f as i,i as u,c as p,J as t,Z as d,br as _,bs as l,o as f,a2 as m,a3 as h,A as v}from"./index-D_Gydj3j.js";import"./seat-Di3Smajh.js";const x=e=>(m("data-v-7274a561"),e=e(),h(),e),w={class:"container ccFlex"},I=x(()=>v("div",{class:"im"},null,-1)),b=[I],k={__name:"downloadTransfer",setup(e){const r=i();function a(){var o=window.navigator.userAgent.toLowerCase();return o.match(/MicroMessenger/i)=="micromessenger"}function n(){r.tokenInfo.access_token.token_content=t.currentRoute.value.query.xxx;const o=JSON.parse(t.currentRoute.value.query.params);d(()=>_(o,{responseType:"blob"}).then(s=>(l(s),s)),!0,"正在导出...")}return u(()=>{a()||n()}),(o,s)=>(f(),p("div",w,b))}},g=c(k,[["__scopeId","data-v-7274a561"]]);export{g as default};
import{b,d as p,aD as C,ag as f,aE as k,b3 as g,a as V,an as h,m as P,am as G,at as S,bw as _,ao as E,b6 as O,a6 as $,al as w,ak as y,bx as A,w as B}from"./index-D_Gydj3j.js";const[x,D]=b("checkbox-group"),K={max:h,shape:P("round"),disabled:Boolean,iconSize:h,direction:String,modelValue:G(),checkedColor:String},v=Symbol(x);var R=p({name:x,props:K,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{children:l,linkChildren:i}=C(v),o=e=>d("update:modelValue",e),u=(e={})=>{typeof e=="boolean"&&(e={checked:e});const{checked:t,skipDisabled:r}=e,c=l.filter(n=>n.props.bindGroup?n.props.disabled&&r?n.checked.value:t??!n.checked.value:!1).map(n=>n.name);o(c)};return f(()=>a.modelValue,e=>d("change",e)),k({toggleAll:u}),g(()=>a.modelValue),i({props:a,updateValue:o}),()=>{var e;return V("div",{class:D([a.direction])},[(e=s.default)==null?void 0:e.call(s)])}}});const[N,z]=b("checkbox"),F=S({},_,{shape:String,bindGroup:E});var H=p({name:N,props:F,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{parent:l}=O(v),i=e=>{const{name:t}=a,{max:r,modelValue:m}=l.props,c=m.slice();if(e)!(r&&c.length>=+r)&&!c.includes(t)&&(c.push(t),a.bindGroup&&l.updateValue(c));else{const n=c.indexOf(t);n!==-1&&(c.splice(n,1),a.bindGroup&&l.updateValue(c))}},o=$(()=>l&&a.bindGroup?l.props.modelValue.indexOf(a.name)!==-1:!!a.modelValue),u=(e=!o.value)=>{l&&a.bindGroup?i(e):d("update:modelValue",e)};return f(()=>a.modelValue,e=>d("change",e)),k({toggle:u,props:a,checked:o}),g(()=>a.modelValue),()=>V(A,y({bem:z,role:"checkbox",parent:l,checked:o.value,onToggle:u},a),w(s,["default","icon"]))}});const T=B(H);export{T as C,R as s}; import{b,d as p,aD as C,ag as f,aE as k,b4 as g,a as V,an as h,m as P,am as G,at as S,bx as _,ao as y,b7 as E,a6 as O,al as $,ak as w,by as A,w as B}from"./index-B3zhRcce.js";const[x,D]=b("checkbox-group"),K={max:h,shape:P("round"),disabled:Boolean,iconSize:h,direction:String,modelValue:G(),checkedColor:String},v=Symbol(x);var R=p({name:x,props:K,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{children:l,linkChildren:i}=C(v),o=e=>d("update:modelValue",e),u=(e={})=>{typeof e=="boolean"&&(e={checked:e});const{checked:t,skipDisabled:r}=e,c=l.filter(n=>n.props.bindGroup?n.props.disabled&&r?n.checked.value:t??!n.checked.value:!1).map(n=>n.name);o(c)};return f(()=>a.modelValue,e=>d("change",e)),k({toggleAll:u}),g(()=>a.modelValue),i({props:a,updateValue:o}),()=>{var e;return V("div",{class:D([a.direction])},[(e=s.default)==null?void 0:e.call(s)])}}});const[N,z]=b("checkbox"),F=S({},_,{shape:String,bindGroup:y});var H=p({name:N,props:F,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{parent:l}=E(v),i=e=>{const{name:t}=a,{max:r,modelValue:m}=l.props,c=m.slice();if(e)!(r&&c.length>=+r)&&!c.includes(t)&&(c.push(t),a.bindGroup&&l.updateValue(c));else{const n=c.indexOf(t);n!==-1&&(c.splice(n,1),a.bindGroup&&l.updateValue(c))}},o=O(()=>l&&a.bindGroup?l.props.modelValue.indexOf(a.name)!==-1:!!a.modelValue),u=(e=!o.value)=>{l&&a.bindGroup?i(e):d("update:modelValue",e)};return f(()=>a.modelValue,e=>d("change",e)),k({toggle:u,props:a,checked:o}),g(()=>a.modelValue),()=>V(A,w({bem:z,role:"checkbox",parent:l,checked:o.value,onToggle:u},a),$(s,["default","icon"]))}});const T=B(H);export{T as C,R as s};
import{b as m,d as I,y as R,bp as w,an as A,ao as s,a as n,bl as o,au as C,K as P,bq as L,w as N}from"./index-D_Gydj3j.js";const[S,t]=m("nav-bar"),y={title:String,fixed:Boolean,zIndex:A,border:s,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s};var E=I({name:S,props:y,emits:["clickLeft","clickRight"],setup(e,{emit:l,slots:a}){const c=R(),f=w(c,t),d=r=>l("clickLeft",r),h=r=>l("clickRight",r),g=()=>a.left?a.left():[e.leftArrow&&n(P,{class:t("arrow"),name:"arrow-left"},null),e.leftText&&n("span",{class:t("text")},[e.leftText])],x=()=>a.right?a.right():n("span",{class:t("text")},[e.rightText]),i=()=>{const{title:r,fixed:u,border:v,zIndex:T}=e,b=L(T),k=e.leftArrow||e.leftText||a.left,B=e.rightText||a.right;return n("div",{ref:c,style:b,class:[t({fixed:u}),{[C]:v,"van-safe-area-top":e.safeAreaInsetTop}]},[n("div",{class:t("content")},[k&&n("div",{class:[t("left"),e.clickable?o:""],onClick:d},[g()]),n("div",{class:[t("title"),"van-ellipsis"]},[a.title?a.title():r]),B&&n("div",{class:[t("right"),e.clickable?o:""],onClick:h},[x()])])])};return()=>e.fixed&&e.placeholder?f(i):i()}});const _=N(E);export{_ as N}; import{b as m,d as I,y as R,bq as w,an as A,ao as s,a as r,bm as o,au as C,K as P,br as L,w as N}from"./index-B3zhRcce.js";const[S,t]=m("nav-bar"),y={title:String,fixed:Boolean,zIndex:A,border:s,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s};var E=I({name:S,props:y,emits:["clickLeft","clickRight"],setup(e,{emit:l,slots:a}){const c=R(),f=w(c,t),d=n=>l("clickLeft",n),h=n=>l("clickRight",n),g=()=>a.left?a.left():[e.leftArrow&&r(P,{class:t("arrow"),name:"arrow-left"},null),e.leftText&&r("span",{class:t("text")},[e.leftText])],x=()=>a.right?a.right():r("span",{class:t("text")},[e.rightText]),i=()=>{const{title:n,fixed:u,border:v,zIndex:T}=e,b=L(T),k=e.leftArrow||e.leftText||a.left,B=e.rightText||a.right;return r("div",{ref:c,style:b,class:[t({fixed:u}),{[C]:v,"van-safe-area-top":e.safeAreaInsetTop}]},[r("div",{class:t("content")},[k&&r("div",{class:[t("left"),e.clickable?o:""],onClick:d},[g()]),r("div",{class:[t("title"),"van-ellipsis"]},[a.title?a.title():n]),B&&r("div",{class:[t("right"),e.clickable?o:""],onClick:h},[x()])])])};return()=>e.fixed&&e.placeholder?f(i):i()}});const _=N(E);export{_ as N};
import{b as v,d as w,e as G,a as e,g as k,m as M,w as B}from"./index-D_Gydj3j.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:l("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:l(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:l(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:l(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:l(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:l(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:E,search:p,network:y,default:g};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const A=B(b);export{A as E}; import{b as v,d as w,e as G,a as e,g as k,m as M,w as B}from"./index-B3zhRcce.js";const[S,s]=v("empty"),C={image:M("default"),imageSize:[Number,String,Array],description:String};var b=w({name:S,props:C,setup(o,{slots:a}){const F=()=>{const r=a.description?a.description():o.description;if(r)return e("p",{class:s("description")},[r])},u=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=G(),t=r=>`${f}-${r}`,l=r=>`url(#${t(r)})`,i=(r,d,D)=>e("stop",{"stop-color":r,offset:`${d}%`,"stop-opacity":D},null),n=(r,d)=>[i(r,0),i(d,100)],x=r=>[e("defs",null,[e("radialGradient",{id:t(r),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[i("#EBEDF0",0),i("#F2F3F5",100,.3)])]),e("ellipse",{fill:l(r),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:t("a"),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:l("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:l("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:t("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[i("#F2F3F5",0,.3),i("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:l("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:l("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:t(1),x1:"64%",y1:"100%",x2:"64%"},[i("#FFF",0,.5),i("#F2F3F5",100)]),e("linearGradient",{id:t(2),x1:"50%",x2:"50%",y2:"84%"},[i("#EBEDF0",0),i("#DCDEE0",100,0)]),e("linearGradient",{id:t(3),x1:"100%",x2:"100%",y2:"100%"},[n("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:t(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[i("#EBEDF0",0),i("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:l(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:l(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:l(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:l(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:l(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:l(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(5)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:t(6)},[n("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:t(7)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:l(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:l(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:l(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(8)},[n("#EAEDF1","#DCDEE0")])]),c(),h(),x("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:l(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:t(9)},[n("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:t(10)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(11)},[n("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:t(12)},[n("#FFF","#F7F8FA")])]),c(),h(),x("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:l(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:l(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:l(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:l(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:l(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var r;if(a.image)return a.image();const d={error:E,search:p,network:y,default:g};return((r=d[o.image])==null?void 0:r.call(d))||e("img",{src:o.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(o.imageSize)},[m()]),F(),u()])}});const A=B(b);export{A as E};
import{u as n,c,a as e,F as s,o as m}from"./index-D_Gydj3j.js";import{E as _}from"./index-C-4iwISm.js";import{N as p}from"./index-aHzLKF67.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,f)=>{const r=p,a=_;return m(),c(s,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{k as default}; import{u as n,c,a as e,F as s,o as m}from"./index-B3zhRcce.js";import{E as _}from"./index-CJ2n2ZsM.js";import{N as p}from"./index-CHbds04z.js";const k={__name:"index",setup(l){const t=n(),o=()=>t.replace({name:"welcome"});return(i,f)=>{const r=p,a=_;return m(),c(s,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{k as default};
import{z as L,b as w,d as B,y as g,bS as C,a6 as R,ag as m,bT as _,i as y,aE as N,aJ as j,a as o,aL as A,m as M,ao as U,aq as q,aM as x,bg as z,L as F,w as H}from"./index-D_Gydj3j.js";const I=Symbol(),J=()=>L(I,null),[K,r,O]=w("list"),V={error:Boolean,offset:A(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:M("down"),loadingText:String,finishedText:String,immediateCheck:U};var Y=B({name:K,props:V,emits:["load","update:error","update:loading"],setup(e,{emit:c,slots:a}){const l=g(e.loading),u=g(),h=g(),s=J(),T=C(u),v=R(()=>e.scroller||T.value),n=()=>{q(()=>{if(l.value||e.finished||e.disabled||e.error||(s==null?void 0:s.value)===!1)return;const{direction:t}=e,d=+e.offset,i=x(v);if(!i.height||z(u))return;let f=!1;const b=x(h);t==="up"?f=i.top-b.top<=d:f=b.bottom-i.bottom<=d,f&&(l.value=!0,c("update:loading",!0),c("load"))})},S=()=>{if(e.finished){const t=a.finished?a.finished():e.finishedText;if(t)return o("div",{class:r("finished-text")},[t])}},k=()=>{c("update:error",!1),n()},P=()=>{if(e.error){const t=a.error?a.error():e.errorText;if(t)return o("div",{role:"button",class:r("error-text"),tabindex:0,onClick:k},[t])}},E=()=>{if(l.value&&!e.finished&&!e.disabled)return o("div",{class:r("loading")},[a.loading?a.loading():o(F,{class:r("loading-icon")},{default:()=>[e.loadingText||O("loading")]})])};return m(()=>[e.loading,e.finished,e.error],n),s&&m(s,t=>{t&&n()}),_(()=>{l.value=e.loading}),y(()=>{e.immediateCheck&&n()}),N({check:n}),j("scroll",n,{target:v,passive:!0}),()=>{var t;const d=(t=a.default)==null?void 0:t.call(a),i=o("div",{ref:h,class:r("placeholder")},null);return o("div",{ref:u,role:"feed",class:r(),"aria-busy":l.value},[e.direction==="down"?d:i,E(),S(),P(),e.direction==="up"?d:i])}}});const G=H(Y);export{G as L}; import{z as L,b as w,d as B,y as h,bT as C,a6 as R,ag as m,bU as _,i as y,aE as N,aJ as U,a as o,aL as j,m as A,ao as M,aq as q,aM as x,bh as z,L as F,w as H}from"./index-B3zhRcce.js";const I=Symbol(),J=()=>L(I,null),[K,r,O]=w("list"),V={error:Boolean,offset:j(300),loading:Boolean,disabled:Boolean,finished:Boolean,scroller:Object,errorText:String,direction:A("down"),loadingText:String,finishedText:String,immediateCheck:M};var Y=B({name:K,props:V,emits:["load","update:error","update:loading"],setup(e,{emit:c,slots:a}){const l=h(e.loading),u=h(),g=h(),s=J(),T=C(u),v=R(()=>e.scroller||T.value),n=()=>{q(()=>{if(l.value||e.finished||e.disabled||e.error||(s==null?void 0:s.value)===!1)return;const{direction:t}=e,d=+e.offset,i=x(v);if(!i.height||z(u))return;let f=!1;const b=x(g);t==="up"?f=i.top-b.top<=d:f=b.bottom-i.bottom<=d,f&&(l.value=!0,c("update:loading",!0),c("load"))})},S=()=>{if(e.finished){const t=a.finished?a.finished():e.finishedText;if(t)return o("div",{class:r("finished-text")},[t])}},k=()=>{c("update:error",!1),n()},P=()=>{if(e.error){const t=a.error?a.error():e.errorText;if(t)return o("div",{role:"button",class:r("error-text"),tabindex:0,onClick:k},[t])}},E=()=>{if(l.value&&!e.finished&&!e.disabled)return o("div",{class:r("loading")},[a.loading?a.loading():o(F,{class:r("loading-icon")},{default:()=>[e.loadingText||O("loading")]})])};return m(()=>[e.loading,e.finished,e.error],n),s&&m(s,t=>{t&&n()}),_(()=>{l.value=e.loading}),y(()=>{e.immediateCheck&&n()}),N({check:n}),U("scroll",n,{target:v,passive:!0}),()=>{var t;const d=(t=a.default)==null?void 0:t.call(a),i=o("div",{ref:g,class:r("placeholder")},null);return o("div",{ref:u,role:"feed",class:r(),"aria-busy":l.value},[e.direction==="down"?d:i,E(),S(),P(),e.direction==="up"?d:i])}}});const G=H(Y);export{G as L};
import{b as L,d as _,y as D,bS as w,v as $,b2 as A,ag as N,aJ as p,a as c,aL as f,an as B,L as C,aq as G,bC as I,aG as M,w as R}from"./index-D_Gydj3j.js";const[U,r,Y]=L("pull-refresh"),x=50,q=["pulling","loosing","success"],F={disabled:Boolean,modelValue:Boolean,headHeight:f(x),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:B,successDuration:f(500),animationDuration:f(300)};var J=_({name:U,props:F,emits:["change","refresh","update:modelValue"],setup(s,{emit:d,slots:o}){let u;const g=D(),T=D(),H=w(g),e=$({status:"normal",distance:0,duration:0}),i=A(),P=()=>{if(s.headHeight!==x)return{height:`${s.headHeight}px`}},h=()=>e.status!=="loading"&&e.status!=="success"&&!s.disabled,b=t=>{const a=+(s.pullDistance||s.headHeight);return t>a&&(t<a*2?t=a+(t-a)/2:t=a*1.5+(t-a*2)/4),Math.round(t)},n=(t,a)=>{const l=+(s.pullDistance||s.headHeight);e.distance=t,a?e.status="loading":t===0?e.status="normal":t<l?e.status="pulling":e.status="loosing",d("change",{status:e.status,distance:t})},m=()=>{const{status:t}=e;return t==="normal"?"":s[`${t}Text`]||Y(t)},k=()=>{const{status:t,distance:a}=e;if(o[t])return o[t]({distance:a});const l=[];return q.includes(t)&&l.push(c("div",{class:r("text")},[m()])),t==="loading"&&l.push(c(C,{class:r("loading")},{default:m})),l},E=()=>{e.status="success",setTimeout(()=>{n(0)},+s.successDuration)},v=t=>{u=I(H.value)===0,u&&(e.duration=0,i.start(t))},V=t=>{h()&&v(t)},y=t=>{if(h()){u||v(t);const{deltaY:a}=i;i.move(t),u&&a.value>=0&&i.isVertical()&&(M(t),n(b(a.value)))}},S=()=>{u&&i.deltaY.value&&h()&&(e.duration=+s.animationDuration,e.status==="loosing"?(n(+s.headHeight,!0),d("update:modelValue",!0),G(()=>d("refresh"))):n(0))};return N(()=>s.modelValue,t=>{e.duration=+s.animationDuration,t?n(+s.headHeight,!0):o.success||s.successText?E():n(0,!1)}),p("touchmove",y,{target:T}),()=>{var t;const a={transitionDuration:`${e.duration}ms`,transform:e.distance?`translate3d(0,${e.distance}px, 0)`:""};return c("div",{ref:g,class:r()},[c("div",{ref:T,class:r("track"),style:a,onTouchstartPassive:V,onTouchend:S,onTouchcancel:S},[c("div",{class:r("head"),style:P()},[k()]),(t=o.default)==null?void 0:t.call(o)])])}}});const j=R(J);export{j as P}; import{b as L,d as _,y as S,bT as w,v as $,b3 as A,ag as N,aJ as p,a as c,aL as f,an as B,L as G,aq as I,bD as M,aG as R,w as U}from"./index-B3zhRcce.js";const[Y,r,q]=L("pull-refresh"),x=50,C=["pulling","loosing","success"],F={disabled:Boolean,modelValue:Boolean,headHeight:f(x),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:B,successDuration:f(500),animationDuration:f(300)};var J=_({name:Y,props:F,emits:["change","refresh","update:modelValue"],setup(s,{emit:d,slots:o}){let u;const g=S(),T=S(),H=w(g),e=$({status:"normal",distance:0,duration:0}),i=A(),P=()=>{if(s.headHeight!==x)return{height:`${s.headHeight}px`}},h=()=>e.status!=="loading"&&e.status!=="success"&&!s.disabled,b=t=>{const a=+(s.pullDistance||s.headHeight);return t>a&&(t<a*2?t=a+(t-a)/2:t=a*1.5+(t-a*2)/4),Math.round(t)},n=(t,a)=>{const l=+(s.pullDistance||s.headHeight);e.distance=t,a?e.status="loading":t===0?e.status="normal":t<l?e.status="pulling":e.status="loosing",d("change",{status:e.status,distance:t})},m=()=>{const{status:t}=e;return t==="normal"?"":s[`${t}Text`]||q(t)},k=()=>{const{status:t,distance:a}=e;if(o[t])return o[t]({distance:a});const l=[];return C.includes(t)&&l.push(c("div",{class:r("text")},[m()])),t==="loading"&&l.push(c(G,{class:r("loading")},{default:m})),l},E=()=>{e.status="success",setTimeout(()=>{n(0)},+s.successDuration)},v=t=>{u=M(H.value)===0,u&&(e.duration=0,i.start(t))},V=t=>{h()&&v(t)},y=t=>{if(h()){u||v(t);const{deltaY:a}=i;i.move(t),u&&a.value>=0&&i.isVertical()&&(R(t),n(b(a.value)))}},D=()=>{u&&i.deltaY.value&&h()&&(e.duration=+s.animationDuration,e.status==="loosing"?(n(+s.headHeight,!0),d("update:modelValue",!0),I(()=>d("refresh"))):n(0))};return N(()=>s.modelValue,t=>{e.duration=+s.animationDuration,t?n(+s.headHeight,!0):o.success||s.successText?E():n(0,!1)}),p("touchmove",y,{target:T}),()=>{var t;const a={transitionDuration:`${e.duration}ms`,transform:e.distance?`translate3d(0,${e.distance}px, 0)`:""};return c("div",{ref:g,class:r()},[c("div",{ref:T,class:r("track"),style:a,onTouchstartPassive:V,onTouchend:D,onTouchcancel:D},[c("div",{class:r("head"),style:P()},[k()]),(t=o.default)==null?void 0:t.call(o)])])}}});const j=U(J);export{j as P};
import{b as d,d as g,aD as C,a6 as p,a as h,m,ao as N,aL as v,b6 as S,an as _,w}from"./index-D_Gydj3j.js";const[P,E]=d("row"),$=Symbol(P),R={tag:m("div"),wrap:N,align:String,gutter:v(0),justify:String};var j=g({name:P,props:R,setup(o,{slots:r}){const{children:l,linkChildren:u}=C($),i=p(()=>{const a=[[]];let t=0;return l.forEach((e,s)=>{t+=Number(e.span),t>24?(a.push([s]),t-=24):a[a.length-1].push(s)}),a}),n=p(()=>{const a=Number(o.gutter),t=[];return a&&i.value.forEach(e=>{const s=a*(e.length-1)/e.length;e.forEach((c,b)=>{if(b===0)t.push({right:s});else{const f=a-t[c-1].right,y=s-f;t.push({left:f,right:y})}})}),t});return u({spaces:n}),()=>{const{tag:a,wrap:t,align:e,justify:s}=o;return h(a,{class:E({[`align-${e}`]:e,[`justify-${s}`]:s,nowrap:!t})},{default:()=>{var c;return[(c=r.default)==null?void 0:c.call(r)]}})}}});const[k,x]=d("col"),L={tag:m("div"),span:v(0),offset:_};var D=g({name:k,props:L,setup(o,{slots:r}){const{parent:l,index:u}=S($),i=p(()=>{if(!l)return;const{spaces:n}=l;if(n&&n.value&&n.value[u.value]){const{left:a,right:t}=n.value[u.value];return{paddingLeft:a?`${a}px`:null,paddingRight:t?`${t}px`:null}}});return()=>{const{tag:n,span:a,offset:t}=o;return h(n,{style:i.value,class:x({[a]:a,[`offset-${t}`]:t})},{default:()=>{var e;return[(e=r.default)==null?void 0:e.call(r)]}})}}});const K=w(D),O=w(j);export{K as C,O as R}; import{b as d,d as g,aD as C,a6 as p,a as h,m,ao as N,aL as v,b7 as S,an as _,w}from"./index-B3zhRcce.js";const[P,E]=d("row"),$=Symbol(P),R={tag:m("div"),wrap:N,align:String,gutter:v(0),justify:String};var j=g({name:P,props:R,setup(o,{slots:r}){const{children:l,linkChildren:u}=C($),i=p(()=>{const a=[[]];let t=0;return l.forEach((e,s)=>{t+=Number(e.span),t>24?(a.push([s]),t-=24):a[a.length-1].push(s)}),a}),n=p(()=>{const a=Number(o.gutter),t=[];return a&&i.value.forEach(e=>{const s=a*(e.length-1)/e.length;e.forEach((c,b)=>{if(b===0)t.push({right:s});else{const f=a-t[c-1].right,y=s-f;t.push({left:f,right:y})}})}),t});return u({spaces:n}),()=>{const{tag:a,wrap:t,align:e,justify:s}=o;return h(a,{class:E({[`align-${e}`]:e,[`justify-${s}`]:s,nowrap:!t})},{default:()=>{var c;return[(c=r.default)==null?void 0:c.call(r)]}})}}});const[k,x]=d("col"),L={tag:m("div"),span:v(0),offset:_};var D=g({name:k,props:L,setup(o,{slots:r}){const{parent:l,index:u}=S($),i=p(()=>{if(!l)return;const{spaces:n}=l;if(n&&n.value&&n.value[u.value]){const{left:a,right:t}=n.value[u.value];return{paddingLeft:a?`${a}px`:null,paddingRight:t?`${t}px`:null}}});return()=>{const{tag:n,span:a,offset:t}=o;return h(n,{style:i.value,class:x({[a]:a,[`offset-${t}`]:t})},{default:()=>{var e;return[(e=r.default)==null?void 0:e.call(r)]}})}}});const K=w(D),O=w(j);export{K as C,O as R};
import{b as I,d as B,y as O,aD as S,bp as V,ao as p,an as g,aL as $,a as u,bq as M,bK as N,bm as R,w as _,at as K,bL as j,bM as w,x as z,b6 as D,a6 as E,bN as L,ak as q,bO as F,K as Y}from"./index-D_Gydj3j.js";const[A,C]=I("tabbar"),Z={route:Boolean,fixed:p,border:p,zIndex:g,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:$(0),safeAreaInsetBottom:{type:Boolean,default:null}},T=Symbol(A);var G=B({name:A,props:Z,emits:["change","update:modelValue"],setup(e,{emit:d,slots:r}){const b=O(),{linkChildren:m}=S(T),c=V(b,C),f=()=>{var a;return(a=e.safeAreaInsetBottom)!=null?a:e.fixed},n=()=>{var a;const{fixed:t,zIndex:o,border:l}=e;return u("div",{ref:b,role:"tablist",style:M(o),class:[C({fixed:t}),{[N]:l,"van-safe-area-bottom":f()}]},[(a=r.default)==null?void 0:a.call(r)])};return m({props:e,setActive:(a,t)=>{R(e.beforeChange,{args:[a],done(){d("update:modelValue",a),d("change",a),t()}})}}),()=>e.fixed&&e.placeholder?c(n):n()}});const W=_(G),[H,h]=I("tabbar-item"),J=K({},j,{dot:Boolean,icon:String,name:g,badge:g,badgeProps:Object,iconPrefix:String});var Q=B({name:H,props:J,emits:["click"],setup(e,{emit:d,slots:r}){const b=w(),m=z().proxy,{parent:c,index:f}=D(T);if(!c)return;const n=E(()=>{var t;const{route:o,modelValue:l}=c.props;if(o&&"$route"in m){const{$route:v}=m,{to:i}=e,s=F(i)?i:{path:i};return!!v.matched.find(P=>{const k="path"in s&&s.path===P.path,y="name"in s&&s.name===P.name;return k||y})}return((t=e.name)!=null?t:f.value)===l}),x=t=>{var o;n.value||c.setActive((o=e.name)!=null?o:f.value,b),d("click",t)},a=()=>{if(r.icon)return r.icon({active:n.value});if(e.icon)return u(Y,{name:e.icon,classPrefix:e.iconPrefix},null)};return()=>{var t;const{dot:o,badge:l}=e,{activeColor:v,inactiveColor:i}=c.props,s=n.value?v:i;return u("div",{role:"tab",class:h({active:n.value}),style:{color:s},tabindex:0,"aria-selected":n.value,onClick:x},[u(L,q({dot:o,class:h("icon"),content:l},e.badgeProps),{default:a}),u("div",{class:h("text")},[(t=r.default)==null?void 0:t.call(r,{active:n.value})])])}}});const X=_(Q);export{W as T,X as a}; import{b as p,d as B,y as O,aD as S,bq as V,ao as C,an as g,aL as $,a as u,br as M,bL as N,bn as R,w as _,at as j,bM as w,bN as z,x as D,b7 as E,a6 as K,bO as L,ak as q,bP as F,K as Y}from"./index-B3zhRcce.js";const[A,I]=p("tabbar"),Z={route:Boolean,fixed:C,border:C,zIndex:g,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:$(0),safeAreaInsetBottom:{type:Boolean,default:null}},T=Symbol(A);var G=B({name:A,props:Z,emits:["change","update:modelValue"],setup(e,{emit:d,slots:r}){const b=O(),{linkChildren:m}=S(T),c=V(b,I),f=()=>{var a;return(a=e.safeAreaInsetBottom)!=null?a:e.fixed},n=()=>{var a;const{fixed:t,zIndex:o,border:l}=e;return u("div",{ref:b,role:"tablist",style:M(o),class:[I({fixed:t}),{[N]:l,"van-safe-area-bottom":f()}]},[(a=r.default)==null?void 0:a.call(r)])};return m({props:e,setActive:(a,t)=>{R(e.beforeChange,{args:[a],done(){d("update:modelValue",a),d("change",a),t()}})}}),()=>e.fixed&&e.placeholder?c(n):n()}});const W=_(G),[H,h]=p("tabbar-item"),J=j({},w,{dot:Boolean,icon:String,name:g,badge:g,badgeProps:Object,iconPrefix:String});var Q=B({name:H,props:J,emits:["click"],setup(e,{emit:d,slots:r}){const b=z(),m=D().proxy,{parent:c,index:f}=E(T);if(!c)return;const n=K(()=>{var t;const{route:o,modelValue:l}=c.props;if(o&&"$route"in m){const{$route:v}=m,{to:i}=e,s=F(i)?i:{path:i};return!!v.matched.find(P=>{const k="path"in s&&s.path===P.path,y="name"in s&&s.name===P.name;return k||y})}return((t=e.name)!=null?t:f.value)===l}),x=t=>{var o;n.value||c.setActive((o=e.name)!=null?o:f.value,b),d("click",t)},a=()=>{if(r.icon)return r.icon({active:n.value});if(e.icon)return u(Y,{name:e.icon,classPrefix:e.iconPrefix},null)};return()=>{var t;const{dot:o,badge:l}=e,{activeColor:v,inactiveColor:i}=c.props,s=n.value?v:i;return u("div",{role:"tab",class:h({active:n.value}),style:{color:s},tabindex:0,"aria-selected":n.value,onClick:x},[u(L,q({dot:o,class:h("icon"),content:l},e.badgeProps),{default:a}),u("div",{class:h("text")},[(t=r.default)==null?void 0:t.call(r,{active:n.value})])])}}});const X=_(Q);export{W as T,X as a};
const __vite__fileDeps=["./user-x9CnRDT8.js","./index-D_Gydj3j.js","./index-CZiMdQLq.css","./index-D78nwNjN.js","./index-6CsuSH_G.css","./index-DSEHVgwH.js","./index-bmrpnDyt.css","./seat-Di3Smajh.js","./index-VTw5wR90.js","./index-O2oN3mFW.js","./index-OH6kQdPz.js","./user-DSiFbcmH.css","./admin-9KIkrup3.js","./index-C5JduiSQ.js","./index-C2zZWGAe.css","./index-C6bNzAj8.js","./index-C4qC1krx.css","./index-C0yZrlys.js","./index-C3ZnWEiJ.css","./index-W_RNZtRd.js","./admin-BNQDXyNO.css","./adminNoGoodRecord-sl9DERiN.js","./adminNoGoodRecord-CWZRDV-F.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); const __vite__fileDeps=["./user-sDetsNRf.js","./index-B3zhRcce.js","./index-CGadlQNA.css","./index-CbzrglTY.js","./index-6CsuSH_G.css","./index-CWVmoBon.js","./index-bmrpnDyt.css","./seat-CjX1HhE7.js","./index-DS-HesyP.js","./index-zS8mYSgR.js","./index-DJ1F6XO-.js","./user-CSwp7V2Q.css","./admin-gogop4-b.js","./index-DCb5w2sN.js","./index-C2zZWGAe.css","./index-CNXep50-.js","./index-C4qC1krx.css","./index-CyFwnob6.js","./index-C3ZnWEiJ.css","./index-mJN-eOV-.js","./admin-BNQDXyNO.css","./adminNoGoodRecord-BSBpLKFk.js","./adminNoGoodRecord-CWZRDV-F.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{_ as h,f as y,x as I,u as k,y as u,v as w,i as B,z as E,c as d,A as o,a as n,B as a,C as f,o as s,D as r,E as c,G as R}from"./index-D_Gydj3j.js";import"./index-OH6kQdPz.js";const b={key:0,class:"container1"},g={class:"header flex justify-center content-start flex-wrap"},C={class:"mb-3 w-full"},T={key:1,class:"container1"},A={class:"w-full h-full overflow-y-auto flex justify-center content-start flex-wrap"},G={class:"w-full p-2 bg-white"},P={__name:"index",setup(V){const p=y(),m=r(()=>c(()=>import("./user-x9CnRDT8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),v=r(()=>c(()=>import("./admin-9KIkrup3.js"),__vite__mapDeps([12,1,2,13,14,3,4,5,6,15,16,17,18,8,9,10,19,20]),import.meta.url)),x=r(()=>c(()=>import("./adminNoGoodRecord-sl9DERiN.js"),__vite__mapDeps([21,1,2,13,14,3,4,5,6,8,9,10,22]),import.meta.url));I().appContext.config.globalProperties,k(),u(0),u(!1);const e=w({role:p.userInfo.role,channel:{},active:0,columns:[],placeTypeName:[],flow:{array:[]},count:{}});B(()=>{document.title="主页"}),E("backAscHome");function i(t){e.active=t}function _(t){e.role=t}return(t,D)=>{const l=R;return e.role==="3"?(s(),d("div",b,[o("div",g,[o("div",C,[n(l,{onGetCurRole:_})]),n(a(m))])])):(s(),d("div",T,[o("div",A,[o("div",G,[n(l,{onGetCurRole:_})]),e.active===0?(s(),f(a(v),{key:0,onGetTabBarIndex:i})):(s(),f(a(x),{key:1,onGetTabBarIndex:i}))])]))}}},L=h(P,[["__scopeId","data-v-7857e4d3"]]);export{L as default}; import{_ as h,f as y,x as I,u as k,y as u,v as w,i as B,z as E,c as d,A as o,a as n,B as a,C as f,o as s,D as r,E as c,G as R}from"./index-B3zhRcce.js";import"./index-DJ1F6XO-.js";const b={key:0,class:"container1"},g={class:"header flex justify-center content-start flex-wrap"},C={class:"mb-3 w-full"},T={key:1,class:"container1"},A={class:"w-full h-full overflow-y-auto flex justify-center content-start flex-wrap"},G={class:"w-full p-2 bg-white"},P={__name:"index",setup(V){const p=y(),m=r(()=>c(()=>import("./user-sDetsNRf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),v=r(()=>c(()=>import("./admin-gogop4-b.js"),__vite__mapDeps([12,1,2,13,14,3,4,5,6,15,16,17,18,8,9,10,19,20]),import.meta.url)),x=r(()=>c(()=>import("./adminNoGoodRecord-BSBpLKFk.js"),__vite__mapDeps([21,1,2,13,14,3,4,5,6,8,9,10,22]),import.meta.url));I().appContext.config.globalProperties,k(),u(0),u(!1);const e=w({role:p.userInfo.role,channel:{},active:0,columns:[],placeTypeName:[],flow:{array:[]},count:{}});B(()=>{document.title="主页"}),E("backAscHome");function i(t){e.active=t}function _(t){e.role=t}return(t,D)=>{const l=R;return e.role==="3"?(s(),d("div",b,[o("div",g,[o("div",C,[n(l,{onGetCurRole:_})]),n(a(m))])])):(s(),d("div",T,[o("div",A,[o("div",G,[n(l,{onGetCurRole:_})]),e.active===0?(s(),f(a(v),{key:0,onGetTabBarIndex:i})):(s(),f(a(x),{key:1,onGetTabBarIndex:i}))])]))}}},L=h(P,[["__scopeId","data-v-7857e4d3"]]);export{L as default};
import{bU as n,bV as s,bW as r}from"./index-D_Gydj3j.js";import{G as m}from"./index-O2oN3mFW.js";import{w as o}from"./index-OH6kQdPz.js";class i{constructor(){}async getRoomType(){return n({page_index:1,page_size:100}).then(a=>a.response.data.map(e=>({text:e.name,value:e.id})))}async GetMaxAndMinOccupyseat(){return s().then(t=>({min:Number(t.response.min||0),max:Number(t.response.max||0)}))}async getRoom(){return r({room_name:"",room_type_id:"",sex:"",page_index:1,page_size:100}).then(a=>a.response.data.map(e=>({text:e.room_name,value:e.room_id})))}wxInit(){const t={url:window.location.href.replace(window.location.hash,"")};m(t).then(a=>{let e=a;o.config({debug:!1,appId:e.appId,timestamp:e.timeStamp,nonceStr:e.nonceStr,signature:e.signature,jsApiList:["scanQRCode","checkJsApi","chooseImage","getLocalImgData","getLocation"]}),o.ready(()=>{console.log("设备已经可以使用")}),o.error(function(c){console.log("设备已经无法使用")})})}}const l=new i;export{l as C}; import{bV as n,bW as s,bX as r}from"./index-B3zhRcce.js";import{G as m}from"./index-zS8mYSgR.js";import{w as o}from"./index-DJ1F6XO-.js";class i{constructor(){}async getRoomType(){return n({page_index:1,page_size:100}).then(a=>a.response.data.map(e=>({text:e.name,value:e.id})))}async GetMaxAndMinOccupyseat(){return s().then(t=>({min:Number(t.response.min||0),max:Number(t.response.max||0)}))}async getRoom(){return r({room_name:"",room_type_id:"",sex:"",page_index:1,page_size:100}).then(a=>a.response.data.map(e=>({text:e.room_name,value:e.room_id})))}wxInit(){const t={url:window.location.href.replace(window.location.hash,"")};m(t).then(a=>{let e=a;o.config({debug:!1,appId:e.appId,timestamp:e.timeStamp,nonceStr:e.nonceStr,signature:e.signature,jsApiList:["scanQRCode","checkJsApi","chooseImage","getLocalImgData","getLocation"]}),o.ready(()=>{console.log("设备已经可以使用")}),o.error(function(c){console.log("设备已经无法使用")})})}}const l=new i;export{l as C};
import{u as r,c as n,a as e,F as s,o as c,s as m}from"./index-D_Gydj3j.js";import{E as _}from"./index-C-4iwISm.js";import{N as p}from"./index-aHzLKF67.js";const h={__name:"index",setup(i){r();const t=()=>m({type:"danger",message:"用户验证不通过,请重新登录"});return(l,f)=>{const o=p,a=_;return c(),n(s,null,[e(o,{"left-text":"返回","left-arrow":"",onClickLeft:t}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{h as default}; import{u as r,c as n,a as e,F as s,o as c,s as m}from"./index-B3zhRcce.js";import{E as _}from"./index-CJ2n2ZsM.js";import{N as p}from"./index-CHbds04z.js";const h={__name:"index",setup(i){r();const t=()=>m({type:"danger",message:"用户验证不通过,请重新登录"});return(l,f)=>{const o=p,a=_;return c(),n(s,null,[e(o,{"left-text":"返回","left-arrow":"",onClickLeft:t}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{h as default};
import{s as t}from"./index-C6bNzAj8.js";import{w as s}from"./index-D_Gydj3j.js";const a=s(t);export{a as P};
import{s as t}from"./index-CNXep50-.js";import{w as s}from"./index-B3zhRcce.js";const a=s(t);export{a as P};
import{bX as i}from"./index-D_Gydj3j.js";function n(o){return i({url:`${window.location.origin}/wx/eicrs/api/GetJSSDK/GetWxConfig`,method:"get",params:o})}export{n as G}; import{bY as i}from"./index-B3zhRcce.js";function n(o){return i({url:`${window.location.origin}/wx/eicrs/api/GetJSSDK/GetWxConfig`,method:"get",params:o})}export{n as G};
import{aQ as jt}from"./index-D_Gydj3j.js";var Je={exports:{}};/** import{aQ as jt}from"./index-B3zhRcce.js";var Je={exports:{}};/**
* @license * @license
* Lodash <https://lodash.com/> * Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
......
import{O as useRoomInfo,v as reactive,R as resolveDirective,o as openBlock,c as createElementBlock,a as createVNode,j as withCtx,A as createBaseVNode,k as createTextVNode,F as Fragment,H as renderList,V as toDisplayString,C as createBlock,U as withDirectives,aU as withModifiers,J as router,ba as Tag,N as Button,aY as Dialog}from"./index-D_Gydj3j.js";const _hoisted_1={class:"my-2"},_hoisted_2={class:""},_hoisted_3={class:"ml-4"},_hoisted_4={class:"w-full h-[60px] flex justify-center items-center border border-solid"},_hoisted_5={class:"w-full h-full bg-white p-3 rounded-[8px] my-2 flex"},_hoisted_6={class:"w-[80%] h-full"},_hoisted_7={class:"text-wrap"},_hoisted_8={class:"text-wrap"},_hoisted_9={class:"text-wrap"},_hoisted_10={class:"w-[20%] h-full ccFlex my-auto"},_sfc_main={__name:"reserveASeat",props:{item:{type:Object,default:()=>{}}},setup(__props){const props=__props,roomInfo=useRoomInfo();function go2(){roomInfo.setRoomInfo(props.item),router.push({path:"/seatList"})}const init=reactive({room:{name:"",show:!1,src:""},timeTable:{show:!1,data:[]}});function show(noFormatData){console.log("🚀🚀🚀,",noFormatData),init.timeTable.show=!0;let info={one:"周一",two:"周二",three:"周三",four:"周四",five:"周五",six:"周六",seven:"周日"},data=eval("("+noFormatData+")");init.timeTable.data=[{day:info.one,time:data.one},{day:info.two,time:data.two},{day:info.three,time:data.three},{day:info.four,time:data.four},{day:info.five,time:data.five},{day:info.six,time:data.six},{day:info.seven,time:data.seven}],console.log("🚀🚀🚀,",init.timeTable.data)}return(c,e)=>{const s=Tag,a=Button,i=Dialog,o=resolveDirective("font");return openBlock(),createElementBlock(Fragment,null,[createVNode(i,{show:init.timeTable.show,"onUpdate:show":e[1]||(e[1]=t=>init.timeTable.show=t),"show-cancel-button":"",title:"房间开放区间"},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_4,[createVNode(a,{block:"",round:"",style:{width:"90%"},type:"primary",onClick:e[0]||(e[0]=t=>{init.timeTable.show=!1})},{default:withCtx(()=>[createTextVNode("关闭 ")]),_:1})])]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(init.timeTable.data,(t,r)=>(openBlock(),createElementBlock("div",{key:r,class:"px-[30px] overflow-y-auto"},[createBaseVNode("div",_hoisted_1,[createBaseVNode("div",_hoisted_2,toDisplayString(t.day),1),createBaseVNode("div",_hoisted_3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.time,(n,l)=>(openBlock(),createBlock(s,{key:l,plain:"",type:"primary",class:"mx-1"},{default:withCtx(()=>[createTextVNode(toDisplayString(n),1)]),_:2},1024))),128))])])]))),128))]),_:1},8,["show"]),createBaseVNode("div",_hoisted_5,[createBaseVNode("div",_hoisted_6,[withDirectives((openBlock(),createElementBlock("p",_hoisted_7,[createTextVNode(toDisplayString(props.item.room_name),1)])),[[o,void 0,"{color:`#000`,size:18}"]]),withDirectives((openBlock(),createElementBlock("p",_hoisted_8,[createTextVNode(toDisplayString(props.item.room_address),1)])),[[o,void 0,"{color:`#9E9E9E`,size:15}"]]),withDirectives((openBlock(),createElementBlock("p",_hoisted_9,[createTextVNode(" 开放时间: "),createBaseVNode("a",{style:{"margin-left":"5px",color:"#1989FA"},onClick:e[2]||(e[2]=withModifiers(t=>show(props.item.service_interval_time),["stop"]))},"查看"),createTextVNode(" |座位数:"+toDisplayString(props.item.capacity),1)])),[[o,void 0,"{color:`#9E9E9E`,size:15}"]])]),createBaseVNode("div",_hoisted_10,[withDirectives((openBlock(),createBlock(a,{class:"w-[66px] h-[32px]",round:"",size:"small",type:"primary",onClick:go2},{default:withCtx(()=>[createTextVNode("选座 ")]),_:1})),[[o,void 0,"{size:16}"]])])])],64)}}};export{_sfc_main as default}; import{O as useRoomInfo,v as reactive,R as resolveDirective,o as openBlock,c as createElementBlock,a as createVNode,j as withCtx,A as createBaseVNode,k as createTextVNode,F as Fragment,H as renderList,V as toDisplayString,C as createBlock,U as withDirectives,aU as withModifiers,J as router,bb as Tag,N as Button,aZ as Dialog}from"./index-B3zhRcce.js";const _hoisted_1={class:"my-2"},_hoisted_2={class:""},_hoisted_3={class:"ml-4"},_hoisted_4={class:"w-full h-[60px] flex justify-center items-center border border-solid"},_hoisted_5={class:"w-full h-full bg-white p-3 rounded-[8px] my-2 flex"},_hoisted_6={class:"w-[80%] h-full"},_hoisted_7={class:"text-wrap"},_hoisted_8={class:"text-wrap"},_hoisted_9={class:"text-wrap"},_hoisted_10={class:"w-[20%] h-full ccFlex my-auto"},_sfc_main={__name:"reserveASeat",props:{item:{type:Object,default:()=>{}}},setup(__props){const props=__props,roomInfo=useRoomInfo();function go2(){roomInfo.setRoomInfo(props.item),router.push({path:"/seatList"})}const init=reactive({room:{name:"",show:!1,src:""},timeTable:{show:!1,data:[]}});function show(noFormatData){console.log("🚀🚀🚀,",noFormatData),init.timeTable.show=!0;let info={one:"周一",two:"周二",three:"周三",four:"周四",five:"周五",six:"周六",seven:"周日"},data=eval("("+noFormatData+")");init.timeTable.data=[{day:info.one,time:data.one},{day:info.two,time:data.two},{day:info.three,time:data.three},{day:info.four,time:data.four},{day:info.five,time:data.five},{day:info.six,time:data.six},{day:info.seven,time:data.seven}],console.log("🚀🚀🚀,",init.timeTable.data)}return(c,e)=>{const s=Tag,a=Button,i=Dialog,o=resolveDirective("font");return openBlock(),createElementBlock(Fragment,null,[createVNode(i,{show:init.timeTable.show,"onUpdate:show":e[1]||(e[1]=t=>init.timeTable.show=t),"show-cancel-button":"",title:"房间开放区间"},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_4,[createVNode(a,{block:"",round:"",style:{width:"90%"},type:"primary",onClick:e[0]||(e[0]=t=>{init.timeTable.show=!1})},{default:withCtx(()=>[createTextVNode("关闭 ")]),_:1})])]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(init.timeTable.data,(t,r)=>(openBlock(),createElementBlock("div",{key:r,class:"px-[30px] overflow-y-auto"},[createBaseVNode("div",_hoisted_1,[createBaseVNode("div",_hoisted_2,toDisplayString(t.day),1),createBaseVNode("div",_hoisted_3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.time,(n,l)=>(openBlock(),createBlock(s,{key:l,plain:"",type:"primary",class:"mx-1"},{default:withCtx(()=>[createTextVNode(toDisplayString(n),1)]),_:2},1024))),128))])])]))),128))]),_:1},8,["show"]),createBaseVNode("div",_hoisted_5,[createBaseVNode("div",_hoisted_6,[withDirectives((openBlock(),createElementBlock("p",_hoisted_7,[createTextVNode(toDisplayString(props.item.room_name),1)])),[[o,void 0,"{color:`#000`,size:18}"]]),withDirectives((openBlock(),createElementBlock("p",_hoisted_8,[createTextVNode(toDisplayString(props.item.room_address),1)])),[[o,void 0,"{color:`#9E9E9E`,size:15}"]]),withDirectives((openBlock(),createElementBlock("p",_hoisted_9,[createTextVNode(" 开放时间: "),createBaseVNode("a",{style:{"margin-left":"5px",color:"#1989FA"},onClick:e[2]||(e[2]=withModifiers(t=>show(props.item.service_interval_time),["stop"]))},"查看"),createTextVNode(" |座位数:"+toDisplayString(props.item.capacity),1)])),[[o,void 0,"{color:`#9E9E9E`,size:15}"]])]),createBaseVNode("div",_hoisted_10,[withDirectives((openBlock(),createBlock(a,{class:"w-[66px] h-[32px]",round:"",size:"small",type:"primary",onClick:go2},{default:withCtx(()=>[createTextVNode("选座 ")]),_:1})),[[o,void 0,"{size:16}"]])])])],64)}}};export{_sfc_main as default};
import{v as u,h as m,O as l,f as _,u as f,i as p,c as v,a as I,j as k,p as R,L as y,o as h,k as g,t as x,r as q}from"./index-D_Gydj3j.js";import"./seat-Di3Smajh.js";const T={style:{display:"flex","justify-content":"center","margin-top":"50%"}},L={__name:"scanRoomQrcode",setup(w){const o=u({data:{seat_id:"",room_id:"",token:""}}),r=m(),i=l(),s=_(),t=f();function c(){x().then(e=>{r.setDomainInfo(e.response)}),q().then(e=>{e.response.role_list.forEach((n,a)=>{n==="1"&&e.response.role_list.splice(a,1)}),s.setUserInfo({...e.response,role:e.response.role_list[0]}),o.data.room_id!==void 0?t.replace({name:"seatList",query:{name:"welcome"}}):o.data.seat_id&&t.replace({name:"seatReservationForm",query:{seatId:o.data.seat_id,name:"welcome"}})})}function d(){R({token:o.data.token}).then(e=>{e.code!==1?goTo403():(s.setToken(e.response),c())})}return p(()=>{i.setRoomInfo({room_id:t.currentRoute.value.query.room_id}),o.data.room_id=t.currentRoute.value.query.room_id,o.data.seat_id=t.currentRoute.value.query.seat_id,o.data.token=t.currentRoute.value.query.token,d()}),(e,n)=>{const a=y;return h(),v("div",T,[I(a,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_:1})])}}};export{L as default}; import{v as u,h as m,O as l,f as _,u as f,i as p,c as v,a as I,j as k,p as R,L as y,o as h,k as g,t as x,r as q}from"./index-B3zhRcce.js";import"./seat-CjX1HhE7.js";const T={style:{display:"flex","justify-content":"center","margin-top":"50%"}},L={__name:"scanRoomQrcode",setup(w){const o=u({data:{seat_id:"",room_id:"",token:""}}),r=m(),i=l(),s=_(),t=f();function c(){x().then(e=>{r.setDomainInfo(e.response)}),q().then(e=>{e.response.role_list.forEach((n,a)=>{n==="1"&&e.response.role_list.splice(a,1)}),s.setUserInfo({...e.response,role:e.response.role_list[0]}),o.data.room_id!==void 0?t.replace({name:"seatList",query:{name:"welcome"}}):o.data.seat_id&&t.replace({name:"seatReservationForm",query:{seatId:o.data.seat_id,name:"welcome"}})})}function d(){R({token:o.data.token}).then(e=>{e.code!==1?goTo403():(s.setToken(e.response),c())})}return p(()=>{i.setRoomInfo({room_id:t.currentRoute.value.query.room_id}),o.data.room_id=t.currentRoute.value.query.room_id,o.data.seat_id=t.currentRoute.value.query.seat_id,o.data.token=t.currentRoute.value.query.token,d()}),(e,n)=>{const a=y;return h(),v("div",T,[I(a,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[g(" 登录中")]),_:1})])}}};export{L as default};
import{bH as e}from"./index-D_Gydj3j.js";const a=e({id:"occupancySeatInfo",state:()=>({curSeatInfo:{}}),actions:{removeSeatInfo(){this.curSeatInfo={}},setSeatInfo(t){this.curSeatInfo=t},getSeatInfo(){return this.curSeatInfo}},getters:{},persist:{storage:sessionStorage,paths:["curSeatInfo"]}});export{a as u}; import{bI as e}from"./index-B3zhRcce.js";const a=e({id:"occupancySeatInfo",state:()=>({curSeatInfo:{}}),actions:{removeSeatInfo(){this.curSeatInfo={}},setSeatInfo(t){this.curSeatInfo=t},getSeatInfo(){return this.curSeatInfo}},getters:{},persist:{storage:sessionStorage,paths:["curSeatInfo"]}});export{a as u};
import{R as m,o as t,c,A as i,U as l,k as a,V as s,a as d,j as r,C as f,J as y,ba as h,N as v}from"./index-D_Gydj3j.js";import{u as b}from"./seat-Di3Smajh.js";const g={class:"w-full h-full bg-white p-3 flex border-b-[0.8px solid #BABABB]"},x={class:"w-[80%] h-full flex my-auto"},B={class:"w-[20%] h-full ccFlex my-auto"},C={__name:"seatCard",props:{item:{type:Object,default:()=>{}}},setup(n){const e=n;b();function p(){y.push({path:"/seatReservationForm",query:{seatId:e.item.seat_id}})}return(w,N)=>{const u=h,_=v,o=m("font");return t(),c("div",g,[i("div",x,[l((t(),c("span",null,[a(s(e.item.seat_code_name)+"号座位",1)])),[[o,void 0,"{size:18,color:`#000`}"]]),d(u,{type:["primary","warning"][Number(e.item.occupy_flag)],class:"ml-8",plain:"",size:"large"},{default:r(()=>[a(s(e.item.occupy_name),1)]),_:1},8,["type"])]),i("div",B,[l((t(),f(_,{disabled:!!Number(e.item.occupy_flag),class:"w-[66px] h-[32px]",round:"",size:"small",type:"primary",onClick:p},{default:r(()=>[a(s(["占座","无座"][Number(e.item.occupy_flag)]),1)]),_:1},8,["disabled"])),[[o,void 0,"{size:16}"]])])])}}};export{C as default}; import{R as m,o as t,c,A as i,U as l,k as a,V as s,a as d,j as r,C as f,J as y,bb as h,N as b}from"./index-B3zhRcce.js";import{u as v}from"./seat-CjX1HhE7.js";const g={class:"w-full h-full bg-white p-3 flex border-b-[0.8px solid #BABABB]"},x={class:"w-[80%] h-full flex my-auto"},B={class:"w-[20%] h-full ccFlex my-auto"},C={__name:"seatCard",props:{item:{type:Object,default:()=>{}}},setup(n){const e=n;v();function p(){y.push({path:"/seatReservationForm",query:{seatId:e.item.seat_id}})}return(w,N)=>{const u=h,_=b,o=m("font");return t(),c("div",g,[i("div",x,[l((t(),c("span",null,[a(s(e.item.seat_code_name)+"号座位",1)])),[[o,void 0,"{size:18,color:`#000`}"]]),d(u,{type:["primary","warning"][Number(e.item.occupy_flag)],class:"ml-8",plain:"",size:"large"},{default:r(()=>[a(s(e.item.occupy_name),1)]),_:1},8,["type"])]),i("div",B,[l((t(),f(_,{disabled:!!Number(e.item.occupy_flag),class:"w-[66px] h-[32px]",round:"",size:"small",type:"primary",onClick:p},{default:r(()=>[a(s(["占座","无座"][Number(e.item.occupy_flag)]),1)]),_:1},8,["disabled"])),[[o,void 0,"{size:16}"]])])])}}};export{C as default};
import{v as u,i as y,o as x,c as v,a as s,j as f,M as b,P as g,ae as A}from"./index-D_Gydj3j.js";import"./index-C6bNzAj8.js";import{P as h}from"./index-W_RNZtRd.js";const k={class:"w-screen h-screen flex items-center"},S={__name:"selectPlace",setup(j){const n=u({timeRange:!1,placeType:!1,place:!1,beginTime:!1,endTime:!1,commodity:!1,date:!1,timeRangeText:"",dateText:"",placeTypeText:"",placeText:"",beginTimeText:"",endTimeText:"",commodityText:"",placeTypeArray:"",placeArray:"",beginTimeArray:"",endTimeArray:"",commodityArrat:[],minDateStart:"",maxDateStart:""}),o=u({data:{date:"",place_type_id:"",place_id:"",begin_time:"",end_time:"",remark:"",commodity_list:[]}}),_=({selectedValues:c,selectedOptions:t},p)=>{const d=(a,e,l="")=>{switch(l){case 1:let i=[];a.map(r=>i.push(r.text)),n[e+"Text"]=i.join("-"),n[e]=!1;break;default:n[e+"Text"]=a[0].text,n[e]=!1;break}};({placeType:function(a,e){o.data.place_type_id=a[0].value,d(a,e),(void 0)({id:a[0].value}).then(l=>{let i=[];l.response.map((r,w)=>{i.push({text:r.name,value:r.id})}),n.placeArray=i})},place:function(a,e){o.data.place_id=a[0].value,o.data.place_id!==""&&o.data.date!==""&&(void 0)({place_id:o.data.place_id,day:o.data.date}).then(l=>{check.data.list=l.response}),d(a,e)},date:function(a,e){console.log("🚀🚀🚀,",a,e)},beginTime:function(a,e){let l=[];a.map(i=>l.push(i.value)),o.data.begin_time=l.join("-"),d(a,e,1)},endTime:function(a,e){let l=[];a.map(i=>l.push(i.value)),o.data.end_time=l.join("-"),d(a,e,1)}})[p](t,p)},T=()=>{(void 0)().then(c=>{let t=[];c.response.map((p,d)=>{t.push({text:p.name,value:p.id})}),n.placeTypeArray=t})};return y(()=>{T()}),(c,t)=>{const p=b,d=h,m=g,a=A;return x(),v("div",k,[s(a,{class:"w-full"},{default:f(()=>[s(p,{disabled:o.data.place_type_id==="",modelValue:n.placeText,"onUpdate:modelValue":t[0]||(t[0]=e=>n.placeText=e),"is-link":"",readonly:"",name:"place",label:"场地",placeholder:"点击选场地",onClick:t[1]||(t[1]=e=>n.place=!0)},null,8,["disabled","modelValue"]),s(m,{show:n.place,"onUpdate:show":t[4]||(t[4]=e=>n.place=e),position:"bottom"},{default:f(()=>[s(d,{columns:n.placeArray,onConfirm:t[2]||(t[2]=e=>_(e,"place")),onCancel:t[3]||(t[3]=e=>n.place=!1)},null,8,["columns"])]),_:1},8,["show"])]),_:1})])}}};export{S as default}; import{v as u,i as y,o as x,c as v,a as s,j as f,M as b,P as g,ae as A}from"./index-B3zhRcce.js";import"./index-CNXep50-.js";import{P as h}from"./index-mJN-eOV-.js";const k={class:"w-screen h-screen flex items-center"},S={__name:"selectPlace",setup(j){const n=u({timeRange:!1,placeType:!1,place:!1,beginTime:!1,endTime:!1,commodity:!1,date:!1,timeRangeText:"",dateText:"",placeTypeText:"",placeText:"",beginTimeText:"",endTimeText:"",commodityText:"",placeTypeArray:"",placeArray:"",beginTimeArray:"",endTimeArray:"",commodityArrat:[],minDateStart:"",maxDateStart:""}),o=u({data:{date:"",place_type_id:"",place_id:"",begin_time:"",end_time:"",remark:"",commodity_list:[]}}),_=({selectedValues:c,selectedOptions:t},p)=>{const d=(a,e,l="")=>{switch(l){case 1:let i=[];a.map(r=>i.push(r.text)),n[e+"Text"]=i.join("-"),n[e]=!1;break;default:n[e+"Text"]=a[0].text,n[e]=!1;break}};({placeType:function(a,e){o.data.place_type_id=a[0].value,d(a,e),(void 0)({id:a[0].value}).then(l=>{let i=[];l.response.map((r,w)=>{i.push({text:r.name,value:r.id})}),n.placeArray=i})},place:function(a,e){o.data.place_id=a[0].value,o.data.place_id!==""&&o.data.date!==""&&(void 0)({place_id:o.data.place_id,day:o.data.date}).then(l=>{check.data.list=l.response}),d(a,e)},date:function(a,e){console.log("🚀🚀🚀,",a,e)},beginTime:function(a,e){let l=[];a.map(i=>l.push(i.value)),o.data.begin_time=l.join("-"),d(a,e,1)},endTime:function(a,e){let l=[];a.map(i=>l.push(i.value)),o.data.end_time=l.join("-"),d(a,e,1)}})[p](t,p)},T=()=>{(void 0)().then(c=>{let t=[];c.response.map((p,d)=>{t.push({text:p.name,value:p.id})}),n.placeTypeArray=t})};return y(()=>{T()}),(c,t)=>{const p=b,d=h,m=g,a=A;return x(),v("div",k,[s(a,{class:"w-full"},{default:f(()=>[s(p,{disabled:o.data.place_type_id==="",modelValue:n.placeText,"onUpdate:modelValue":t[0]||(t[0]=e=>n.placeText=e),"is-link":"",readonly:"",name:"place",label:"场地",placeholder:"点击选场地",onClick:t[1]||(t[1]=e=>n.place=!0)},null,8,["disabled","modelValue"]),s(m,{show:n.place,"onUpdate:show":t[4]||(t[4]=e=>n.place=e),position:"bottom"},{default:f(()=>[s(d,{columns:n.placeArray,onConfirm:t[2]||(t[2]=e=>_(e,"place")),onCancel:t[3]||(t[3]=e=>n.place=!1)},null,8,["columns"])]),_:1},8,["show"])]),_:1})])}}};export{S as default};
import{x as o,av as c,C as l,o as p}from"./index-D_Gydj3j.js";const d={__name:"tree",props:{placeTypeId:{type:String,default:""}},setup(s){const n=[{title:"parent 1",expand:!0,children:[{title:"parent 1-1",expand:!0,children:[{title:"leaf 1-1-1"},{title:"leaf 1-1-2"}]},{title:"parent 1-2",expand:!0,children:[{title:"leaf 1-2-1"},{title:"leaf 1-2-1"}]}]}];o();function a(e,t){console.log("🚀🚀🚀,",e,t)}return(e,t)=>{const r=c("Tree",!0);return p(),l(r,{data:n,"show-checkbox":"",onOnCheckChange:a})}}};export{d as default}; import{x as o,av as c,C as l,o as p}from"./index-B3zhRcce.js";const d={__name:"tree",props:{placeTypeId:{type:String,default:""}},setup(s){const n=[{title:"parent 1",expand:!0,children:[{title:"parent 1-1",expand:!0,children:[{title:"leaf 1-1-1"},{title:"leaf 1-1-2"}]},{title:"parent 1-2",expand:!0,children:[{title:"leaf 1-2-1"},{title:"leaf 1-2-1"}]}]}];o();function a(e,t){console.log("🚀🚀🚀,",e,t)}return(e,t)=>{const r=c("Tree",!0);return p(),l(r,{data:n,"show-checkbox":"",onOnCheckChange:a})}}};export{d as default};
import{y as f,bE as o}from"./index-D_Gydj3j.js";function c(){const s=f([]),t=[];return o(()=>{s.value=[]}),[s,e=>(t[e]||(t[e]=r=>{s.value[e]=r}),t[e])]}export{c as u}; import{y as f,bF as o}from"./index-B3zhRcce.js";function c(){const s=f([]),t=[];return o(()=>{s.value=[]}),[s,e=>(t[e]||(t[e]=r=>{s.value[e]=r}),t[e])]}export{c as u};
.currentAppointment[data-v-8a8f5eb8]{background-image:url(./bg-CCgRfePF.png);background-size:100% 100%}.noCurrentAppointment[data-v-8a8f5eb8]{background-image:url(./%E6%9A%82%E6%97%A0%E9%A2%84%E7%BA%A6%E6%8F%92%E7%94%BB-Ba8gBy-B.png);background-size:100% 100%;background-color:#fff} .currentAppointment[data-v-68fd78ee]{background-image:url(./bg-CCgRfePF.png);background-size:100% 100%}.noCurrentAppointment[data-v-68fd78ee]{background-image:url(./%E6%9A%82%E6%97%A0%E9%A2%84%E7%BA%A6%E6%8F%92%E7%94%BB-Ba8gBy-B.png);background-size:100% 100%;background-color:#fff}
import{R as z,o as s,c as o,A as a,U as d,k as l,V as c,B as O,ay as P,a as m,j as x,J as U,N as S,_ as G,x as H,u as Q,y as f,v as J,i as R,bG as $,z as M,F,H as I,ax as Z,a0 as A,bH as W,ac as X,Z as Y,az as ee,a2 as te,a3 as se}from"./index-B3zhRcce.js";import{P as oe}from"./index-CbzrglTY.js";import{L as ne}from"./index-CWVmoBon.js";import{u as ae}from"./seat-CjX1HhE7.js";import{C as ie}from"./index-DS-HesyP.js";import{w as le}from"./index-DJ1F6XO-.js";import"./index-zS8mYSgR.js";const ce={class:"w-full h-full bg-white rounded-[8px] my-2 p-3 relative"},re={class:"w-full h-1/2 flex items-center justify-between"},de={class:"w-[35%]"},pe={class:"self-start w-[65%]"},ue={class:"w-full h-1/2 flex items-center justify-between"},_e={__name:"latestAppointmentCard",props:{item:{type:Object,default:()=>{}}},setup(_){const p=_,g=ae();function t(){g.setSeatInfo({seat_id:p.item.seat_id}),U.push({path:"/seatReservationForm",query:{seatId:p.item.seat_id}})}return(y,h)=>{const v=S,r=z("font");return s(),o("div",ce,[a("div",re,[d((s(),o("div",de,[l(c(p.item.seat_code_name)+"号座位",1)])),[[r,void 0,"{size:20,color:`#000`}"]]),a("div",pe,c(p.item.date+" "+O(P).activityStatus[p.item.state]),1)]),a("div",ue,[d((s(),o("div",null,[l(c(p.item.room_address),1)])),[[r,void 0,"{size:14,color:`#000`}"]]),a("div",null,[m(v,{onClick:t,type:"primary",size:"small",plain:""},{default:x(()=>[l("再次预约")]),_:1})])])])}}},fe=_=>(te("data-v-68fd78ee"),_=_(),se(),_),me={class:"flex flex-nowrap mb-3 w-full h-[90px] bg-white rounded-[8px]"},he=["onClick"],ve=["src"],xe={class:"text-[14px] w-full ccFlex mt-[2px]"},ge={key:0,class:"currentAppointment w-full min-h-[140px] rounded-[8px] flex p-2"},ye={class:"w-[calc(100%-80px)] h-full"},we={class:"text"},Fe={class:"w-[80px] h-full flex flex-wrap justify-center content-evenly"},Ae={class:"text-[#10B4FA] text-[16px]"},be={class:"border-solid border-[#FFFFFF] border rounded-[20px]"},Ce={class:"text-[#FFFFFF] text-[16px]"},ke={key:1,class:"noCurrentAppointment w-full min-h-[140px] rounded-[8px] flex p-2"},Re={class:"w-full h-8 flex items-center"},$e={class:"w-full h-[calc(100%-358px)] overflow-y-auto"},Ie=["title"],ze=fe(()=>a("div",{class:"w-[96%] ccFlex h-2 mt-2 text-center",style:{color:"#b0b0b0","font-size":"10px"}},"Build 1.0.0 - 250526 1.0.1 ",-1)),Se={__name:"user",setup(_){const p=H().appContext.config.globalProperties,g=Q();f(2),f(!1);const t=J({params:{key_name:"",room_id:"",sign_state:"",state:"",date:"",page_index:1,page_size:10},curApo:{},columns:[{title:"预约选座",imageKey:"yyxz",path:"/roomList"},{title:"扫码选座",imageKey:"smxz",path:""},{title:"预约记录",imageKey:"yyjl",path:"/appointmentList"},{title:"不良记录",imageKey:"bljl",path:"/adverseActivityRecord"}],placeTypeName:[],flow:{array:[]},count:{}}),y=f([]),h=f(!1),v=f(!1),r=f(!1),b=()=>{Z(t.params).then(e=>{r.value&&(y.value=[],r.value=!1),e.response.data.length===0&&(v.value=!0,r.value=!1),e.response.data.forEach(n=>{y.value.push({...n,rangeTime:`${n.begin_time.split(" ")[1]}-${n.end_time.split(" ")[1]}`,diffTime:`${A(n.begin_time.split(" ")[1],n.end_time.split(" ")[1])}小时`,date:`${n.begin_time}-${n.end_time.split(" ")[1]} ${A(n.begin_time.split(" ")[1],n.end_time.split(" ")[1])}小时`})}),h.value=!1,t.params.page_index++,r.value=!1})},D=()=>{v.value=!1,h.value=!0,t.params.page_index=1,b()};function C(){W().then(e=>{try{t.curApo={...e.response,rangeTime:`${e.response.begin_time.split(" ")[1]}-${e.response.end_time.split(" ")[1]}`,date:e.response.begin_time.split(" ")[0],diffTime:`${A(e.response.begin_time.split(" ")[1],e.response.end_time.split(" ")[1])}小时`,isFutureDate:$(e.response.end_time)}}catch{t.curApo=e.response}})}R(()=>{console.log("🚀🚀🚀,",$("2024-07-11 15:15")),C()});const B=e=>p.hooks.getImage(e);M("backAscHome");function w(e){g.push({path:e})}function T(){le.scanQRCode({needResult:1,scanType:["qrCode"],success:e=>{window.location.href=e.resultStr}})}function j(e){({预约选座:()=>{w(e.path)},扫码选座:()=>{T()},预约记录:()=>{w(e.path)},不良记录:()=>{w(e.path)}})[e.title]()}function L(){g.push({path:"/signInSignOut",query:{id:t.curApo.id}})}function V(){X(()=>Y(()=>ee({id:t.curApo.id}).then(e=>(e.code===1&&C(),e))),"是否确认取消该座位的占用?")}return R(()=>{document.title="主页",ie.wxInit()}),(e,n)=>{const k=S,K=_e,N=ne,q=oe,u=z("font");return s(),o(F,null,[a("div",me,[(s(!0),o(F,null,I(t.columns,(i,E)=>(s(),o("div",{key:E,onClick:De=>j(i),class:"w-1/3 h-full flex-wrap flex justify-center content-center"},[a("img",{class:"w-[50px] h-[50px]",src:B(i.imageKey)},null,8,ve),a("div",xe,c(i.title),1)],8,he))),128))]),t.curApo.isFutureDate?(s(),o("div",ge,[a("div",ye,[d((s(),o("p",we,[l("当前预约")])),[[u,void 0,"{color:`#7FD9FD`}"]]),d((s(),o("p",null,[l(c(t.curApo.seat_code_name)+"号座位",1)])),[[u,void 0,"{size:35}"]]),d((s(),o("p",null,[l(c(t.curApo.room_address),1)])),[[u]]),d((s(),o("p",null,[l(c(t.curApo.date)+" "+c(t.curApo.rangeTime)+" "+c(t.curApo.diffTime),1)])),[[u]])]),a("div",Fe,[m(k,{onClick:L,class:"w-[70px]",size:"small",round:"",color:"#FFFFF",type:"default"},{default:x(()=>[d((s(),o("span",Ae,[l(c(["签 到","签 退","已签退"][t.curApo.sign_state]),1)])),[[u,void 0,"{color:`#00B6FC`}"]])]),_:1}),a("div",be,[m(k,{onClick:V,class:"w-[70px]",size:"small",round:"",color:"#0EB3FA",type:"default"},{default:x(()=>[d((s(),o("span",Ce,[l("取 消")])),[[u]])]),_:1})])])])):(s(),o("div",ke)),d((s(),o("div",Re,[l("最近预约")])),[[u,void 0,"{color:`#A7A8AA`}"]]),a("div",$e,[m(q,{modelValue:r.value,"onUpdate:modelValue":n[1]||(n[1]=i=>r.value=i),onRefresh:D},{default:x(()=>[m(N,{loading:h.value,"onUpdate:loading":n[0]||(n[0]=i=>h.value=i),finished:v.value,"finished-text":"没有更多了",onLoad:b},{default:x(()=>[(s(!0),o(F,null,I(y.value,i=>(s(),o("div",{key:i,title:i,class:"w-full h-[100px]"},[m(K,{item:i},null,8,["item"])],8,Ie))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])]),ze],64)}}},qe=G(Se,[["__scopeId","data-v-68fd78ee"]]);export{qe as default};
import{R as D,o as s,c as o,A as i,U as p,k as l,V as r,B as O,ay as P,a as f,j as v,J as U,N as I,_ as G,x as H,u as Q,y as _,v as J,i as R,bF as $,z as M,F as w,H as z,ax as Z,a0 as F,bG as W,ac as X,Z as Y,az as ee}from"./index-D_Gydj3j.js";import{P as te}from"./index-D78nwNjN.js";import{L as se}from"./index-DSEHVgwH.js";import{u as oe}from"./seat-Di3Smajh.js";import{C as ne}from"./index-VTw5wR90.js";import{w as ae}from"./index-OH6kQdPz.js";import"./index-O2oN3mFW.js";const ie={class:"w-full h-full bg-white rounded-[8px] my-2 p-3 relative"},le={class:"w-full h-1/2 flex items-center justify-between"},re={class:"w-[35%]"},ce={class:"self-start w-[65%]"},pe={class:"w-full h-1/2 flex items-center justify-between"},de={__name:"latestAppointmentCard",props:{item:{type:Object,default:()=>{}}},setup(A){const d=A,x=oe();function t(){x.setSeatInfo({seat_id:d.item.seat_id}),U.push({path:"/seatReservationForm",query:{seatId:d.item.seat_id}})}return(g,m)=>{const h=I,c=D("font");return s(),o("div",ie,[i("div",le,[p((s(),o("div",re,[l(r(d.item.seat_code_name)+"号座位",1)])),[[c,void 0,"{size:20,color:`#000`}"]]),i("div",ce,r(d.item.date+" "+O(P).activityStatus[d.item.state]),1)]),i("div",pe,[p((s(),o("div",null,[l(r(d.item.room_address),1)])),[[c,void 0,"{size:14,color:`#000`}"]]),i("div",null,[f(h,{onClick:t,type:"primary",size:"small",plain:""},{default:v(()=>[l("再次预约")]),_:1})])])])}}},ue={class:"flex flex-nowrap mb-3 w-full h-[90px] bg-white rounded-[8px]"},_e=["onClick"],fe=["src"],me={class:"text-[14px] w-full ccFlex mt-[2px]"},he={key:0,class:"currentAppointment w-full min-h-[140px] rounded-[8px] flex p-2"},ve={class:"w-[calc(100%-80px)] h-full"},xe={class:"text"},ge={class:"w-[80px] h-full flex flex-wrap justify-center content-evenly"},ye={class:"text-[#10B4FA] text-[16px]"},we={class:"border-solid border-[#FFFFFF] border rounded-[20px]"},Fe={class:"text-[#FFFFFF] text-[16px]"},Ae={key:1,class:"noCurrentAppointment w-full min-h-[140px] rounded-[8px] flex p-2"},be={class:"w-full h-8 flex items-center"},Ce={class:"w-full h-[calc(100%-342px)] overflow-y-auto"},ke=["title"],Re={__name:"user",setup(A){const d=H().appContext.config.globalProperties,x=Q();_(2),_(!1);const t=J({params:{key_name:"",room_id:"",sign_state:"",state:"",date:"",page_index:1,page_size:10},curApo:{},columns:[{title:"预约选座",imageKey:"yyxz",path:"/roomList"},{title:"扫码选座",imageKey:"smxz",path:""},{title:"预约记录",imageKey:"yyjl",path:"/appointmentList"},{title:"不良记录",imageKey:"bljl",path:"/adverseActivityRecord"}],placeTypeName:[],flow:{array:[]},count:{}}),g=_([]),m=_(!1),h=_(!1),c=_(!1),b=()=>{Z(t.params).then(e=>{c.value&&(g.value=[],c.value=!1),e.response.data.length===0&&(h.value=!0,c.value=!1),e.response.data.forEach(n=>{g.value.push({...n,rangeTime:`${n.begin_time.split(" ")[1]}-${n.end_time.split(" ")[1]}`,diffTime:`${F(n.begin_time.split(" ")[1],n.end_time.split(" ")[1])}小时`,date:`${n.begin_time}-${n.end_time.split(" ")[1]} ${F(n.begin_time.split(" ")[1],n.end_time.split(" ")[1])}小时`})}),m.value=!1,t.params.page_index++,c.value=!1})},T=()=>{h.value=!1,m.value=!0,t.params.page_index=1,b()};function C(){W().then(e=>{try{t.curApo={...e.response,rangeTime:`${e.response.begin_time.split(" ")[1]}-${e.response.end_time.split(" ")[1]}`,date:e.response.begin_time.split(" ")[0],diffTime:`${F(e.response.begin_time.split(" ")[1],e.response.end_time.split(" ")[1])}小时`,isFutureDate:$(e.response.end_time)}}catch{t.curApo=e.response}})}R(()=>{console.log("🚀🚀🚀,",$("2024-07-11 15:15")),C()});const j=e=>d.hooks.getImage(e);M("backAscHome");function y(e){x.push({path:e})}function B(){ae.scanQRCode({needResult:1,scanType:["qrCode"],success:e=>{window.location.href=e.resultStr}})}function S(e){({预约选座:()=>{y(e.path)},扫码选座:()=>{B()},预约记录:()=>{y(e.path)},不良记录:()=>{y(e.path)}})[e.title]()}function L(){x.push({path:"/signInSignOut",query:{id:t.curApo.id}})}function V(){X(()=>Y(()=>ee({id:t.curApo.id}).then(e=>(e.code===1&&C(),e))),"是否确认取消该座位的占用?")}return R(()=>{document.title="主页",ne.wxInit()}),(e,n)=>{const k=I,K=de,N=se,q=te,u=D("font");return s(),o(w,null,[i("div",ue,[(s(!0),o(w,null,z(t.columns,(a,E)=>(s(),o("div",{key:E,onClick:$e=>S(a),class:"w-1/3 h-full flex-wrap flex justify-center content-center"},[i("img",{class:"w-[50px] h-[50px]",src:j(a.imageKey)},null,8,fe),i("div",me,r(a.title),1)],8,_e))),128))]),t.curApo.isFutureDate?(s(),o("div",he,[i("div",ve,[p((s(),o("p",xe,[l("当前预约")])),[[u,void 0,"{color:`#7FD9FD`}"]]),p((s(),o("p",null,[l(r(t.curApo.seat_code_name)+"号座位",1)])),[[u,void 0,"{size:35}"]]),p((s(),o("p",null,[l(r(t.curApo.room_address),1)])),[[u]]),p((s(),o("p",null,[l(r(t.curApo.date)+" "+r(t.curApo.rangeTime)+" "+r(t.curApo.diffTime),1)])),[[u]])]),i("div",ge,[f(k,{onClick:L,class:"w-[70px]",size:"small",round:"",color:"#FFFFF",type:"default"},{default:v(()=>[p((s(),o("span",ye,[l(r(["签 到","签 退","已签退"][t.curApo.sign_state]),1)])),[[u,void 0,"{color:`#00B6FC`}"]])]),_:1}),i("div",we,[f(k,{onClick:V,class:"w-[70px]",size:"small",round:"",color:"#0EB3FA",type:"default"},{default:v(()=>[p((s(),o("span",Fe,[l("取 消")])),[[u]])]),_:1})])])])):(s(),o("div",Ae)),p((s(),o("div",be,[l("最近预约")])),[[u,void 0,"{color:`#A7A8AA`}"]]),i("div",Ce,[f(q,{modelValue:c.value,"onUpdate:modelValue":n[1]||(n[1]=a=>c.value=a),onRefresh:T},{default:v(()=>[f(N,{loading:m.value,"onUpdate:loading":n[0]||(n[0]=a=>m.value=a),finished:h.value,"finished-text":"没有更多了",onLoad:b},{default:v(()=>[(s(!0),o(w,null,z(g.value,a=>(s(),o("div",{key:a,title:a,class:"w-full h-[100px]"},[f(K,{item:a},null,8,["item"])],8,ke))),128))]),_:1},8,["loading","finished"])]),_:1},8,["modelValue"])])],64)}}},Le=G(Re,[["__scopeId","data-v-8a8f5eb8"]]);export{Le as default};
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg"/> <link rel="icon" type="image/svg+xml" href="./vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>占座管理</title> <title>占座管理</title>
<script type="module" crossorigin src="./assets/index-D_Gydj3j.js"></script> <script type="module" crossorigin src="./assets/index-B3zhRcce.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CZiMdQLq.css"> <link rel="stylesheet" crossorigin href="./assets/index-CGadlQNA.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type BadnessRequests } from "../../interface"; import { type BadnessRequests } from "../../interface";
/** /**
* 获取不良记录列表管理员 * 获取不良记录列表管理员
* /api/Badness/GetBadnessAdminList * /api/Badness/GetBadnessAdminList
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type BadnessRequests } from "../../interface"; import { type BadnessRequests } from "../../interface";
/** /**
* 获取不良记录列表 * 获取不良记录列表
* /api/Badness/GetBadnessList * /api/Badness/GetBadnessList
......
...@@ -6,3 +6,4 @@ export * from "./postApiCommonImageUpLoad"; ...@@ -6,3 +6,4 @@ export * from "./postApiCommonImageUpLoad";
export * from "./getApiCommonGetMaxAndMinOccupyseat"; export * from "./getApiCommonGetMaxAndMinOccupyseat";
export * from "./getApiCommonGetDomainName"; export * from "./getApiCommonGetDomainName";
export * from "./getApiCommonGetRoomSelect"; export * from "./getApiCommonGetRoomSelect";
export * from "./postApiCommonLocationLogSet";
...@@ -6,3 +6,4 @@ export * from "./postApiCommonImageUpLoad.js"; ...@@ -6,3 +6,4 @@ export * from "./postApiCommonImageUpLoad.js";
export * from "./getApiCommonGetMaxAndMinOccupyseat.js"; export * from "./getApiCommonGetMaxAndMinOccupyseat.js";
export * from "./getApiCommonGetDomainName.js"; export * from "./getApiCommonGetDomainName.js";
export * from "./getApiCommonGetRoomSelect.js"; export * from "./getApiCommonGetRoomSelect.js";
export * from "./postApiCommonLocationLogSet.js";
import { type AxiosRequestConfig } from "axios";
import { type LocationLogSetRequest } from "../../interface";
/**
* 定位信息写入
* /api/Common/LocationLogSet
*/
export declare function postApiCommonLocationLogSet(input?: LocationLogSetRequest, config?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}, any>>;
import request from "@/util/axios.js";
/**
* 定位信息写入
* /api/Common/LocationLogSet
*/
export function postApiCommonLocationLogSet(input, config) {
return request.post(`/api/Common/LocationLogSet`, input, config);
}
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type RoomDataInsViewModel } from "../../interface"; import { type RoomDataInsViewModel } from "../../interface";
/** /**
* 对接其他系统新增房间 * 对接其他系统新增房间
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface"; import { type DeepRequired } from "../../interface";
/** /**
* 获取 整体框架 文件 * 获取 整体框架 文件
* /api/DbFirst/GetFrameFiles * /api/DbFirst/GetFrameFiles
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface"; import { type DeepRequired } from "../../interface";
/** /**
* 获取 IRepository 层文件 * 获取 IRepository 层文件
* /api/DbFirst/GetIRepositoryFiles * /api/DbFirst/GetIRepositoryFiles
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface"; import { type DeepRequired } from "../../interface";
/** /**
* 获取 IService 层文件 * 获取 IService 层文件
* /api/DbFirst/GetIServiceFiles * /api/DbFirst/GetIServiceFiles
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface"; import { type DeepRequired } from "../../interface";
/** /**
* 获取 Model 层文件 * 获取 Model 层文件
* /api/DbFirst/GetModelFiles * /api/DbFirst/GetModelFiles
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface"; import { type DeepRequired } from "../../interface";
/** /**
* 获取 Repository 层文件 * 获取 Repository 层文件
* /api/DbFirst/GetRepositoryFiles * /api/DbFirst/GetRepositoryFiles
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface"; import { type DeepRequired } from "../../interface";
/** /**
* 获取 Services 层文件 * 获取 Services 层文件
* /api/DbFirst/GetServicesFiles * /api/DbFirst/GetServicesFiles
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface"; import { type DeepRequired } from "../../interface";
/** /**
* 获取指定框架文件 * 获取指定框架文件
* /api/DbFirst/GetFrameFilesByTable * /api/DbFirst/GetFrameFilesByTable
......
...@@ -12,7 +12,7 @@ export declare function getApiGetTokenInfo(config?: AxiosRequestConfig): Promise ...@@ -12,7 +12,7 @@ export declare function getApiGetTokenInfo(config?: AxiosRequestConfig): Promise
userid: string; userid: string;
cardNumber: string; cardNumber: string;
name: string; name: string;
type: number; type: any;
role_list: string[]; role_list: string[];
}; };
}, any>>; }, any>>;
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type TokenRequests } from "../../interface"; import { type TokenRequests } from "../../interface";
/** /**
* PC单点 * PC单点
* /api/sso/pc * /api/sso/pc
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type TokenRequests } from "../../interface"; import { type TokenRequests } from "../../interface";
/** /**
* WX单点 * WX单点
* /api/sso/wx * /api/sso/wx
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type OccupySeatReqViewModel } from "../../interface"; import { type OccupySeatReqViewModel } from "../../interface";
/** /**
* 入座 * 入座
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type SignRequests } from "../../interface"; import { type SignRequests } from "../../interface";
/** /**
* 签到/签退 * 签到/签退
* /api/Record/RecordSignInOut * /api/Record/RecordSignInOut
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type PlaceOccupyseatRolePower } from "../../interface"; import { type PlaceOccupyseatRolePower } from "../../interface";
/** /**
* 保存操作人 * 保存操作人
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type RoomRequests } from "../../interface"; import { type RoomRequests } from "../../interface";
/** /**
* 获取所有房间 * 获取所有房间
* /api/Room/GetRoomAllList * /api/Room/GetRoomAllList
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type RoomRequests } from "../../interface"; import { type RoomRequests } from "../../interface";
/** /**
* 获取房间列表 * 获取房间列表
* /api/Room/GetRoomList * /api/Room/GetRoomList
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type RoomRequests } from "../../interface"; import { type RoomRequests } from "../../interface";
/** /**
* 获取房间列表-根据用户性别 * 获取房间列表-根据用户性别
* /api/Room/GetRoomListBySex * /api/Room/GetRoomListBySex
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type RoomDataViewModel } from "../../interface"; import { type RoomDataViewModel } from "../../interface";
/** /**
* 新建房间 * 新建房间
* /api/Room/RoomIns * /api/Room/RoomIns
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type RoomDataViewModel } from "../../interface"; import { type RoomDataViewModel } from "../../interface";
/** /**
* 更新房间 * 更新房间
* /api/Room/RoomSave * /api/Room/RoomSave
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type PlaceOccupyseatSeat } from "../../interface"; import { type PlaceOccupyseatSeat } from "../../interface";
/** /**
* 保存座位 * 保存座位
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type PlaceSysconfig } from "../../interface"; import { type PlaceSysconfig } from "../../interface";
/** /**
* 保存系统配置 * 保存系统配置
* /api/SysConfig/GetSysConfigSave * /api/SysConfig/GetSysConfigSave
......
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type PlaceOccupyseatType } from "../../interface"; import { type PlaceOccupyseatType } from "../../interface";
/** /**
* 保存房间类型 * 保存房间类型
......
export interface LocationLogSetRequest {
/** 记录id */
recrod_id?: string;
/** key */
location_key?: string;
/** 结果 */
content?: string;
}
...@@ -14,6 +14,7 @@ export * from "./apiTypes/PlaceFile"; ...@@ -14,6 +14,7 @@ export * from "./apiTypes/PlaceFile";
export * from "./apiTypes/PlaceFileMessageModel"; export * from "./apiTypes/PlaceFileMessageModel";
export * from "./apiTypes/OccupyNumResponse"; export * from "./apiTypes/OccupyNumResponse";
export * from "./apiTypes/OccupyNumResponseMessageModel"; export * from "./apiTypes/OccupyNumResponseMessageModel";
export * from "./apiTypes/LocationLogSetRequest";
export * from "./apiTypes/RoomDataInsViewModel"; export * from "./apiTypes/RoomDataInsViewModel";
export * from "./apiTypes/TokenViewModel"; export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel"; export * from "./apiTypes/ComplexTokenViewModel";
......
...@@ -14,6 +14,7 @@ export * from "./apiTypes/PlaceFile.js"; ...@@ -14,6 +14,7 @@ export * from "./apiTypes/PlaceFile.js";
export * from "./apiTypes/PlaceFileMessageModel.js"; export * from "./apiTypes/PlaceFileMessageModel.js";
export * from "./apiTypes/OccupyNumResponse.js"; export * from "./apiTypes/OccupyNumResponse.js";
export * from "./apiTypes/OccupyNumResponseMessageModel.js"; export * from "./apiTypes/OccupyNumResponseMessageModel.js";
export * from "./apiTypes/LocationLogSetRequest.js";
export * from "./apiTypes/RoomDataInsViewModel.js"; export * from "./apiTypes/RoomDataInsViewModel.js";
export * from "./apiTypes/TokenViewModel.js"; export * from "./apiTypes/TokenViewModel.js";
export * from "./apiTypes/ComplexTokenViewModel.js"; export * from "./apiTypes/ComplexTokenViewModel.js";
......
...@@ -162,6 +162,7 @@ function getLocation() { ...@@ -162,6 +162,7 @@ function getLocation() {
//longitude 经度 //longitude 经度
//latitude 伟度 //latitude 伟度
init.longitudeAndLatitude = { init.longitudeAndLatitude = {
...init.longitudeAndLatitude,
latitude: res.latitude, latitude: res.latitude,
longitude: res.longitude, longitude: res.longitude,
} }
...@@ -302,6 +303,7 @@ function geocoder(latitude, longitude) { ...@@ -302,6 +303,7 @@ function geocoder(latitude, longitude) {
'2UOBZ-5V46X-XGB42-7W7Q6-DSCFO-4KBJS', '2UOBZ-5V46X-XGB42-7W7Q6-DSCFO-4KBJS',
'MQBBZ-ZFQWU-AC3VJ-BCXGR-TQ6ZZ-QTF7L', 'MQBBZ-ZFQWU-AC3VJ-BCXGR-TQ6ZZ-QTF7L',
] ]
let inverseAnalysisKey = keyList[Math.floor(Math.random() * keyList.length)] //地址逆解析Key
var that = this; var that = this;
var ll = latitude + "," + longitude; var ll = latitude + "," + longitude;
$.ajax({ $.ajax({
...@@ -310,7 +312,7 @@ function geocoder(latitude, longitude) { ...@@ -310,7 +312,7 @@ function geocoder(latitude, longitude) {
async: false, async: false,
dataType: "jsonp", dataType: "jsonp",
data: { data: {
key: keyList[Math.floor(Math.random() * keyList.length)], key: inverseAnalysisKey,
location: ll, //位置坐标 location: ll, //位置坐标
coord_type: "1", //输入的locations的坐标类型,1 GPS坐标 coord_type: "1", //输入的locations的坐标类型,1 GPS坐标
output: "jsonp" output: "jsonp"
...@@ -323,8 +325,28 @@ function geocoder(latitude, longitude) { ...@@ -323,8 +325,28 @@ function geocoder(latitude, longitude) {
lng: init.longitudeAndLatitude.longitude, lng: init.longitudeAndLatitude.longitude,
lat: init.longitudeAndLatitude.latitude, lat: init.longitudeAndLatitude.latitude,
}, init.data.attendance_area) }, init.data.attendance_area)
//记录日志
api.postApiCommonLocationLogSet({
"recrod_id": init.params.recrod_id,
"location_key": inverseAnalysisKey,
"content": JSON.stringify({
'是否在考勤范围内':init.longitudeAndLatitude.rangevalidator,
...address
})
})
console.log("🚀🚀data.result.address🚀,",address) console.log("🚀🚀data.result.address🚀,",address)
} else { } else {
//记录日志
api.postApiCommonLocationLogSet({
"recrod_id": init.params.recrod_id,
"location_key": inverseAnalysisKey,
"content": JSON.stringify({
'是否在考勤范围内':init.longitudeAndLatitude.rangevalidator,
...address
})
})
init.longitudeAndLatitude.address = '地址解析错误'
// that.$toast("获取地址失败"); // that.$toast("获取地址失败");
showDialog({ showDialog({
title: '地址解析错误', title: '地址解析错误',
...@@ -337,6 +359,15 @@ function geocoder(latitude, longitude) { ...@@ -337,6 +359,15 @@ function geocoder(latitude, longitude) {
}, },
error: function (err) { error: function (err) {
console.log(err); console.log(err);
//记录日志
api.postApiCommonLocationLogSet({
"recrod_id": init.params.recrod_id,
"location_key": inverseAnalysisKey,
"content": JSON.stringify({
'是否在考勤范围内':false,
...err
})
})
showDialog({ showDialog({
title: '地址解析错误', title: '地址解析错误',
message: JSON.stringify(err), message: JSON.stringify(err),
......
...@@ -236,7 +236,7 @@ onMounted(() => { ...@@ -236,7 +236,7 @@ onMounted(() => {
<!-- 最近预约 --> <!-- 最近预约 -->
<div v-font:{color:`#A7A8AA`} class="w-full h-8 flex items-center">最近预约</div> <div v-font:{color:`#A7A8AA`} class="w-full h-8 flex items-center">最近预约</div>
<div class="w-full h-[calc(100%-342px)] overflow-y-auto"> <div class="w-full h-[calc(100%-358px)] overflow-y-auto">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh"> <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list <van-list
v-model:loading="loading" v-model:loading="loading"
...@@ -252,7 +252,10 @@ onMounted(() => { ...@@ -252,7 +252,10 @@ onMounted(() => {
</van-list> </van-list>
</van-pull-refresh> </van-pull-refresh>
</div> </div>
<!-- version -->
<div class="w-[96%] ccFlex h-2 mt-2 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250526 1.0.1
</div>
</template> </template>
<style scoped> <style scoped>
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或