dfs-page-config 0.6.28 → 0.6.29

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.
@@ -130701,7 +130701,9 @@ const _sfc_main = defineComponent({
130701
130701
  }
130702
130702
  ]
130703
130703
  }), pAe = () => {
130704
- oAe = window.setInterval(gAe, 5e3);
130704
+ oAe = window.setInterval(() => {
130705
+ store.dispatch("_TABLE_QUERY", { tableComp: uAe.components[0], pageKey: uAe.pageKey });
130706
+ }, 5e3);
130705
130707
  }, hAe = () => {
130706
130708
  oAe && clearInterval(oAe), oAe = null, store.commit("setUploadDownloadDialogVisible", !1), Ff = !1, uAe.components[0].data.result = [], uAe.components[0].data.totalNum = 0;
130707
130709
  };
@@ -130826,7 +130828,7 @@ const _sfc_main = defineComponent({
130826
130828
  stopPolling: hAe
130827
130829
  };
130828
130830
  }
130829
- }), UploadDownloadCenter_vue_vue_type_style_index_0_scoped_c5979973_lang = "", UploadDownloadCenter_vue_vue_type_style_index_1_lang = "", _withScopeId = (Ff) => (pushScopeId("data-v-c5979973"), Ff = Ff(), popScopeId(), Ff), _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { class: "drag-button-text" }, "上传\\下载", -1)), _hoisted_2 = [
130831
+ }), UploadDownloadCenter_vue_vue_type_style_index_0_scoped_6fb41b2d_lang = "", UploadDownloadCenter_vue_vue_type_style_index_1_lang = "", _withScopeId = (Ff) => (pushScopeId("data-v-6fb41b2d"), Ff = Ff(), popScopeId(), Ff), _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { class: "drag-button-text" }, "上传\\下载", -1)), _hoisted_2 = [
130830
130832
  _hoisted_1
130831
130833
  ], _hoisted_3 = { style: { height: "72vh" } };
130832
130834
  function _sfc_render(Ff, kh, tAe, oAe, uAe, pAe) {
@@ -130862,7 +130864,7 @@ function _sfc_render(Ff, kh, tAe, oAe, uAe, pAe) {
130862
130864
  }, 8, ["modelValue", "onOpen", "onClose"])
130863
130865
  ], 64);
130864
130866
  }
130865
- const UploadDownloadCenter = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c5979973"]]);
130867
+ const UploadDownloadCenter = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-6fb41b2d"]]);
130866
130868
  UploadDownloadCenter.install = (Ff) => Ff.component(UploadDownloadCenter.name, UploadDownloadCenter);
130867
130869
  let timer = null, staticResourceMonitor = 2e3, apiRequestThreshold = 3e3;
130868
130870
  const userInfo = JSON.parse(localStorage.getItem("userInfo") || "{}"), username = userInfo.name || userInfo.displayName || "", PERFORMANCE_SERVER_URL = "https://performance-monitor.prod.doublefs.com/api/performance";
