dfs-page-config 0.6.11 → 0.6.12
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.
package/dist/dfs-page-config.js
CHANGED
|
@@ -28415,7 +28415,7 @@ function getSelectOption(Ff, kh, tAe) {
|
|
|
28415
28415
|
Ff.state[pAe] = EAe;
|
|
28416
28416
|
const _Ae = obj[kh.url];
|
|
28417
28417
|
_Ae ? (_Ae.forEach((xAe) => {
|
|
28418
|
-
xAe.options = EAe;
|
|
28418
|
+
xAe.options = wAe[xAe.dataKey] || EAe;
|
|
28419
28419
|
}), delete obj[kh.url]) : kh.options = EAe;
|
|
28420
28420
|
});
|
|
28421
28421
|
}
|
|
@@ -128060,7 +128060,7 @@ const _sfc_main = defineComponent({
|
|
|
128060
128060
|
var UAe;
|
|
128061
128061
|
(UAe = jAe.data.result) != null && UAe.length ? jAe.gridApi.forEachNode((YAe) => {
|
|
128062
128062
|
YAe.setData(LAe.result.find((qAe) => qAe.createdAt == YAe.data.createdAt));
|
|
128063
|
-
}) : jAe.data.result = LAe.result
|
|
128063
|
+
}) : jAe.data.result = LAe.result;
|
|
128064
128064
|
},
|
|
128065
128065
|
configFlag: {
|
|
128066
128066
|
sizeColumnsToFit: !0,
|
|
@@ -128194,7 +128194,7 @@ const _sfc_main = defineComponent({
|
|
|
128194
128194
|
stopPolling: pAe
|
|
128195
128195
|
};
|
|
128196
128196
|
}
|
|
128197
|
-
}),
|
|
128197
|
+
}), UploadDownloadCenter_vue_vue_type_style_index_0_scoped_6f1346b6_lang = "", UploadDownloadCenter_vue_vue_type_style_index_1_lang = "", _withScopeId = (Ff) => (pushScopeId("data-v-6f1346b6"), Ff = Ff(), popScopeId(), Ff), _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", { class: "drag-button-text" }, "上传\\下载", -1)), _hoisted_2 = [
|
|
128198
128198
|
_hoisted_1
|
|
128199
128199
|
], _hoisted_3 = { style: { height: "72vh" } };
|
|
128200
128200
|
function _sfc_render(Ff, kh, tAe, iAe, uAe, pAe) {
|
|
@@ -128230,7 +128230,7 @@ function _sfc_render(Ff, kh, tAe, iAe, uAe, pAe) {
|
|
|
128230
128230
|
}, 8, ["modelValue", "onOpen", "onClose"])
|
|
128231
128231
|
], 64);
|
|
128232
128232
|
}
|
|
128233
|
-
const UploadDownloadCenter = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
128233
|
+
const UploadDownloadCenter = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-6f1346b6"]]);
|
|
128234
128234
|
UploadDownloadCenter.install = (Ff) => Ff.component(UploadDownloadCenter.name, UploadDownloadCenter);
|
|
128235
128235
|
let timer = null, staticResourceMonitor = 2e3, apiRequestThreshold = 3e3;
|
|
128236
128236
|
const userInfo = JSON.parse(localStorage.getItem("userInfo") || "{}"), username = userInfo.name || userInfo.displayName || "", PERFORMANCE_SERVER_URL = "https://performance-monitor.prod.doublefs.com/api/performance";
|
|
@@ -71,7 +71,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
71
71
|
* vuex v4.1.0
|
|
72
72
|
* (c) 2022 Evan You
|
|
73
73
|
* @license MIT
|
|
74
|
-
*/var storeKey="store";function useStore(Ff){return Ff===void 0&&(Ff=null),vue$1.inject(Ff!==null?Ff:storeKey)}function forEachValue(Ff,kh){Object.keys(Ff).forEach(function(tAe){return kh(Ff[tAe],tAe)})}function isObject(Ff){return Ff!==null&&typeof Ff=="object"}function isPromise(Ff){return Ff&&typeof Ff.then=="function"}function assert(Ff,kh){if(!Ff)throw new Error("[vuex] "+kh)}function partial(Ff,kh){return function(){return Ff(kh)}}function genericSubscribe(Ff,kh,tAe){return kh.indexOf(Ff)<0&&(tAe&&tAe.prepend?kh.unshift(Ff):kh.push(Ff)),function(){var iAe=kh.indexOf(Ff);iAe>-1&&kh.splice(iAe,1)}}function resetStore(Ff,kh){Ff._actions=Object.create(null),Ff._mutations=Object.create(null),Ff._wrappedGetters=Object.create(null),Ff._modulesNamespaceMap=Object.create(null);var tAe=Ff.state;installModule(Ff,tAe,[],Ff._modules.root,!0),resetStoreState(Ff,tAe,kh)}function resetStoreState(Ff,kh,tAe){var iAe=Ff._state,uAe=Ff._scope;Ff.getters={},Ff._makeLocalGettersCache=Object.create(null);var pAe=Ff._wrappedGetters,hAe={},gAe={},AAe=vue$1.effectScope(!0);AAe.run(function(){forEachValue(pAe,function(CAe,wAe){hAe[wAe]=partial(CAe,Ff),gAe[wAe]=vue$1.computed(function(){return hAe[wAe]()}),Object.defineProperty(Ff.getters,wAe,{get:function(){return gAe[wAe].value},enumerable:!0})})}),Ff._state=vue$1.reactive({data:kh}),Ff._scope=AAe,Ff.strict&&enableStrictMode(Ff),iAe&&tAe&&Ff._withCommit(function(){iAe.data=null}),uAe&&uAe.stop()}function installModule(Ff,kh,tAe,iAe,uAe){var pAe=!tAe.length,hAe=Ff._modules.getNamespace(tAe);if(iAe.namespaced&&(Ff._modulesNamespaceMap[hAe]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+hAe+" for the namespaced module "+tAe.join("/")),Ff._modulesNamespaceMap[hAe]=iAe),!pAe&&!uAe){var gAe=getNestedState(kh,tAe.slice(0,-1)),AAe=tAe[tAe.length-1];Ff._withCommit(function(){process.env.NODE_ENV!=="production"&&AAe in gAe&&console.warn('[vuex] state field "'+AAe+'" was overridden by a module with the same name at "'+tAe.join(".")+'"'),gAe[AAe]=iAe.state})}var CAe=iAe.context=makeLocalContext(Ff,hAe,tAe);iAe.forEachMutation(function(wAe,EAe){var _Ae=hAe+EAe;registerMutation(Ff,_Ae,wAe,CAe)}),iAe.forEachAction(function(wAe,EAe){var _Ae=wAe.root?EAe:hAe+EAe,xAe=wAe.handler||wAe;registerAction(Ff,_Ae,xAe,CAe)}),iAe.forEachGetter(function(wAe,EAe){var _Ae=hAe+EAe;registerGetter(Ff,_Ae,wAe,CAe)}),iAe.forEachChild(function(wAe,EAe){installModule(Ff,kh,tAe.concat(EAe),wAe,uAe)})}function makeLocalContext(Ff,kh,tAe){var iAe=kh==="",uAe={dispatch:iAe?Ff.dispatch:function(pAe,hAe,gAe){var AAe=unifyObjectStyle(pAe,hAe,gAe),CAe=AAe.payload,wAe=AAe.options,EAe=AAe.type;if((!wAe||!wAe.root)&&(EAe=kh+EAe,process.env.NODE_ENV!=="production"&&!Ff._actions[EAe])){console.error("[vuex] unknown local action type: "+AAe.type+", global type: "+EAe);return}return Ff.dispatch(EAe,CAe)},commit:iAe?Ff.commit:function(pAe,hAe,gAe){var AAe=unifyObjectStyle(pAe,hAe,gAe),CAe=AAe.payload,wAe=AAe.options,EAe=AAe.type;if((!wAe||!wAe.root)&&(EAe=kh+EAe,process.env.NODE_ENV!=="production"&&!Ff._mutations[EAe])){console.error("[vuex] unknown local mutation type: "+AAe.type+", global type: "+EAe);return}Ff.commit(EAe,CAe,wAe)}};return Object.defineProperties(uAe,{getters:{get:iAe?function(){return Ff.getters}:function(){return makeLocalGetters(Ff,kh)}},state:{get:function(){return getNestedState(Ff.state,tAe)}}}),uAe}function makeLocalGetters(Ff,kh){if(!Ff._makeLocalGettersCache[kh]){var tAe={},iAe=kh.length;Object.keys(Ff.getters).forEach(function(uAe){if(uAe.slice(0,iAe)===kh){var pAe=uAe.slice(iAe);Object.defineProperty(tAe,pAe,{get:function(){return Ff.getters[uAe]},enumerable:!0})}}),Ff._makeLocalGettersCache[kh]=tAe}return Ff._makeLocalGettersCache[kh]}function registerMutation(Ff,kh,tAe,iAe){var uAe=Ff._mutations[kh]||(Ff._mutations[kh]=[]);uAe.push(function(hAe){tAe.call(Ff,iAe.state,hAe)})}function registerAction(Ff,kh,tAe,iAe){var uAe=Ff._actions[kh]||(Ff._actions[kh]=[]);uAe.push(function(hAe){var gAe=tAe.call(Ff,{dispatch:iAe.dispatch,commit:iAe.commit,getters:iAe.getters,state:iAe.state,rootGetters:Ff.getters,rootState:Ff.state},hAe);return isPromise(gAe)||(gAe=Promise.resolve(gAe)),Ff._devtoolHook?gAe.catch(function(AAe){throw Ff._devtoolHook.emit("vuex:error",AAe),AAe}):gAe})}function registerGetter(Ff,kh,tAe,iAe){if(Ff._wrappedGetters[kh]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+kh);return}Ff._wrappedGetters[kh]=function(pAe){return tAe(iAe.state,iAe.getters,pAe.state,pAe.getters)}}function enableStrictMode(Ff){vue$1.watch(function(){return Ff._state.data},function(){process.env.NODE_ENV!=="production"&&assert(Ff._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function getNestedState(Ff,kh){return kh.reduce(function(tAe,iAe){return tAe[iAe]},Ff)}function unifyObjectStyle(Ff,kh,tAe){return isObject(Ff)&&Ff.type&&(tAe=kh,kh=Ff,Ff=Ff.type),process.env.NODE_ENV!=="production"&&assert(typeof Ff=="string","expects string as the type, but found "+typeof Ff+"."),{type:Ff,payload:kh,options:tAe}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools(Ff,kh){setupDevtoolsPlugin({id:"org.vuejs.vuex",app:Ff,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[LABEL_VUEX_BINDINGS]},function(tAe){tAe.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),tAe.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),tAe.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),tAe.on.getInspectorTree(function(iAe){if(iAe.app===Ff&&iAe.inspectorId===INSPECTOR_ID)if(iAe.filter){var uAe=[];flattenStoreForInspectorTree(uAe,kh._modules.root,iAe.filter,""),iAe.rootNodes=uAe}else iAe.rootNodes=[formatStoreForInspectorTree(kh._modules.root,"")]}),tAe.on.getInspectorState(function(iAe){if(iAe.app===Ff&&iAe.inspectorId===INSPECTOR_ID){var uAe=iAe.nodeId;makeLocalGetters(kh,uAe),iAe.state=formatStoreForInspectorState(getStoreModule(kh._modules,uAe),uAe==="root"?kh.getters:kh._makeLocalGettersCache,uAe)}}),tAe.on.editInspectorState(function(iAe){if(iAe.app===Ff&&iAe.inspectorId===INSPECTOR_ID){var uAe=iAe.nodeId,pAe=iAe.path;uAe!=="root"&&(pAe=uAe.split("/").filter(Boolean).concat(pAe)),kh._withCommit(function(){iAe.set(kh._state.data,pAe,iAe.state.value)})}}),kh.subscribe(function(iAe,uAe){var pAe={};iAe.payload&&(pAe.payload=iAe.payload),pAe.state=uAe,tAe.notifyComponentUpdate(),tAe.sendInspectorTree(INSPECTOR_ID),tAe.sendInspectorState(INSPECTOR_ID),tAe.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:iAe.type,data:pAe}})}),kh.subscribeAction({before:function(iAe,uAe){var pAe={};iAe.payload&&(pAe.payload=iAe.payload),iAe._id=actionId++,iAe._time=Date.now(),pAe.state=uAe,tAe.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:iAe._time,title:iAe.type,groupId:iAe._id,subtitle:"start",data:pAe}})},after:function(iAe,uAe){var pAe={},hAe=Date.now()-iAe._time;pAe.duration={_custom:{type:"duration",display:hAe+"ms",tooltip:"Action duration",value:hAe}},iAe.payload&&(pAe.payload=iAe.payload),pAe.state=uAe,tAe.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:iAe.type,groupId:iAe._id,subtitle:"end",data:pAe}})}})})}var COLOR_LIME_500=8702998,COLOR_DARK=6710886,COLOR_WHITE=16777215,TAG_NAMESPACED={label:"namespaced",textColor:COLOR_WHITE,backgroundColor:COLOR_DARK};function extractNameFromPath(Ff){return Ff&&Ff!=="root"?Ff.split("/").slice(-2,-1)[0]:"Root"}function formatStoreForInspectorTree(Ff,kh){return{id:kh||"root",label:extractNameFromPath(kh),tags:Ff.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(Ff._children).map(function(tAe){return formatStoreForInspectorTree(Ff._children[tAe],kh+tAe+"/")})}}function flattenStoreForInspectorTree(Ff,kh,tAe,iAe){iAe.includes(tAe)&&Ff.push({id:iAe||"root",label:iAe.endsWith("/")?iAe.slice(0,iAe.length-1):iAe||"Root",tags:kh.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(kh._children).forEach(function(uAe){flattenStoreForInspectorTree(Ff,kh._children[uAe],tAe,iAe+uAe+"/")})}function formatStoreForInspectorState(Ff,kh,tAe){kh=tAe==="root"?kh:kh[tAe];var iAe=Object.keys(kh),uAe={state:Object.keys(Ff.state).map(function(hAe){return{key:hAe,editable:!0,value:Ff.state[hAe]}})};if(iAe.length){var pAe=transformPathsToObjectTree(kh);uAe.getters=Object.keys(pAe).map(function(hAe){return{key:hAe.endsWith("/")?extractNameFromPath(hAe):hAe,editable:!1,value:canThrow(function(){return pAe[hAe]})}})}return uAe}function transformPathsToObjectTree(Ff){var kh={};return Object.keys(Ff).forEach(function(tAe){var iAe=tAe.split("/");if(iAe.length>1){var uAe=kh,pAe=iAe.pop();iAe.forEach(function(hAe){uAe[hAe]||(uAe[hAe]={_custom:{value:{},display:hAe,tooltip:"Module",abstract:!0}}),uAe=uAe[hAe]._custom.value}),uAe[pAe]=canThrow(function(){return Ff[tAe]})}else kh[tAe]=canThrow(function(){return Ff[tAe]})}),kh}function getStoreModule(Ff,kh){var tAe=kh.split("/").filter(function(iAe){return iAe});return tAe.reduce(function(iAe,uAe,pAe){var hAe=iAe[uAe];if(!hAe)throw new Error('Missing module "'+uAe+'" for path "'+kh+'".');return pAe===tAe.length-1?hAe:hAe._children},kh==="root"?Ff:Ff.root._children)}function canThrow(Ff){try{return Ff()}catch(kh){return kh}}var Module=function Ff(kh,tAe){this.runtime=tAe,this._children=Object.create(null),this._rawModule=kh;var iAe=kh.state;this.state=(typeof iAe=="function"?iAe():iAe)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function Ff(kh,tAe){this._children[kh]=tAe},Module.prototype.removeChild=function Ff(kh){delete this._children[kh]},Module.prototype.getChild=function Ff(kh){return this._children[kh]},Module.prototype.hasChild=function Ff(kh){return kh in this._children},Module.prototype.update=function Ff(kh){this._rawModule.namespaced=kh.namespaced,kh.actions&&(this._rawModule.actions=kh.actions),kh.mutations&&(this._rawModule.mutations=kh.mutations),kh.getters&&(this._rawModule.getters=kh.getters)},Module.prototype.forEachChild=function Ff(kh){forEachValue(this._children,kh)},Module.prototype.forEachGetter=function Ff(kh){this._rawModule.getters&&forEachValue(this._rawModule.getters,kh)},Module.prototype.forEachAction=function Ff(kh){this._rawModule.actions&&forEachValue(this._rawModule.actions,kh)},Module.prototype.forEachMutation=function Ff(kh){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,kh)},Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function Ff(kh){this.register([],kh,!1)};ModuleCollection.prototype.get=function Ff(kh){return kh.reduce(function(tAe,iAe){return tAe.getChild(iAe)},this.root)},ModuleCollection.prototype.getNamespace=function Ff(kh){var tAe=this.root;return kh.reduce(function(iAe,uAe){return tAe=tAe.getChild(uAe),iAe+(tAe.namespaced?uAe+"/":"")},"")},ModuleCollection.prototype.update=function Ff(kh){update([],this.root,kh)},ModuleCollection.prototype.register=function Ff(kh,tAe,iAe){var uAe=this;iAe===void 0&&(iAe=!0),process.env.NODE_ENV!=="production"&&assertRawModule(kh,tAe);var pAe=new Module(tAe,iAe);if(kh.length===0)this.root=pAe;else{var hAe=this.get(kh.slice(0,-1));hAe.addChild(kh[kh.length-1],pAe)}tAe.modules&&forEachValue(tAe.modules,function(gAe,AAe){uAe.register(kh.concat(AAe),gAe,iAe)})},ModuleCollection.prototype.unregister=function Ff(kh){var tAe=this.get(kh.slice(0,-1)),iAe=kh[kh.length-1],uAe=tAe.getChild(iAe);if(!uAe){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+iAe+"', which is not registered");return}uAe.runtime&&tAe.removeChild(iAe)},ModuleCollection.prototype.isRegistered=function Ff(kh){var tAe=this.get(kh.slice(0,-1)),iAe=kh[kh.length-1];return tAe?tAe.hasChild(iAe):!1};function update(Ff,kh,tAe){if(process.env.NODE_ENV!=="production"&&assertRawModule(Ff,tAe),kh.update(tAe),tAe.modules)for(var iAe in tAe.modules){if(!kh.getChild(iAe)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+iAe+"' on hot reloading, manual reload is needed");return}update(Ff.concat(iAe),kh.getChild(iAe),tAe.modules[iAe])}}var functionAssert={assert:function(Ff){return typeof Ff=="function"},expected:"function"},objectAssert={assert:function(Ff){return typeof Ff=="function"||typeof Ff=="object"&&typeof Ff.handler=="function"},expected:'function or object with "handler" function'},assertTypes={getters:functionAssert,mutations:functionAssert,actions:objectAssert};function assertRawModule(Ff,kh){Object.keys(assertTypes).forEach(function(tAe){if(kh[tAe]){var iAe=assertTypes[tAe];forEachValue(kh[tAe],function(uAe,pAe){assert(iAe.assert(uAe),makeAssertionMessage(Ff,tAe,pAe,uAe,iAe.expected))})}})}function makeAssertionMessage(Ff,kh,tAe,iAe,uAe){var pAe=kh+" should be "+uAe+' but "'+kh+"."+tAe+'"';return Ff.length>0&&(pAe+=' in module "'+Ff.join(".")+'"'),pAe+=" is "+JSON.stringify(iAe)+".",pAe}function createStore(Ff){return new Store(Ff)}var Store=function Ff(kh){var tAe=this;kh===void 0&&(kh={}),process.env.NODE_ENV!=="production"&&(assert(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),assert(this instanceof Ff,"store must be called with the new operator."));var iAe=kh.plugins;iAe===void 0&&(iAe=[]);var uAe=kh.strict;uAe===void 0&&(uAe=!1);var pAe=kh.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(kh),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=pAe;var hAe=this,gAe=this,AAe=gAe.dispatch,CAe=gAe.commit;this.dispatch=function(_Ae,xAe){return AAe.call(hAe,_Ae,xAe)},this.commit=function(_Ae,xAe,DAe){return CAe.call(hAe,_Ae,xAe,DAe)},this.strict=uAe;var wAe=this._modules.root.state;installModule(this,wAe,[],this._modules.root),resetStoreState(this,wAe),iAe.forEach(function(EAe){return EAe(tAe)})},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function Ff(kh,tAe){kh.provide(tAe||storeKey,this),kh.config.globalProperties.$store=this;var iAe=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;iAe&&addDevtools(kh,this)},prototypeAccessors.state.get=function(){return this._state.data},prototypeAccessors.state.set=function(Ff){process.env.NODE_ENV!=="production"&&assert(!1,"use store.replaceState() to explicit replace store state.")},Store.prototype.commit=function Ff(kh,tAe,iAe){var uAe=this,pAe=unifyObjectStyle(kh,tAe,iAe),hAe=pAe.type,gAe=pAe.payload,AAe=pAe.options,CAe={type:hAe,payload:gAe},wAe=this._mutations[hAe];if(!wAe){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+hAe);return}this._withCommit(function(){wAe.forEach(function(_Ae){_Ae(gAe)})}),this._subscribers.slice().forEach(function(EAe){return EAe(CAe,uAe.state)}),process.env.NODE_ENV!=="production"&&AAe&&AAe.silent&&console.warn("[vuex] mutation type: "+hAe+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Store.prototype.dispatch=function Ff(kh,tAe){var iAe=this,uAe=unifyObjectStyle(kh,tAe),pAe=uAe.type,hAe=uAe.payload,gAe={type:pAe,payload:hAe},AAe=this._actions[pAe];if(!AAe){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+pAe);return}try{this._actionSubscribers.slice().filter(function(wAe){return wAe.before}).forEach(function(wAe){return wAe.before(gAe,iAe.state)})}catch(wAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(wAe))}var CAe=AAe.length>1?Promise.all(AAe.map(function(wAe){return wAe(hAe)})):AAe[0](hAe);return new Promise(function(wAe,EAe){CAe.then(function(_Ae){try{iAe._actionSubscribers.filter(function(xAe){return xAe.after}).forEach(function(xAe){return xAe.after(gAe,iAe.state)})}catch(xAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(xAe))}wAe(_Ae)},function(_Ae){try{iAe._actionSubscribers.filter(function(xAe){return xAe.error}).forEach(function(xAe){return xAe.error(gAe,iAe.state,_Ae)})}catch(xAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(xAe))}EAe(_Ae)})})},Store.prototype.subscribe=function Ff(kh,tAe){return genericSubscribe(kh,this._subscribers,tAe)},Store.prototype.subscribeAction=function Ff(kh,tAe){var iAe=typeof kh=="function"?{before:kh}:kh;return genericSubscribe(iAe,this._actionSubscribers,tAe)},Store.prototype.watch=function Ff(kh,tAe,iAe){var uAe=this;return process.env.NODE_ENV!=="production"&&assert(typeof kh=="function","store.watch only accepts a function."),vue$1.watch(function(){return kh(uAe.state,uAe.getters)},tAe,Object.assign({},iAe))},Store.prototype.replaceState=function Ff(kh){var tAe=this;this._withCommit(function(){tAe._state.data=kh})},Store.prototype.registerModule=function Ff(kh,tAe,iAe){iAe===void 0&&(iAe={}),typeof kh=="string"&&(kh=[kh]),process.env.NODE_ENV!=="production"&&(assert(Array.isArray(kh),"module path must be a string or an Array."),assert(kh.length>0,"cannot register the root module by using registerModule.")),this._modules.register(kh,tAe),installModule(this,this.state,kh,this._modules.get(kh),iAe.preserveState),resetStoreState(this,this.state)},Store.prototype.unregisterModule=function Ff(kh){var tAe=this;typeof kh=="string"&&(kh=[kh]),process.env.NODE_ENV!=="production"&&assert(Array.isArray(kh),"module path must be a string or an Array."),this._modules.unregister(kh),this._withCommit(function(){var iAe=getNestedState(tAe.state,kh.slice(0,-1));delete iAe[kh[kh.length-1]]}),resetStore(this)},Store.prototype.hasModule=function Ff(kh){return typeof kh=="string"&&(kh=[kh]),process.env.NODE_ENV!=="production"&&assert(Array.isArray(kh),"module path must be a string or an Array."),this._modules.isRegistered(kh)},Store.prototype.hotUpdate=function Ff(kh){this._modules.update(kh),resetStore(this,!0)},Store.prototype._withCommit=function Ff(kh){var tAe=this._committing;this._committing=!0,kh(),this._committing=tAe},Object.defineProperties(Store.prototype,prototypeAccessors);const elBadge="",elMessage="";function errorHandle(Ff,kh,tAe){var uAe,pAe,hAe,gAe,AAe;let iAe=((uAe=Ff==null?void 0:Ff.data)==null?void 0:uAe.message)||((pAe=Ff==null?void 0:Ff.data)==null?void 0:pAe.msg);ElMessage({type:"error",message:(((hAe=Ff==null?void 0:Ff.data)==null?void 0:hAe.status)||"")+" "+(iAe||((gAe=Ff.data)==null?void 0:gAe.statusText)||((AAe=Ff.data)==null?void 0:AAe.error)||""),duration:tAe||2e3,onClose:()=>{kh&&kh()}})}const headerObj={};if(location.host.indexOf("odm")>-1||location.host.indexOf("suliangtong")>-1){let Ff=localStorage.getItem("userInfo");if(Ff)try{Ff=JSON.parse(Ff),headerObj["x-user-slt-mobile"]=Ff.mobile,headerObj["x-user-slt-login-id"]=(p_e=Ff.supplierUserVo)==null?void 0:p_e.userLoginId,headerObj["x-user-slt-user-name"]=(wSe=Ff.supplierUserVo)!=null&&wSe.userName?encodeURIComponent((VIe=Ff.supplierUserVo)==null?void 0:VIe.userName):Ff.mobile}catch{}}const service=axios.create({timeout:1e3*30,withCredentials:!0,headers:headerObj});service.interceptors.request.use(Ff=>{Ff.url=handleProxy(Ff.url);const kh=getRequestHeaders(Ff.url);return Object.keys(kh).forEach(tAe=>{Ff.headers[tAe]=kh[tAe]}),Ff},Ff=>Promise.reject(Ff.data)),service.interceptors.response.use(Ff=>{if(Ff.data.code==1304||Ff.data.code===20007)window.location.href=Ff.data.data;else{if(Ff.data.code===401||Ff.data.code===10001)return errorHandle(Ff),window.location.href=window.location.origin,Promise.reject(Ff.data.message);if(Ff.data.code===204)return errorHandle(Ff.data.msg,()=>window.location.href="/"),Promise.reject(Ff);if(Object.prototype.toString.call(Ff.data)==="[object Blob]"){if(Ff.data.type==="application/json"){const kh=new FileReader;return kh.readAsText(Ff.data,"utf-8"),new Promise((tAe,iAe)=>{kh.onload=function(){try{const uAe=JSON.parse(kh.result);tAe(uAe)}catch(uAe){iAe(uAe)}}})}return Ff.data}else{if(Ff.data.code!==0)return errorHandle(Ff),Promise.reject(Ff.data);if(Object.prototype.toString.call(Ff.data.data).toLowerCase()=="[object object]")return Ff.data.data;if(typeof Ff.data.data=="string"&&Ff.data.data!=""){let kh={};try{kh=JSON.parse(Ff.data.data)}catch{kh=Ff.data.data}return kh}else return Ff.data.data}}},Ff=>{if(Object.prototype.toString.call(Ff.response.data)==="[object Blob]"){const kh=new FileReader;return kh.readAsText(Ff.response.data,"utf-8"),new Promise((tAe,iAe)=>{kh.onload=function(){try{if(Ff.response.data.type==="application/json"){const uAe=JSON.parse(kh.result);errorHandle({data:uAe}),iAe({data:uAe})}else if(Ff.response.data.type==="text/html"&&typeof kh.result=="string"){const uAe=kh.result.match(/<body[^>]*>([\s\S]*?)<\/body>/i);if(uAe&&uAe[1]){const pAe=uAe[1].replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim();errorHandle({data:{msg:pAe}}),iAe({data:{msg:pAe}})}}}catch(uAe){iAe(uAe)}}})}else return errorHandle(Ff.response),Promise.reject(Ff)});const initPage=(Ff,kh)=>{kh.dispatch("_INIT_PAGE",{pageKey:Ff.pageKey,components:Ff.components,dialogRef:Ff.dialogRef})},queryData=(Ff,kh,tAe)=>{Ff.dispatch("_QUERY_LIST",{pageKey:kh,target:tAe})};function getTargetComp({getters:Ff},kh,tAe){const iAe=Ff._GET_CONFIG_DATA;if(!iAe(kh))return{};const uAe=iAe(kh).find(pAe=>pAe.key===tAe);if(!uAe)throw new Error(`没有找到key为'${tAe}'的组件,请检查是否已定义`);return uAe}function getRelationComp(Ff,kh,tAe){const iAe={};return tAe&&tAe.length&&tAe.forEach(uAe=>{const pAe=getTargetComp(Ff,kh,uAe);iAe[uAe]=pAe}),iAe}let obj={};function getSelectOption(Ff,kh,tAe){var hAe;let iAe={};kh.relation&&(iAe=getRelationComp(Ff,tAe,kh.relation));const uAe=typeof kh.params=="function"?kh.params(iAe):kh.params,pAe=kh.url+(kh.dataKey?"-"+kh.dataKey:"")+(uAe?"-"+JSON.stringify(uAe):"");if(Ff.state[pAe]&&!kh.noCache)kh.options=Ff.state[pAe];else{if(obj[kh.url]&&!kh.params){obj[kh.url].push(kh);return}else kh.params||(obj[kh.url]=[kh]);const gAe=((hAe=kh.method)==null?void 0:hAe.toUpperCase())||"GET";let AAe=gAe=="GET"?"params":"data",CAe=kh.baseUrl||Ff.state._BASE_URL;kh.service==="c2"&&(CAe=CAe.replace("c1","c2")),service({url:CAe+kh.url,[AAe]:uAe||{},method:gAe}).then(wAe=>{const EAe=wAe[kh.dataKey]||wAe.items||wAe;Ff.state[pAe]=EAe;const _Ae=obj[kh.url];_Ae?(_Ae.forEach(xAe=>{xAe.options=EAe}),delete obj[kh.url]):kh.options=EAe})}}const getFormData=Ff=>{let kh={};const tAe=Ff.formData;return Ff.elementGroup.forEach(iAe=>{(iAe.isShow===void 0||typeof iAe.isShow=="function"&&iAe.isShow(tAe))&&iAe.prop&&(typeof tAe[iAe.prop]=="object"?kh[iAe.prop]=tAe[iAe.prop]:(kh[iAe.prop]=tAe[iAe.prop]+""=="0"?0:tAe[iAe.prop]||null,typeof kh[iAe.prop]=="string"&&(kh[iAe.prop]=kh[iAe.prop].trim()))),iAe.type==="Daterange"||iAe.type==="Datetimerange"?(kh[iAe.prop]?(kh[iAe.startTime]=formatDate(kh[iAe.prop][0],iAe.type==="Daterange"?"yyyy-MM-dd":"yyyy-MM-dd HH:mm:ss"),kh[iAe.endTime]=formatDate(kh[iAe.prop][1],iAe.type==="Daterange"?"yyyy-MM-dd":"yyyy-MM-dd HH:mm:ss")):(kh[iAe.startTime]=null,kh[iAe.endTime]=null),delete kh[iAe.prop]):iAe.type==="Year"&&(kh[iAe.prop]=formatDate(kh[iAe.prop],"yyyy"))}),kh};let slotsArr=[];function getAllSlots(Ff){return slotsArr=[],getSlots(Ff),slotsArr}function getSlots(Ff){[...Ff.elementGroup||[],...Ff.children||[]].forEach(kh=>{kh.slot&&slotsArr.push(kh),(kh.elementGroup||kh.children)&&getSlots(kh)})}let componentsArr=[];function getComp(Ff){return Ff.forEach(kh=>{kh.children&&getComp(kh.children),(kh.type||kh.key)&&componentsArr.push(kh)}),componentsArr}const store=createStore({state:{_CONFIG_DATA:{},_BASE_URL:"https://gateway-c4.doublefs.com",_ENV:{},loading:!1,locale:zhCn,uploadDownloadDialogVisible:!1},getters:{_GET_CONFIG_DATA(Ff){return function(kh){return componentsArr=[],getComp(Ff._CONFIG_DATA[kh].components||[])}},_GET_DIALOGREF(Ff){return function(kh){return Ff._CONFIG_DATA[kh].dialogRef}}},mutations:{setLoading(Ff,kh=!1){Ff.loading=kh},saveUrl(Ff,kh){Ff._BASE_URL=kh},saveLocale(Ff,kh){kh==="en"?(Ff.locale=en$1,localStorage.setItem("my_locale_comp","en-US")):kh==="zh"?(Ff.locale=zhCn,localStorage.setItem("my_locale_comp","zh-CN")):kh==="vi"&&(Ff.locale=vi$1,localStorage.setItem("my_locale_comp","vi-VN"))},saveEnv(Ff,kh){Ff._ENV=kh||{}},savaPageConfigData(Ff,kh){Ff._CONFIG_DATA[kh.pageKey]={components:kh.components,cellComponents:{},dialogRef:kh.dialogRef}},updateRowData(Ff,kh){kh.tableComp.data=kh.tableComp.data||{},Array.isArray(kh.res.result)?(kh.tableComp.data.result=kh.res.result,kh.tableComp.data.totalNum=kh.res.totalNum):(kh.tableComp.data.result=[],kh.tableComp.data.totalNum=0),kh.tableComp.selectedRows=[]},setUploadDownloadDialogVisible(Ff,kh=!1){Ff.uploadDownloadDialogVisible=kh}},actions:{_INIT_PAGE(Ff,kh){Ff.commit("savaPageConfigData",kh),initData(Ff,kh.components,kh.pageKey)},_QUERY_LIST(Ff,{pageKey:kh,target:tAe,row:iAe,partialUpdate:uAe}){const pAe=getTargetComp(Ff,kh,tAe);pAe.pageInfo.pageNum=1,pAe.pageInfo.currentPage=1,pAe.resetPagination=Math.random(),uAe?setTimeout(()=>{Ff.dispatch("_TABLE_QUERY",{tableComp:pAe,pageKey:kh,row:iAe,partialUpdate:uAe})},1e3):Ff.dispatch("_TABLE_QUERY",{tableComp:pAe,pageKey:kh,row:iAe,partialUpdate:uAe})},_TABLE_QUERY(Ff,{tableComp:kh,pageKey:tAe,row:iAe,partialUpdate:uAe}){var EAe,_Ae,xAe;let pAe={},hAe={};if(kh.dependencies&&(hAe=getTargetComp(Ff,tAe,kh.dependencies),pAe=getFormData(hAe)),kh.previousFormData={...kh.formData},kh.formData=pAe,((EAe=kh.configFlag)==null?void 0:EAe.pagination)!==!1&&(kh.formData={...kh.formData,...kh.pageInfo}),uAe){const DAe=kh.selectedRows.map(PAe=>PAe[uAe.searchKey]);kh.formData[uAe.searchKey]=DAe.toString()}if(kh.searchBefore&&kh.searchBefore(kh,iAe)===!1)return;const gAe=getOwnSearchData(kh,hAe),AAe={...kh.formData,...gAe},CAe=((_Ae=kh.method)==null?void 0:_Ae.toUpperCase())||"POST";let wAe=CAe=="GET"?"params":"data";!((xAe=kh.configFlag)!=null&&xAe.noShowLoading)&&Ff.commit("setLoading",!0),service({url:Ff.state._BASE_URL+kh.url,[wAe]:AAe,method:CAe}).then(DAe=>{var OAe;const PAe=filterRes(DAe,kh);kh.searchAfter&&kh.searchAfter(PAe,DAe,kh)===!1||(uAe?(OAe=kh.selectedNodes)==null||OAe.forEach(TAe=>{for(let BAe=0;BAe<PAe.result.length;BAe++){const FAe=PAe.result[BAe];TAe.data[uAe.dataKey]==FAe[uAe.dataKey]&&TAe.setData(FAe)}}):kh.customUpdateData?kh.customUpdateData(PAe,DAe,kh):Ff.commit("updateRowData",{tableComp:kh,res:PAe}))}).finally(()=>{Ff.commit("setLoading",!1)})},_UPDATE_COMPONENT(Ff,{pageKey:kh,compKey:tAe}){const iAe=getTargetComp(Ff,kh,tAe);iAe.updateKey=new Date().getTime()}}});function initData(Ff,kh,tAe){kh.forEach(iAe=>{if(iAe.children&&initData(Ff,iAe.children),iAe.type=="Form"){let uAe={};Object.defineProperty(iAe,"formData",{enumerable:!0,configurable:!0,get(){return uAe},set(pAe){uAe=pAe,console.error("[警告] 不建议直接替换formData对象,建议使用修改属性值的方式进行更新"),console.error("不推荐: formData = { ... }"),console.error("推荐: formData.propertyName = value")}}),iAe.elementGroup&&iAe.elementGroup.length?iAe.elementGroup.forEach(pAe=>{if(pAe.prop){const hAe=Object.prototype.toString.call(pAe.value);uAe[pAe.prop]=hAe==="[object Object]"||hAe==="[object Array]"?JSON.parse(JSON.stringify(pAe.value)):pAe.value??null}}):iAe.elementGroup=[]}iAe.type=="AgTable"&&(iAe.pageInfo||(iAe.pageInfo={pageNum:1,currentPage:1,pageSize:50}))})}function getOwnSearchData(Ff,kh){let tAe={};return Ff.params&&Object.keys(Ff.params).forEach(iAe=>{typeof Ff.params[iAe]=="function"?tAe[iAe]=Ff.params[iAe](kh):tAe[iAe]=Ff.params[iAe]}),Ff.exportDataSearchParams=tAe,tAe}function filterRes(Ff,kh){var iAe,uAe;if(!Ff)return{result:[],totalNum:0};let tAe={};return tAe.result=getDataByProp(Ff,(iAe=kh.data)==null?void 0:iAe.resultKey,1),tAe.totalNum=getDataByProp(Ff,(uAe=kh.data)==null?void 0:uAe.totalKey,2),tAe}function getDataByProp(Ff,kh,tAe){if(!kh)return getDefaultData(Ff,tAe);let iAe=Ff;return kh.split(".").forEach(uAe=>{iAe=iAe[uAe]}),iAe||(iAe=getDefaultData(Ff,tAe)),iAe}function getDefaultData(Ff,kh){return kh==1?Ff.result||Ff.items||Ff||[]:Ff.totalNum||0}const padding=(Ff,kh)=>(new Array(kh).join("0")+Ff).slice(-kh),formatDate=(Ff,kh)=>{if(!Ff)return"";const tAe=typeof Ff=="string"?new Date(Ff):Ff;return kh=kh||"yyyy-MM-dd HH:mm:ss",kh.replace(/yyyy|MM|dd|yy|M|d|HH|mm|ss|H|m|s|w|W/gi,function(iAe){let uAe="";switch(iAe){case"yyyy":case"yy":uAe=tAe.getFullYear();break;case"MM":tAe.getMonth()+1<10?uAe="0"+(tAe.getMonth()+1):uAe=tAe.getMonth()+1;break;case"M":uAe=tAe.getMonth()+1;break;case"dd":tAe.getDate()<10?uAe="0"+tAe.getDate():uAe=tAe.getDate();break;case"d":uAe=tAe.getDate();break;case"HH":tAe.getHours()<10?uAe="0"+tAe.getHours():uAe=tAe.getHours();break;case"H":uAe=tAe.getHours();break;case"mm":tAe.getMinutes()<10?uAe="0"+tAe.getMinutes():uAe=tAe.getMinutes();break;case"m":uAe=tAe.getMinutes();break;case"ss":tAe.getSeconds()<10?uAe="0"+tAe.getSeconds():uAe=tAe.getSeconds();break;case"s":uAe=tAe.getSeconds(),uAe=="0"&&(uAe="00");break;case"W":uAe=["一","二","三","四","五","六","日"][tAe.getDay()];break;case"w":uAe=tAe.getDay();break}return uAe&&iAe.length!=String(uAe).length&&(uAe=padding(uAe,iAe.length)),uAe})},handleProxy=Ff=>{var tAe;let kh=Ff;return store.state._ENV.VITE_PROXY_FLAG=="true"&&((tAe=store.state._ENV.VITE_PROXY_SERVICE)==null||tAe.split(",").forEach(iAe=>{var uAe;(uAe=Ff.split(".com/")[1])!=null&&uAe.startsWith(iAe.trim().slice(1))&&(kh=Ff.replace(/^http.*\.com/,location.origin))})),kh},downLoadData=Ff=>{const{url:kh,fileName:tAe,params:iAe,store:uAe}=Ff;uAe.commit("setLoading",!0),axios.defaults.withCredentials=!0,axios.defaults.timeout=6e4,axios.defaults.responseType="blob",axios.defaults.headers=getRequestHeaders(kh);let pAe=(Ff.method||"post").toLowerCase();return axios[pAe](handleProxy(kh),iAe).then(function(hAe){var wAe;const gAe=(wAe=hAe.headers["content-disposition"])==null?void 0:wAe.split("filename=")[1],AAe=URL.createObjectURL(hAe.data);var CAe=document.createElement("a");CAe.style.display="none",CAe.href=AAe,CAe.download=gAe?decodeURIComponent(gAe):tAe||"",document.body.appendChild(CAe),CAe.click(),document.body.removeChild(CAe),uAe.commit("setLoading",!1)}).catch(function(hAe){console.log(hAe)})},sum=(Ff,kh)=>{let tAe,iAe,uAe;try{tAe=Ff.toString().split(".")[1].length}catch{tAe=0}try{iAe=kh.toString().split(".")[1].length}catch{iAe=0}return uAe=Math.pow(10,Math.max(tAe,iAe)),(mul(Ff,uAe)+mul(kh,uAe))/uAe},mul=(Ff,kh)=>{let tAe=0,iAe=Ff.toString(),uAe=kh.toString();try{tAe+=iAe.split(".")[1].length}catch{}try{tAe+=uAe.split(".")[1].length}catch{}return Number(iAe.replace(".",""))*Number(uAe.replace(".",""))/Math.pow(10,tAe)},handleEnter=Ff=>{document.onkeydown=kh=>{(kh.keyCode==13||kh.which==13)&&Ff(kh)}},systemSource=location.host.indexOf("odm")>-1||location.host.indexOf("suliangtong")>-1?"SLT":"WEB",header={"system-source":systemSource,currency:"USD",lang:"","app-id":"0","x-time-zone":localStorage.getItem("my_timeZone")||"UTC+8"},regex=/https?:\/\/[^\/]+\/([^?]+)/,setRequestSign=(Ff,kh)=>{const tAe=location.origin,iAe=location.href,uAe=new Date().getTime().toString(),pAe=(kh.match(regex)||[])[1],hAe=CryptoJS.SHA256(tAe+"|"+iAe+"|"+uAe+"|"+pAe);Ff["request-sign"]=hAe.toString(CryptoJS.enc.Hex),Ff["request-time"]=uAe,Ff["referer-url"]=location.href},getRequestHeaders=Ff=>{const kh=localStorage.getItem("my_locale_comp");header.lang||(header.lang=kh||navigator.language);const tAe={...header};return setRequestSign(tAe,Ff),tAe},elForm="",elIcon="",_hoisted_1$t={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_hoisted_2$k=vue$1.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1),_hoisted_3$g=[_hoisted_2$k];function render$6(Ff,kh){return vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_1$t,_hoisted_3$g)}const __unplugin_components_20={name:"ep-arrow-down",render:render$6},_hoisted_1$s={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_hoisted_2$j=vue$1.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32l-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872l319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),_hoisted_3$f=[_hoisted_2$j];function render$5(Ff,kh){return vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_1$s,_hoisted_3$f)}const __unplugin_components_19={name:"ep-arrow-up",render:render$5},elFormItem="",elImage="",elImageViewer="",elUpload="",elProgress="";/**!
|
|
74
|
+
*/var storeKey="store";function useStore(Ff){return Ff===void 0&&(Ff=null),vue$1.inject(Ff!==null?Ff:storeKey)}function forEachValue(Ff,kh){Object.keys(Ff).forEach(function(tAe){return kh(Ff[tAe],tAe)})}function isObject(Ff){return Ff!==null&&typeof Ff=="object"}function isPromise(Ff){return Ff&&typeof Ff.then=="function"}function assert(Ff,kh){if(!Ff)throw new Error("[vuex] "+kh)}function partial(Ff,kh){return function(){return Ff(kh)}}function genericSubscribe(Ff,kh,tAe){return kh.indexOf(Ff)<0&&(tAe&&tAe.prepend?kh.unshift(Ff):kh.push(Ff)),function(){var iAe=kh.indexOf(Ff);iAe>-1&&kh.splice(iAe,1)}}function resetStore(Ff,kh){Ff._actions=Object.create(null),Ff._mutations=Object.create(null),Ff._wrappedGetters=Object.create(null),Ff._modulesNamespaceMap=Object.create(null);var tAe=Ff.state;installModule(Ff,tAe,[],Ff._modules.root,!0),resetStoreState(Ff,tAe,kh)}function resetStoreState(Ff,kh,tAe){var iAe=Ff._state,uAe=Ff._scope;Ff.getters={},Ff._makeLocalGettersCache=Object.create(null);var pAe=Ff._wrappedGetters,hAe={},gAe={},AAe=vue$1.effectScope(!0);AAe.run(function(){forEachValue(pAe,function(CAe,wAe){hAe[wAe]=partial(CAe,Ff),gAe[wAe]=vue$1.computed(function(){return hAe[wAe]()}),Object.defineProperty(Ff.getters,wAe,{get:function(){return gAe[wAe].value},enumerable:!0})})}),Ff._state=vue$1.reactive({data:kh}),Ff._scope=AAe,Ff.strict&&enableStrictMode(Ff),iAe&&tAe&&Ff._withCommit(function(){iAe.data=null}),uAe&&uAe.stop()}function installModule(Ff,kh,tAe,iAe,uAe){var pAe=!tAe.length,hAe=Ff._modules.getNamespace(tAe);if(iAe.namespaced&&(Ff._modulesNamespaceMap[hAe]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+hAe+" for the namespaced module "+tAe.join("/")),Ff._modulesNamespaceMap[hAe]=iAe),!pAe&&!uAe){var gAe=getNestedState(kh,tAe.slice(0,-1)),AAe=tAe[tAe.length-1];Ff._withCommit(function(){process.env.NODE_ENV!=="production"&&AAe in gAe&&console.warn('[vuex] state field "'+AAe+'" was overridden by a module with the same name at "'+tAe.join(".")+'"'),gAe[AAe]=iAe.state})}var CAe=iAe.context=makeLocalContext(Ff,hAe,tAe);iAe.forEachMutation(function(wAe,EAe){var _Ae=hAe+EAe;registerMutation(Ff,_Ae,wAe,CAe)}),iAe.forEachAction(function(wAe,EAe){var _Ae=wAe.root?EAe:hAe+EAe,xAe=wAe.handler||wAe;registerAction(Ff,_Ae,xAe,CAe)}),iAe.forEachGetter(function(wAe,EAe){var _Ae=hAe+EAe;registerGetter(Ff,_Ae,wAe,CAe)}),iAe.forEachChild(function(wAe,EAe){installModule(Ff,kh,tAe.concat(EAe),wAe,uAe)})}function makeLocalContext(Ff,kh,tAe){var iAe=kh==="",uAe={dispatch:iAe?Ff.dispatch:function(pAe,hAe,gAe){var AAe=unifyObjectStyle(pAe,hAe,gAe),CAe=AAe.payload,wAe=AAe.options,EAe=AAe.type;if((!wAe||!wAe.root)&&(EAe=kh+EAe,process.env.NODE_ENV!=="production"&&!Ff._actions[EAe])){console.error("[vuex] unknown local action type: "+AAe.type+", global type: "+EAe);return}return Ff.dispatch(EAe,CAe)},commit:iAe?Ff.commit:function(pAe,hAe,gAe){var AAe=unifyObjectStyle(pAe,hAe,gAe),CAe=AAe.payload,wAe=AAe.options,EAe=AAe.type;if((!wAe||!wAe.root)&&(EAe=kh+EAe,process.env.NODE_ENV!=="production"&&!Ff._mutations[EAe])){console.error("[vuex] unknown local mutation type: "+AAe.type+", global type: "+EAe);return}Ff.commit(EAe,CAe,wAe)}};return Object.defineProperties(uAe,{getters:{get:iAe?function(){return Ff.getters}:function(){return makeLocalGetters(Ff,kh)}},state:{get:function(){return getNestedState(Ff.state,tAe)}}}),uAe}function makeLocalGetters(Ff,kh){if(!Ff._makeLocalGettersCache[kh]){var tAe={},iAe=kh.length;Object.keys(Ff.getters).forEach(function(uAe){if(uAe.slice(0,iAe)===kh){var pAe=uAe.slice(iAe);Object.defineProperty(tAe,pAe,{get:function(){return Ff.getters[uAe]},enumerable:!0})}}),Ff._makeLocalGettersCache[kh]=tAe}return Ff._makeLocalGettersCache[kh]}function registerMutation(Ff,kh,tAe,iAe){var uAe=Ff._mutations[kh]||(Ff._mutations[kh]=[]);uAe.push(function(hAe){tAe.call(Ff,iAe.state,hAe)})}function registerAction(Ff,kh,tAe,iAe){var uAe=Ff._actions[kh]||(Ff._actions[kh]=[]);uAe.push(function(hAe){var gAe=tAe.call(Ff,{dispatch:iAe.dispatch,commit:iAe.commit,getters:iAe.getters,state:iAe.state,rootGetters:Ff.getters,rootState:Ff.state},hAe);return isPromise(gAe)||(gAe=Promise.resolve(gAe)),Ff._devtoolHook?gAe.catch(function(AAe){throw Ff._devtoolHook.emit("vuex:error",AAe),AAe}):gAe})}function registerGetter(Ff,kh,tAe,iAe){if(Ff._wrappedGetters[kh]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+kh);return}Ff._wrappedGetters[kh]=function(pAe){return tAe(iAe.state,iAe.getters,pAe.state,pAe.getters)}}function enableStrictMode(Ff){vue$1.watch(function(){return Ff._state.data},function(){process.env.NODE_ENV!=="production"&&assert(Ff._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function getNestedState(Ff,kh){return kh.reduce(function(tAe,iAe){return tAe[iAe]},Ff)}function unifyObjectStyle(Ff,kh,tAe){return isObject(Ff)&&Ff.type&&(tAe=kh,kh=Ff,Ff=Ff.type),process.env.NODE_ENV!=="production"&&assert(typeof Ff=="string","expects string as the type, but found "+typeof Ff+"."),{type:Ff,payload:kh,options:tAe}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools(Ff,kh){setupDevtoolsPlugin({id:"org.vuejs.vuex",app:Ff,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[LABEL_VUEX_BINDINGS]},function(tAe){tAe.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),tAe.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),tAe.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),tAe.on.getInspectorTree(function(iAe){if(iAe.app===Ff&&iAe.inspectorId===INSPECTOR_ID)if(iAe.filter){var uAe=[];flattenStoreForInspectorTree(uAe,kh._modules.root,iAe.filter,""),iAe.rootNodes=uAe}else iAe.rootNodes=[formatStoreForInspectorTree(kh._modules.root,"")]}),tAe.on.getInspectorState(function(iAe){if(iAe.app===Ff&&iAe.inspectorId===INSPECTOR_ID){var uAe=iAe.nodeId;makeLocalGetters(kh,uAe),iAe.state=formatStoreForInspectorState(getStoreModule(kh._modules,uAe),uAe==="root"?kh.getters:kh._makeLocalGettersCache,uAe)}}),tAe.on.editInspectorState(function(iAe){if(iAe.app===Ff&&iAe.inspectorId===INSPECTOR_ID){var uAe=iAe.nodeId,pAe=iAe.path;uAe!=="root"&&(pAe=uAe.split("/").filter(Boolean).concat(pAe)),kh._withCommit(function(){iAe.set(kh._state.data,pAe,iAe.state.value)})}}),kh.subscribe(function(iAe,uAe){var pAe={};iAe.payload&&(pAe.payload=iAe.payload),pAe.state=uAe,tAe.notifyComponentUpdate(),tAe.sendInspectorTree(INSPECTOR_ID),tAe.sendInspectorState(INSPECTOR_ID),tAe.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:iAe.type,data:pAe}})}),kh.subscribeAction({before:function(iAe,uAe){var pAe={};iAe.payload&&(pAe.payload=iAe.payload),iAe._id=actionId++,iAe._time=Date.now(),pAe.state=uAe,tAe.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:iAe._time,title:iAe.type,groupId:iAe._id,subtitle:"start",data:pAe}})},after:function(iAe,uAe){var pAe={},hAe=Date.now()-iAe._time;pAe.duration={_custom:{type:"duration",display:hAe+"ms",tooltip:"Action duration",value:hAe}},iAe.payload&&(pAe.payload=iAe.payload),pAe.state=uAe,tAe.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:iAe.type,groupId:iAe._id,subtitle:"end",data:pAe}})}})})}var COLOR_LIME_500=8702998,COLOR_DARK=6710886,COLOR_WHITE=16777215,TAG_NAMESPACED={label:"namespaced",textColor:COLOR_WHITE,backgroundColor:COLOR_DARK};function extractNameFromPath(Ff){return Ff&&Ff!=="root"?Ff.split("/").slice(-2,-1)[0]:"Root"}function formatStoreForInspectorTree(Ff,kh){return{id:kh||"root",label:extractNameFromPath(kh),tags:Ff.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(Ff._children).map(function(tAe){return formatStoreForInspectorTree(Ff._children[tAe],kh+tAe+"/")})}}function flattenStoreForInspectorTree(Ff,kh,tAe,iAe){iAe.includes(tAe)&&Ff.push({id:iAe||"root",label:iAe.endsWith("/")?iAe.slice(0,iAe.length-1):iAe||"Root",tags:kh.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(kh._children).forEach(function(uAe){flattenStoreForInspectorTree(Ff,kh._children[uAe],tAe,iAe+uAe+"/")})}function formatStoreForInspectorState(Ff,kh,tAe){kh=tAe==="root"?kh:kh[tAe];var iAe=Object.keys(kh),uAe={state:Object.keys(Ff.state).map(function(hAe){return{key:hAe,editable:!0,value:Ff.state[hAe]}})};if(iAe.length){var pAe=transformPathsToObjectTree(kh);uAe.getters=Object.keys(pAe).map(function(hAe){return{key:hAe.endsWith("/")?extractNameFromPath(hAe):hAe,editable:!1,value:canThrow(function(){return pAe[hAe]})}})}return uAe}function transformPathsToObjectTree(Ff){var kh={};return Object.keys(Ff).forEach(function(tAe){var iAe=tAe.split("/");if(iAe.length>1){var uAe=kh,pAe=iAe.pop();iAe.forEach(function(hAe){uAe[hAe]||(uAe[hAe]={_custom:{value:{},display:hAe,tooltip:"Module",abstract:!0}}),uAe=uAe[hAe]._custom.value}),uAe[pAe]=canThrow(function(){return Ff[tAe]})}else kh[tAe]=canThrow(function(){return Ff[tAe]})}),kh}function getStoreModule(Ff,kh){var tAe=kh.split("/").filter(function(iAe){return iAe});return tAe.reduce(function(iAe,uAe,pAe){var hAe=iAe[uAe];if(!hAe)throw new Error('Missing module "'+uAe+'" for path "'+kh+'".');return pAe===tAe.length-1?hAe:hAe._children},kh==="root"?Ff:Ff.root._children)}function canThrow(Ff){try{return Ff()}catch(kh){return kh}}var Module=function Ff(kh,tAe){this.runtime=tAe,this._children=Object.create(null),this._rawModule=kh;var iAe=kh.state;this.state=(typeof iAe=="function"?iAe():iAe)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function Ff(kh,tAe){this._children[kh]=tAe},Module.prototype.removeChild=function Ff(kh){delete this._children[kh]},Module.prototype.getChild=function Ff(kh){return this._children[kh]},Module.prototype.hasChild=function Ff(kh){return kh in this._children},Module.prototype.update=function Ff(kh){this._rawModule.namespaced=kh.namespaced,kh.actions&&(this._rawModule.actions=kh.actions),kh.mutations&&(this._rawModule.mutations=kh.mutations),kh.getters&&(this._rawModule.getters=kh.getters)},Module.prototype.forEachChild=function Ff(kh){forEachValue(this._children,kh)},Module.prototype.forEachGetter=function Ff(kh){this._rawModule.getters&&forEachValue(this._rawModule.getters,kh)},Module.prototype.forEachAction=function Ff(kh){this._rawModule.actions&&forEachValue(this._rawModule.actions,kh)},Module.prototype.forEachMutation=function Ff(kh){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,kh)},Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function Ff(kh){this.register([],kh,!1)};ModuleCollection.prototype.get=function Ff(kh){return kh.reduce(function(tAe,iAe){return tAe.getChild(iAe)},this.root)},ModuleCollection.prototype.getNamespace=function Ff(kh){var tAe=this.root;return kh.reduce(function(iAe,uAe){return tAe=tAe.getChild(uAe),iAe+(tAe.namespaced?uAe+"/":"")},"")},ModuleCollection.prototype.update=function Ff(kh){update([],this.root,kh)},ModuleCollection.prototype.register=function Ff(kh,tAe,iAe){var uAe=this;iAe===void 0&&(iAe=!0),process.env.NODE_ENV!=="production"&&assertRawModule(kh,tAe);var pAe=new Module(tAe,iAe);if(kh.length===0)this.root=pAe;else{var hAe=this.get(kh.slice(0,-1));hAe.addChild(kh[kh.length-1],pAe)}tAe.modules&&forEachValue(tAe.modules,function(gAe,AAe){uAe.register(kh.concat(AAe),gAe,iAe)})},ModuleCollection.prototype.unregister=function Ff(kh){var tAe=this.get(kh.slice(0,-1)),iAe=kh[kh.length-1],uAe=tAe.getChild(iAe);if(!uAe){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+iAe+"', which is not registered");return}uAe.runtime&&tAe.removeChild(iAe)},ModuleCollection.prototype.isRegistered=function Ff(kh){var tAe=this.get(kh.slice(0,-1)),iAe=kh[kh.length-1];return tAe?tAe.hasChild(iAe):!1};function update(Ff,kh,tAe){if(process.env.NODE_ENV!=="production"&&assertRawModule(Ff,tAe),kh.update(tAe),tAe.modules)for(var iAe in tAe.modules){if(!kh.getChild(iAe)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+iAe+"' on hot reloading, manual reload is needed");return}update(Ff.concat(iAe),kh.getChild(iAe),tAe.modules[iAe])}}var functionAssert={assert:function(Ff){return typeof Ff=="function"},expected:"function"},objectAssert={assert:function(Ff){return typeof Ff=="function"||typeof Ff=="object"&&typeof Ff.handler=="function"},expected:'function or object with "handler" function'},assertTypes={getters:functionAssert,mutations:functionAssert,actions:objectAssert};function assertRawModule(Ff,kh){Object.keys(assertTypes).forEach(function(tAe){if(kh[tAe]){var iAe=assertTypes[tAe];forEachValue(kh[tAe],function(uAe,pAe){assert(iAe.assert(uAe),makeAssertionMessage(Ff,tAe,pAe,uAe,iAe.expected))})}})}function makeAssertionMessage(Ff,kh,tAe,iAe,uAe){var pAe=kh+" should be "+uAe+' but "'+kh+"."+tAe+'"';return Ff.length>0&&(pAe+=' in module "'+Ff.join(".")+'"'),pAe+=" is "+JSON.stringify(iAe)+".",pAe}function createStore(Ff){return new Store(Ff)}var Store=function Ff(kh){var tAe=this;kh===void 0&&(kh={}),process.env.NODE_ENV!=="production"&&(assert(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),assert(this instanceof Ff,"store must be called with the new operator."));var iAe=kh.plugins;iAe===void 0&&(iAe=[]);var uAe=kh.strict;uAe===void 0&&(uAe=!1);var pAe=kh.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(kh),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=pAe;var hAe=this,gAe=this,AAe=gAe.dispatch,CAe=gAe.commit;this.dispatch=function(_Ae,xAe){return AAe.call(hAe,_Ae,xAe)},this.commit=function(_Ae,xAe,DAe){return CAe.call(hAe,_Ae,xAe,DAe)},this.strict=uAe;var wAe=this._modules.root.state;installModule(this,wAe,[],this._modules.root),resetStoreState(this,wAe),iAe.forEach(function(EAe){return EAe(tAe)})},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function Ff(kh,tAe){kh.provide(tAe||storeKey,this),kh.config.globalProperties.$store=this;var iAe=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;iAe&&addDevtools(kh,this)},prototypeAccessors.state.get=function(){return this._state.data},prototypeAccessors.state.set=function(Ff){process.env.NODE_ENV!=="production"&&assert(!1,"use store.replaceState() to explicit replace store state.")},Store.prototype.commit=function Ff(kh,tAe,iAe){var uAe=this,pAe=unifyObjectStyle(kh,tAe,iAe),hAe=pAe.type,gAe=pAe.payload,AAe=pAe.options,CAe={type:hAe,payload:gAe},wAe=this._mutations[hAe];if(!wAe){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+hAe);return}this._withCommit(function(){wAe.forEach(function(_Ae){_Ae(gAe)})}),this._subscribers.slice().forEach(function(EAe){return EAe(CAe,uAe.state)}),process.env.NODE_ENV!=="production"&&AAe&&AAe.silent&&console.warn("[vuex] mutation type: "+hAe+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Store.prototype.dispatch=function Ff(kh,tAe){var iAe=this,uAe=unifyObjectStyle(kh,tAe),pAe=uAe.type,hAe=uAe.payload,gAe={type:pAe,payload:hAe},AAe=this._actions[pAe];if(!AAe){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+pAe);return}try{this._actionSubscribers.slice().filter(function(wAe){return wAe.before}).forEach(function(wAe){return wAe.before(gAe,iAe.state)})}catch(wAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(wAe))}var CAe=AAe.length>1?Promise.all(AAe.map(function(wAe){return wAe(hAe)})):AAe[0](hAe);return new Promise(function(wAe,EAe){CAe.then(function(_Ae){try{iAe._actionSubscribers.filter(function(xAe){return xAe.after}).forEach(function(xAe){return xAe.after(gAe,iAe.state)})}catch(xAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(xAe))}wAe(_Ae)},function(_Ae){try{iAe._actionSubscribers.filter(function(xAe){return xAe.error}).forEach(function(xAe){return xAe.error(gAe,iAe.state,_Ae)})}catch(xAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(xAe))}EAe(_Ae)})})},Store.prototype.subscribe=function Ff(kh,tAe){return genericSubscribe(kh,this._subscribers,tAe)},Store.prototype.subscribeAction=function Ff(kh,tAe){var iAe=typeof kh=="function"?{before:kh}:kh;return genericSubscribe(iAe,this._actionSubscribers,tAe)},Store.prototype.watch=function Ff(kh,tAe,iAe){var uAe=this;return process.env.NODE_ENV!=="production"&&assert(typeof kh=="function","store.watch only accepts a function."),vue$1.watch(function(){return kh(uAe.state,uAe.getters)},tAe,Object.assign({},iAe))},Store.prototype.replaceState=function Ff(kh){var tAe=this;this._withCommit(function(){tAe._state.data=kh})},Store.prototype.registerModule=function Ff(kh,tAe,iAe){iAe===void 0&&(iAe={}),typeof kh=="string"&&(kh=[kh]),process.env.NODE_ENV!=="production"&&(assert(Array.isArray(kh),"module path must be a string or an Array."),assert(kh.length>0,"cannot register the root module by using registerModule.")),this._modules.register(kh,tAe),installModule(this,this.state,kh,this._modules.get(kh),iAe.preserveState),resetStoreState(this,this.state)},Store.prototype.unregisterModule=function Ff(kh){var tAe=this;typeof kh=="string"&&(kh=[kh]),process.env.NODE_ENV!=="production"&&assert(Array.isArray(kh),"module path must be a string or an Array."),this._modules.unregister(kh),this._withCommit(function(){var iAe=getNestedState(tAe.state,kh.slice(0,-1));delete iAe[kh[kh.length-1]]}),resetStore(this)},Store.prototype.hasModule=function Ff(kh){return typeof kh=="string"&&(kh=[kh]),process.env.NODE_ENV!=="production"&&assert(Array.isArray(kh),"module path must be a string or an Array."),this._modules.isRegistered(kh)},Store.prototype.hotUpdate=function Ff(kh){this._modules.update(kh),resetStore(this,!0)},Store.prototype._withCommit=function Ff(kh){var tAe=this._committing;this._committing=!0,kh(),this._committing=tAe},Object.defineProperties(Store.prototype,prototypeAccessors);const elBadge="",elMessage="";function errorHandle(Ff,kh,tAe){var uAe,pAe,hAe,gAe,AAe;let iAe=((uAe=Ff==null?void 0:Ff.data)==null?void 0:uAe.message)||((pAe=Ff==null?void 0:Ff.data)==null?void 0:pAe.msg);ElMessage({type:"error",message:(((hAe=Ff==null?void 0:Ff.data)==null?void 0:hAe.status)||"")+" "+(iAe||((gAe=Ff.data)==null?void 0:gAe.statusText)||((AAe=Ff.data)==null?void 0:AAe.error)||""),duration:tAe||2e3,onClose:()=>{kh&&kh()}})}const headerObj={};if(location.host.indexOf("odm")>-1||location.host.indexOf("suliangtong")>-1){let Ff=localStorage.getItem("userInfo");if(Ff)try{Ff=JSON.parse(Ff),headerObj["x-user-slt-mobile"]=Ff.mobile,headerObj["x-user-slt-login-id"]=(p_e=Ff.supplierUserVo)==null?void 0:p_e.userLoginId,headerObj["x-user-slt-user-name"]=(wSe=Ff.supplierUserVo)!=null&&wSe.userName?encodeURIComponent((VIe=Ff.supplierUserVo)==null?void 0:VIe.userName):Ff.mobile}catch{}}const service=axios.create({timeout:1e3*30,withCredentials:!0,headers:headerObj});service.interceptors.request.use(Ff=>{Ff.url=handleProxy(Ff.url);const kh=getRequestHeaders(Ff.url);return Object.keys(kh).forEach(tAe=>{Ff.headers[tAe]=kh[tAe]}),Ff},Ff=>Promise.reject(Ff.data)),service.interceptors.response.use(Ff=>{if(Ff.data.code==1304||Ff.data.code===20007)window.location.href=Ff.data.data;else{if(Ff.data.code===401||Ff.data.code===10001)return errorHandle(Ff),window.location.href=window.location.origin,Promise.reject(Ff.data.message);if(Ff.data.code===204)return errorHandle(Ff.data.msg,()=>window.location.href="/"),Promise.reject(Ff);if(Object.prototype.toString.call(Ff.data)==="[object Blob]"){if(Ff.data.type==="application/json"){const kh=new FileReader;return kh.readAsText(Ff.data,"utf-8"),new Promise((tAe,iAe)=>{kh.onload=function(){try{const uAe=JSON.parse(kh.result);tAe(uAe)}catch(uAe){iAe(uAe)}}})}return Ff.data}else{if(Ff.data.code!==0)return errorHandle(Ff),Promise.reject(Ff.data);if(Object.prototype.toString.call(Ff.data.data).toLowerCase()=="[object object]")return Ff.data.data;if(typeof Ff.data.data=="string"&&Ff.data.data!=""){let kh={};try{kh=JSON.parse(Ff.data.data)}catch{kh=Ff.data.data}return kh}else return Ff.data.data}}},Ff=>{if(Object.prototype.toString.call(Ff.response.data)==="[object Blob]"){const kh=new FileReader;return kh.readAsText(Ff.response.data,"utf-8"),new Promise((tAe,iAe)=>{kh.onload=function(){try{if(Ff.response.data.type==="application/json"){const uAe=JSON.parse(kh.result);errorHandle({data:uAe}),iAe({data:uAe})}else if(Ff.response.data.type==="text/html"&&typeof kh.result=="string"){const uAe=kh.result.match(/<body[^>]*>([\s\S]*?)<\/body>/i);if(uAe&&uAe[1]){const pAe=uAe[1].replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim();errorHandle({data:{msg:pAe}}),iAe({data:{msg:pAe}})}}}catch(uAe){iAe(uAe)}}})}else return errorHandle(Ff.response),Promise.reject(Ff)});const initPage=(Ff,kh)=>{kh.dispatch("_INIT_PAGE",{pageKey:Ff.pageKey,components:Ff.components,dialogRef:Ff.dialogRef})},queryData=(Ff,kh,tAe)=>{Ff.dispatch("_QUERY_LIST",{pageKey:kh,target:tAe})};function getTargetComp({getters:Ff},kh,tAe){const iAe=Ff._GET_CONFIG_DATA;if(!iAe(kh))return{};const uAe=iAe(kh).find(pAe=>pAe.key===tAe);if(!uAe)throw new Error(`没有找到key为'${tAe}'的组件,请检查是否已定义`);return uAe}function getRelationComp(Ff,kh,tAe){const iAe={};return tAe&&tAe.length&&tAe.forEach(uAe=>{const pAe=getTargetComp(Ff,kh,uAe);iAe[uAe]=pAe}),iAe}let obj={};function getSelectOption(Ff,kh,tAe){var hAe;let iAe={};kh.relation&&(iAe=getRelationComp(Ff,tAe,kh.relation));const uAe=typeof kh.params=="function"?kh.params(iAe):kh.params,pAe=kh.url+(kh.dataKey?"-"+kh.dataKey:"")+(uAe?"-"+JSON.stringify(uAe):"");if(Ff.state[pAe]&&!kh.noCache)kh.options=Ff.state[pAe];else{if(obj[kh.url]&&!kh.params){obj[kh.url].push(kh);return}else kh.params||(obj[kh.url]=[kh]);const gAe=((hAe=kh.method)==null?void 0:hAe.toUpperCase())||"GET";let AAe=gAe=="GET"?"params":"data",CAe=kh.baseUrl||Ff.state._BASE_URL;kh.service==="c2"&&(CAe=CAe.replace("c1","c2")),service({url:CAe+kh.url,[AAe]:uAe||{},method:gAe}).then(wAe=>{const EAe=wAe[kh.dataKey]||wAe.items||wAe;Ff.state[pAe]=EAe;const _Ae=obj[kh.url];_Ae?(_Ae.forEach(xAe=>{xAe.options=wAe[xAe.dataKey]||EAe}),delete obj[kh.url]):kh.options=EAe})}}const getFormData=Ff=>{let kh={};const tAe=Ff.formData;return Ff.elementGroup.forEach(iAe=>{(iAe.isShow===void 0||typeof iAe.isShow=="function"&&iAe.isShow(tAe))&&iAe.prop&&(typeof tAe[iAe.prop]=="object"?kh[iAe.prop]=tAe[iAe.prop]:(kh[iAe.prop]=tAe[iAe.prop]+""=="0"?0:tAe[iAe.prop]||null,typeof kh[iAe.prop]=="string"&&(kh[iAe.prop]=kh[iAe.prop].trim()))),iAe.type==="Daterange"||iAe.type==="Datetimerange"?(kh[iAe.prop]?(kh[iAe.startTime]=formatDate(kh[iAe.prop][0],iAe.type==="Daterange"?"yyyy-MM-dd":"yyyy-MM-dd HH:mm:ss"),kh[iAe.endTime]=formatDate(kh[iAe.prop][1],iAe.type==="Daterange"?"yyyy-MM-dd":"yyyy-MM-dd HH:mm:ss")):(kh[iAe.startTime]=null,kh[iAe.endTime]=null),delete kh[iAe.prop]):iAe.type==="Year"&&(kh[iAe.prop]=formatDate(kh[iAe.prop],"yyyy"))}),kh};let slotsArr=[];function getAllSlots(Ff){return slotsArr=[],getSlots(Ff),slotsArr}function getSlots(Ff){[...Ff.elementGroup||[],...Ff.children||[]].forEach(kh=>{kh.slot&&slotsArr.push(kh),(kh.elementGroup||kh.children)&&getSlots(kh)})}let componentsArr=[];function getComp(Ff){return Ff.forEach(kh=>{kh.children&&getComp(kh.children),(kh.type||kh.key)&&componentsArr.push(kh)}),componentsArr}const store=createStore({state:{_CONFIG_DATA:{},_BASE_URL:"https://gateway-c4.doublefs.com",_ENV:{},loading:!1,locale:zhCn,uploadDownloadDialogVisible:!1},getters:{_GET_CONFIG_DATA(Ff){return function(kh){return componentsArr=[],getComp(Ff._CONFIG_DATA[kh].components||[])}},_GET_DIALOGREF(Ff){return function(kh){return Ff._CONFIG_DATA[kh].dialogRef}}},mutations:{setLoading(Ff,kh=!1){Ff.loading=kh},saveUrl(Ff,kh){Ff._BASE_URL=kh},saveLocale(Ff,kh){kh==="en"?(Ff.locale=en$1,localStorage.setItem("my_locale_comp","en-US")):kh==="zh"?(Ff.locale=zhCn,localStorage.setItem("my_locale_comp","zh-CN")):kh==="vi"&&(Ff.locale=vi$1,localStorage.setItem("my_locale_comp","vi-VN"))},saveEnv(Ff,kh){Ff._ENV=kh||{}},savaPageConfigData(Ff,kh){Ff._CONFIG_DATA[kh.pageKey]={components:kh.components,cellComponents:{},dialogRef:kh.dialogRef}},updateRowData(Ff,kh){kh.tableComp.data=kh.tableComp.data||{},Array.isArray(kh.res.result)?(kh.tableComp.data.result=kh.res.result,kh.tableComp.data.totalNum=kh.res.totalNum):(kh.tableComp.data.result=[],kh.tableComp.data.totalNum=0),kh.tableComp.selectedRows=[]},setUploadDownloadDialogVisible(Ff,kh=!1){Ff.uploadDownloadDialogVisible=kh}},actions:{_INIT_PAGE(Ff,kh){Ff.commit("savaPageConfigData",kh),initData(Ff,kh.components,kh.pageKey)},_QUERY_LIST(Ff,{pageKey:kh,target:tAe,row:iAe,partialUpdate:uAe}){const pAe=getTargetComp(Ff,kh,tAe);pAe.pageInfo.pageNum=1,pAe.pageInfo.currentPage=1,pAe.resetPagination=Math.random(),uAe?setTimeout(()=>{Ff.dispatch("_TABLE_QUERY",{tableComp:pAe,pageKey:kh,row:iAe,partialUpdate:uAe})},1e3):Ff.dispatch("_TABLE_QUERY",{tableComp:pAe,pageKey:kh,row:iAe,partialUpdate:uAe})},_TABLE_QUERY(Ff,{tableComp:kh,pageKey:tAe,row:iAe,partialUpdate:uAe}){var EAe,_Ae,xAe;let pAe={},hAe={};if(kh.dependencies&&(hAe=getTargetComp(Ff,tAe,kh.dependencies),pAe=getFormData(hAe)),kh.previousFormData={...kh.formData},kh.formData=pAe,((EAe=kh.configFlag)==null?void 0:EAe.pagination)!==!1&&(kh.formData={...kh.formData,...kh.pageInfo}),uAe){const DAe=kh.selectedRows.map(PAe=>PAe[uAe.searchKey]);kh.formData[uAe.searchKey]=DAe.toString()}if(kh.searchBefore&&kh.searchBefore(kh,iAe)===!1)return;const gAe=getOwnSearchData(kh,hAe),AAe={...kh.formData,...gAe},CAe=((_Ae=kh.method)==null?void 0:_Ae.toUpperCase())||"POST";let wAe=CAe=="GET"?"params":"data";!((xAe=kh.configFlag)!=null&&xAe.noShowLoading)&&Ff.commit("setLoading",!0),service({url:Ff.state._BASE_URL+kh.url,[wAe]:AAe,method:CAe}).then(DAe=>{var OAe;const PAe=filterRes(DAe,kh);kh.searchAfter&&kh.searchAfter(PAe,DAe,kh)===!1||(uAe?(OAe=kh.selectedNodes)==null||OAe.forEach(TAe=>{for(let BAe=0;BAe<PAe.result.length;BAe++){const FAe=PAe.result[BAe];TAe.data[uAe.dataKey]==FAe[uAe.dataKey]&&TAe.setData(FAe)}}):kh.customUpdateData?kh.customUpdateData(PAe,DAe,kh):Ff.commit("updateRowData",{tableComp:kh,res:PAe}))}).finally(()=>{Ff.commit("setLoading",!1)})},_UPDATE_COMPONENT(Ff,{pageKey:kh,compKey:tAe}){const iAe=getTargetComp(Ff,kh,tAe);iAe.updateKey=new Date().getTime()}}});function initData(Ff,kh,tAe){kh.forEach(iAe=>{if(iAe.children&&initData(Ff,iAe.children),iAe.type=="Form"){let uAe={};Object.defineProperty(iAe,"formData",{enumerable:!0,configurable:!0,get(){return uAe},set(pAe){uAe=pAe,console.error("[警告] 不建议直接替换formData对象,建议使用修改属性值的方式进行更新"),console.error("不推荐: formData = { ... }"),console.error("推荐: formData.propertyName = value")}}),iAe.elementGroup&&iAe.elementGroup.length?iAe.elementGroup.forEach(pAe=>{if(pAe.prop){const hAe=Object.prototype.toString.call(pAe.value);uAe[pAe.prop]=hAe==="[object Object]"||hAe==="[object Array]"?JSON.parse(JSON.stringify(pAe.value)):pAe.value??null}}):iAe.elementGroup=[]}iAe.type=="AgTable"&&(iAe.pageInfo||(iAe.pageInfo={pageNum:1,currentPage:1,pageSize:50}))})}function getOwnSearchData(Ff,kh){let tAe={};return Ff.params&&Object.keys(Ff.params).forEach(iAe=>{typeof Ff.params[iAe]=="function"?tAe[iAe]=Ff.params[iAe](kh):tAe[iAe]=Ff.params[iAe]}),Ff.exportDataSearchParams=tAe,tAe}function filterRes(Ff,kh){var iAe,uAe;if(!Ff)return{result:[],totalNum:0};let tAe={};return tAe.result=getDataByProp(Ff,(iAe=kh.data)==null?void 0:iAe.resultKey,1),tAe.totalNum=getDataByProp(Ff,(uAe=kh.data)==null?void 0:uAe.totalKey,2),tAe}function getDataByProp(Ff,kh,tAe){if(!kh)return getDefaultData(Ff,tAe);let iAe=Ff;return kh.split(".").forEach(uAe=>{iAe=iAe[uAe]}),iAe||(iAe=getDefaultData(Ff,tAe)),iAe}function getDefaultData(Ff,kh){return kh==1?Ff.result||Ff.items||Ff||[]:Ff.totalNum||0}const padding=(Ff,kh)=>(new Array(kh).join("0")+Ff).slice(-kh),formatDate=(Ff,kh)=>{if(!Ff)return"";const tAe=typeof Ff=="string"?new Date(Ff):Ff;return kh=kh||"yyyy-MM-dd HH:mm:ss",kh.replace(/yyyy|MM|dd|yy|M|d|HH|mm|ss|H|m|s|w|W/gi,function(iAe){let uAe="";switch(iAe){case"yyyy":case"yy":uAe=tAe.getFullYear();break;case"MM":tAe.getMonth()+1<10?uAe="0"+(tAe.getMonth()+1):uAe=tAe.getMonth()+1;break;case"M":uAe=tAe.getMonth()+1;break;case"dd":tAe.getDate()<10?uAe="0"+tAe.getDate():uAe=tAe.getDate();break;case"d":uAe=tAe.getDate();break;case"HH":tAe.getHours()<10?uAe="0"+tAe.getHours():uAe=tAe.getHours();break;case"H":uAe=tAe.getHours();break;case"mm":tAe.getMinutes()<10?uAe="0"+tAe.getMinutes():uAe=tAe.getMinutes();break;case"m":uAe=tAe.getMinutes();break;case"ss":tAe.getSeconds()<10?uAe="0"+tAe.getSeconds():uAe=tAe.getSeconds();break;case"s":uAe=tAe.getSeconds(),uAe=="0"&&(uAe="00");break;case"W":uAe=["一","二","三","四","五","六","日"][tAe.getDay()];break;case"w":uAe=tAe.getDay();break}return uAe&&iAe.length!=String(uAe).length&&(uAe=padding(uAe,iAe.length)),uAe})},handleProxy=Ff=>{var tAe;let kh=Ff;return store.state._ENV.VITE_PROXY_FLAG=="true"&&((tAe=store.state._ENV.VITE_PROXY_SERVICE)==null||tAe.split(",").forEach(iAe=>{var uAe;(uAe=Ff.split(".com/")[1])!=null&&uAe.startsWith(iAe.trim().slice(1))&&(kh=Ff.replace(/^http.*\.com/,location.origin))})),kh},downLoadData=Ff=>{const{url:kh,fileName:tAe,params:iAe,store:uAe}=Ff;uAe.commit("setLoading",!0),axios.defaults.withCredentials=!0,axios.defaults.timeout=6e4,axios.defaults.responseType="blob",axios.defaults.headers=getRequestHeaders(kh);let pAe=(Ff.method||"post").toLowerCase();return axios[pAe](handleProxy(kh),iAe).then(function(hAe){var wAe;const gAe=(wAe=hAe.headers["content-disposition"])==null?void 0:wAe.split("filename=")[1],AAe=URL.createObjectURL(hAe.data);var CAe=document.createElement("a");CAe.style.display="none",CAe.href=AAe,CAe.download=gAe?decodeURIComponent(gAe):tAe||"",document.body.appendChild(CAe),CAe.click(),document.body.removeChild(CAe),uAe.commit("setLoading",!1)}).catch(function(hAe){console.log(hAe)})},sum=(Ff,kh)=>{let tAe,iAe,uAe;try{tAe=Ff.toString().split(".")[1].length}catch{tAe=0}try{iAe=kh.toString().split(".")[1].length}catch{iAe=0}return uAe=Math.pow(10,Math.max(tAe,iAe)),(mul(Ff,uAe)+mul(kh,uAe))/uAe},mul=(Ff,kh)=>{let tAe=0,iAe=Ff.toString(),uAe=kh.toString();try{tAe+=iAe.split(".")[1].length}catch{}try{tAe+=uAe.split(".")[1].length}catch{}return Number(iAe.replace(".",""))*Number(uAe.replace(".",""))/Math.pow(10,tAe)},handleEnter=Ff=>{document.onkeydown=kh=>{(kh.keyCode==13||kh.which==13)&&Ff(kh)}},systemSource=location.host.indexOf("odm")>-1||location.host.indexOf("suliangtong")>-1?"SLT":"WEB",header={"system-source":systemSource,currency:"USD",lang:"","app-id":"0","x-time-zone":localStorage.getItem("my_timeZone")||"UTC+8"},regex=/https?:\/\/[^\/]+\/([^?]+)/,setRequestSign=(Ff,kh)=>{const tAe=location.origin,iAe=location.href,uAe=new Date().getTime().toString(),pAe=(kh.match(regex)||[])[1],hAe=CryptoJS.SHA256(tAe+"|"+iAe+"|"+uAe+"|"+pAe);Ff["request-sign"]=hAe.toString(CryptoJS.enc.Hex),Ff["request-time"]=uAe,Ff["referer-url"]=location.href},getRequestHeaders=Ff=>{const kh=localStorage.getItem("my_locale_comp");header.lang||(header.lang=kh||navigator.language);const tAe={...header};return setRequestSign(tAe,Ff),tAe},elForm="",elIcon="",_hoisted_1$t={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_hoisted_2$k=vue$1.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672L192.128 340.864a30.592 30.592 0 0 0-42.752 0a29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728a30.592 30.592 0 0 0-42.752 0z"},null,-1),_hoisted_3$g=[_hoisted_2$k];function render$6(Ff,kh){return vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_1$t,_hoisted_3$g)}const __unplugin_components_20={name:"ep-arrow-down",render:render$6},_hoisted_1$s={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_hoisted_2$j=vue$1.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32l-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872l319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),_hoisted_3$f=[_hoisted_2$j];function render$5(Ff,kh){return vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_1$s,_hoisted_3$f)}const __unplugin_components_19={name:"ep-arrow-up",render:render$5},elFormItem="",elImage="",elImageViewer="",elUpload="",elProgress="";/**!
|
|
75
75
|
* Sortable 1.15.0
|
|
76
76
|
* @author RubaXa <trash@rubaxa.org>
|
|
77
77
|
* @author owenm <owen23355@gmail.com>
|
|
@@ -2190,4 +2190,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2190
2190
|
@font-face {
|
|
2191
2191
|
font-family: 'CircularXX-Medium';
|
|
2192
2192
|
src: url(${CircularXXMedium});
|
|
2193
|
-
`,document.head.appendChild(VAe)}function $Ae(){localStorage.setItem("fabricHangTagPrintType",pAe.printType)}return{t:kh,fabricHangTagNewRef:iAe,printCountRef:uAe,...vue$1.toRefs(pAe),show:hAe,close:gAe,print:AAe,confirm,setOffset:PAe,setDirection:OAe,confirmDirection:TAe,showDialog:BAe,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,iAe,uAe,pAe){var TAe,BAe,FAe;const hAe=vue$1.resolveComponent("ZoomIn"),gAe=ElIcon,AAe=__unplugin_components_1,CAe=ElRadioButton,wAe=ElRadioGroup,EAe=ElButton,_Ae=ElInputNumber,xAe=ElFormItem,DAe=ElForm,PAe=ElDialog,OAe=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]=(...IAe)=>Ff.close&&Ff.close(...IAe))},[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(gAe,{onClick:kh[0]||(kh[0]=IAe=>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:(TAe=Ff.data.fabricSeries||Ff.data.name)==null?void 0:TAe.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:(BAe=Ff.data.fabricIntroduction)==null?void 0:BAe.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,IAe=>(vue$1.openBlock(),vue$1.createElementBlock("li",{key:IAe,style:{margin:"1pt 0",display:"flex","align-items":"center"}},[_hoisted_10,vue$1.createTextVNode(" "+vue$1.toDisplayString(IAe),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]=IAe=>Ff.printType=IAe),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(CAe,{label:"new"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("新版")),1)]),_:1}),vue$1.createVNode(CAe,{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(EAe,{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(PAe,{title:Ff.t("打印数量"),modelValue:Ff.dialogState,"onUpdate:modelValue":kh[6]||(kh[6]=IAe=>Ff.dialogState=IAe),width:"350px",center:"","close-on-click-modal":!1,onClose:Ff.closeDialog},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_17,[vue$1.createVNode(EAe,{onClick:kh[5]||(kh[5]=IAe=>Ff.dialogState=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(EAe,{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(DAe,{"label-width":"20px"},{default:vue$1.withCtx(()=>[vue$1.createVNode(xAe,{label:" ",style:{"margin-bottom":"0"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(_Ae,{ref:"printCountRef",modelValue:Ff.printCount,"onUpdate:modelValue":kh[4]||(kh[4]=IAe=>Ff.printCount=IAe),min:1,precision:0,controls:!1,placeholder:Ff.t("请输入打印数量"),style:{width:"100%"}},null,8,["modelValue","placeholder"])]),_:1}),vue$1.createVNode(xAe,{label:" "},{default:vue$1.withCtx(()=>[vue$1.createVNode(EAe,{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(EAe,{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(PAe,{title:Ff.t("设置标签方向"),modelValue:Ff.directionDialogVisible,"onUpdate:modelValue":kh[9]||(kh[9]=IAe=>Ff.directionDialogVisible=IAe),width:"350px",center:"","close-on-click-modal":!1},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_18,[vue$1.createVNode(EAe,{onClick:kh[8]||(kh[8]=IAe=>Ff.directionDialogVisible=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(EAe,{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]=IAe=>Ff.direction=IAe),style:{display:"flex","justify-content":"center",height:"74px"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(OAe,{label:"1"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("纵向")),1)]),_:1}),vue$1.createVNode(OAe,{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;const kh=vue$1.computed(()=>store.state.uploadDownloadDialogVisible);let tAe=null;const iAe=vue$1.reactive({pageKey:"UploadDownloadCenter",components:[{type:"AgTable",key:"table",url:"/export-service/common-task/page",method:"POST",columns:AAe(),data:{resultKey:"records",totalKey:"total"},customUpdateData:($Ae,HAe,VAe)=>{var UAe;(UAe=VAe.data.result)!=null&&UAe.length?VAe.gridApi.forEachNode(YAe=>{YAe.setData($Ae.result.find(qAe=>qAe.createdAt==YAe.data.createdAt))}):VAe.data.result=$Ae.result,VAe.data.totalNum=$Ae.totalNum},configFlag:{sizeColumnsToFit:!0,noShowLoading:!0}}]}),uAe=()=>{tAe=window.setInterval(hAe,5e3)},pAe=()=>{tAe&&clearInterval(tAe),tAe=null,store.commit("setUploadDownloadDialogVisible",!1),Ff=!1,iAe.components[0].data.result=[],iAe.components[0].data.totalNum=0};function hAe(){setTimeout(()=>{queryData(store,iAe.pageKey,"table")},1e3)}const gAe=()=>{Ff||(hAe(),uAe(),Ff=!0)};function AAe(){return[{field:"typeName",headerName:"类型",width:100},{field:"fileName",headerName:"文件名",width:200,cellRenderer:({data:$Ae})=>$Ae.fileUrl?`<a href="${$Ae.fileUrl}" target="_blank">${$Ae.fileName}</a>`:$Ae.fileName},{field:"taskStatusName",headerName:"状态",width:120,cellRenderer:({data:$Ae})=>`<span style="color: ${{0:"#909399",1:"#67C23A",2:"#409EFF",3:"#409EFF",4:"#67C23A",5:"#F56C6C","-1":"#F56C6C"}[$Ae.taskStatus]||"#909399"}">${$Ae.taskStatusName}</span>`},{field:"failReason",headerName:"备注",width:200,cellRenderer:({data:$Ae})=>$Ae.failFileUrl?`<a href="${$Ae.failFileUrl}" target="_blank">${$Ae.failReason}</a>`:$Ae.failReason},{field:"createdAt",headerName:"操作时间",width:180},{field:"createdUserName",headerName:"操作人",width:120}]}const CAe=vue$1.ref(null),wAe=vue$1.reactive({x:0,y:0});let EAe=!1,_Ae=0,xAe=0,DAe=0,PAe=0;const OAe=$Ae=>{CAe.value&&(EAe=!0,_Ae=$Ae.clientX,xAe=$Ae.clientY,DAe=wAe.x,PAe=wAe.y,document.addEventListener("mousemove",TAe),document.addEventListener("mouseup",BAe))},TAe=$Ae=>{if(!EAe||!CAe.value)return;const HAe=$Ae.clientX-_Ae,VAe=$Ae.clientY-xAe;let UAe=DAe+HAe,YAe=PAe+VAe;const qAe=CAe.value.offsetWidth,ome=CAe.value.offsetHeight;UAe=Math.max(0,Math.min(window.innerWidth-qAe,UAe)),YAe=Math.max(0,Math.min(window.innerHeight-ome,YAe)),wAe.x=UAe,wAe.y=YAe},BAe=()=>{if(!CAe.value)return;EAe=!1,document.removeEventListener("mousemove",TAe),document.removeEventListener("mouseup",BAe);const $Ae=CAe.value.offsetWidth,HAe=wAe.x,VAe=window.innerWidth-(wAe.x+$Ae);CAe.value.style.transition="all 0.2s ease-out",HAe<VAe?wAe.x=0:wAe.x=window.innerWidth-$Ae;const UAe=CAe.value.offsetHeight;wAe.y=Math.max(0,Math.min(window.innerHeight-UAe,wAe.y)),setTimeout(()=>{CAe.value&&(CAe.value.style.transition="")},300)},FAe=()=>{if(!CAe.value)return;const $Ae=CAe.value.offsetWidth,HAe=CAe.value.offsetHeight;wAe.x=window.innerWidth-$Ae,wAe.y=window.innerHeight-HAe-30};return vue$1.onMounted(()=>{window.addEventListener("resize",FAe),vue$1.nextTick(()=>{if(CAe.value){const $Ae=CAe.value.offsetWidth,HAe=CAe.value.offsetHeight;wAe.x=window.innerWidth-$Ae,wAe.y=window.innerHeight-HAe-30}})}),{pageConfigData:iAe,getData:hAe,dialogVisible:kh,handleOpenDialog:gAe,dragButton:CAe,buttonPosition:wAe,startDrag:OAe,handleMouseDown:$Ae=>{const HAe=new Date().getTime();OAe($Ae);const VAe=UAe=>{BAe();const YAe=new Date().getTime(),qAe=Math.sqrt(Math.pow(UAe.clientX-_Ae,2)+Math.pow(UAe.clientY-xAe,2));YAe-HAe<200&&qAe<5&&store.commit("setUploadDownloadDialogVisible",!0)};document.addEventListener("mouseup",VAe,{once:!0})},stopPolling:pAe}}}),UploadDownloadCenter_vue_vue_type_style_index_0_scoped_ab19e361_lang="",UploadDownloadCenter_vue_vue_type_style_index_1_lang="",_withScopeId=Ff=>(vue$1.pushScopeId("data-v-ab19e361"),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,iAe,uAe,pAe){const hAe=Page,gAe=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(gAe,{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-ab19e361"]]);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=iAe=>{console.error("性能数据上报失败",iAe),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=[],iAe=[],uAe=[];if(Ff.filter(hAe=>!hAe.isReport).forEach(hAe=>{hAe.isReport=!0;const gAe=hAe.name.toLowerCase();gAe.endsWith(".css")||hAe.initiatorType==="css"||hAe.initiatorType==="link"?hAe.duration>staticResourceMonitor&&tAe.push(hAe):gAe.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&&iAe.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`)})),iAe.length>0&&(console.log(`检测到${iAe.length}个API请求时间超过${apiRequestThreshold}ms:`),iAe.forEach(hAe=>{console.log(`- API: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),kh.length>0||tAe.length>0||iAe.length>0||uAe.length>0){const hAe={jsResources:kh.map(gAe=>({name:gAe.name,duration:gAe.duration,initiatorType:gAe.initiatorType})),cssResources:tAe.map(gAe=>({name:gAe.name,duration:gAe.duration,initiatorType:gAe.initiatorType})),apiResources:iAe.map(gAe=>({name:gAe.name,duration:gAe.duration,initiatorType:gAe.initiatorType})),imgResources:uAe.map(gAe=>({name:gAe.name,duration:gAe.duration,initiatorType:gAe.initiatorType}))};reportPerformanceData(hAe)}return{jsResources:kh,cssResources:tAe,apiResources:iAe,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 iAe,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=(iAe=kh.env)==null?void 0:iAe.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"}})});
|
|
2193
|
+
`,document.head.appendChild(VAe)}function $Ae(){localStorage.setItem("fabricHangTagPrintType",pAe.printType)}return{t:kh,fabricHangTagNewRef:iAe,printCountRef:uAe,...vue$1.toRefs(pAe),show:hAe,close:gAe,print:AAe,confirm,setOffset:PAe,setDirection:OAe,confirmDirection:TAe,showDialog:BAe,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,iAe,uAe,pAe){var TAe,BAe,FAe;const hAe=vue$1.resolveComponent("ZoomIn"),gAe=ElIcon,AAe=__unplugin_components_1,CAe=ElRadioButton,wAe=ElRadioGroup,EAe=ElButton,_Ae=ElInputNumber,xAe=ElFormItem,DAe=ElForm,PAe=ElDialog,OAe=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]=(...IAe)=>Ff.close&&Ff.close(...IAe))},[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(gAe,{onClick:kh[0]||(kh[0]=IAe=>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:(TAe=Ff.data.fabricSeries||Ff.data.name)==null?void 0:TAe.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:(BAe=Ff.data.fabricIntroduction)==null?void 0:BAe.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,IAe=>(vue$1.openBlock(),vue$1.createElementBlock("li",{key:IAe,style:{margin:"1pt 0",display:"flex","align-items":"center"}},[_hoisted_10,vue$1.createTextVNode(" "+vue$1.toDisplayString(IAe),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]=IAe=>Ff.printType=IAe),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(CAe,{label:"new"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("新版")),1)]),_:1}),vue$1.createVNode(CAe,{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(EAe,{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(PAe,{title:Ff.t("打印数量"),modelValue:Ff.dialogState,"onUpdate:modelValue":kh[6]||(kh[6]=IAe=>Ff.dialogState=IAe),width:"350px",center:"","close-on-click-modal":!1,onClose:Ff.closeDialog},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_17,[vue$1.createVNode(EAe,{onClick:kh[5]||(kh[5]=IAe=>Ff.dialogState=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(EAe,{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(DAe,{"label-width":"20px"},{default:vue$1.withCtx(()=>[vue$1.createVNode(xAe,{label:" ",style:{"margin-bottom":"0"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(_Ae,{ref:"printCountRef",modelValue:Ff.printCount,"onUpdate:modelValue":kh[4]||(kh[4]=IAe=>Ff.printCount=IAe),min:1,precision:0,controls:!1,placeholder:Ff.t("请输入打印数量"),style:{width:"100%"}},null,8,["modelValue","placeholder"])]),_:1}),vue$1.createVNode(xAe,{label:" "},{default:vue$1.withCtx(()=>[vue$1.createVNode(EAe,{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(EAe,{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(PAe,{title:Ff.t("设置标签方向"),modelValue:Ff.directionDialogVisible,"onUpdate:modelValue":kh[9]||(kh[9]=IAe=>Ff.directionDialogVisible=IAe),width:"350px",center:"","close-on-click-modal":!1},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_18,[vue$1.createVNode(EAe,{onClick:kh[8]||(kh[8]=IAe=>Ff.directionDialogVisible=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(EAe,{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]=IAe=>Ff.direction=IAe),style:{display:"flex","justify-content":"center",height:"74px"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(OAe,{label:"1"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("纵向")),1)]),_:1}),vue$1.createVNode(OAe,{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;const kh=vue$1.computed(()=>store.state.uploadDownloadDialogVisible);let tAe=null;const iAe=vue$1.reactive({pageKey:"UploadDownloadCenter",components:[{type:"AgTable",key:"table",url:"/export-service/common-task/page",method:"POST",columns:AAe(),data:{resultKey:"records",totalKey:"total"},customUpdateData:($Ae,HAe,VAe)=>{var UAe;(UAe=VAe.data.result)!=null&&UAe.length?VAe.gridApi.forEachNode(YAe=>{YAe.setData($Ae.result.find(qAe=>qAe.createdAt==YAe.data.createdAt))}):VAe.data.result=$Ae.result},configFlag:{sizeColumnsToFit:!0,noShowLoading:!0}}]}),uAe=()=>{tAe=window.setInterval(hAe,5e3)},pAe=()=>{tAe&&clearInterval(tAe),tAe=null,store.commit("setUploadDownloadDialogVisible",!1),Ff=!1,iAe.components[0].data.result=[],iAe.components[0].data.totalNum=0};function hAe(){setTimeout(()=>{queryData(store,iAe.pageKey,"table")},1e3)}const gAe=()=>{Ff||(hAe(),uAe(),Ff=!0)};function AAe(){return[{field:"typeName",headerName:"类型",width:100},{field:"fileName",headerName:"文件名",width:200,cellRenderer:({data:$Ae})=>$Ae.fileUrl?`<a href="${$Ae.fileUrl}" target="_blank">${$Ae.fileName}</a>`:$Ae.fileName},{field:"taskStatusName",headerName:"状态",width:120,cellRenderer:({data:$Ae})=>`<span style="color: ${{0:"#909399",1:"#67C23A",2:"#409EFF",3:"#409EFF",4:"#67C23A",5:"#F56C6C","-1":"#F56C6C"}[$Ae.taskStatus]||"#909399"}">${$Ae.taskStatusName}</span>`},{field:"failReason",headerName:"备注",width:200,cellRenderer:({data:$Ae})=>$Ae.failFileUrl?`<a href="${$Ae.failFileUrl}" target="_blank">${$Ae.failReason}</a>`:$Ae.failReason},{field:"createdAt",headerName:"操作时间",width:180},{field:"createdUserName",headerName:"操作人",width:120}]}const CAe=vue$1.ref(null),wAe=vue$1.reactive({x:0,y:0});let EAe=!1,_Ae=0,xAe=0,DAe=0,PAe=0;const OAe=$Ae=>{CAe.value&&(EAe=!0,_Ae=$Ae.clientX,xAe=$Ae.clientY,DAe=wAe.x,PAe=wAe.y,document.addEventListener("mousemove",TAe),document.addEventListener("mouseup",BAe))},TAe=$Ae=>{if(!EAe||!CAe.value)return;const HAe=$Ae.clientX-_Ae,VAe=$Ae.clientY-xAe;let UAe=DAe+HAe,YAe=PAe+VAe;const qAe=CAe.value.offsetWidth,ome=CAe.value.offsetHeight;UAe=Math.max(0,Math.min(window.innerWidth-qAe,UAe)),YAe=Math.max(0,Math.min(window.innerHeight-ome,YAe)),wAe.x=UAe,wAe.y=YAe},BAe=()=>{if(!CAe.value)return;EAe=!1,document.removeEventListener("mousemove",TAe),document.removeEventListener("mouseup",BAe);const $Ae=CAe.value.offsetWidth,HAe=wAe.x,VAe=window.innerWidth-(wAe.x+$Ae);CAe.value.style.transition="all 0.2s ease-out",HAe<VAe?wAe.x=0:wAe.x=window.innerWidth-$Ae;const UAe=CAe.value.offsetHeight;wAe.y=Math.max(0,Math.min(window.innerHeight-UAe,wAe.y)),setTimeout(()=>{CAe.value&&(CAe.value.style.transition="")},300)},FAe=()=>{if(!CAe.value)return;const $Ae=CAe.value.offsetWidth,HAe=CAe.value.offsetHeight;wAe.x=window.innerWidth-$Ae,wAe.y=window.innerHeight-HAe-30};return vue$1.onMounted(()=>{window.addEventListener("resize",FAe),vue$1.nextTick(()=>{if(CAe.value){const $Ae=CAe.value.offsetWidth,HAe=CAe.value.offsetHeight;wAe.x=window.innerWidth-$Ae,wAe.y=window.innerHeight-HAe-30}})}),{pageConfigData:iAe,getData:hAe,dialogVisible:kh,handleOpenDialog:gAe,dragButton:CAe,buttonPosition:wAe,startDrag:OAe,handleMouseDown:$Ae=>{const HAe=new Date().getTime();OAe($Ae);const VAe=UAe=>{BAe();const YAe=new Date().getTime(),qAe=Math.sqrt(Math.pow(UAe.clientX-_Ae,2)+Math.pow(UAe.clientY-xAe,2));YAe-HAe<200&&qAe<5&&store.commit("setUploadDownloadDialogVisible",!0)};document.addEventListener("mouseup",VAe,{once:!0})},stopPolling:pAe}}}),UploadDownloadCenter_vue_vue_type_style_index_0_scoped_6f1346b6_lang="",UploadDownloadCenter_vue_vue_type_style_index_1_lang="",_withScopeId=Ff=>(vue$1.pushScopeId("data-v-6f1346b6"),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,iAe,uAe,pAe){const hAe=Page,gAe=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(gAe,{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-6f1346b6"]]);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=iAe=>{console.error("性能数据上报失败",iAe),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=[],iAe=[],uAe=[];if(Ff.filter(hAe=>!hAe.isReport).forEach(hAe=>{hAe.isReport=!0;const gAe=hAe.name.toLowerCase();gAe.endsWith(".css")||hAe.initiatorType==="css"||hAe.initiatorType==="link"?hAe.duration>staticResourceMonitor&&tAe.push(hAe):gAe.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&&iAe.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`)})),iAe.length>0&&(console.log(`检测到${iAe.length}个API请求时间超过${apiRequestThreshold}ms:`),iAe.forEach(hAe=>{console.log(`- API: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),kh.length>0||tAe.length>0||iAe.length>0||uAe.length>0){const hAe={jsResources:kh.map(gAe=>({name:gAe.name,duration:gAe.duration,initiatorType:gAe.initiatorType})),cssResources:tAe.map(gAe=>({name:gAe.name,duration:gAe.duration,initiatorType:gAe.initiatorType})),apiResources:iAe.map(gAe=>({name:gAe.name,duration:gAe.duration,initiatorType:gAe.initiatorType})),imgResources:uAe.map(gAe=>({name:gAe.name,duration:gAe.duration,initiatorType:gAe.initiatorType}))};reportPerformanceData(hAe)}return{jsResources:kh,cssResources:tAe,apiResources:iAe,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 iAe,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=(iAe=kh.env)==null?void 0:iAe.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"}})});
|