提交 f98d4af9 编写于 作者: 麦嘉得's avatar 麦嘉得

滚动条样式间距调整v250812

上级 cbf36faf
.containerxx[data-v-b1abe529]{width:100vw;height:100vh;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
import{_ as d,N as f,a as y,b as w,c,d as u,e as g,u as S,k as v,h as x,j as h,g as r,S as R,Q as n,R as a,U as b}from"./index-a9ddeb4e.js";const T={class:"containerxx"},q={__name:"SSO",setup(N){const t=f();let i=y(!0);const _=async s=>{const e=await R(s);if(e.code!==1)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("large-screen-admin-token",e.response.access_token.token_content),n.set("large-screen-admin-refreshToken",e.response.refresh_token.token_content),n.set("refreshTime",e.response.refresh_token.expires),n.set("time",e.response.access_token.expires);const o=await a();n.set("user-info",o.response.card_number),await t.replace({name:"welcome"})}},p=async s=>{const e=await b(s);if(e.code!==1)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("large-screen-admin-token",e.response.access_token.token_content),n.set("large-screen-admin-refreshToken",e.response.refresh_token.token_content),n.set("refreshTime",e.response.refresh_token.expires),n.set("time",e.response.access_token.expires);const o=await a();n.set("user-info",o.response.card_number),await t.replace({name:"welcome"})}},l=async s=>{const e=await(void 0)(s);if(e.code!==1)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("admin-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const o=await a();n.set("user-info",o.response.card_number),await t.replace({name:"welcome"})}},m=async()=>{if(Number(t.currentRoute.value.query.type)===2){let s={token:t.currentRoute.value.query.token,user_type:1};await _(s)}else if(Number(t.currentRoute.value.query.type)===1){let s={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await l(s)}else if(Number(t.currentRoute.value.query.type)===3){let s={userType:t.currentRoute.value.query.userType,P:t.currentRoute.value.query.P,NO:t.currentRoute.value.query.NO};console.log("🚀date🚀🚀,",s),await p(s)}};return w(()=>{m()}),(s,e)=>{const o=c("Spin"),k=c("Space");return u(),g("div",T,[S(i)?(u(),v(k,{key:0,size:"large"},{default:x(()=>[r(o,{size:"small"}),r(o),r(o,{size:"large"})]),_:1})):h("",!0)])}}},A=d(q,[["__scopeId","data-v-b1abe529"]]);export{A as default}; import{_ as d,N as f,a as y,b as w,c,d as u,e as g,u as S,k as v,h as x,j as h,g as r,S as R,U as n,W as a,X as T}from"./index-4fb2426c.js";const q={class:"containerxx"},b={__name:"SSO",setup(N){const t=f();let i=y(!0);const _=async s=>{const e=await R(s);if(e.code!==1)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("large-screen-admin-token",e.response.access_token.token_content),n.set("large-screen-admin-refreshToken",e.response.refresh_token.token_content),n.set("refreshTime",e.response.refresh_token.expires),n.set("time",e.response.access_token.expires);const o=await a();n.set("user-info",o.response.card_number),await t.replace({name:"welcome"})}},p=async s=>{const e=await T(s);if(e.code!==1)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("large-screen-admin-token",e.response.access_token.token_content),n.set("large-screen-admin-refreshToken",e.response.refresh_token.token_content),n.set("refreshTime",e.response.refresh_token.expires),n.set("time",e.response.access_token.expires);const o=await a();n.set("user-info",o.response.card_number),await t.replace({name:"welcome"})}},l=async s=>{const e=await(void 0)(s);if(e.code!==1)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){n.set("admin-token",e.response.access_token.token_content),n.set("time",e.response.access_token.expires);const o=await a();n.set("user-info",o.response.card_number),await t.replace({name:"welcome"})}},m=async()=>{if(Number(t.currentRoute.value.query.type)===2){let s={token:t.currentRoute.value.query.token,user_type:1};await _(s)}else if(Number(t.currentRoute.value.query.type)===1){let s={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await l(s)}else if(Number(t.currentRoute.value.query.type)===3){let s={userType:t.currentRoute.value.query.userType,P:t.currentRoute.value.query.P,NO:t.currentRoute.value.query.NO};console.log("🚀date🚀🚀,",s),await p(s)}};return w(()=>{m()}),(s,e)=>{const o=c("Spin"),k=c("Space");return u(),g("div",q,[S(i)?(u(),v(k,{key:0,size:"large"},{default:x(()=>[r(o,{size:"small"}),r(o),r(o,{size:"large"})]),_:1})):h("",!0)])}}},A=d(b,[["__scopeId","data-v-083e3bc1"]]);export{A as default};
.containerxx[data-v-083e3bc1]{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center}
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
import{N as e,d as t,e as s,f as o}from"./index-a9ddeb4e.js";const a=o("h1",null,"用户验证未通过!",-1),n=[a],u={__name:"index",setup(_){return e(),(c,r)=>(t(),s("div",null,n))}};export{u as default}; import{N as e,d as t,e as s,f as o}from"./index-4fb2426c.js";const a=o("h1",null,"用户验证未通过!",-1),n=[a],u={__name:"index",setup(_){return e(),(c,r)=>(t(),s("div",null,n))}};export{u as default};
import{Q as l,R as i,v as o,L as m}from"./index-4fb2426c.js";var u={exports:{}};(function(e,n){(function(r,s){e.exports=s(l)})(i,function(r){function s(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var d=s(r),Y={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,a){return a==="W"?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,a){var _=100*t+a;return _<600?"凌晨":_<900?"早上":_<1100?"上午":_<1300?"中午":_<1800?"下午":"晚上"}};return d.default.locale(Y,null,!0),Y})})(u);function f(){return o.locale("zh-cn"),o().format("YYYY年MM月DD日 HH:mm:ss dddd")}async function M(e){let n=await e();try{switch(n.code){case 1:return;default:m.Message.erorr("请求异常");break}}catch{m.Message.erorr("请求异常")}}export{f as g,M as m};
此差异已折叠。
import{v as s,L as e}from"./index-a9ddeb4e.js";function o(){return s(`${new Date}`).format("YYYY年MM月DD日 HH:mm:ss")}async function i(a){let r=await a();try{switch(r.code){case 1:return;default:e.Message.erorr("请求异常");break}}catch{e.Message.erorr("请求异常")}}export{o as g,i as m};
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
...@@ -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" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>宿舍大屏</title> <title>宿舍大屏</title>
<script type="module" crossorigin src="./assets/index-a9ddeb4e.js"></script> <script type="module" crossorigin src="./assets/index-4fb2426c.js"></script>
<link rel="stylesheet" href="./assets/index-fe20e023.css"> <link rel="stylesheet" href="./assets/index-e6ab4aa5.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
此差异已折叠。
...@@ -135,16 +135,16 @@ ...@@ -135,16 +135,16 @@
<div class="c-t-c-c-c-r " > <div class="c-t-c-c-c-r " >
<div class="c-t-c-c-c-r-t BackGround1"> <div class="c-t-c-c-c-r-t BackGround1">
<div style="color: white;font-size: 0.7vw;margin-left: 0.8vw">楼栋</div> <div style="color: white;font-size: 0.7vw;width: 33.33%;text-align: center;">楼栋</div>
<div style="color: white;font-size: 0.7vw;">房间数</div> <div style="color: white;font-size: 0.7vw;width: 33.33%;text-align: center;">房间数</div>
<div style="color: white;font-size: 0.7vw;margin-right: 0.8vw">床位数</div> <div style="color: white;font-size: 0.7vw;width: 33.33%;text-align: center;">床位数</div>
</div> </div>
<div class="c-t-c-c-c-r-f"> <div class="c-t-c-c-c-r-f">
<vue3SeamlessScroll :list="init.data.ldxxsstj" limitScrollNum="9" :step="0.1" :hover="true" isWatch class="scroll" :key="1"> <vue3SeamlessScroll :list="init.data.ldxxsstj" limitScrollNum="9" :step="0.1" :hover="true" isWatch class="scroll" :key="1">
<div @click="to(item)" style=" color: cyan; display: flex;justify-content: space-between;align-items: center;height: 2vw;" :class="['','BackGround1'][index % 2 === 0?0:1]" v-for="(item, index) in init.data.ldxxsstj" :key="index"> <div @click="to(item)" style=" color: cyan; display: flex;justify-content: space-between;align-items: center;text-align: center;height: 2vw;" :class="['','BackGround1'][index % 2 === 0?0:1]" v-for="(item, index) in init.data.ldxxsstj" :key="index">
<div style="margin-left: 0.8vw;font-size: 0.7vw">{{item.buiding_name}}</div> <div style="width: 33.33%;font-size: 0.7vw">{{item.buiding_name}}</div>
<div style="font-size: 0.7vw;overflow-x: hidden; margin-right: 0.85vw;">{{item.room_count}}</div> <div style="font-size: 0.7vw;overflow-x: hidden; width: 33.33%">{{item.room_count}}</div>
<div style="font-size: 0.7vw;margin-right: 0.8vw;">{{item.bed_count}}</div> <div style="font-size: 0.7vw;width: 33.33%">{{item.bed_count}}</div>
</div> </div>
</vue3SeamlessScroll> </vue3SeamlessScroll>
</div> </div>
...@@ -249,24 +249,24 @@ ...@@ -249,24 +249,24 @@
<div class="c-f-l-f-table " v-else-if="!!init.data.xscrq.length"> <div class="c-f-l-f-table " v-else-if="!!init.data.xscrq.length">
<div class="c-f-l-f-title BackGround1"> <div class="c-f-l-f-title BackGround1">
<div style="width: 100%;height: 100%;display: flex;justify-content: space-between;color: white;font-size: 0.7vw;"> <div style="width: 100%;height: 100%;display: flex;justify-content: space-between;color: white;font-size: 0.7vw;">
<div style="width: 20%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-left: 1vw;"><div>姓名</div></div> <div style="width: 15%;height: 100%;display:flex;justify-content: center;align-items:center;"><div>姓名</div></div>
<div style="width: 20%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-left: 1vw"><div>班级</div></div> <div style="width: 25%;height: 100%;display:flex;justify-content: center;align-items:center;"><div>班级</div></div>
<div style="width:18%;height: 100%;display:flex;justify-content: flex-start;align-items:center;"><div>寝室</div></div> <div style="width:18%;height: 100%;display:flex;justify-content: center;align-items:center;"><div>寝室</div></div>
<div style="width:18%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-right: 0.7vw;"><div>状态</div></div> <div style="width:18%;height: 100%;display:flex;justify-content: center;align-items:center;"><div>状态</div></div>
<div style="width: 24%;height: 100%;display:flex;justify-content: flex-start;align-items:center;margin-right: 1vw;"><div>时间</div></div> <div style="width: 24%;height: 100%;display:flex;justify-content: center;align-items:center;"><div>时间</div></div>
</div> </div>
</div> </div>
<div class="c-f-l-f-content"> <div class="c-f-l-f-content">
<vue3SeamlessScroll :list="init.data.xscrq" limitScrollNum="9" :step="0.1" :hover="true" isWatch class="scroll"> <vue3SeamlessScroll :list="init.data.xscrq" limitScrollNum="9" :step="0.1" :hover="true" isWatch class="scroll">
<div style=" color: cyan; display: flex;justify-content: space-between;align-items: center;width: 32vw; height: 1.5vw;" :class="['','BackGround1'][index % 2 === 0?0:1]" v-for="(item, index) in init.data.xscrq" :key="index"> <div style=" color: cyan; display: flex;justify-content: space-between;align-items: center;width: 100%; min-height: 1.5vw;" :class="['','BackGround1'][index % 2 === 0?0:1]" v-for="(item, index) in init.data.xscrq" :key="index">
<div style=" width: 20%; margin-left: 0.8vw;font-size: 0.7vw">{{item.name}}</div> <div style=" width: 15%;font-size: 0.7vw;text-align: center;">{{item.name}}</div>
<div style=" width: 20%; font-size: 0.7vw;overflow-x: hidden; "><span style="margin-left: 0.5vw">{{item.class_name}}</span></div> <div style=" width: 25%; font-size: 0.7vw;overflow-x: hidden;text-align: center;"><span style="">{{item.class_name}}</span></div>
<div style=" width:18%; display: flex; font-size: 0.7vw;"><span>{{item.room_name}}</span></div> <div style=" width:18%; display: flex; font-size: 0.7vw;text-align: center;justify-content: center"><span>{{item.room_name}}</span></div>
<div style=" width:18%; display: flex; font-size: 0.7vw"> <div style=" width:18%; display: flex; font-size: 0.7vw;text-align: center;justify-content: center;">
<span class="yerllow" v-if="item.state_name==='进'">{{item.state_name}}</span> <span class="yerllow" v-if="item.state_name==='进'">{{item.state_name}}</span>
<span class="blueness" v-else>{{item.state_name}}</span> <span class="blueness" v-else>{{item.state_name}}</span>
</div> </div>
<div style=" display:flex;width: 24%; font-size: 0.7vw;">{{item.time}}</div> <div style=" display:flex;width: 24%; font-size: 0.7vw;text-align: center;justify-content: center;">{{item.time}}</div>
</div> </div>
</vue3SeamlessScroll> </vue3SeamlessScroll>
</div> </div>
......
...@@ -106,27 +106,26 @@ ...@@ -106,27 +106,26 @@
<div class="c-l-f-f-empty" v-if="!!!init.data.xscrq.length"></div> <div class="c-l-f-f-empty" v-if="!!!init.data.xscrq.length"></div>
<div class="c-l-f-f-table" v-else-if="!!init.data.xscrq.length"> <div class="c-l-f-f-table" v-else-if="!!init.data.xscrq.length">
<div class="c-l-f-f-t-l BackGround1"> <div class="c-l-f-f-t-l BackGround1">
<div style="width: 20%;height: 100%;display:flex;justify-content: flex-start;align-items:center;"> <div style="width: 15%;height: 100%;display:flex;justify-content: center;align-items:center;">
<div style="margin-left: 0.8vw">姓名</div> <div style="">姓名</div>
</div> </div>
<div style="width: 20%;height: 100%;display:flex;justify-content: flex-start;align-items:center;"> <div style="width: 25%;height: 100%;display:flex;justify-content: center;align-items:center;">
<div style="margin-left: 0.7vw">班级</div> <div style="">班级</div>
</div> </div>
<div style="width: 18%;height: 100%;display:flex;justify-content: flex-start;align-items:center;"> <div style="width: 18%;height: 100%;display:flex;justify-content: center;align-items:center;">
<div>寝室</div> <div>寝室</div>
</div> </div>
<div style="width: 18%;height: 100%;display:flex;justify-content: flex-start;align-items:center;"> <div style="width: 18%;height: 100%;display:flex;justify-content: center;align-items:center;">
<div>状态</div> <div>状态</div>
</div> </div>
<div style="width: 24%;height: 100%;display:flex;justify-content: flex-start;align-items:center;"> <div style="width: 24%;height: 100%;display:flex;justify-content: center;align-items:center;">
<div style="margin-left: 0.5vw">时间</div> <div style="">时间</div>
</div> </div>
</div> </div>
<div class="c-l-f-f-t-r"> <div class="c-l-f-f-t-r">
<vue3SeamlessScroll :list="init.data.xscrq" limitScrollNum="9" :step="0.1" :hover="true" isWatch <vue3SeamlessScroll :list="init.data.xscrq" limitScrollNum="9" :step="0.1" :hover="true" isWatch class="scroll">
class="scroll">
<div <div
style=" color: cyan; display: flex;justify-content: space-between;align-items: center;width: 32vw; height: 1.5vw;" style=" color: cyan; display: flex;justify-content: space-between;align-items: center;width: 100%; min-height: 1.5vw;"
:class="['','BackGround1'][index % 2 === 0?0:1]" v-for="(item, index) in init.data.xscrq" :class="['','BackGround1'][index % 2 === 0?0:1]" v-for="(item, index) in init.data.xscrq"
:key="index"> :key="index">
<!-- <div style="margin-left: 0.8vw;font-size: 0.7vw">{{item.name}}</div>--> <!-- <div style="margin-left: 0.8vw;font-size: 0.7vw">{{item.name}}</div>-->
...@@ -134,15 +133,15 @@ ...@@ -134,15 +133,15 @@
<!-- <div style="font-size: 0.7vw;">{{item.card}}</div>--> <!-- <div style="font-size: 0.7vw;">{{item.card}}</div>-->
<!-- <div style="font-size: 0.7vw">{{item.state_name}}</div>--> <!-- <div style="font-size: 0.7vw">{{item.state_name}}</div>-->
<!-- <div style="font-size: 0.7vw">{{item.time}}</div>--> <!-- <div style="font-size: 0.7vw">{{item.time}}</div>-->
<div style=" width: 20%; margin-left: 0.8vw;font-size: 0.7vw">{{ item.name }}</div> <div style=" width: 15%;font-size: 0.7vw;text-align: center;">{{ item.name }}</div>
<div style=" width: 20%; font-size: 0.7vw;overflow-x: hidden; "><span>{{ item.class_name }}</span> <div style=" width: 25%; font-size: 0.7vw;overflow-x: hidden;text-align: center; "><span>{{ item.class_name }}</span>
</div> </div>
<div style=" width: 18%; font-size: 0.7vw;"><span>{{ item.room_name }}</span></div> <div style=" width: 18%; font-size: 0.7vw;text-align: center;"><span>{{ item.room_name }}</span></div>
<div style=" width: 18%; font-size: 0.7vw"> <div style=" width: 18%; font-size: 0.7vw;text-align: center;">
<span class="yerllow" v-if="item.state_name==='进'">{{ item.state_name }}</span> <span class="yerllow" v-if="item.state_name==='进'">{{ item.state_name }}</span>
<span class="blueness" v-else>{{ item.state_name }}</span> <span class="blueness" v-else>{{ item.state_name }}</span>
</div> </div>
<div style=" width: 24%; font-size: 0.7vw">{{ item.time }}</div> <div style=" width: 24%; font-size: 0.7vw;text-align: center;">{{ item.time }}</div>
</div> </div>
</vue3SeamlessScroll> </vue3SeamlessScroll>
</div> </div>
......
...@@ -14,7 +14,7 @@ export default defineConfig({ ...@@ -14,7 +14,7 @@ export default defineConfig({
// 这里的ccc可乱写, 是拼接在url后面的地址 如果接口中没有统一的后缀可自定义 // 这里的ccc可乱写, 是拼接在url后面的地址 如果接口中没有统一的后缀可自定义
// 如果有统一后缀, 如api, 直接写api即可, 也不用rewrite了 // 如果有统一后缀, 如api, 直接写api即可, 也不用rewrite了
"/dormmanage": { "/dormmanage": {
target: "https://asc.hnasct.cn/", // 真实接口地址, 后端给的基地址 target: "https://zhxy.gzqy.cn/", // 真实接口地址, 后端给的基地址
changeOrigin: true, // 允许跨域 changeOrigin: true, // 允许跨域
// rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空 // rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空
}, },
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或