@@ -2177,4 +2177,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2177
2177
  @font-face {
2178
2178
  font-family: 'CircularXX-Medium';
2179
2179
  src: url(${CircularXXMedium});
2180
- `,document.head.appendChild(GAe)}function $Ae(){localStorage.setItem("fabricHangTagPrintType",pAe.printType)}return{t:kh,fabricHangTagNewRef:oAe,printCountRef:uAe,...vue$1.toRefs(pAe),show:hAe,close:vAe,print:AAe,confirm,setOffset:DAe,setDirection:PAe,confirmDirection:BAe,showDialog:TAe,closeDialog:FAe,changePrintType:$Ae}}}),FabricHangTag_vue_vue_type_style_index_0_scoped_1dabdfe4_lang="",_withScopeId$1=Ff=>(vue$1.pushScopeId("data-v-1dabdfe4"),Ff=Ff(),vue$1.popScopeId(),Ff),_hoisted_1$1={style:{height:"max-content",display:"block"},class:"el-upload-list--picture-card"},_hoisted_2$1=_withScopeId$1(()=>vue$1.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$1.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"},t:"1755245905315",class:"icon",viewBox:"0 0 6865 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3265",width:"200",height:"200"},_hoisted_14=_withScopeId$1(()=>vue$1.createElementVNode("path",{d:"M69.818 0v1024H0V0h69.818z m23.273 0h46.545v1024H93.091V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM512 0h46.545v1024H512V0z m2257.455 0H2816v1024h-46.545V0z m2304 0H5120v1024h-46.545V0zM861.09 0h46.545v1024H861.09V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM721.455 0H768v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM954.182 0h46.545v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1233.455 0H1280v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1349.82 0h46.545v1024h-46.546V0z m2257.454 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1442.909 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1698.909 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1861.818 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1978.182 0h93.09v1024h-93.09V0z m2257.454 0h93.091v1024h-93.09V0z m2304 0h93.091v1024h-93.09V0zM2141.091 0h46.545v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1792 0h23.273v1024H1792V0z m2257.455 0h23.272v1024h-23.272V0z m2304 0h23.272v1024h-23.272V0zM2280.727 0H2304v1024h-23.273V0z m2257.455 0h23.273v1024h-23.273V0z m2304 0h23.273v1024h-23.273V0z m-6656 0h116.363v1024H186.182V0z m2257.454 0H2560v1024h-116.364V0z m2304 0H4864v1024h-116.364V0zM372.364 0h116.363v1024H372.364V0z m2257.454 0h116.364v1024h-116.364V0z m2304 0h116.364v1024h-116.364V0z m-4352 0h93.091v1024h-93.09V0z m2257.455 0h93.09v1024h-93.09V0z m2304 0h93.09v1024h-93.09V0zM1070.545 0h93.091v1024h-93.09V0zM3328 0h93.09v1024H3328V0z m2304 0h93.09v1024H5632V0zM1536 0h93.09v1024H1536V0z m2257.455 0h93.09v1024h-93.09V0z m2304 0h93.09v1024h-93.09V0z","p-id":"3266"},null,-1)),_hoisted_15=[_hoisted_14],_hoisted_16={style:{position:"absolute",bottom:"22px",right:"30px"}},_hoisted_17={class:"dialog-footer"},_hoisted_18={class:"dialog-footer"};function _sfc_render$1(Ff,kh,tAe,oAe,uAe,pAe){var BAe,TAe,FAe;const hAe=vue$1.resolveComponent("ZoomIn"),vAe=ElIcon,AAe=__unplugin_components_1,yAe=ElRadioButton,wAe=ElRadioGroup,bAe=ElButton,_Ae=ElInputNumber,SAe=ElFormItem,OAe=ElForm,DAe=ElDialog,PAe=ElRadio;return vue$1.openBlock(),vue$1.createElementBlock(vue$1.Fragment,null,[vue$1.withDirectives(vue$1.createElementVNode("div",{class:vue$1.normalizeClass([Ff.zoomIn?"zoom-in":""]),onClick:kh[3]||(kh[3]=(...MAe)=>Ff.close&&Ff.close(...MAe))},[vue$1.createElementVNode("div",{onClick:kh[2]||(kh[2]=vue$1.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$1.createElementVNode("div",_hoisted_1$1,[_hoisted_2$1,vue$1.createElementVNode("span",_hoisted_3$1,[vue$1.createVNode(vAe,{onClick:kh[0]||(kh[0]=MAe=>Ff.zoomIn=!0),style:{cursor:"pointer"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(hAe)]),_:1})]),vue$1.withDirectives(vue$1.createVNode(AAe,{ref:"fabricHangTagNewRef",data:Ff.data},null,8,["data"]),[[vue$1.vShow,Ff.printType=="new"]]),vue$1.withDirectives(vue$1.createElementVNode("div",_hoisted_4,[vue$1.createElementVNode("div",null,[vue$1.createElementVNode("p",{style:{"font-size":"17px","font-family":"CircularXX-Medium","margin-bottom":"5px","line-height":"20px"},innerHTML:(BAe=Ff.data.fabricSeries||Ff.data.name)==null?void 0:BAe.replace(/\n/g,"</br>")},null,8,_hoisted_5),Ff.data.friendlyReminder?vue$1.createCommentVNode("",!0):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_6)),vue$1.createElementVNode("p",{style:{margin:"5px 0"},innerHTML:(TAe=Ff.data.fabricIntroduction)==null?void 0:TAe.replace(/\n/g,"</br>")},null,8,_hoisted_7),Ff.data.friendlyReminder?vue$1.createCommentVNode("",!0):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_8)),vue$1.createElementVNode("ul",_hoisted_9,[(vue$1.openBlock(!0),vue$1.createElementBlock(vue$1.Fragment,null,vue$1.renderList(Ff.data.fabricFeatureDescList,MAe=>(vue$1.openBlock(),vue$1.createElementBlock("li",{key:MAe,style:{margin:"1pt 0",display:"flex","align-items":"center"}},[_hoisted_10,vue$1.createTextVNode(" "+vue$1.toDisplayString(MAe),1)]))),128))]),Ff.data.friendlyReminder?(vue$1.openBlock(),vue$1.createElementBlock("p",{key:2,style:{margin:"3pt 0"},innerHTML:(FAe=Ff.data.friendlyReminder)==null?void 0:FAe.replace(/\n/g,"</br>")},null,8,_hoisted_11)):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_12)),vue$1.withDirectives((vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_13,_hoisted_15,512)),[[vue$1.vShow,Ff.data.barCodeId]]),vue$1.createElementVNode("span",_hoisted_16,vue$1.toDisplayString(Ff.data.code),1)])],512),[[vue$1.vShow,Ff.printType=="old"]])]),vue$1.createVNode(wAe,{modelValue:Ff.printType,"onUpdate:modelValue":kh[1]||(kh[1]=MAe=>Ff.printType=MAe),size:"small",onChange:Ff.changePrintType,style:{display:"flex","justify-content":"center",position:"absolute",top:"8px",left:"-2px","z-index":"3",transform:"scale(0.8)"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(yAe,{label:"new"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("新版")),1)]),_:1}),vue$1.createVNode(yAe,{label:"old"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("旧版")),1)]),_:1})]),_:1},8,["modelValue","onChange"]),Ff.showPrintButton?(vue$1.openBlock(),vue$1.createBlock(bAe,{key:0,class:"print-button",onClick:vue$1.withModifiers(Ff.showDialog,["stop"]),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("打印")),1)]),_:1},8,["onClick"])):vue$1.createCommentVNode("",!0)])],2),[[vue$1.vShow,Ff.isShow]]),vue$1.createVNode(DAe,{title:Ff.t("打印数量"),modelValue:Ff.dialogState,"onUpdate:modelValue":kh[6]||(kh[6]=MAe=>Ff.dialogState=MAe),width:"350px",center:"","close-on-click-modal":!1,onClose:Ff.closeDialog},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_17,[vue$1.createVNode(bAe,{onClick:kh[5]||(kh[5]=MAe=>Ff.dialogState=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(bAe,{type:"primary",onClick:Ff.print,size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("确认")),1)]),_:1},8,["onClick"])])]),default:vue$1.withCtx(()=>[vue$1.createVNode(OAe,{"label-width":"20px"},{default:vue$1.withCtx(()=>[vue$1.createVNode(SAe,{label:" ",style:{"margin-bottom":"0"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(_Ae,{ref:"printCountRef",modelValue:Ff.printCount,"onUpdate:modelValue":kh[4]||(kh[4]=MAe=>Ff.printCount=MAe),min:1,precision:0,controls:!1,placeholder:Ff.t("请输入打印数量"),style:{width:"100%"}},null,8,["modelValue","placeholder"])]),_:1}),vue$1.createVNode(SAe,{label:" "},{default:vue$1.withCtx(()=>[vue$1.createVNode(bAe,{onClick:Ff.setOffset,link:"",size:"small",style:{color:"#409eff"}},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("设置横向偏移")),1)]),_:1},8,["onClick"]),vue$1.createVNode(bAe,{onClick:Ff.setDirection,link:"",size:"small",style:{color:"#409eff"}},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("设置标签方向")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["title","modelValue","onClose"]),vue$1.createVNode(DAe,{title:Ff.t("设置标签方向"),modelValue:Ff.directionDialogVisible,"onUpdate:modelValue":kh[9]||(kh[9]=MAe=>Ff.directionDialogVisible=MAe),width:"350px",center:"","close-on-click-modal":!1},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_18,[vue$1.createVNode(bAe,{onClick:kh[8]||(kh[8]=MAe=>Ff.directionDialogVisible=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(bAe,{type:"primary",onClick:Ff.confirmDirection,size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("确定")),1)]),_:1},8,["onClick"])])]),default:vue$1.withCtx(()=>[vue$1.createVNode(wAe,{modelValue:Ff.direction,"onUpdate:modelValue":kh[7]||(kh[7]=MAe=>Ff.direction=MAe),style:{display:"flex","justify-content":"center",height:"74px"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(PAe,{label:"1"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("纵向")),1)]),_:1}),vue$1.createVNode(PAe,{label:"2"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("横向")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title","modelValue"])],64)}const FabricHangTag=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-1dabdfe4"]]);FabricHangTag.install=Ff=>Ff.component(FabricHangTag.name,FabricHangTag),AgTable.install=Ff=>Ff.component(AgTable.name,AgTable),BatchSearchInput.install=Ff=>Ff.component(BatchSearchInput.name,BatchSearchInput);const _sfc_main=vue$1.defineComponent({name:"UploadDownloadCenter",setup(){let Ff=!1,kh=1;const tAe=vue$1.computed(()=>store.state.uploadDownloadDialogVisible);let oAe=null;const uAe=vue$1.reactive({pageKey:"UploadDownloadCenter",components:[{type:"AgTable",key:"table",url:"/export-service/common-task/page",method:"POST",columns:yAe(),data:{resultKey:"records",totalKey:"total"},customUpdateData:(kAe,GAe,jAe)=>{var QAe;!((QAe=jAe.data.result)!=null&&QAe.length)||kh!==jAe.pageInfo.currentPage?(jAe.data.result=kAe.result,jAe.data.totalNum=kAe.totalNum,kh=jAe.pageInfo.currentPage):jAe.gridApi.forEachNode(qAe=>{qAe.setData(kAe.result.find(eme=>eme.createdAt==qAe.data.createdAt))})},configFlag:{sizeColumnsToFit:!0,noShowLoading:!0}}]}),pAe=()=>{oAe=window.setInterval(vAe,5e3)},hAe=()=>{oAe&&clearInterval(oAe),oAe=null,store.commit("setUploadDownloadDialogVisible",!1),Ff=!1,uAe.components[0].data.result=[],uAe.components[0].data.totalNum=0};function vAe(){setTimeout(()=>{queryData(store,uAe.pageKey,"table")},1e3)}const AAe=()=>{Ff||(vAe(),pAe(),Ff=!0)};function yAe(){return[{field:"typeName",headerName:"类型",width:100},{field:"fileName",headerName:"文件名",width:200,cellRenderer:({data:kAe})=>kAe.fileUrl?`<a href="${kAe.fileUrl}" target="_blank">${kAe.fileName}</a>`:kAe.fileName},{field:"taskStatusName",headerName:"状态",width:120,cellRenderer:({data:kAe})=>`<span style="color: ${{0:"#909399",1:"#67C23A",2:"#409EFF",3:"#409EFF",4:"#67C23A",5:"#F56C6C","-1":"#F56C6C"}[kAe.taskStatus]||"#909399"}">${kAe.taskStatusName}</span>`},{field:"failReason",headerName:"备注",width:200,cellRenderer:({data:kAe})=>kAe.failFileUrl?`<a href="${kAe.failFileUrl}" target="_blank">${kAe.failReason}</a>`:kAe.failReason},{field:"createdAt",headerName:"操作时间",width:180},{field:"createdUserName",headerName:"操作人",width:120}]}const wAe=vue$1.ref(null),bAe=vue$1.reactive({x:0,y:0});let _Ae=!1,SAe=0,OAe=0,DAe=0,PAe=0;const BAe=kAe=>{wAe.value&&(_Ae=!0,SAe=kAe.clientX,OAe=kAe.clientY,DAe=bAe.x,PAe=bAe.y,document.addEventListener("mousemove",TAe),document.addEventListener("mouseup",FAe))},TAe=kAe=>{if(!_Ae||!wAe.value)return;const GAe=kAe.clientX-SAe,jAe=kAe.clientY-OAe;let QAe=DAe+GAe,qAe=PAe+jAe;const eme=wAe.value.offsetWidth,tme=wAe.value.offsetHeight;QAe=Math.max(0,Math.min(window.innerWidth-eme,QAe)),qAe=Math.max(0,Math.min(window.innerHeight-tme,qAe)),bAe.x=QAe,bAe.y=qAe},FAe=()=>{if(!wAe.value)return;_Ae=!1,document.removeEventListener("mousemove",TAe),document.removeEventListener("mouseup",FAe);const kAe=wAe.value.offsetWidth,GAe=bAe.x,jAe=window.innerWidth-(bAe.x+kAe);wAe.value.style.transition="all 0.2s ease-out",GAe<jAe?bAe.x=0:bAe.x=window.innerWidth-kAe;const QAe=wAe.value.offsetHeight;bAe.y=Math.max(0,Math.min(window.innerHeight-QAe,bAe.y)),setTimeout(()=>{wAe.value&&(wAe.value.style.transition="")},300)},MAe=()=>{if(!wAe.value)return;const kAe=wAe.value.offsetWidth,GAe=wAe.value.offsetHeight;bAe.x=window.innerWidth-kAe,bAe.y=window.innerHeight-GAe-30};return vue$1.onMounted(()=>{window.addEventListener("resize",MAe),vue$1.nextTick(()=>{if(wAe.value){const kAe=wAe.value.offsetWidth,GAe=wAe.value.offsetHeight;bAe.x=window.innerWidth-kAe,bAe.y=window.innerHeight-GAe-30}})}),{pageConfigData:uAe,getData:vAe,dialogVisible:tAe,handleOpenDialog:AAe,dragButton:wAe,buttonPosition:bAe,startDrag:BAe,handleMouseDown:kAe=>{const GAe=new Date().getTime();BAe(kAe);const jAe=QAe=>{FAe();const qAe=new Date().getTime(),eme=Math.sqrt(Math.pow(QAe.clientX-SAe,2)+Math.pow(QAe.clientY-OAe,2));qAe-GAe<200&&eme<5&&store.commit("setUploadDownloadDialogVisible",!0)};document.addEventListener("mouseup",jAe,{once:!0})},stopPolling:hAe}}}),UploadDownloadCenter_vue_vue_type_style_index_0_scoped_c5979973_lang="",UploadDownloadCenter_vue_vue_type_style_index_1_lang="",_withScopeId=Ff=>(vue$1.pushScopeId("data-v-c5979973"),Ff=Ff(),vue$1.popScopeId(),Ff),_hoisted_1=_withScopeId(()=>vue$1.createElementVNode("p",{class:"drag-button-text"},"上传\\下载",-1)),_hoisted_2=[_hoisted_1],_hoisted_3={style:{height:"72vh"}};function _sfc_render(Ff,kh,tAe,oAe,uAe,pAe){const hAe=Page,vAe=ElDialog;return vue$1.openBlock(),vue$1.createElementBlock(vue$1.Fragment,null,[vue$1.createElementVNode("div",{class:"drag-button",ref:"dragButton",onMousedown:kh[0]||(kh[0]=(...AAe)=>Ff.handleMouseDown&&Ff.handleMouseDown(...AAe)),style:vue$1.normalizeStyle({left:Ff.buttonPosition.x+"px",top:Ff.buttonPosition.y+"px"})},_hoisted_2,36),vue$1.createVNode(vAe,{class:"upload-download-center-dialog",title:"上传/下载中心",modelValue:Ff.dialogVisible,"onUpdate:modelValue":kh[1]||(kh[1]=AAe=>Ff.dialogVisible=AAe),width:"80%","destroy-on-close":!0,top:"6vh",center:"",onOpen:Ff.handleOpenDialog,onClose:Ff.stopPolling},{default:vue$1.withCtx(()=>[vue$1.createElementVNode("div",_hoisted_3,[vue$1.createVNode(hAe,{pageConfigData:Ff.pageConfigData},null,8,["pageConfigData"])])]),_:1},8,["modelValue","onOpen","onClose"])],64)}const UploadDownloadCenter=_export_sfc$1(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-c5979973"]]);UploadDownloadCenter.install=Ff=>Ff.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(Ff){try{const kh=encodeURIComponent(JSON.stringify({url:window.location.href,timestamp:Date.now(),username,...Ff})),tAe=new Image;tAe.src=`${PERFORMANCE_SERVER_URL}?data=${kh}`,tAe.style.display="none",tAe.onload=()=>{console.log("性能数据上报成功"),document.body.removeChild(tAe)},tAe.onerror=oAe=>{console.error("性能数据上报失败",oAe),document.body.removeChild(tAe)},document.body.appendChild(tAe)}catch(kh){console.error("上报性能数据失败:",kh)}}const analyzeResourceLoadTime=()=>{if(!window.performance||!window.performance.getEntriesByType){console.warn("Performance API不可用,无法分析资源加载时间");return}const Ff=window.performance.getEntriesByType("resource"),kh=[],tAe=[],oAe=[],uAe=[];if(Ff.filter(hAe=>!hAe.isReport).forEach(hAe=>{hAe.isReport=!0;const vAe=hAe.name.toLowerCase();vAe.endsWith(".css")||hAe.initiatorType==="css"||hAe.initiatorType==="link"?hAe.duration>staticResourceMonitor&&tAe.push(hAe):vAe.endsWith(".js")||hAe.initiatorType==="script"?hAe.duration>staticResourceMonitor&&kh.push(hAe):hAe.initiatorType==="img"?hAe.duration>staticResourceMonitor&&uAe.push(hAe):(hAe.initiatorType==="xmlhttprequest"||hAe.initiatorType==="fetch")&&hAe.duration>apiRequestThreshold&&oAe.push(hAe)}),kh.length>0&&(console.log(`检测到${kh.length}个JS资源加载时间超过${staticResourceMonitor}ms:`),kh.forEach(hAe=>{console.log(`- JS: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),tAe.length>0&&(console.log(`检测到${tAe.length}个CSS资源加载时间超过${staticResourceMonitor}ms:`),tAe.forEach(hAe=>{console.log(`- CSS: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),uAe.length>0&&(console.log(`检测到${uAe.length}个图片资源加载时间超过${staticResourceMonitor}ms:`),uAe.forEach(hAe=>{console.log(`- 图片: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),oAe.length>0&&(console.log(`检测到${oAe.length}个API请求时间超过${apiRequestThreshold}ms:`),oAe.forEach(hAe=>{console.log(`- API: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),kh.length>0||tAe.length>0||oAe.length>0||uAe.length>0){const hAe={jsResources:kh.map(vAe=>({name:vAe.name,duration:vAe.duration,initiatorType:vAe.initiatorType})),cssResources:tAe.map(vAe=>({name:vAe.name,duration:vAe.duration,initiatorType:vAe.initiatorType})),apiResources:oAe.map(vAe=>({name:vAe.name,duration:vAe.duration,initiatorType:vAe.initiatorType})),imgResources:uAe.map(vAe=>({name:vAe.name,duration:vAe.duration,initiatorType:vAe.initiatorType}))};reportPerformanceData(hAe)}return{jsResources:kh,cssResources:tAe,apiResources:oAe,imgResources:uAe}},initPerformanceMonitor=(Ff=1e3,kh=3e3)=>{staticResourceMonitor=Ff,apiRequestThreshold=kh,window.addEventListener("load",()=>{clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3)}),service.interceptors.request.use(tAe=>(clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3),tAe),tAe=>Promise.reject(tAe.data))},index=(Ff,kh)=>{var oAe,uAe;kh.env||console.error('缺少环境变量,请在main.ts中注册"DfsPageConfig"时配置env【app.use(DfsPageConfig, {..., env: {"VITE_NODE_ENV":"production","VITE_APP_API":"https://gateway-c4.doublefs.com","BASE_URL":"/","MODE":"production","DEV":false,"PROD":true}})】'),["getters","_actions"].forEach(pAe=>{Object.keys(store[pAe]).forEach(hAe=>{kh.store[pAe][hAe]=store[pAe][hAe]})}),kh.store._mutations&&(kh.store._mutations.setUploadDownloadDialogVisible=store._mutations.setUploadDownloadDialogVisible),store.commit("saveUrl",kh.baseUrl),store.commit("saveLocale",kh.locale),store.commit("saveEnv",kh.env),kh.store.state._CONFIG_DATA=store.state._CONFIG_DATA,kh.store.state._BASE_URL=kh.baseUrl,store._mutations.setLoading=kh.store._mutations.setLoading,install(Ff),Ff.component("DfsPageConfig",Page);const tAe=()=>({t:pAe=>pAe});Ff.config.globalProperties.useI18n=kh.useI18n||tAe,kh.monitorConfig&&((uAe=(oAe=kh.env)==null?void 0:oAe.VITE_NODE_ENV)==null?void 0:uAe.indexOf("prod"))>-1&&initPerformanceMonitor(kh.monitorConfig.staticResourceMonitor,kh.monitorConfig.apiRequestThreshold),kh.isSendSensors&&sensors$1(kh.env,kh.project_name),kh.watermark&&watermark.init()};exports.AgTable=AgTable,exports.BatchSearchInput=BatchSearchInput,exports.CellSelect=_sfc_main$3,exports.Dialog=Dialog,exports.EleTable=EleTable,exports.FabricHangTag=FabricHangTag,exports.Form=Form,exports.SearchMenu=SearchMenu,exports.Upload=Upload,exports.UploadComp=UploadComp,exports.UploadDownloadCenter=UploadDownloadCenter,exports.default=index,exports.getLodopObj=getLodopObj,exports.getTargetComp=getTargetComp,exports.handleProxy=handleProxy,exports.queryData=queryData,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2180
+ `,document.head.appendChild(GAe)}function $Ae(){localStorage.setItem("fabricHangTagPrintType",pAe.printType)}return{t:kh,fabricHangTagNewRef:oAe,printCountRef:uAe,...vue$1.toRefs(pAe),show:hAe,close:vAe,print:AAe,confirm,setOffset:DAe,setDirection:PAe,confirmDirection:BAe,showDialog:TAe,closeDialog:FAe,changePrintType:$Ae}}}),FabricHangTag_vue_vue_type_style_index_0_scoped_1dabdfe4_lang="",_withScopeId$1=Ff=>(vue$1.pushScopeId("data-v-1dabdfe4"),Ff=Ff(),vue$1.popScopeId(),Ff),_hoisted_1$1={style:{height:"max-content",display:"block"},class:"el-upload-list--picture-card"},_hoisted_2$1=_withScopeId$1(()=>vue$1.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$1.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"},t:"1755245905315",class:"icon",viewBox:"0 0 6865 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3265",width:"200",height:"200"},_hoisted_14=_withScopeId$1(()=>vue$1.createElementVNode("path",{d:"M69.818 0v1024H0V0h69.818z m23.273 0h46.545v1024H93.091V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM512 0h46.545v1024H512V0z m2257.455 0H2816v1024h-46.545V0z m2304 0H5120v1024h-46.545V0zM861.09 0h46.545v1024H861.09V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM721.455 0H768v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM954.182 0h46.545v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1233.455 0H1280v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1349.82 0h46.545v1024h-46.546V0z m2257.454 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1442.909 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1698.909 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1861.818 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1978.182 0h93.09v1024h-93.09V0z m2257.454 0h93.091v1024h-93.09V0z m2304 0h93.091v1024h-93.09V0zM2141.091 0h46.545v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1792 0h23.273v1024H1792V0z m2257.455 0h23.272v1024h-23.272V0z m2304 0h23.272v1024h-23.272V0zM2280.727 0H2304v1024h-23.273V0z m2257.455 0h23.273v1024h-23.273V0z m2304 0h23.273v1024h-23.273V0z m-6656 0h116.363v1024H186.182V0z m2257.454 0H2560v1024h-116.364V0z m2304 0H4864v1024h-116.364V0zM372.364 0h116.363v1024H372.364V0z m2257.454 0h116.364v1024h-116.364V0z m2304 0h116.364v1024h-116.364V0z m-4352 0h93.091v1024h-93.09V0z m2257.455 0h93.09v1024h-93.09V0z m2304 0h93.09v1024h-93.09V0zM1070.545 0h93.091v1024h-93.09V0zM3328 0h93.09v1024H3328V0z m2304 0h93.09v1024H5632V0zM1536 0h93.09v1024H1536V0z m2257.455 0h93.09v1024h-93.09V0z m2304 0h93.09v1024h-93.09V0z","p-id":"3266"},null,-1)),_hoisted_15=[_hoisted_14],_hoisted_16={style:{position:"absolute",bottom:"22px",right:"30px"}},_hoisted_17={class:"dialog-footer"},_hoisted_18={class:"dialog-footer"};function _sfc_render$1(Ff,kh,tAe,oAe,uAe,pAe){var BAe,TAe,FAe;const hAe=vue$1.resolveComponent("ZoomIn"),vAe=ElIcon,AAe=__unplugin_components_1,yAe=ElRadioButton,wAe=ElRadioGroup,bAe=ElButton,_Ae=ElInputNumber,SAe=ElFormItem,OAe=ElForm,DAe=ElDialog,PAe=ElRadio;return vue$1.openBlock(),vue$1.createElementBlock(vue$1.Fragment,null,[vue$1.withDirectives(vue$1.createElementVNode("div",{class:vue$1.normalizeClass([Ff.zoomIn?"zoom-in":""]),onClick:kh[3]||(kh[3]=(...MAe)=>Ff.close&&Ff.close(...MAe))},[vue$1.createElementVNode("div",{onClick:kh[2]||(kh[2]=vue$1.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$1.createElementVNode("div",_hoisted_1$1,[_hoisted_2$1,vue$1.createElementVNode("span",_hoisted_3$1,[vue$1.createVNode(vAe,{onClick:kh[0]||(kh[0]=MAe=>Ff.zoomIn=!0),style:{cursor:"pointer"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(hAe)]),_:1})]),vue$1.withDirectives(vue$1.createVNode(AAe,{ref:"fabricHangTagNewRef",data:Ff.data},null,8,["data"]),[[vue$1.vShow,Ff.printType=="new"]]),vue$1.withDirectives(vue$1.createElementVNode("div",_hoisted_4,[vue$1.createElementVNode("div",null,[vue$1.createElementVNode("p",{style:{"font-size":"17px","font-family":"CircularXX-Medium","margin-bottom":"5px","line-height":"20px"},innerHTML:(BAe=Ff.data.fabricSeries||Ff.data.name)==null?void 0:BAe.replace(/\n/g,"</br>")},null,8,_hoisted_5),Ff.data.friendlyReminder?vue$1.createCommentVNode("",!0):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_6)),vue$1.createElementVNode("p",{style:{margin:"5px 0"},innerHTML:(TAe=Ff.data.fabricIntroduction)==null?void 0:TAe.replace(/\n/g,"</br>")},null,8,_hoisted_7),Ff.data.friendlyReminder?vue$1.createCommentVNode("",!0):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_8)),vue$1.createElementVNode("ul",_hoisted_9,[(vue$1.openBlock(!0),vue$1.createElementBlock(vue$1.Fragment,null,vue$1.renderList(Ff.data.fabricFeatureDescList,MAe=>(vue$1.openBlock(),vue$1.createElementBlock("li",{key:MAe,style:{margin:"1pt 0",display:"flex","align-items":"center"}},[_hoisted_10,vue$1.createTextVNode(" "+vue$1.toDisplayString(MAe),1)]))),128))]),Ff.data.friendlyReminder?(vue$1.openBlock(),vue$1.createElementBlock("p",{key:2,style:{margin:"3pt 0"},innerHTML:(FAe=Ff.data.friendlyReminder)==null?void 0:FAe.replace(/\n/g,"</br>")},null,8,_hoisted_11)):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_12)),vue$1.withDirectives((vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_13,_hoisted_15,512)),[[vue$1.vShow,Ff.data.barCodeId]]),vue$1.createElementVNode("span",_hoisted_16,vue$1.toDisplayString(Ff.data.code),1)])],512),[[vue$1.vShow,Ff.printType=="old"]])]),vue$1.createVNode(wAe,{modelValue:Ff.printType,"onUpdate:modelValue":kh[1]||(kh[1]=MAe=>Ff.printType=MAe),size:"small",onChange:Ff.changePrintType,style:{display:"flex","justify-content":"center",position:"absolute",top:"8px",left:"-2px","z-index":"3",transform:"scale(0.8)"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(yAe,{label:"new"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("新版")),1)]),_:1}),vue$1.createVNode(yAe,{label:"old"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("旧版")),1)]),_:1})]),_:1},8,["modelValue","onChange"]),Ff.showPrintButton?(vue$1.openBlock(),vue$1.createBlock(bAe,{key:0,class:"print-button",onClick:vue$1.withModifiers(Ff.showDialog,["stop"]),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("打印")),1)]),_:1},8,["onClick"])):vue$1.createCommentVNode("",!0)])],2),[[vue$1.vShow,Ff.isShow]]),vue$1.createVNode(DAe,{title:Ff.t("打印数量"),modelValue:Ff.dialogState,"onUpdate:modelValue":kh[6]||(kh[6]=MAe=>Ff.dialogState=MAe),width:"350px",center:"","close-on-click-modal":!1,onClose:Ff.closeDialog},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_17,[vue$1.createVNode(bAe,{onClick:kh[5]||(kh[5]=MAe=>Ff.dialogState=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(bAe,{type:"primary",onClick:Ff.print,size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("确认")),1)]),_:1},8,["onClick"])])]),default:vue$1.withCtx(()=>[vue$1.createVNode(OAe,{"label-width":"20px"},{default:vue$1.withCtx(()=>[vue$1.createVNode(SAe,{label:" ",style:{"margin-bottom":"0"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(_Ae,{ref:"printCountRef",modelValue:Ff.printCount,"onUpdate:modelValue":kh[4]||(kh[4]=MAe=>Ff.printCount=MAe),min:1,precision:0,controls:!1,placeholder:Ff.t("请输入打印数量"),style:{width:"100%"}},null,8,["modelValue","placeholder"])]),_:1}),vue$1.createVNode(SAe,{label:" "},{default:vue$1.withCtx(()=>[vue$1.createVNode(bAe,{onClick:Ff.setOffset,link:"",size:"small",style:{color:"#409eff"}},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("设置横向偏移")),1)]),_:1},8,["onClick"]),vue$1.createVNode(bAe,{onClick:Ff.setDirection,link:"",size:"small",style:{color:"#409eff"}},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("设置标签方向")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["title","modelValue","onClose"]),vue$1.createVNode(DAe,{title:Ff.t("设置标签方向"),modelValue:Ff.directionDialogVisible,"onUpdate:modelValue":kh[9]||(kh[9]=MAe=>Ff.directionDialogVisible=MAe),width:"350px",center:"","close-on-click-modal":!1},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_18,[vue$1.createVNode(bAe,{onClick:kh[8]||(kh[8]=MAe=>Ff.directionDialogVisible=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(bAe,{type:"primary",onClick:Ff.confirmDirection,size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("确定")),1)]),_:1},8,["onClick"])])]),default:vue$1.withCtx(()=>[vue$1.createVNode(wAe,{modelValue:Ff.direction,"onUpdate:modelValue":kh[7]||(kh[7]=MAe=>Ff.direction=MAe),style:{display:"flex","justify-content":"center",height:"74px"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(PAe,{label:"1"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("纵向")),1)]),_:1}),vue$1.createVNode(PAe,{label:"2"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("横向")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title","modelValue"])],64)}const FabricHangTag=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-1dabdfe4"]]);FabricHangTag.install=Ff=>Ff.component(FabricHangTag.name,FabricHangTag),AgTable.install=Ff=>Ff.component(AgTable.name,AgTable),BatchSearchInput.install=Ff=>Ff.component(BatchSearchInput.name,BatchSearchInput);const _sfc_main=vue$1.defineComponent({name:"UploadDownloadCenter",setup(){let Ff=!1,kh=1;const tAe=vue$1.computed(()=>store.state.uploadDownloadDialogVisible);let oAe=null;const uAe=vue$1.reactive({pageKey:"UploadDownloadCenter",components:[{type:"AgTable",key:"table",url:"/export-service/common-task/page",method:"POST",columns:yAe(),data:{resultKey:"records",totalKey:"total"},customUpdateData:(kAe,GAe,jAe)=>{var QAe;!((QAe=jAe.data.result)!=null&&QAe.length)||kh!==jAe.pageInfo.currentPage?(jAe.data.result=kAe.result,jAe.data.totalNum=kAe.totalNum,kh=jAe.pageInfo.currentPage):jAe.gridApi.forEachNode(qAe=>{qAe.setData(kAe.result.find(eme=>eme.createdAt==qAe.data.createdAt))})},configFlag:{sizeColumnsToFit:!0,noShowLoading:!0}}]}),pAe=()=>{oAe=window.setInterval(()=>{store.dispatch("_TABLE_QUERY",{tableComp:uAe.components[0],pageKey:uAe.pageKey})},5e3)},hAe=()=>{oAe&&clearInterval(oAe),oAe=null,store.commit("setUploadDownloadDialogVisible",!1),Ff=!1,uAe.components[0].data.result=[],uAe.components[0].data.totalNum=0};function vAe(){setTimeout(()=>{queryData(store,uAe.pageKey,"table")},1e3)}const AAe=()=>{Ff||(vAe(),pAe(),Ff=!0)};function yAe(){return[{field:"typeName",headerName:"类型",width:100},{field:"fileName",headerName:"文件名",width:200,cellRenderer:({data:kAe})=>kAe.fileUrl?`<a href="${kAe.fileUrl}" target="_blank">${kAe.fileName}</a>`:kAe.fileName},{field:"taskStatusName",headerName:"状态",width:120,cellRenderer:({data:kAe})=>`<span style="color: ${{0:"#909399",1:"#67C23A",2:"#409EFF",3:"#409EFF",4:"#67C23A",5:"#F56C6C","-1":"#F56C6C"}[kAe.taskStatus]||"#909399"}">${kAe.taskStatusName}</span>`},{field:"failReason",headerName:"备注",width:200,cellRenderer:({data:kAe})=>kAe.failFileUrl?`<a href="${kAe.failFileUrl}" target="_blank">${kAe.failReason}</a>`:kAe.failReason},{field:"createdAt",headerName:"操作时间",width:180},{field:"createdUserName",headerName:"操作人",width:120}]}const wAe=vue$1.ref(null),bAe=vue$1.reactive({x:0,y:0});let _Ae=!1,SAe=0,OAe=0,DAe=0,PAe=0;const BAe=kAe=>{wAe.value&&(_Ae=!0,SAe=kAe.clientX,OAe=kAe.clientY,DAe=bAe.x,PAe=bAe.y,document.addEventListener("mousemove",TAe),document.addEventListener("mouseup",FAe))},TAe=kAe=>{if(!_Ae||!wAe.value)return;const GAe=kAe.clientX-SAe,jAe=kAe.clientY-OAe;let QAe=DAe+GAe,qAe=PAe+jAe;const eme=wAe.value.offsetWidth,tme=wAe.value.offsetHeight;QAe=Math.max(0,Math.min(window.innerWidth-eme,QAe)),qAe=Math.max(0,Math.min(window.innerHeight-tme,qAe)),bAe.x=QAe,bAe.y=qAe},FAe=()=>{if(!wAe.value)return;_Ae=!1,document.removeEventListener("mousemove",TAe),document.removeEventListener("mouseup",FAe);const kAe=wAe.value.offsetWidth,GAe=bAe.x,jAe=window.innerWidth-(bAe.x+kAe);wAe.value.style.transition="all 0.2s ease-out",GAe<jAe?bAe.x=0:bAe.x=window.innerWidth-kAe;const QAe=wAe.value.offsetHeight;bAe.y=Math.max(0,Math.min(window.innerHeight-QAe,bAe.y)),setTimeout(()=>{wAe.value&&(wAe.value.style.transition="")},300)},MAe=()=>{if(!wAe.value)return;const kAe=wAe.value.offsetWidth,GAe=wAe.value.offsetHeight;bAe.x=window.innerWidth-kAe,bAe.y=window.innerHeight-GAe-30};return vue$1.onMounted(()=>{window.addEventListener("resize",MAe),vue$1.nextTick(()=>{if(wAe.value){const kAe=wAe.value.offsetWidth,GAe=wAe.value.offsetHeight;bAe.x=window.innerWidth-kAe,bAe.y=window.innerHeight-GAe-30}})}),{pageConfigData:uAe,getData:vAe,dialogVisible:tAe,handleOpenDialog:AAe,dragButton:wAe,buttonPosition:bAe,startDrag:BAe,handleMouseDown:kAe=>{const GAe=new Date().getTime();BAe(kAe);const jAe=QAe=>{FAe();const qAe=new Date().getTime(),eme=Math.sqrt(Math.pow(QAe.clientX-SAe,2)+Math.pow(QAe.clientY-OAe,2));qAe-GAe<200&&eme<5&&store.commit("setUploadDownloadDialogVisible",!0)};document.addEventListener("mouseup",jAe,{once:!0})},stopPolling:hAe}}}),UploadDownloadCenter_vue_vue_type_style_index_0_scoped_6fb41b2d_lang="",UploadDownloadCenter_vue_vue_type_style_index_1_lang="",_withScopeId=Ff=>(vue$1.pushScopeId("data-v-6fb41b2d"),Ff=Ff(),vue$1.popScopeId(),Ff),_hoisted_1=_withScopeId(()=>vue$1.createElementVNode("p",{class:"drag-button-text"},"上传\\下载",-1)),_hoisted_2=[_hoisted_1],_hoisted_3={style:{height:"72vh"}};function _sfc_render(Ff,kh,tAe,oAe,uAe,pAe){const hAe=Page,vAe=ElDialog;return vue$1.openBlock(),vue$1.createElementBlock(vue$1.Fragment,null,[vue$1.createElementVNode("div",{class:"drag-button",ref:"dragButton",onMousedown:kh[0]||(kh[0]=(...AAe)=>Ff.handleMouseDown&&Ff.handleMouseDown(...AAe)),style:vue$1.normalizeStyle({left:Ff.buttonPosition.x+"px",top:Ff.buttonPosition.y+"px"})},_hoisted_2,36),vue$1.createVNode(vAe,{class:"upload-download-center-dialog",title:"上传/下载中心",modelValue:Ff.dialogVisible,"onUpdate:modelValue":kh[1]||(kh[1]=AAe=>Ff.dialogVisible=AAe),width:"80%","destroy-on-close":!0,top:"6vh",center:"",onOpen:Ff.handleOpenDialog,onClose:Ff.stopPolling},{default:vue$1.withCtx(()=>[vue$1.createElementVNode("div",_hoisted_3,[vue$1.createVNode(hAe,{pageConfigData:Ff.pageConfigData},null,8,["pageConfigData"])])]),_:1},8,["modelValue","onOpen","onClose"])],64)}const UploadDownloadCenter=_export_sfc$1(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-6fb41b2d"]]);UploadDownloadCenter.install=Ff=>Ff.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(Ff){try{const kh=encodeURIComponent(JSON.stringify({url:window.location.href,timestamp:Date.now(),username,...Ff})),tAe=new Image;tAe.src=`${PERFORMANCE_SERVER_URL}?data=${kh}`,tAe.style.display="none",tAe.onload=()=>{console.log("性能数据上报成功"),document.body.removeChild(tAe)},tAe.onerror=oAe=>{console.error("性能数据上报失败",oAe),document.body.removeChild(tAe)},document.body.appendChild(tAe)}catch(kh){console.error("上报性能数据失败:",kh)}}const analyzeResourceLoadTime=()=>{if(!window.performance||!window.performance.getEntriesByType){console.warn("Performance API不可用,无法分析资源加载时间");return}const Ff=window.performance.getEntriesByType("resource"),kh=[],tAe=[],oAe=[],uAe=[];if(Ff.filter(hAe=>!hAe.isReport).forEach(hAe=>{hAe.isReport=!0;const vAe=hAe.name.toLowerCase();vAe.endsWith(".css")||hAe.initiatorType==="css"||hAe.initiatorType==="link"?hAe.duration>staticResourceMonitor&&tAe.push(hAe):vAe.endsWith(".js")||hAe.initiatorType==="script"?hAe.duration>staticResourceMonitor&&kh.push(hAe):hAe.initiatorType==="img"?hAe.duration>staticResourceMonitor&&uAe.push(hAe):(hAe.initiatorType==="xmlhttprequest"||hAe.initiatorType==="fetch")&&hAe.duration>apiRequestThreshold&&oAe.push(hAe)}),kh.length>0&&(console.log(`检测到${kh.length}个JS资源加载时间超过${staticResourceMonitor}ms:`),kh.forEach(hAe=>{console.log(`- JS: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),tAe.length>0&&(console.log(`检测到${tAe.length}个CSS资源加载时间超过${staticResourceMonitor}ms:`),tAe.forEach(hAe=>{console.log(`- CSS: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),uAe.length>0&&(console.log(`检测到${uAe.length}个图片资源加载时间超过${staticResourceMonitor}ms:`),uAe.forEach(hAe=>{console.log(`- 图片: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),oAe.length>0&&(console.log(`检测到${oAe.length}个API请求时间超过${apiRequestThreshold}ms:`),oAe.forEach(hAe=>{console.log(`- API: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),kh.length>0||tAe.length>0||oAe.length>0||uAe.length>0){const hAe={jsResources:kh.map(vAe=>({name:vAe.name,duration:vAe.duration,initiatorType:vAe.initiatorType})),cssResources:tAe.map(vAe=>({name:vAe.name,duration:vAe.duration,initiatorType:vAe.initiatorType})),apiResources:oAe.map(vAe=>({name:vAe.name,duration:vAe.duration,initiatorType:vAe.initiatorType})),imgResources:uAe.map(vAe=>({name:vAe.name,duration:vAe.duration,initiatorType:vAe.initiatorType}))};reportPerformanceData(hAe)}return{jsResources:kh,cssResources:tAe,apiResources:oAe,imgResources:uAe}},initPerformanceMonitor=(Ff=1e3,kh=3e3)=>{staticResourceMonitor=Ff,apiRequestThreshold=kh,window.addEventListener("load",()=>{clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3)}),service.interceptors.request.use(tAe=>(clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3),tAe),tAe=>Promise.reject(tAe.data))},index=(Ff,kh)=>{var oAe,uAe;kh.env||console.error('缺少环境变量,请在main.ts中注册"DfsPageConfig"时配置env【app.use(DfsPageConfig, {..., env: {"VITE_NODE_ENV":"production","VITE_APP_API":"https://gateway-c4.doublefs.com","BASE_URL":"/","MODE":"production","DEV":false,"PROD":true}})】'),["getters","_actions"].forEach(pAe=>{Object.keys(store[pAe]).forEach(hAe=>{kh.store[pAe][hAe]=store[pAe][hAe]})}),kh.store._mutations&&(kh.store._mutations.setUploadDownloadDialogVisible=store._mutations.setUploadDownloadDialogVisible),store.commit("saveUrl",kh.baseUrl),store.commit("saveLocale",kh.locale),store.commit("saveEnv",kh.env),kh.store.state._CONFIG_DATA=store.state._CONFIG_DATA,kh.store.state._BASE_URL=kh.baseUrl,store._mutations.setLoading=kh.store._mutations.setLoading,install(Ff),Ff.component("DfsPageConfig",Page);const tAe=()=>({t:pAe=>pAe});Ff.config.globalProperties.useI18n=kh.useI18n||tAe,kh.monitorConfig&&((uAe=(oAe=kh.env)==null?void 0:oAe.VITE_NODE_ENV)==null?void 0:uAe.indexOf("prod"))>-1&&initPerformanceMonitor(kh.monitorConfig.staticResourceMonitor,kh.monitorConfig.apiRequestThreshold),kh.isSendSensors&&sensors$1(kh.env,kh.project_name),kh.watermark&&watermark.init()};exports.AgTable=AgTable,exports.BatchSearchInput=BatchSearchInput,exports.CellSelect=_sfc_main$3,exports.Dialog=Dialog,exports.EleTable=EleTable,exports.FabricHangTag=FabricHangTag,exports.Form=Form,exports.SearchMenu=SearchMenu,exports.Upload=Upload,exports.UploadComp=UploadComp,exports.UploadDownloadCenter=UploadDownloadCenter,exports.default=index,exports.getLodopObj=getLodopObj,exports.getTargetComp=getTargetComp,exports.handleProxy=handleProxy,exports.queryData=queryData,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});