PageSourceSearch

https://mdm.edu.tw/assets/MDMDataSource.dfb4288f.js

js mdm.edu.tw collected 2026-10-01 23:55:22 UTC 3,120 bytes, 1 lines download raw bytes

1import{e as w,r as E,a as e,j as o,b as h,d as m}from"./index.7613290f.js";import{f as d}from"./[email protected]";import"./ButtonBox.module.888fa962.js";import"./Button.module.5bbc35fb.js";import{L as N}from"./Loader.2a36551f.js";import{f as g}from"./dateFormat.c9475f4c.js";import"./appInsights.79eb1af4.js";/* empty css               */function O(){const f=w(t=>t.menu.menu),v=sessionStorage.getItem("groupName"),n=f.schoolOption||v,p=sessionStorage.getItem("token");w(t=>t.deviceSize);const{chooseUserLevel:s,chooseGroupName:r}=f,[x,i]=E.exports.useState(!1);async function A(){i(!0);const t=`${m}/api/Device/UnitDevice/${s}/${s==="\u8CC7\u8A0A\u8A2D\u5099\u7D44\u9577"?n:r}/Excel`;console.log(t);try{const l=await h({method:"GET",url:`${m}/api/Device/UnitDevice/${s}/${s==="\u8CC7\u8A0A\u8A2D\u5099\u7D44\u9577"?n:r}/Excel`,credentials:"same-origin",responseType:"blob",headers:{"Access-Control-Allow-Origin":"*",Authorization:`Bearer ${p}`}}),c=new Blob([l.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),a=window.URL.createObjectURL(c),u=document.createElement("a");u.href=a,u.download=`${g(Date.now()).split(" ")[0]}_\u8F09\u5177\u6E05\u55AE.xlsx`,u.click(),window.URL.revokeObjectURL(a)}catch(l){console.log(l)}finally{i(!1)}}async function D(){i(!0);try{const t=await h({method:"GET",url:`${m}/api/Device/UnitDevice/${s}/${s==="\u8CC7\u8A0A\u8A2D\u5099\u7D44\u9577"?n:r}/Excel/LongInactiveDevice`,credentials:"same-origin",responseType:"blob",headers:{"Access-Control-Allow-Origin":"*",Authorization:`Bearer ${p}`}}),l=new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),c=window.URL.createObjectURL(l),a=document.createElement("a");a.href=c,a.download=`${g(Date.now()).split(" ")[0]}\u4E45\u672A\u4E0A\u7DDA\u8F09\u5177\u6E05\u55AE.xlsx`,a.click(),window.URL.revokeObjectURL(c)}catch(t){console.log(t)}finally{i(!1)}}return e("div",{className:"MDMDataSource",children:x?e(N,{}):o("div",{children:[e("div",{className:"page-title",children:"\u6578\u64DA\u8CC7\u6E90\u6E05\u55AE"}),o("div",{className:"w-full",children:[e("div",{className:"title title_mobile",children:"\u8CC7\u6599\u985E\u5225"}),o("div",{className:"w-full grid justify-between items-center mt-5",style:{gridTemplateColumns:"repeat(5, 15%)"},children:[o("div",{className:"w-full flex flex-wrap justify-center gap-2.5",children:[e("img",{src:d,className:"w-50",onClick:()=>A()}),e("span",{className:"w-full text-center font-medium text-lg",children:"\u8F09\u5177\u6E05\u55AE"})]}),o("div",{className:"w-full flex flex-wrap justify-center gap-2.5",children:[e("img",{src:d,className:"w-50"}),e("span",{className:"w-full text-center font-medium text-lg",children:"\u8F09\u5177\u4F7F\u7528\u6642\u9593"})]}),o("div",{className:"w-full flex flex-wrap justify-center gap-2.5",children:[e("img",{src:d,className:"w-50",onClick:()=>D()}),e("span",{className:"w-full text-center font-medium text-lg",children:"\u4E45\u672A\u4E0A\u7DDA\u8F09\u5177\u6E05\u55AE"})]})]})]}),e("div",{className:"w-full flex",children:e("div",{className:""})})]})})}export{O as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.