dfs-page-config 0.5.12 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105315,7 +105315,7 @@ const isFontAvailable = (k) => {
105315
105315
  changePrintType: dr
105316
105316
  };
105317
105317
  }
105318
- }), FabricHangTag_vue_vue_type_style_index_0_scoped_f646d21f_lang = "", _withScopeId$1 = (k) => (pushScopeId("data-v-f646d21f"), k = k(), popScopeId(), k), _hoisted_1$1 = {
105318
+ }), FabricHangTag_vue_vue_type_style_index_0_scoped_a58f0018_lang = "", _withScopeId$1 = (k) => (pushScopeId("data-v-a58f0018"), k = k(), popScopeId(), k), _hoisted_1$1 = {
105319
105319
  style: { height: "max-content", display: "block" },
105320
105320
  class: "el-upload-list--picture-card"
105321
105321
  }, _hoisted_2$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "point" }, null, -1)), _hoisted_3$1 = {
@@ -105416,13 +105416,13 @@ function _sfc_render$1(k, L, ie, ae, pe, _e) {
105416
105416
  default: withCtx(() => [
105417
105417
  createVNode(Ie, { label: "new" }, {
105418
105418
  default: withCtx(() => [
105419
- createTextVNode("t('新版')")
105419
+ createTextVNode(toDisplayString(k.t("新版")), 1)
105420
105420
  ]),
105421
105421
  _: 1
105422
105422
  }),
105423
105423
  createVNode(Ie, { label: "old" }, {
105424
105424
  default: withCtx(() => [
105425
- createTextVNode("t('旧版')")
105425
+ createTextVNode(toDisplayString(k.t("旧版")), 1)
105426
105426
  ]),
105427
105427
  _: 1
105428
105428
  })
@@ -105436,7 +105436,7 @@ function _sfc_render$1(k, L, ie, ae, pe, _e) {
105436
105436
  size: "small"
105437
105437
  }, {
105438
105438
  default: withCtx(() => [
105439
- createTextVNode("t('打印')")
105439
+ createTextVNode(toDisplayString(k.t("打印")), 1)
105440
105440
  ]),
105441
105441
  _: 1
105442
105442
  }, 8, ["onClick"])) : createCommentVNode("", !0)
@@ -105456,7 +105456,8 @@ function _sfc_render$1(k, L, ie, ae, pe, _e) {
105456
105456
  footer: withCtx(() => [
105457
105457
  createElementVNode("span", _hoisted_15, [
105458
105458
  createVNode(Et, {
105459
- onClick: L[5] || (L[5] = (ar) => k.dialogState = !1)
105459
+ onClick: L[5] || (L[5] = (ar) => k.dialogState = !1),
105460
+ size: "small"
105460
105461
  }, {
105461
105462
  default: withCtx(() => [
105462
105463
  createTextVNode(toDisplayString(k.t("取消")), 1)
@@ -105465,7 +105466,8 @@ function _sfc_render$1(k, L, ie, ae, pe, _e) {
105465
105466
  }),
105466
105467
  createVNode(Et, {
105467
105468
  type: "primary",
105468
- onClick: k.print
105469
+ onClick: k.print,
105470
+ size: "small"
105469
105471
  }, {
105470
105472
  default: withCtx(() => [
105471
105473
  createTextVNode(toDisplayString(k.t("确认")), 1)
@@ -105539,7 +105541,8 @@ function _sfc_render$1(k, L, ie, ae, pe, _e) {
105539
105541
  footer: withCtx(() => [
105540
105542
  createElementVNode("span", _hoisted_16, [
105541
105543
  createVNode(Et, {
105542
- onClick: L[8] || (L[8] = (ar) => k.directionDialogVisible = !1)
105544
+ onClick: L[8] || (L[8] = (ar) => k.directionDialogVisible = !1),
105545
+ size: "small"
105543
105546
  }, {
105544
105547
  default: withCtx(() => [
105545
105548
  createTextVNode(toDisplayString(k.t("取消")), 1)
@@ -105548,7 +105551,8 @@ function _sfc_render$1(k, L, ie, ae, pe, _e) {
105548
105551
  }),
105549
105552
  createVNode(Et, {
105550
105553
  type: "primary",
105551
- onClick: k.confirmDirection
105554
+ onClick: k.confirmDirection,
105555
+ size: "small"
105552
105556
  }, {
105553
105557
  default: withCtx(() => [
105554
105558
  createTextVNode(toDisplayString(k.t("确定")), 1)
@@ -105584,7 +105588,7 @@ function _sfc_render$1(k, L, ie, ae, pe, _e) {
105584
105588
  }, 8, ["title", "modelValue"])
105585
105589
  ], 64);
105586
105590
  }
105587
- const FabricHangTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-f646d21f"]]);
105591
+ const FabricHangTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-a58f0018"]]);
105588
105592
  FabricHangTag.install = (k) => k.component(FabricHangTag.name, FabricHangTag);
105589
105593
  AgTable.install = (k) => k.component(AgTable.name, AgTable);
105590
105594
  const _sfc_main = defineComponent({
@@ -2006,4 +2006,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2006
2006
  @font-face {
2007
2007
  font-family: 'CircularXX-Medium';
2008
2008
  src: url(${CircularXXMedium});
2009
- `,document.head.appendChild(_r)}function dr(){localStorage.setItem("fabricHangTagPrintType",xe.printType)}return{t:L,fabricHangTagNewRef:pe,printCountRef:_e,...vue.toRefs(xe),show:Oe,close:Ie,print:ze,confirm,setOffset:tr,setDirection:nr,confirmDirection:er,showDialog:ar,closeDialog:lr,changePrintType:dr}}}),FabricHangTag_vue_vue_type_style_index_0_scoped_f646d21f_lang="",_withScopeId$1=k=>(vue.pushScopeId("data-v-f646d21f"),k=k(),vue.popScopeId(),k),_hoisted_1$1={style:{height:"max-content",display:"block"},class:"el-upload-list--picture-card"},_hoisted_2$1=_withScopeId$1(()=>vue.createElementVNode("span",{class:"point"},null,-1)),_hoisted_3$1={class:"el-upload-list__item-actions",style:{"z-index":"2","border-radius":"10px"}},_hoisted_4={class:"print-ele",ref:"printEle",style:{width:"192px",height:"288px",padding:"5px 10px","line-height":"9pt","font-family":"CircularXX-Regular",display:"flex","flex-direction":"column","justify-content":"flex-end"}},_hoisted_5=["innerHTML"],_hoisted_6={key:0,style:{height:"6pt"}},_hoisted_7=["innerHTML"],_hoisted_8={key:1,style:{height:"8pt"}},_hoisted_9={style:{margin:"8px 0"}},_hoisted_10=_withScopeId$1(()=>vue.createElementVNode("span",{style:{margin:"0 5px","font-size":"6px"}},"●",-1)),_hoisted_11=["innerHTML"],_hoisted_12={key:3,style:{height:"8pt"}},_hoisted_13={id:"barcode",style:{width:"100px"}},_hoisted_14={style:{position:"absolute",bottom:"22px",right:"30px"}},_hoisted_15={class:"dialog-footer"},_hoisted_16={class:"dialog-footer"};function _sfc_render$1(k,L,ie,ae,pe,_e){var tr,nr,er;const xe=vue.resolveComponent("ZoomIn"),Oe=ElIcon,Ne=__unplugin_components_1,Ie=ElRadioButton,ze=ElRadioGroup,Et=ElButton,qe=ElInputNumber,kt=ElFormItem,$e=ElForm,Dt=ElDialog,jt=ElRadio;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.withDirectives(vue.createElementVNode("div",{class:vue.normalizeClass([k.zoomIn?"zoom-in":""]),onClick:L[3]||(L[3]=(...ar)=>k.close&&k.close(...ar))},[vue.createElementVNode("div",{onClick:L[2]||(L[2]=vue.withModifiers(()=>{},["stop"])),class:"container",style:{width:"max-content",background:"#e0e0e1",padding:"40px 10px 10px",color:"#000","font-size":"7pt","line-height":"7pt",display:"flex","flex-direction":"column","justify-content":"flex-end","border-radius":"10px",position:"relative","user-select":"none","word-break":"break-word"}},[vue.createElementVNode("div",_hoisted_1$1,[_hoisted_2$1,vue.createElementVNode("span",_hoisted_3$1,[vue.createVNode(Oe,{onClick:L[0]||(L[0]=ar=>k.zoomIn=!0),style:{cursor:"pointer"}},{default:vue.withCtx(()=>[vue.createVNode(xe)]),_:1})]),vue.withDirectives(vue.createVNode(Ne,{ref:"fabricHangTagNewRef",data:k.data},null,8,["data"]),[[vue.vShow,k.printType=="new"]]),vue.withDirectives(vue.createElementVNode("div",_hoisted_4,[vue.createElementVNode("div",null,[vue.createElementVNode("p",{style:{"font-size":"17px","font-family":"CircularXX-Medium","margin-bottom":"5px","line-height":"20px"},innerHTML:(tr=k.data.fabricSeries||k.data.name)==null?void 0:tr.replace(/\n/g,"</br>")},null,8,_hoisted_5),k.data.friendlyReminder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("p",_hoisted_6)),vue.createElementVNode("p",{style:{margin:"5px 0"},innerHTML:(nr=k.data.fabricIntroduction)==null?void 0:nr.replace(/\n/g,"</br>")},null,8,_hoisted_7),k.data.friendlyReminder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("p",_hoisted_8)),vue.createElementVNode("ul",_hoisted_9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(k.data.fabricFeatureDescList,ar=>(vue.openBlock(),vue.createElementBlock("li",{key:ar,style:{margin:"1pt 0",display:"flex","align-items":"center"}},[_hoisted_10,vue.createTextVNode(" "+vue.toDisplayString(ar),1)]))),128))]),k.data.friendlyReminder?(vue.openBlock(),vue.createElementBlock("p",{key:2,style:{margin:"3pt 0"},innerHTML:(er=k.data.friendlyReminder)==null?void 0:er.replace(/\n/g,"</br>")},null,8,_hoisted_11)):(vue.openBlock(),vue.createElementBlock("p",_hoisted_12)),vue.withDirectives((vue.openBlock(),vue.createElementBlock("svg",_hoisted_13,null,512)),[[vue.vShow,k.data.barCodeId]]),vue.createElementVNode("span",_hoisted_14,vue.toDisplayString(k.data.code),1)])],512),[[vue.vShow,k.printType=="old"]])]),vue.createVNode(ze,{modelValue:k.printType,"onUpdate:modelValue":L[1]||(L[1]=ar=>k.printType=ar),size:"small",onChange:k.changePrintType,style:{display:"flex","justify-content":"center",position:"absolute",top:"8px",left:"-2px","z-index":"3",transform:"scale(0.8)"}},{default:vue.withCtx(()=>[vue.createVNode(Ie,{label:"new"},{default:vue.withCtx(()=>[vue.createTextVNode("t('新版')")]),_:1}),vue.createVNode(Ie,{label:"old"},{default:vue.withCtx(()=>[vue.createTextVNode("t('旧版')")]),_:1})]),_:1},8,["modelValue","onChange"]),k.showPrintButton?(vue.openBlock(),vue.createBlock(Et,{key:0,class:"print-button",onClick:vue.withModifiers(k.showDialog,["stop"]),size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode("t('打印')")]),_:1},8,["onClick"])):vue.createCommentVNode("",!0)])],2),[[vue.vShow,k.isShow]]),vue.createVNode(Dt,{title:k.t("打印数量"),modelValue:k.dialogState,"onUpdate:modelValue":L[6]||(L[6]=ar=>k.dialogState=ar),width:"350px",center:"","close-on-click-modal":!1,onClose:k.closeDialog},{footer:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_15,[vue.createVNode(Et,{onClick:L[5]||(L[5]=ar=>k.dialogState=!1)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("取消")),1)]),_:1}),vue.createVNode(Et,{type:"primary",onClick:k.print},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("确认")),1)]),_:1},8,["onClick"])])]),default:vue.withCtx(()=>[vue.createVNode($e,{"label-width":"20px"},{default:vue.withCtx(()=>[vue.createVNode(kt,{label:" ",style:{"margin-bottom":"0"}},{default:vue.withCtx(()=>[vue.createVNode(qe,{ref:"printCountRef",modelValue:k.printCount,"onUpdate:modelValue":L[4]||(L[4]=ar=>k.printCount=ar),min:1,precision:0,controls:!1,placeholder:k.t("请输入打印数量"),style:{width:"100%"}},null,8,["modelValue","placeholder"])]),_:1}),vue.createVNode(kt,{label:" "},{default:vue.withCtx(()=>[vue.createVNode(Et,{onClick:k.setOffset,link:"",size:"small",style:{color:"#409eff"}},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("设置横向偏移")),1)]),_:1},8,["onClick"]),vue.createVNode(Et,{onClick:k.setDirection,link:"",size:"small",style:{color:"#409eff"}},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("设置标签方向")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["title","modelValue","onClose"]),vue.createVNode(Dt,{title:k.t("设置标签方向"),modelValue:k.directionDialogVisible,"onUpdate:modelValue":L[9]||(L[9]=ar=>k.directionDialogVisible=ar),width:"350px",center:"","close-on-click-modal":!1},{footer:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_16,[vue.createVNode(Et,{onClick:L[8]||(L[8]=ar=>k.directionDialogVisible=!1)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("取消")),1)]),_:1}),vue.createVNode(Et,{type:"primary",onClick:k.confirmDirection},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("确定")),1)]),_:1},8,["onClick"])])]),default:vue.withCtx(()=>[vue.createVNode(ze,{modelValue:k.direction,"onUpdate:modelValue":L[7]||(L[7]=ar=>k.direction=ar),style:{display:"flex","justify-content":"center",height:"74px"}},{default:vue.withCtx(()=>[vue.createVNode(jt,{label:"1"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("纵向")),1)]),_:1}),vue.createVNode(jt,{label:"2"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("横向")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title","modelValue"])],64)}const FabricHangTag=_export_sfc(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-f646d21f"]]);FabricHangTag.install=k=>k.component(FabricHangTag.name,FabricHangTag),AgTable.install=k=>k.component(AgTable.name,AgTable);const _sfc_main=vue.defineComponent({name:"UploadDownloadCenter",setup(){let k=!1;const L=vue.computed(()=>store.state.uploadDownloadDialogVisible);let ie=null;const ae=()=>{ie=window.setInterval(xe,5e3)},pe=()=>{ie&&clearInterval(ie),ie=null,store.commit("setUploadDownloadDialogVisible",!1),k=!1},_e=vue.reactive({pageKey:"UploadDownloadCenter",components:[{type:"AgTable",key:"table",url:"/export-service/common-task/page",method:"POST",columns:Ne(),data:{resultKey:"records",totalKey:"total"},configFlag:{sizeColumnsToFit:!0}}]});function xe(){setTimeout(()=>{queryData(store,_e.pageKey,"table")},1e3)}const Oe=()=>{k||(xe(),ae(),k=!0)};function Ne(){return[{field:"typeName",headerName:"类型",width:100},{field:"fileName",headerName:"文件名",width:200,cellRenderer:({data:lr})=>`<a href="${lr.fileUrl}" target="_blank">${lr.fileName}</a>`},{field:"taskStatusName",headerName:"状态",width:120,cellRenderer:({data:lr})=>`<span style="color: ${{0:"#909399",1:"#67C23A",2:"#409EFF",3:"#409EFF",4:"#67C23A",5:"#F56C6C","-1":"#F56C6C"}[lr.taskStatus]||"#909399"}">${lr.taskStatusName}</span>`},{field:"failReason",headerName:"备注",width:200,cellRenderer:({data:lr})=>lr.failFileUrl?`<a href="${lr.failFileUrl}" target="_blank">${lr.failReason}</a>`:lr.failReason},{field:"createdAt",headerName:"操作时间",width:180},{field:"createdUserName",headerName:"操作人",width:120}]}const Ie=vue.ref(null),ze=vue.reactive({x:0,y:0});let Et=!1,qe=0,kt=0,$e=0,Dt=0;const jt=lr=>{Ie.value&&(Et=!0,qe=lr.clientX,kt=lr.clientY,$e=ze.x,Dt=ze.y,document.addEventListener("mousemove",tr),document.addEventListener("mouseup",nr))},tr=lr=>{if(!Et||!Ie.value)return;const ur=lr.clientX-qe,dr=lr.clientY-kt;let Ar=$e+ur,_r=Dt+dr;const ir=Ie.value.offsetWidth,yr=Ie.value.offsetHeight;Ar=Math.max(0,Math.min(window.innerWidth-ir,Ar)),_r=Math.max(0,Math.min(window.innerHeight-yr,_r)),ze.x=Ar,ze.y=_r},nr=()=>{if(!Ie.value)return;Et=!1,document.removeEventListener("mousemove",tr),document.removeEventListener("mouseup",nr);const lr=Ie.value.offsetWidth,ur=ze.x,dr=window.innerWidth-(ze.x+lr);ur<dr?ze.x=0:ze.x=window.innerWidth-lr;const Ar=Ie.value.offsetHeight;ze.y=Math.max(0,Math.min(window.innerHeight-Ar,ze.y))},er=()=>{if(!Ie.value)return;const lr=Ie.value.offsetWidth,ur=Ie.value.offsetHeight;ze.x=Math.min(ze.x,window.innerWidth-lr),ze.y=Math.min(ze.y,window.innerHeight-ur)};return vue.onMounted(()=>{window.addEventListener("resize",er),vue.nextTick(()=>{if(Ie.value){const lr=Ie.value.offsetWidth,ur=Ie.value.offsetHeight;ze.x=window.innerWidth-lr,ze.y=window.innerHeight-ur-30}})}),{pageConfigData:_e,getData:xe,dialogVisible:L,handleOpenDialog:Oe,dragButton:Ie,buttonPosition:ze,startDrag:jt,handleMouseDown:lr=>{const ur=new Date().getTime();jt(lr);const dr=Ar=>{nr();const _r=new Date().getTime(),ir=Math.sqrt(Math.pow(Ar.clientX-qe,2)+Math.pow(Ar.clientY-kt,2));_r-ur<200&&ir<5&&store.commit("setUploadDownloadDialogVisible",!0)};document.addEventListener("mouseup",dr,{once:!0})},stopPolling:pe}}}),UploadDownloadCenter_vue_vue_type_style_index_0_scoped_3e3dbc5f_lang="",_withScopeId=k=>(vue.pushScopeId("data-v-3e3dbc5f"),k=k(),vue.popScopeId(),k),_hoisted_1=_withScopeId(()=>vue.createElementVNode("p",{class:"drag-button-text"},"上传\\下载",-1)),_hoisted_2=[_hoisted_1],_hoisted_3={style:{height:"80vh"}};function _sfc_render(k,L,ie,ae,pe,_e){const xe=Page,Oe=ElDialog;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"drag-button",ref:"dragButton",onMousedown:L[0]||(L[0]=(...Ne)=>k.handleMouseDown&&k.handleMouseDown(...Ne)),style:vue.normalizeStyle({left:k.buttonPosition.x+"px",top:k.buttonPosition.y+"px"})},_hoisted_2,36),vue.createVNode(Oe,{title:"上传/下载中心",modelValue:k.dialogVisible,"onUpdate:modelValue":L[1]||(L[1]=Ne=>k.dialogVisible=Ne),width:"80%","destroy-on-close":!0,top:"4vh",center:"",onOpen:k.handleOpenDialog,onClose:k.stopPolling},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3,[vue.createVNode(xe,{pageConfigData:k.pageConfigData},null,8,["pageConfigData"])])]),_:1},8,["modelValue","onOpen","onClose"])],64)}const UploadDownloadCenter=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-3e3dbc5f"]]);UploadDownloadCenter.install=k=>k.component(UploadDownloadCenter.name,UploadDownloadCenter);let timer=null,staticResourceMonitor=2e3,apiRequestThreshold=3e3;const userInfo=JSON.parse(localStorage.getItem("userInfo")||"{}"),username=userInfo.name||userInfo.displayName||"",PERFORMANCE_SERVER_URL="https://performance-monitor.prod.doublefs.com/api/performance";function reportPerformanceData(k){try{const L=encodeURIComponent(JSON.stringify({url:window.location.href,timestamp:Date.now(),username,...k})),ie=new Image;ie.src=`${PERFORMANCE_SERVER_URL}?data=${L}`,ie.style.display="none",ie.onload=()=>{console.log("性能数据上报成功"),document.body.removeChild(ie)},ie.onerror=ae=>{console.error("性能数据上报失败",ae),document.body.removeChild(ie)},document.body.appendChild(ie)}catch(L){console.error("上报性能数据失败:",L)}}const analyzeResourceLoadTime=()=>{if(!window.performance||!window.performance.getEntriesByType){console.warn("Performance API不可用,无法分析资源加载时间");return}const k=window.performance.getEntriesByType("resource"),L=[],ie=[],ae=[],pe=[];if(k.filter(xe=>!xe.isReport).forEach(xe=>{xe.isReport=!0;const Oe=xe.name.toLowerCase();Oe.endsWith(".css")||xe.initiatorType==="css"||xe.initiatorType==="link"?xe.duration>staticResourceMonitor&&ie.push(xe):Oe.endsWith(".js")||xe.initiatorType==="script"?xe.duration>staticResourceMonitor&&L.push(xe):xe.initiatorType==="img"?xe.duration>staticResourceMonitor&&pe.push(xe):(xe.initiatorType==="xmlhttprequest"||xe.initiatorType==="fetch")&&xe.duration>apiRequestThreshold&&ae.push(xe)}),L.length>0&&(console.log(`检测到${L.length}个JS资源加载时间超过${staticResourceMonitor}ms:`),L.forEach(xe=>{console.log(`- JS: ${xe.name}: ${(xe.duration/1e3).toFixed(2)}s`)})),ie.length>0&&(console.log(`检测到${ie.length}个CSS资源加载时间超过${staticResourceMonitor}ms:`),ie.forEach(xe=>{console.log(`- CSS: ${xe.name}: ${(xe.duration/1e3).toFixed(2)}s`)})),pe.length>0&&(console.log(`检测到${pe.length}个图片资源加载时间超过${staticResourceMonitor}ms:`),pe.forEach(xe=>{console.log(`- 图片: ${xe.name}: ${(xe.duration/1e3).toFixed(2)}s`)})),ae.length>0&&(console.log(`检测到${ae.length}个API请求时间超过${apiRequestThreshold}ms:`),ae.forEach(xe=>{console.log(`- API: ${xe.name}: ${(xe.duration/1e3).toFixed(2)}s`)})),L.length>0||ie.length>0||ae.length>0||pe.length>0){const xe={jsResources:L.map(Oe=>({name:Oe.name,duration:Oe.duration,initiatorType:Oe.initiatorType})),cssResources:ie.map(Oe=>({name:Oe.name,duration:Oe.duration,initiatorType:Oe.initiatorType})),apiResources:ae.map(Oe=>({name:Oe.name,duration:Oe.duration,initiatorType:Oe.initiatorType})),imgResources:pe.map(Oe=>({name:Oe.name,duration:Oe.duration,initiatorType:Oe.initiatorType}))};reportPerformanceData(xe)}return{jsResources:L,cssResources:ie,apiResources:ae,imgResources:pe}},initPerformanceMonitor=(k=1e3,L=3e3)=>{staticResourceMonitor=k,apiRequestThreshold=L,window.addEventListener("load",()=>{clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3)}),service.interceptors.request.use(ie=>(clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3),ie),ie=>Promise.reject(ie.data))},index=(k,L)=>{var ae,pe;["getters","_actions"].forEach(_e=>{Object.keys(store[_e]).forEach(xe=>{L.store[_e][xe]=store[_e][xe]})}),L.store._mutations&&(L.store._mutations.setUploadDownloadDialogVisible=store._mutations.setUploadDownloadDialogVisible),store.commit("saveUrl",L.baseUrl),store.commit("saveLocale",L.locale),store.commit("saveEnv",L.env),L.store.state._CONFIG_DATA=store.state._CONFIG_DATA,L.store.state._BASE_URL=L.baseUrl,store._mutations.setLoading=L.store._mutations.setLoading,install(k),k.component("DfsPageConfig",Page);const ie=()=>({t:_e=>_e});k.config.globalProperties.useI18n=L.useI18n||ie,L.monitorConfig&&((pe=(ae=L.env)==null?void 0:ae.VITE_NODE_ENV)==null?void 0:pe.indexOf("prod"))>-1&&initPerformanceMonitor(L.monitorConfig.staticResourceMonitor,L.monitorConfig.apiRequestThreshold)};exports.AgTable=AgTable,exports.CellSelect=_sfc_main$3,exports.Dialog=Dialog,exports.EleTable=EleTable,exports.FabricHangTag=FabricHangTag,exports.Form=Form,exports.Upload=Upload,exports.UploadComp=UploadComp,exports.UploadDownloadCenter=UploadDownloadCenter,exports.default=index,exports.handleProxy=handleProxy,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2009
+ `,document.head.appendChild(_r)}function dr(){localStorage.setItem("fabricHangTagPrintType",xe.printType)}return{t:L,fabricHangTagNewRef:pe,printCountRef:_e,...vue.toRefs(xe),show:Oe,close:Ie,print:ze,confirm,setOffset:tr,setDirection:nr,confirmDirection:er,showDialog:ar,closeDialog:lr,changePrintType:dr}}}),FabricHangTag_vue_vue_type_style_index_0_scoped_a58f0018_lang="",_withScopeId$1=k=>(vue.pushScopeId("data-v-a58f0018"),k=k(),vue.popScopeId(),k),_hoisted_1$1={style:{height:"max-content",display:"block"},class:"el-upload-list--picture-card"},_hoisted_2$1=_withScopeId$1(()=>vue.createElementVNode("span",{class:"point"},null,-1)),_hoisted_3$1={class:"el-upload-list__item-actions",style:{"z-index":"2","border-radius":"10px"}},_hoisted_4={class:"print-ele",ref:"printEle",style:{width:"192px",height:"288px",padding:"5px 10px","line-height":"9pt","font-family":"CircularXX-Regular",display:"flex","flex-direction":"column","justify-content":"flex-end"}},_hoisted_5=["innerHTML"],_hoisted_6={key:0,style:{height:"6pt"}},_hoisted_7=["innerHTML"],_hoisted_8={key:1,style:{height:"8pt"}},_hoisted_9={style:{margin:"8px 0"}},_hoisted_10=_withScopeId$1(()=>vue.createElementVNode("span",{style:{margin:"0 5px","font-size":"6px"}},"●",-1)),_hoisted_11=["innerHTML"],_hoisted_12={key:3,style:{height:"8pt"}},_hoisted_13={id:"barcode",style:{width:"100px"}},_hoisted_14={style:{position:"absolute",bottom:"22px",right:"30px"}},_hoisted_15={class:"dialog-footer"},_hoisted_16={class:"dialog-footer"};function _sfc_render$1(k,L,ie,ae,pe,_e){var tr,nr,er;const xe=vue.resolveComponent("ZoomIn"),Oe=ElIcon,Ne=__unplugin_components_1,Ie=ElRadioButton,ze=ElRadioGroup,Et=ElButton,qe=ElInputNumber,kt=ElFormItem,$e=ElForm,Dt=ElDialog,jt=ElRadio;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.withDirectives(vue.createElementVNode("div",{class:vue.normalizeClass([k.zoomIn?"zoom-in":""]),onClick:L[3]||(L[3]=(...ar)=>k.close&&k.close(...ar))},[vue.createElementVNode("div",{onClick:L[2]||(L[2]=vue.withModifiers(()=>{},["stop"])),class:"container",style:{width:"max-content",background:"#e0e0e1",padding:"40px 10px 10px",color:"#000","font-size":"7pt","line-height":"7pt",display:"flex","flex-direction":"column","justify-content":"flex-end","border-radius":"10px",position:"relative","user-select":"none","word-break":"break-word"}},[vue.createElementVNode("div",_hoisted_1$1,[_hoisted_2$1,vue.createElementVNode("span",_hoisted_3$1,[vue.createVNode(Oe,{onClick:L[0]||(L[0]=ar=>k.zoomIn=!0),style:{cursor:"pointer"}},{default:vue.withCtx(()=>[vue.createVNode(xe)]),_:1})]),vue.withDirectives(vue.createVNode(Ne,{ref:"fabricHangTagNewRef",data:k.data},null,8,["data"]),[[vue.vShow,k.printType=="new"]]),vue.withDirectives(vue.createElementVNode("div",_hoisted_4,[vue.createElementVNode("div",null,[vue.createElementVNode("p",{style:{"font-size":"17px","font-family":"CircularXX-Medium","margin-bottom":"5px","line-height":"20px"},innerHTML:(tr=k.data.fabricSeries||k.data.name)==null?void 0:tr.replace(/\n/g,"</br>")},null,8,_hoisted_5),k.data.friendlyReminder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("p",_hoisted_6)),vue.createElementVNode("p",{style:{margin:"5px 0"},innerHTML:(nr=k.data.fabricIntroduction)==null?void 0:nr.replace(/\n/g,"</br>")},null,8,_hoisted_7),k.data.friendlyReminder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("p",_hoisted_8)),vue.createElementVNode("ul",_hoisted_9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(k.data.fabricFeatureDescList,ar=>(vue.openBlock(),vue.createElementBlock("li",{key:ar,style:{margin:"1pt 0",display:"flex","align-items":"center"}},[_hoisted_10,vue.createTextVNode(" "+vue.toDisplayString(ar),1)]))),128))]),k.data.friendlyReminder?(vue.openBlock(),vue.createElementBlock("p",{key:2,style:{margin:"3pt 0"},innerHTML:(er=k.data.friendlyReminder)==null?void 0:er.replace(/\n/g,"</br>")},null,8,_hoisted_11)):(vue.openBlock(),vue.createElementBlock("p",_hoisted_12)),vue.withDirectives((vue.openBlock(),vue.createElementBlock("svg",_hoisted_13,null,512)),[[vue.vShow,k.data.barCodeId]]),vue.createElementVNode("span",_hoisted_14,vue.toDisplayString(k.data.code),1)])],512),[[vue.vShow,k.printType=="old"]])]),vue.createVNode(ze,{modelValue:k.printType,"onUpdate:modelValue":L[1]||(L[1]=ar=>k.printType=ar),size:"small",onChange:k.changePrintType,style:{display:"flex","justify-content":"center",position:"absolute",top:"8px",left:"-2px","z-index":"3",transform:"scale(0.8)"}},{default:vue.withCtx(()=>[vue.createVNode(Ie,{label:"new"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("新版")),1)]),_:1}),vue.createVNode(Ie,{label:"old"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("旧版")),1)]),_:1})]),_:1},8,["modelValue","onChange"]),k.showPrintButton?(vue.openBlock(),vue.createBlock(Et,{key:0,class:"print-button",onClick:vue.withModifiers(k.showDialog,["stop"]),size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("打印")),1)]),_:1},8,["onClick"])):vue.createCommentVNode("",!0)])],2),[[vue.vShow,k.isShow]]),vue.createVNode(Dt,{title:k.t("打印数量"),modelValue:k.dialogState,"onUpdate:modelValue":L[6]||(L[6]=ar=>k.dialogState=ar),width:"350px",center:"","close-on-click-modal":!1,onClose:k.closeDialog},{footer:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_15,[vue.createVNode(Et,{onClick:L[5]||(L[5]=ar=>k.dialogState=!1),size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("取消")),1)]),_:1}),vue.createVNode(Et,{type:"primary",onClick:k.print,size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("确认")),1)]),_:1},8,["onClick"])])]),default:vue.withCtx(()=>[vue.createVNode($e,{"label-width":"20px"},{default:vue.withCtx(()=>[vue.createVNode(kt,{label:" ",style:{"margin-bottom":"0"}},{default:vue.withCtx(()=>[vue.createVNode(qe,{ref:"printCountRef",modelValue:k.printCount,"onUpdate:modelValue":L[4]||(L[4]=ar=>k.printCount=ar),min:1,precision:0,controls:!1,placeholder:k.t("请输入打印数量"),style:{width:"100%"}},null,8,["modelValue","placeholder"])]),_:1}),vue.createVNode(kt,{label:" "},{default:vue.withCtx(()=>[vue.createVNode(Et,{onClick:k.setOffset,link:"",size:"small",style:{color:"#409eff"}},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("设置横向偏移")),1)]),_:1},8,["onClick"]),vue.createVNode(Et,{onClick:k.setDirection,link:"",size:"small",style:{color:"#409eff"}},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("设置标签方向")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["title","modelValue","onClose"]),vue.createVNode(Dt,{title:k.t("设置标签方向"),modelValue:k.directionDialogVisible,"onUpdate:modelValue":L[9]||(L[9]=ar=>k.directionDialogVisible=ar),width:"350px",center:"","close-on-click-modal":!1},{footer:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_16,[vue.createVNode(Et,{onClick:L[8]||(L[8]=ar=>k.directionDialogVisible=!1),size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("取消")),1)]),_:1}),vue.createVNode(Et,{type:"primary",onClick:k.confirmDirection,size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("确定")),1)]),_:1},8,["onClick"])])]),default:vue.withCtx(()=>[vue.createVNode(ze,{modelValue:k.direction,"onUpdate:modelValue":L[7]||(L[7]=ar=>k.direction=ar),style:{display:"flex","justify-content":"center",height:"74px"}},{default:vue.withCtx(()=>[vue.createVNode(jt,{label:"1"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("纵向")),1)]),_:1}),vue.createVNode(jt,{label:"2"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(k.t("横向")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title","modelValue"])],64)}const FabricHangTag=_export_sfc(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-a58f0018"]]);FabricHangTag.install=k=>k.component(FabricHangTag.name,FabricHangTag),AgTable.install=k=>k.component(AgTable.name,AgTable);const _sfc_main=vue.defineComponent({name:"UploadDownloadCenter",setup(){let k=!1;const L=vue.computed(()=>store.state.uploadDownloadDialogVisible);let ie=null;const ae=()=>{ie=window.setInterval(xe,5e3)},pe=()=>{ie&&clearInterval(ie),ie=null,store.commit("setUploadDownloadDialogVisible",!1),k=!1},_e=vue.reactive({pageKey:"UploadDownloadCenter",components:[{type:"AgTable",key:"table",url:"/export-service/common-task/page",method:"POST",columns:Ne(),data:{resultKey:"records",totalKey:"total"},configFlag:{sizeColumnsToFit:!0}}]});function xe(){setTimeout(()=>{queryData(store,_e.pageKey,"table")},1e3)}const Oe=()=>{k||(xe(),ae(),k=!0)};function Ne(){return[{field:"typeName",headerName:"类型",width:100},{field:"fileName",headerName:"文件名",width:200,cellRenderer:({data:lr})=>`<a href="${lr.fileUrl}" target="_blank">${lr.fileName}</a>`},{field:"taskStatusName",headerName:"状态",width:120,cellRenderer:({data:lr})=>`<span style="color: ${{0:"#909399",1:"#67C23A",2:"#409EFF",3:"#409EFF",4:"#67C23A",5:"#F56C6C","-1":"#F56C6C"}[lr.taskStatus]||"#909399"}">${lr.taskStatusName}</span>`},{field:"failReason",headerName:"备注",width:200,cellRenderer:({data:lr})=>lr.failFileUrl?`<a href="${lr.failFileUrl}" target="_blank">${lr.failReason}</a>`:lr.failReason},{field:"createdAt",headerName:"操作时间",width:180},{field:"createdUserName",headerName:"操作人",width:120}]}const Ie=vue.ref(null),ze=vue.reactive({x:0,y:0});let Et=!1,qe=0,kt=0,$e=0,Dt=0;const jt=lr=>{Ie.value&&(Et=!0,qe=lr.clientX,kt=lr.clientY,$e=ze.x,Dt=ze.y,document.addEventListener("mousemove",tr),document.addEventListener("mouseup",nr))},tr=lr=>{if(!Et||!Ie.value)return;const ur=lr.clientX-qe,dr=lr.clientY-kt;let Ar=$e+ur,_r=Dt+dr;const ir=Ie.value.offsetWidth,yr=Ie.value.offsetHeight;Ar=Math.max(0,Math.min(window.innerWidth-ir,Ar)),_r=Math.max(0,Math.min(window.innerHeight-yr,_r)),ze.x=Ar,ze.y=_r},nr=()=>{if(!Ie.value)return;Et=!1,document.removeEventListener("mousemove",tr),document.removeEventListener("mouseup",nr);const lr=Ie.value.offsetWidth,ur=ze.x,dr=window.innerWidth-(ze.x+lr);ur<dr?ze.x=0:ze.x=window.innerWidth-lr;const Ar=Ie.value.offsetHeight;ze.y=Math.max(0,Math.min(window.innerHeight-Ar,ze.y))},er=()=>{if(!Ie.value)return;const lr=Ie.value.offsetWidth,ur=Ie.value.offsetHeight;ze.x=Math.min(ze.x,window.innerWidth-lr),ze.y=Math.min(ze.y,window.innerHeight-ur)};return vue.onMounted(()=>{window.addEventListener("resize",er),vue.nextTick(()=>{if(Ie.value){const lr=Ie.value.offsetWidth,ur=Ie.value.offsetHeight;ze.x=window.innerWidth-lr,ze.y=window.innerHeight-ur-30}})}),{pageConfigData:_e,getData:xe,dialogVisible:L,handleOpenDialog:Oe,dragButton:Ie,buttonPosition:ze,startDrag:jt,handleMouseDown:lr=>{const ur=new Date().getTime();jt(lr);const dr=Ar=>{nr();const _r=new Date().getTime(),ir=Math.sqrt(Math.pow(Ar.clientX-qe,2)+Math.pow(Ar.clientY-kt,2));_r-ur<200&&ir<5&&store.commit("setUploadDownloadDialogVisible",!0)};document.addEventListener("mouseup",dr,{once:!0})},stopPolling:pe}}}),UploadDownloadCenter_vue_vue_type_style_index_0_scoped_3e3dbc5f_lang="",_withScopeId=k=>(vue.pushScopeId("data-v-3e3dbc5f"),k=k(),vue.popScopeId(),k),_hoisted_1=_withScopeId(()=>vue.createElementVNode("p",{class:"drag-button-text"},"上传\\下载",-1)),_hoisted_2=[_hoisted_1],_hoisted_3={style:{height:"80vh"}};function _sfc_render(k,L,ie,ae,pe,_e){const xe=Page,Oe=ElDialog;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"drag-button",ref:"dragButton",onMousedown:L[0]||(L[0]=(...Ne)=>k.handleMouseDown&&k.handleMouseDown(...Ne)),style:vue.normalizeStyle({left:k.buttonPosition.x+"px",top:k.buttonPosition.y+"px"})},_hoisted_2,36),vue.createVNode(Oe,{title:"上传/下载中心",modelValue:k.dialogVisible,"onUpdate:modelValue":L[1]||(L[1]=Ne=>k.dialogVisible=Ne),width:"80%","destroy-on-close":!0,top:"4vh",center:"",onOpen:k.handleOpenDialog,onClose:k.stopPolling},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3,[vue.createVNode(xe,{pageConfigData:k.pageConfigData},null,8,["pageConfigData"])])]),_:1},8,["modelValue","onOpen","onClose"])],64)}const UploadDownloadCenter=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-3e3dbc5f"]]);UploadDownloadCenter.install=k=>k.component(UploadDownloadCenter.name,UploadDownloadCenter);let timer=null,staticResourceMonitor=2e3,apiRequestThreshold=3e3;const userInfo=JSON.parse(localStorage.getItem("userInfo")||"{}"),username=userInfo.name||userInfo.displayName||"",PERFORMANCE_SERVER_URL="https://performance-monitor.prod.doublefs.com/api/performance";function reportPerformanceData(k){try{const L=encodeURIComponent(JSON.stringify({url:window.location.href,timestamp:Date.now(),username,...k})),ie=new Image;ie.src=`${PERFORMANCE_SERVER_URL}?data=${L}`,ie.style.display="none",ie.onload=()=>{console.log("性能数据上报成功"),document.body.removeChild(ie)},ie.onerror=ae=>{console.error("性能数据上报失败",ae),document.body.removeChild(ie)},document.body.appendChild(ie)}catch(L){console.error("上报性能数据失败:",L)}}const analyzeResourceLoadTime=()=>{if(!window.performance||!window.performance.getEntriesByType){console.warn("Performance API不可用,无法分析资源加载时间");return}const k=window.performance.getEntriesByType("resource"),L=[],ie=[],ae=[],pe=[];if(k.filter(xe=>!xe.isReport).forEach(xe=>{xe.isReport=!0;const Oe=xe.name.toLowerCase();Oe.endsWith(".css")||xe.initiatorType==="css"||xe.initiatorType==="link"?xe.duration>staticResourceMonitor&&ie.push(xe):Oe.endsWith(".js")||xe.initiatorType==="script"?xe.duration>staticResourceMonitor&&L.push(xe):xe.initiatorType==="img"?xe.duration>staticResourceMonitor&&pe.push(xe):(xe.initiatorType==="xmlhttprequest"||xe.initiatorType==="fetch")&&xe.duration>apiRequestThreshold&&ae.push(xe)}),L.length>0&&(console.log(`检测到${L.length}个JS资源加载时间超过${staticResourceMonitor}ms:`),L.forEach(xe=>{console.log(`- JS: ${xe.name}: ${(xe.duration/1e3).toFixed(2)}s`)})),ie.length>0&&(console.log(`检测到${ie.length}个CSS资源加载时间超过${staticResourceMonitor}ms:`),ie.forEach(xe=>{console.log(`- CSS: ${xe.name}: ${(xe.duration/1e3).toFixed(2)}s`)})),pe.length>0&&(console.log(`检测到${pe.length}个图片资源加载时间超过${staticResourceMonitor}ms:`),pe.forEach(xe=>{console.log(`- 图片: ${xe.name}: ${(xe.duration/1e3).toFixed(2)}s`)})),ae.length>0&&(console.log(`检测到${ae.length}个API请求时间超过${apiRequestThreshold}ms:`),ae.forEach(xe=>{console.log(`- API: ${xe.name}: ${(xe.duration/1e3).toFixed(2)}s`)})),L.length>0||ie.length>0||ae.length>0||pe.length>0){const xe={jsResources:L.map(Oe=>({name:Oe.name,duration:Oe.duration,initiatorType:Oe.initiatorType})),cssResources:ie.map(Oe=>({name:Oe.name,duration:Oe.duration,initiatorType:Oe.initiatorType})),apiResources:ae.map(Oe=>({name:Oe.name,duration:Oe.duration,initiatorType:Oe.initiatorType})),imgResources:pe.map(Oe=>({name:Oe.name,duration:Oe.duration,initiatorType:Oe.initiatorType}))};reportPerformanceData(xe)}return{jsResources:L,cssResources:ie,apiResources:ae,imgResources:pe}},initPerformanceMonitor=(k=1e3,L=3e3)=>{staticResourceMonitor=k,apiRequestThreshold=L,window.addEventListener("load",()=>{clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3)}),service.interceptors.request.use(ie=>(clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3),ie),ie=>Promise.reject(ie.data))},index=(k,L)=>{var ae,pe;["getters","_actions"].forEach(_e=>{Object.keys(store[_e]).forEach(xe=>{L.store[_e][xe]=store[_e][xe]})}),L.store._mutations&&(L.store._mutations.setUploadDownloadDialogVisible=store._mutations.setUploadDownloadDialogVisible),store.commit("saveUrl",L.baseUrl),store.commit("saveLocale",L.locale),store.commit("saveEnv",L.env),L.store.state._CONFIG_DATA=store.state._CONFIG_DATA,L.store.state._BASE_URL=L.baseUrl,store._mutations.setLoading=L.store._mutations.setLoading,install(k),k.component("DfsPageConfig",Page);const ie=()=>({t:_e=>_e});k.config.globalProperties.useI18n=L.useI18n||ie,L.monitorConfig&&((pe=(ae=L.env)==null?void 0:ae.VITE_NODE_ENV)==null?void 0:pe.indexOf("prod"))>-1&&initPerformanceMonitor(L.monitorConfig.staticResourceMonitor,L.monitorConfig.apiRequestThreshold)};exports.AgTable=AgTable,exports.CellSelect=_sfc_main$3,exports.Dialog=Dialog,exports.EleTable=EleTable,exports.FabricHangTag=FabricHangTag,exports.Form=Form,exports.Upload=Upload,exports.UploadComp=UploadComp,exports.UploadDownloadCenter=UploadDownloadCenter,exports.default=index,exports.handleProxy=handleProxy,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});