dfs-page-config 0.7.14 → 0.7.16
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
|
@@ -31633,7 +31633,7 @@ const getFormData = (Ff) => {
|
|
|
31633
31633
|
let kh = {};
|
|
31634
31634
|
const tAe = Ff.formData;
|
|
31635
31635
|
return Ff.elementGroup.forEach((oAe) => {
|
|
31636
|
-
(oAe.isShow === void 0 || typeof oAe.isShow == "function" && oAe.isShow(tAe)) && oAe.prop && (typeof tAe[oAe.prop] == "object" ? kh[oAe.prop] = tAe[oAe.prop] : (kh[oAe.prop] = tAe[oAe.prop] + "" == "0" ? 0 : tAe[oAe.prop] || null, typeof kh[oAe.prop] == "string" && (kh[oAe.prop] = kh[oAe.prop].trim()))), oAe.type === "Daterange" || oAe.type === "Datetimerange" ? (kh[oAe.prop] ? (kh[oAe.startTime] = formatDate(
|
|
31636
|
+
(oAe.isShow === void 0 || typeof oAe.isShow == "function" && oAe.isShow(tAe)) && (oAe.prop || oAe.prop === !1) && (typeof tAe[oAe.prop] == "object" ? kh[oAe.prop] = tAe[oAe.prop] : (kh[oAe.prop] = tAe[oAe.prop] + "" == "0" ? 0 : tAe[oAe.prop] === !1 ? !1 : tAe[oAe.prop] || null, typeof kh[oAe.prop] == "string" && (kh[oAe.prop] = kh[oAe.prop].trim()))), oAe.type === "Daterange" || oAe.type === "Datetimerange" ? (kh[oAe.prop] ? (kh[oAe.startTime] = formatDate(
|
|
31637
31637
|
kh[oAe.prop][0],
|
|
31638
31638
|
oAe.type === "Daterange" ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm:ss"
|
|
31639
31639
|
), kh[oAe.endTime] = formatDate(
|
|
@@ -31662,7 +31662,7 @@ const store = createStore({
|
|
|
31662
31662
|
state: {
|
|
31663
31663
|
// 页面配置数据
|
|
31664
31664
|
_CONFIG_DATA: {},
|
|
31665
|
-
_BASE_URL: "https://gateway-
|
|
31665
|
+
_BASE_URL: "https://gateway-tob-is.prod.doublefs.com",
|
|
31666
31666
|
_SYSTEM_SOURCE: "WEB",
|
|
31667
31667
|
_ENV: {},
|
|
31668
31668
|
loading: !1,
|
|
@@ -131695,7 +131695,7 @@ const analyzeResourceLoadTime = () => {
|
|
|
131695
131695
|
);
|
|
131696
131696
|
}, index = (Ff, kh) => {
|
|
131697
131697
|
var oAe, uAe;
|
|
131698
|
-
kh.env || console.error('缺少环境变量,请在main.ts中注册"DfsPageConfig"时配置env【app.use(DfsPageConfig, {..., env: {"VITE_NODE_ENV":"production","VITE_APP_API":"https://gateway-
|
|
131698
|
+
kh.env || console.error('缺少环境变量,请在main.ts中注册"DfsPageConfig"时配置env【app.use(DfsPageConfig, {..., env: {"VITE_NODE_ENV":"production","VITE_APP_API":"https://gateway-tob-is.prod.doublefs.com","BASE_URL":"/","MODE":"production","DEV":false,"PROD":true}})】'), ["getters", "_actions"].forEach((pAe) => {
|
|
131699
131699
|
Object.keys(store[pAe]).forEach((hAe) => {
|
|
131700
131700
|
kh.store[pAe][hAe] = store[pAe][hAe];
|
|
131701
131701
|
});
|
|
@@ -64,7 +64,7 @@ For more detail, please visit: ${uAe}
|
|
|
64
64
|
* vuex v4.1.0
|
|
65
65
|
* (c) 2022 Evan You
|
|
66
66
|
* @license MIT
|
|
67
|
-
*/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 oAe=kh.indexOf(Ff);oAe>-1&&kh.splice(oAe,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 oAe=Ff._state,uAe=Ff._scope;Ff.getters={},Ff._makeLocalGettersCache=Object.create(null);var pAe=Ff._wrappedGetters,hAe={},AAe={},gAe=vue$1.effectScope(!0);gAe.run(function(){forEachValue(pAe,function(mAe,wAe){hAe[wAe]=partial(mAe,Ff),AAe[wAe]=vue$1.computed(function(){return hAe[wAe]()}),Object.defineProperty(Ff.getters,wAe,{get:function(){return AAe[wAe].value},enumerable:!0})})}),Ff._state=vue$1.reactive({data:kh}),Ff._scope=gAe,Ff.strict&&enableStrictMode(Ff),oAe&&tAe&&Ff._withCommit(function(){oAe.data=null}),uAe&&uAe.stop()}function installModule(Ff,kh,tAe,oAe,uAe){var pAe=!tAe.length,hAe=Ff._modules.getNamespace(tAe);if(oAe.namespaced&&(Ff._modulesNamespaceMap[hAe]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+hAe+" for the namespaced module "+tAe.join("/")),Ff._modulesNamespaceMap[hAe]=oAe),!pAe&&!uAe){var AAe=getNestedState(kh,tAe.slice(0,-1)),gAe=tAe[tAe.length-1];Ff._withCommit(function(){process.env.NODE_ENV!=="production"&&gAe in AAe&&console.warn('[vuex] state field "'+gAe+'" was overridden by a module with the same name at "'+tAe.join(".")+'"'),AAe[gAe]=oAe.state})}var mAe=oAe.context=makeLocalContext(Ff,hAe,tAe);oAe.forEachMutation(function(wAe,bAe){var PAe=hAe+bAe;registerMutation(Ff,PAe,wAe,mAe)}),oAe.forEachAction(function(wAe,bAe){var PAe=wAe.root?bAe:hAe+bAe,SAe=wAe.handler||wAe;registerAction(Ff,PAe,SAe,mAe)}),oAe.forEachGetter(function(wAe,bAe){var PAe=hAe+bAe;registerGetter(Ff,PAe,wAe,mAe)}),oAe.forEachChild(function(wAe,bAe){installModule(Ff,kh,tAe.concat(bAe),wAe,uAe)})}function makeLocalContext(Ff,kh,tAe){var oAe=kh==="",uAe={dispatch:oAe?Ff.dispatch:function(pAe,hAe,AAe){var gAe=unifyObjectStyle(pAe,hAe,AAe),mAe=gAe.payload,wAe=gAe.options,bAe=gAe.type;if((!wAe||!wAe.root)&&(bAe=kh+bAe,process.env.NODE_ENV!=="production"&&!Ff._actions[bAe])){console.error("[vuex] unknown local action type: "+gAe.type+", global type: "+bAe);return}return Ff.dispatch(bAe,mAe)},commit:oAe?Ff.commit:function(pAe,hAe,AAe){var gAe=unifyObjectStyle(pAe,hAe,AAe),mAe=gAe.payload,wAe=gAe.options,bAe=gAe.type;if((!wAe||!wAe.root)&&(bAe=kh+bAe,process.env.NODE_ENV!=="production"&&!Ff._mutations[bAe])){console.error("[vuex] unknown local mutation type: "+gAe.type+", global type: "+bAe);return}Ff.commit(bAe,mAe,wAe)}};return Object.defineProperties(uAe,{getters:{get:oAe?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={},oAe=kh.length;Object.keys(Ff.getters).forEach(function(uAe){if(uAe.slice(0,oAe)===kh){var pAe=uAe.slice(oAe);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,oAe){var uAe=Ff._mutations[kh]||(Ff._mutations[kh]=[]);uAe.push(function(hAe){tAe.call(Ff,oAe.state,hAe)})}function registerAction(Ff,kh,tAe,oAe){var uAe=Ff._actions[kh]||(Ff._actions[kh]=[]);uAe.push(function(hAe){var AAe=tAe.call(Ff,{dispatch:oAe.dispatch,commit:oAe.commit,getters:oAe.getters,state:oAe.state,rootGetters:Ff.getters,rootState:Ff.state},hAe);return isPromise(AAe)||(AAe=Promise.resolve(AAe)),Ff._devtoolHook?AAe.catch(function(gAe){throw Ff._devtoolHook.emit("vuex:error",gAe),gAe}):AAe})}function registerGetter(Ff,kh,tAe,oAe){if(Ff._wrappedGetters[kh]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+kh);return}Ff._wrappedGetters[kh]=function(pAe){return tAe(oAe.state,oAe.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,oAe){return tAe[oAe]},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(oAe){if(oAe.app===Ff&&oAe.inspectorId===INSPECTOR_ID)if(oAe.filter){var uAe=[];flattenStoreForInspectorTree(uAe,kh._modules.root,oAe.filter,""),oAe.rootNodes=uAe}else oAe.rootNodes=[formatStoreForInspectorTree(kh._modules.root,"")]}),tAe.on.getInspectorState(function(oAe){if(oAe.app===Ff&&oAe.inspectorId===INSPECTOR_ID){var uAe=oAe.nodeId;makeLocalGetters(kh,uAe),oAe.state=formatStoreForInspectorState(getStoreModule(kh._modules,uAe),uAe==="root"?kh.getters:kh._makeLocalGettersCache,uAe)}}),tAe.on.editInspectorState(function(oAe){if(oAe.app===Ff&&oAe.inspectorId===INSPECTOR_ID){var uAe=oAe.nodeId,pAe=oAe.path;uAe!=="root"&&(pAe=uAe.split("/").filter(Boolean).concat(pAe)),kh._withCommit(function(){oAe.set(kh._state.data,pAe,oAe.state.value)})}}),kh.subscribe(function(oAe,uAe){var pAe={};oAe.payload&&(pAe.payload=oAe.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:oAe.type,data:pAe}})}),kh.subscribeAction({before:function(oAe,uAe){var pAe={};oAe.payload&&(pAe.payload=oAe.payload),oAe._id=actionId++,oAe._time=Date.now(),pAe.state=uAe,tAe.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:oAe._time,title:oAe.type,groupId:oAe._id,subtitle:"start",data:pAe}})},after:function(oAe,uAe){var pAe={},hAe=Date.now()-oAe._time;pAe.duration={_custom:{type:"duration",display:hAe+"ms",tooltip:"Action duration",value:hAe}},oAe.payload&&(pAe.payload=oAe.payload),pAe.state=uAe,tAe.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:oAe.type,groupId:oAe._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,oAe){oAe.includes(tAe)&&Ff.push({id:oAe||"root",label:oAe.endsWith("/")?oAe.slice(0,oAe.length-1):oAe||"Root",tags:kh.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(kh._children).forEach(function(uAe){flattenStoreForInspectorTree(Ff,kh._children[uAe],tAe,oAe+uAe+"/")})}function formatStoreForInspectorState(Ff,kh,tAe){kh=tAe==="root"?kh:kh[tAe];var oAe=Object.keys(kh),uAe={state:Object.keys(Ff.state).map(function(hAe){return{key:hAe,editable:!0,value:Ff.state[hAe]}})};if(oAe.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 oAe=tAe.split("/");if(oAe.length>1){var uAe=kh,pAe=oAe.pop();oAe.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(oAe){return oAe});return tAe.reduce(function(oAe,uAe,pAe){var hAe=oAe[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 oAe=kh.state;this.state=(typeof oAe=="function"?oAe():oAe)||{}},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,oAe){return tAe.getChild(oAe)},this.root)},ModuleCollection.prototype.getNamespace=function Ff(kh){var tAe=this.root;return kh.reduce(function(oAe,uAe){return tAe=tAe.getChild(uAe),oAe+(tAe.namespaced?uAe+"/":"")},"")},ModuleCollection.prototype.update=function Ff(kh){update([],this.root,kh)},ModuleCollection.prototype.register=function Ff(kh,tAe,oAe){var uAe=this;oAe===void 0&&(oAe=!0),process.env.NODE_ENV!=="production"&&assertRawModule(kh,tAe);var pAe=new Module(tAe,oAe);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(AAe,gAe){uAe.register(kh.concat(gAe),AAe,oAe)})},ModuleCollection.prototype.unregister=function Ff(kh){var tAe=this.get(kh.slice(0,-1)),oAe=kh[kh.length-1],uAe=tAe.getChild(oAe);if(!uAe){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+oAe+"', which is not registered");return}uAe.runtime&&tAe.removeChild(oAe)},ModuleCollection.prototype.isRegistered=function Ff(kh){var tAe=this.get(kh.slice(0,-1)),oAe=kh[kh.length-1];return tAe?tAe.hasChild(oAe):!1};function update(Ff,kh,tAe){if(process.env.NODE_ENV!=="production"&&assertRawModule(Ff,tAe),kh.update(tAe),tAe.modules)for(var oAe in tAe.modules){if(!kh.getChild(oAe)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+oAe+"' on hot reloading, manual reload is needed");return}update(Ff.concat(oAe),kh.getChild(oAe),tAe.modules[oAe])}}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 oAe=assertTypes[tAe];forEachValue(kh[tAe],function(uAe,pAe){assert(oAe.assert(uAe),makeAssertionMessage(Ff,tAe,pAe,uAe,oAe.expected))})}})}function makeAssertionMessage(Ff,kh,tAe,oAe,uAe){var pAe=kh+" should be "+uAe+' but "'+kh+"."+tAe+'"';return Ff.length>0&&(pAe+=' in module "'+Ff.join(".")+'"'),pAe+=" is "+JSON.stringify(oAe)+".",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 oAe=kh.plugins;oAe===void 0&&(oAe=[]);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,AAe=this,gAe=AAe.dispatch,mAe=AAe.commit;this.dispatch=function(PAe,SAe){return gAe.call(hAe,PAe,SAe)},this.commit=function(PAe,SAe,BAe){return mAe.call(hAe,PAe,SAe,BAe)},this.strict=uAe;var wAe=this._modules.root.state;installModule(this,wAe,[],this._modules.root),resetStoreState(this,wAe),oAe.forEach(function(bAe){return bAe(tAe)})},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function Ff(kh,tAe){kh.provide(tAe||storeKey,this),kh.config.globalProperties.$store=this;var oAe=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;oAe&&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,oAe){var uAe=this,pAe=unifyObjectStyle(kh,tAe,oAe),hAe=pAe.type,AAe=pAe.payload,gAe=pAe.options,mAe={type:hAe,payload:AAe},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(PAe){PAe(AAe)})}),this._subscribers.slice().forEach(function(bAe){return bAe(mAe,uAe.state)}),process.env.NODE_ENV!=="production"&&gAe&&gAe.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 oAe=this,uAe=unifyObjectStyle(kh,tAe),pAe=uAe.type,hAe=uAe.payload,AAe={type:pAe,payload:hAe},gAe=this._actions[pAe];if(!gAe){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(AAe,oAe.state)})}catch(wAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(wAe))}var mAe=gAe.length>1?Promise.all(gAe.map(function(wAe){return wAe(hAe)})):gAe[0](hAe);return new Promise(function(wAe,bAe){mAe.then(function(PAe){try{oAe._actionSubscribers.filter(function(SAe){return SAe.after}).forEach(function(SAe){return SAe.after(AAe,oAe.state)})}catch(SAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(SAe))}wAe(PAe)},function(PAe){try{oAe._actionSubscribers.filter(function(SAe){return SAe.error}).forEach(function(SAe){return SAe.error(AAe,oAe.state,PAe)})}catch(SAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(SAe))}bAe(PAe)})})},Store.prototype.subscribe=function Ff(kh,tAe){return genericSubscribe(kh,this._subscribers,tAe)},Store.prototype.subscribeAction=function Ff(kh,tAe){var oAe=typeof kh=="function"?{before:kh}:kh;return genericSubscribe(oAe,this._actionSubscribers,tAe)},Store.prototype.watch=function Ff(kh,tAe,oAe){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({},oAe))},Store.prototype.replaceState=function Ff(kh){var tAe=this;this._withCommit(function(){tAe._state.data=kh})},Store.prototype.registerModule=function Ff(kh,tAe,oAe){oAe===void 0&&(oAe={}),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),oAe.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 oAe=getNestedState(tAe.state,kh.slice(0,-1));delete oAe[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,AAe,gAe;let oAe=((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)||"")+" "+(oAe||((AAe=Ff.data)==null?void 0:AAe.statusText)||((gAe=Ff.data)==null?void 0:gAe.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"]=(pSe=Ff.supplierUserVo)==null?void 0:pSe.userLoginId,headerObj["x-user-slt-user-name"]=(wPe=Ff.supplierUserVo)!=null&&wPe.userName?encodeURIComponent((jNe=Ff.supplierUserVo)==null?void 0:jNe.userName):Ff.mobile}catch{}}const service=axios.create({timeout:1e3*60,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,oAe)=>{kh.onload=function(){try{const uAe=JSON.parse(kh.result);tAe(uAe)}catch(uAe){oAe(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,oAe)=>{kh.onload=function(){try{if(Ff.response.data.type==="application/json"){const uAe=JSON.parse(kh.result);errorHandle({data:uAe}),oAe({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}}),oAe({data:{msg:pAe}})}}}catch(uAe){oAe(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 oAe=Ff._GET_CONFIG_DATA;if(!oAe(kh))return{};const uAe=oAe(kh).find(pAe=>pAe.key===tAe);if(!uAe)throw new Error(`没有找到key为'${tAe}'的组件,请检查是否已定义`);return uAe}function getRelationComp(Ff,kh,tAe){const oAe={};return tAe&&tAe.length&&tAe.forEach(uAe=>{const pAe=getTargetComp(Ff,kh,uAe);oAe[uAe]=pAe}),oAe}let obj={};function getSelectOption(Ff,kh,tAe){var hAe;let oAe={};kh.relation&&(oAe=getRelationComp(Ff,tAe,kh.relation));const uAe=typeof kh.params=="function"?kh.params(oAe):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 AAe=((hAe=kh.method)==null?void 0:hAe.toUpperCase())||"GET";let gAe=AAe=="GET"?"params":"data",mAe=kh.baseUrl||Ff.state._BASE_URL;kh.service==="c2"&&(mAe=mAe.replace("c1","c2")),service({url:mAe+kh.url,[gAe]:uAe||{},method:AAe}).then(wAe=>{const bAe=wAe[kh.dataKey]||wAe.items||wAe;Ff.state[pAe]=bAe;const PAe=obj[kh.url];PAe?(PAe.forEach(SAe=>{SAe.options=wAe[SAe.dataKey]||bAe}),delete obj[kh.url]):kh.options=bAe})}}const getFormData=Ff=>{let kh={};const tAe=Ff.formData;return Ff.elementGroup.forEach(oAe=>{(oAe.isShow===void 0||typeof oAe.isShow=="function"&&oAe.isShow(tAe))&&oAe.prop&&(typeof tAe[oAe.prop]=="object"?kh[oAe.prop]=tAe[oAe.prop]:(kh[oAe.prop]=tAe[oAe.prop]+""=="0"?0:tAe[oAe.prop]||null,typeof kh[oAe.prop]=="string"&&(kh[oAe.prop]=kh[oAe.prop].trim()))),oAe.type==="Daterange"||oAe.type==="Datetimerange"?(kh[oAe.prop]?(kh[oAe.startTime]=formatDate(kh[oAe.prop][0],oAe.type==="Daterange"?"yyyy-MM-dd":"yyyy-MM-dd HH:mm:ss"),kh[oAe.endTime]=formatDate(kh[oAe.prop][1],oAe.type==="Daterange"?"yyyy-MM-dd":"yyyy-MM-dd HH:mm:ss")):(kh[oAe.startTime]=null,kh[oAe.endTime]=null),delete kh[oAe.prop]):oAe.type==="Year"&&(kh[oAe.prop]=formatDate(kh[oAe.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",_SYSTEM_SOURCE:"WEB",_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},saveSystemSource(Ff,kh){Ff._SYSTEM_SOURCE=kh},saveUrl(Ff,kh){Ff._BASE_URL=kh},saveLocale(Ff,kh){kh==="en"?(Ff.locale=English,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:oAe,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:oAe,partialUpdate:uAe})},1e3):Ff.dispatch("_TABLE_QUERY",{tableComp:pAe,pageKey:kh,row:oAe,partialUpdate:uAe})},_TABLE_QUERY(Ff,{tableComp:kh,pageKey:tAe,row:oAe,partialUpdate:uAe}){var bAe,PAe,SAe;let pAe={},hAe={};if(kh.dependencies&&(hAe=getTargetComp(Ff,tAe,kh.dependencies),pAe=getFormData(hAe)),kh.previousFormData={...kh.formData},kh.formData=pAe,((bAe=kh.configFlag)==null?void 0:bAe.pagination)!==!1&&(kh.formData={...kh.formData,...kh.pageInfo}),uAe){const BAe=kh.selectedRows.map(OAe=>OAe[uAe.searchKey]);kh.formData[uAe.searchKey]=BAe.toString()}if(kh.searchBefore&&kh.searchBefore(kh,oAe)===!1)return;const AAe=getOwnSearchData(kh,hAe),gAe={...kh.formData,...AAe},mAe=((PAe=kh.method)==null?void 0:PAe.toUpperCase())||"POST";let wAe=mAe=="GET"?"params":"data";!((SAe=kh.configFlag)!=null&&SAe.noShowLoading)&&Ff.commit("setLoading",!0),service({url:Ff.state._BASE_URL+kh.url,[wAe]:gAe,method:mAe}).then(BAe=>{var DAe;const OAe=filterRes(BAe,kh);kh.searchAfter&&kh.searchAfter(OAe,BAe,kh)===!1||(uAe?(DAe=kh.selectedNodes)==null||DAe.forEach(RAe=>{for(let TAe=0;TAe<OAe.result.length;TAe++){const FAe=OAe.result[TAe];RAe.data[uAe.dataKey]==FAe[uAe.dataKey]&&RAe.setData(FAe)}}):kh.customUpdateData?kh.customUpdateData(OAe,BAe,kh):Ff.commit("updateRowData",{tableComp:kh,res:OAe}))}).finally(()=>{Ff.commit("setLoading",!1)})},_UPDATE_COMPONENT(Ff,{pageKey:kh,compKey:tAe}){const oAe=getTargetComp(Ff,kh,tAe);oAe.updateKey=new Date().getTime()}}});function initData(Ff,kh,tAe){kh.forEach(oAe=>{if(oAe.children&&initData(Ff,oAe.children),oAe.type=="Form"){let uAe={};Object.defineProperty(oAe,"formData",{enumerable:!0,configurable:!0,get(){return uAe},set(pAe){uAe=pAe,console.error("[警告] 不建议直接替换formData对象,建议使用修改属性值的方式进行更新"),console.error("不推荐: formData = { ... }"),console.error("推荐: formData.propertyName = value")}}),oAe.elementGroup&&oAe.elementGroup.length?oAe.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}}):oAe.elementGroup=[]}oAe.type=="AgTable"&&(oAe.pageInfo||(oAe.pageInfo={pageNum:1,currentPage:1,pageSize:50}))})}function getOwnSearchData(Ff,kh){let tAe={};return Ff.params&&Object.keys(Ff.params).forEach(oAe=>{typeof Ff.params[oAe]=="function"?tAe[oAe]=Ff.params[oAe](kh):tAe[oAe]=Ff.params[oAe]}),Ff.exportDataSearchParams=tAe,tAe}function filterRes(Ff,kh){var oAe,uAe;if(!Ff)return{result:[],totalNum:0};let tAe={};return tAe.result=getDataByProp(Ff,(oAe=kh.data)==null?void 0:oAe.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 oAe=Ff;return kh.split(".").forEach(uAe=>{oAe=oAe[uAe]}),oAe||(oAe=getDefaultData(Ff,tAe)),oAe}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(oAe){let uAe="";switch(oAe){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&&oAe.length!=String(uAe).length&&(uAe=padding(uAe,oAe.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(oAe=>{var uAe;(uAe=Ff.split(".com/")[1])!=null&&uAe.startsWith(oAe.trim().slice(1))&&(kh=Ff.replace(/^http.*\.com/,location.origin))})),kh},downLoadData=Ff=>{const{url:kh,fileName:tAe,params:oAe,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),oAe).then(function(hAe){let AAe="";try{const wAe=hAe.headers["content-disposition"];if(wAe){const bAe=wAe.match(/filename\*?=(?:UTF-8'')?["']?([^"';]+)["']?/i);bAe&&(AAe=bAe[1])}}catch(wAe){console.warn("无法从响应头获取文件名:",wAe)}const gAe=URL.createObjectURL(hAe.data);var mAe=document.createElement("a");mAe.style.display="none",mAe.href=gAe,mAe.download=AAe?decodeURIComponent(AAe):tAe||"",document.body.appendChild(mAe),mAe.click(),document.body.removeChild(mAe),uAe.commit("setLoading",!1)}).catch(function(hAe){console.log(hAe)})},sum=(Ff,kh)=>{let tAe,oAe,uAe;try{tAe=Ff.toString().split(".")[1].length}catch{tAe=0}try{oAe=kh.toString().split(".")[1].length}catch{oAe=0}return uAe=Math.pow(10,Math.max(tAe,oAe)),(mul(Ff,uAe)+mul(kh,uAe))/uAe},mul=(Ff,kh)=>{let tAe=0,oAe=Ff.toString(),uAe=kh.toString();try{tAe+=oAe.split(".")[1].length}catch{}try{tAe+=uAe.split(".")[1].length}catch{}return Number(oAe.replace(".",""))*Number(uAe.replace(".",""))/Math.pow(10,tAe)},handleEnter=Ff=>{document.onkeydown=kh=>{(kh.keyCode==13||kh.which==13)&&Ff(kh)}};let customsOrgCode="";const header={"system-source":"",currency:"USD",lang:"","app-id":"0","x-time-zone":localStorage.getItem("my_timeZone")||"UTC+8"},regex=/https?:\/\/[^\/]+\/([^?]+)/,setRequestSign=(Ff,kh)=>{const tAe=location.origin,oAe=location.href,uAe=new Date().getTime().toString(),pAe=(kh.match(regex)||[])[1],hAe=CryptoJS.SHA256(tAe+"|"+oAe+"|"+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),header["system-source"]||(header["system-source"]=store.state._SYSTEM_SOURCE);const tAe={...header};return Ff.includes("/customs-service")&&(customsOrgCode=customsOrgCode||localStorage.getItem("my_org_code")||"",tAe["x-customs-org-code"]=customsOrgCode),setRequestSign(tAe,Ff),tAe},convertImageUrlToBase64=Ff=>new Promise((kh,tAe)=>{const oAe=new Image;oAe.setAttribute("crossOrigin","anonymous"),oAe.src=Ff,oAe.onload=()=>{try{const uAe=document.createElement("canvas"),pAe=window.devicePixelRatio||1,hAe=oAe.naturalWidth||oAe.width,AAe=oAe.naturalHeight||oAe.height;uAe.width=hAe,uAe.height=AAe;const gAe=uAe.getContext("2d");if(gAe){gAe.imageSmoothingEnabled=!0,gAe.drawImage(oAe,0,0,hAe,AAe);const mAe=uAe.toDataURL("image/png",1);kh(mAe)}else tAe(new Error("无法获取canvas上下文"))}catch(uAe){tAe(uAe)}},oAe.onerror=uAe=>{tAe(uAe)}}),elConfigProvider="",elForm="",_hoisted_1$s={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_hoisted_2$l=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$l];function render$6(Ff,kh){return vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_1$s,_hoisted_3$g)}const __unplugin_components_21={name:"ep-arrow-down",render:render$6},_hoisted_1$r={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_hoisted_2$k=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$k];function render$5(Ff,kh){return vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_1$r,_hoisted_3$f)}const __unplugin_components_20={name:"ep-arrow-up",render:render$5},elFormItem="",elImage="",elImageViewer="",elUpload="",elProgress="";/**!
|
|
67
|
+
*/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 oAe=kh.indexOf(Ff);oAe>-1&&kh.splice(oAe,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 oAe=Ff._state,uAe=Ff._scope;Ff.getters={},Ff._makeLocalGettersCache=Object.create(null);var pAe=Ff._wrappedGetters,hAe={},AAe={},gAe=vue$1.effectScope(!0);gAe.run(function(){forEachValue(pAe,function(mAe,wAe){hAe[wAe]=partial(mAe,Ff),AAe[wAe]=vue$1.computed(function(){return hAe[wAe]()}),Object.defineProperty(Ff.getters,wAe,{get:function(){return AAe[wAe].value},enumerable:!0})})}),Ff._state=vue$1.reactive({data:kh}),Ff._scope=gAe,Ff.strict&&enableStrictMode(Ff),oAe&&tAe&&Ff._withCommit(function(){oAe.data=null}),uAe&&uAe.stop()}function installModule(Ff,kh,tAe,oAe,uAe){var pAe=!tAe.length,hAe=Ff._modules.getNamespace(tAe);if(oAe.namespaced&&(Ff._modulesNamespaceMap[hAe]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+hAe+" for the namespaced module "+tAe.join("/")),Ff._modulesNamespaceMap[hAe]=oAe),!pAe&&!uAe){var AAe=getNestedState(kh,tAe.slice(0,-1)),gAe=tAe[tAe.length-1];Ff._withCommit(function(){process.env.NODE_ENV!=="production"&&gAe in AAe&&console.warn('[vuex] state field "'+gAe+'" was overridden by a module with the same name at "'+tAe.join(".")+'"'),AAe[gAe]=oAe.state})}var mAe=oAe.context=makeLocalContext(Ff,hAe,tAe);oAe.forEachMutation(function(wAe,bAe){var PAe=hAe+bAe;registerMutation(Ff,PAe,wAe,mAe)}),oAe.forEachAction(function(wAe,bAe){var PAe=wAe.root?bAe:hAe+bAe,SAe=wAe.handler||wAe;registerAction(Ff,PAe,SAe,mAe)}),oAe.forEachGetter(function(wAe,bAe){var PAe=hAe+bAe;registerGetter(Ff,PAe,wAe,mAe)}),oAe.forEachChild(function(wAe,bAe){installModule(Ff,kh,tAe.concat(bAe),wAe,uAe)})}function makeLocalContext(Ff,kh,tAe){var oAe=kh==="",uAe={dispatch:oAe?Ff.dispatch:function(pAe,hAe,AAe){var gAe=unifyObjectStyle(pAe,hAe,AAe),mAe=gAe.payload,wAe=gAe.options,bAe=gAe.type;if((!wAe||!wAe.root)&&(bAe=kh+bAe,process.env.NODE_ENV!=="production"&&!Ff._actions[bAe])){console.error("[vuex] unknown local action type: "+gAe.type+", global type: "+bAe);return}return Ff.dispatch(bAe,mAe)},commit:oAe?Ff.commit:function(pAe,hAe,AAe){var gAe=unifyObjectStyle(pAe,hAe,AAe),mAe=gAe.payload,wAe=gAe.options,bAe=gAe.type;if((!wAe||!wAe.root)&&(bAe=kh+bAe,process.env.NODE_ENV!=="production"&&!Ff._mutations[bAe])){console.error("[vuex] unknown local mutation type: "+gAe.type+", global type: "+bAe);return}Ff.commit(bAe,mAe,wAe)}};return Object.defineProperties(uAe,{getters:{get:oAe?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={},oAe=kh.length;Object.keys(Ff.getters).forEach(function(uAe){if(uAe.slice(0,oAe)===kh){var pAe=uAe.slice(oAe);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,oAe){var uAe=Ff._mutations[kh]||(Ff._mutations[kh]=[]);uAe.push(function(hAe){tAe.call(Ff,oAe.state,hAe)})}function registerAction(Ff,kh,tAe,oAe){var uAe=Ff._actions[kh]||(Ff._actions[kh]=[]);uAe.push(function(hAe){var AAe=tAe.call(Ff,{dispatch:oAe.dispatch,commit:oAe.commit,getters:oAe.getters,state:oAe.state,rootGetters:Ff.getters,rootState:Ff.state},hAe);return isPromise(AAe)||(AAe=Promise.resolve(AAe)),Ff._devtoolHook?AAe.catch(function(gAe){throw Ff._devtoolHook.emit("vuex:error",gAe),gAe}):AAe})}function registerGetter(Ff,kh,tAe,oAe){if(Ff._wrappedGetters[kh]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+kh);return}Ff._wrappedGetters[kh]=function(pAe){return tAe(oAe.state,oAe.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,oAe){return tAe[oAe]},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(oAe){if(oAe.app===Ff&&oAe.inspectorId===INSPECTOR_ID)if(oAe.filter){var uAe=[];flattenStoreForInspectorTree(uAe,kh._modules.root,oAe.filter,""),oAe.rootNodes=uAe}else oAe.rootNodes=[formatStoreForInspectorTree(kh._modules.root,"")]}),tAe.on.getInspectorState(function(oAe){if(oAe.app===Ff&&oAe.inspectorId===INSPECTOR_ID){var uAe=oAe.nodeId;makeLocalGetters(kh,uAe),oAe.state=formatStoreForInspectorState(getStoreModule(kh._modules,uAe),uAe==="root"?kh.getters:kh._makeLocalGettersCache,uAe)}}),tAe.on.editInspectorState(function(oAe){if(oAe.app===Ff&&oAe.inspectorId===INSPECTOR_ID){var uAe=oAe.nodeId,pAe=oAe.path;uAe!=="root"&&(pAe=uAe.split("/").filter(Boolean).concat(pAe)),kh._withCommit(function(){oAe.set(kh._state.data,pAe,oAe.state.value)})}}),kh.subscribe(function(oAe,uAe){var pAe={};oAe.payload&&(pAe.payload=oAe.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:oAe.type,data:pAe}})}),kh.subscribeAction({before:function(oAe,uAe){var pAe={};oAe.payload&&(pAe.payload=oAe.payload),oAe._id=actionId++,oAe._time=Date.now(),pAe.state=uAe,tAe.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:oAe._time,title:oAe.type,groupId:oAe._id,subtitle:"start",data:pAe}})},after:function(oAe,uAe){var pAe={},hAe=Date.now()-oAe._time;pAe.duration={_custom:{type:"duration",display:hAe+"ms",tooltip:"Action duration",value:hAe}},oAe.payload&&(pAe.payload=oAe.payload),pAe.state=uAe,tAe.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:oAe.type,groupId:oAe._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,oAe){oAe.includes(tAe)&&Ff.push({id:oAe||"root",label:oAe.endsWith("/")?oAe.slice(0,oAe.length-1):oAe||"Root",tags:kh.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(kh._children).forEach(function(uAe){flattenStoreForInspectorTree(Ff,kh._children[uAe],tAe,oAe+uAe+"/")})}function formatStoreForInspectorState(Ff,kh,tAe){kh=tAe==="root"?kh:kh[tAe];var oAe=Object.keys(kh),uAe={state:Object.keys(Ff.state).map(function(hAe){return{key:hAe,editable:!0,value:Ff.state[hAe]}})};if(oAe.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 oAe=tAe.split("/");if(oAe.length>1){var uAe=kh,pAe=oAe.pop();oAe.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(oAe){return oAe});return tAe.reduce(function(oAe,uAe,pAe){var hAe=oAe[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 oAe=kh.state;this.state=(typeof oAe=="function"?oAe():oAe)||{}},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,oAe){return tAe.getChild(oAe)},this.root)},ModuleCollection.prototype.getNamespace=function Ff(kh){var tAe=this.root;return kh.reduce(function(oAe,uAe){return tAe=tAe.getChild(uAe),oAe+(tAe.namespaced?uAe+"/":"")},"")},ModuleCollection.prototype.update=function Ff(kh){update([],this.root,kh)},ModuleCollection.prototype.register=function Ff(kh,tAe,oAe){var uAe=this;oAe===void 0&&(oAe=!0),process.env.NODE_ENV!=="production"&&assertRawModule(kh,tAe);var pAe=new Module(tAe,oAe);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(AAe,gAe){uAe.register(kh.concat(gAe),AAe,oAe)})},ModuleCollection.prototype.unregister=function Ff(kh){var tAe=this.get(kh.slice(0,-1)),oAe=kh[kh.length-1],uAe=tAe.getChild(oAe);if(!uAe){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+oAe+"', which is not registered");return}uAe.runtime&&tAe.removeChild(oAe)},ModuleCollection.prototype.isRegistered=function Ff(kh){var tAe=this.get(kh.slice(0,-1)),oAe=kh[kh.length-1];return tAe?tAe.hasChild(oAe):!1};function update(Ff,kh,tAe){if(process.env.NODE_ENV!=="production"&&assertRawModule(Ff,tAe),kh.update(tAe),tAe.modules)for(var oAe in tAe.modules){if(!kh.getChild(oAe)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+oAe+"' on hot reloading, manual reload is needed");return}update(Ff.concat(oAe),kh.getChild(oAe),tAe.modules[oAe])}}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 oAe=assertTypes[tAe];forEachValue(kh[tAe],function(uAe,pAe){assert(oAe.assert(uAe),makeAssertionMessage(Ff,tAe,pAe,uAe,oAe.expected))})}})}function makeAssertionMessage(Ff,kh,tAe,oAe,uAe){var pAe=kh+" should be "+uAe+' but "'+kh+"."+tAe+'"';return Ff.length>0&&(pAe+=' in module "'+Ff.join(".")+'"'),pAe+=" is "+JSON.stringify(oAe)+".",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 oAe=kh.plugins;oAe===void 0&&(oAe=[]);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,AAe=this,gAe=AAe.dispatch,mAe=AAe.commit;this.dispatch=function(PAe,SAe){return gAe.call(hAe,PAe,SAe)},this.commit=function(PAe,SAe,BAe){return mAe.call(hAe,PAe,SAe,BAe)},this.strict=uAe;var wAe=this._modules.root.state;installModule(this,wAe,[],this._modules.root),resetStoreState(this,wAe),oAe.forEach(function(bAe){return bAe(tAe)})},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function Ff(kh,tAe){kh.provide(tAe||storeKey,this),kh.config.globalProperties.$store=this;var oAe=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;oAe&&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,oAe){var uAe=this,pAe=unifyObjectStyle(kh,tAe,oAe),hAe=pAe.type,AAe=pAe.payload,gAe=pAe.options,mAe={type:hAe,payload:AAe},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(PAe){PAe(AAe)})}),this._subscribers.slice().forEach(function(bAe){return bAe(mAe,uAe.state)}),process.env.NODE_ENV!=="production"&&gAe&&gAe.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 oAe=this,uAe=unifyObjectStyle(kh,tAe),pAe=uAe.type,hAe=uAe.payload,AAe={type:pAe,payload:hAe},gAe=this._actions[pAe];if(!gAe){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(AAe,oAe.state)})}catch(wAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(wAe))}var mAe=gAe.length>1?Promise.all(gAe.map(function(wAe){return wAe(hAe)})):gAe[0](hAe);return new Promise(function(wAe,bAe){mAe.then(function(PAe){try{oAe._actionSubscribers.filter(function(SAe){return SAe.after}).forEach(function(SAe){return SAe.after(AAe,oAe.state)})}catch(SAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(SAe))}wAe(PAe)},function(PAe){try{oAe._actionSubscribers.filter(function(SAe){return SAe.error}).forEach(function(SAe){return SAe.error(AAe,oAe.state,PAe)})}catch(SAe){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(SAe))}bAe(PAe)})})},Store.prototype.subscribe=function Ff(kh,tAe){return genericSubscribe(kh,this._subscribers,tAe)},Store.prototype.subscribeAction=function Ff(kh,tAe){var oAe=typeof kh=="function"?{before:kh}:kh;return genericSubscribe(oAe,this._actionSubscribers,tAe)},Store.prototype.watch=function Ff(kh,tAe,oAe){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({},oAe))},Store.prototype.replaceState=function Ff(kh){var tAe=this;this._withCommit(function(){tAe._state.data=kh})},Store.prototype.registerModule=function Ff(kh,tAe,oAe){oAe===void 0&&(oAe={}),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),oAe.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 oAe=getNestedState(tAe.state,kh.slice(0,-1));delete oAe[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,AAe,gAe;let oAe=((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)||"")+" "+(oAe||((AAe=Ff.data)==null?void 0:AAe.statusText)||((gAe=Ff.data)==null?void 0:gAe.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"]=(pSe=Ff.supplierUserVo)==null?void 0:pSe.userLoginId,headerObj["x-user-slt-user-name"]=(wPe=Ff.supplierUserVo)!=null&&wPe.userName?encodeURIComponent((jNe=Ff.supplierUserVo)==null?void 0:jNe.userName):Ff.mobile}catch{}}const service=axios.create({timeout:1e3*60,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,oAe)=>{kh.onload=function(){try{const uAe=JSON.parse(kh.result);tAe(uAe)}catch(uAe){oAe(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,oAe)=>{kh.onload=function(){try{if(Ff.response.data.type==="application/json"){const uAe=JSON.parse(kh.result);errorHandle({data:uAe}),oAe({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}}),oAe({data:{msg:pAe}})}}}catch(uAe){oAe(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 oAe=Ff._GET_CONFIG_DATA;if(!oAe(kh))return{};const uAe=oAe(kh).find(pAe=>pAe.key===tAe);if(!uAe)throw new Error(`没有找到key为'${tAe}'的组件,请检查是否已定义`);return uAe}function getRelationComp(Ff,kh,tAe){const oAe={};return tAe&&tAe.length&&tAe.forEach(uAe=>{const pAe=getTargetComp(Ff,kh,uAe);oAe[uAe]=pAe}),oAe}let obj={};function getSelectOption(Ff,kh,tAe){var hAe;let oAe={};kh.relation&&(oAe=getRelationComp(Ff,tAe,kh.relation));const uAe=typeof kh.params=="function"?kh.params(oAe):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 AAe=((hAe=kh.method)==null?void 0:hAe.toUpperCase())||"GET";let gAe=AAe=="GET"?"params":"data",mAe=kh.baseUrl||Ff.state._BASE_URL;kh.service==="c2"&&(mAe=mAe.replace("c1","c2")),service({url:mAe+kh.url,[gAe]:uAe||{},method:AAe}).then(wAe=>{const bAe=wAe[kh.dataKey]||wAe.items||wAe;Ff.state[pAe]=bAe;const PAe=obj[kh.url];PAe?(PAe.forEach(SAe=>{SAe.options=wAe[SAe.dataKey]||bAe}),delete obj[kh.url]):kh.options=bAe})}}const getFormData=Ff=>{let kh={};const tAe=Ff.formData;return Ff.elementGroup.forEach(oAe=>{(oAe.isShow===void 0||typeof oAe.isShow=="function"&&oAe.isShow(tAe))&&(oAe.prop||oAe.prop===!1)&&(typeof tAe[oAe.prop]=="object"?kh[oAe.prop]=tAe[oAe.prop]:(kh[oAe.prop]=tAe[oAe.prop]+""=="0"?0:tAe[oAe.prop]===!1?!1:tAe[oAe.prop]||null,typeof kh[oAe.prop]=="string"&&(kh[oAe.prop]=kh[oAe.prop].trim()))),oAe.type==="Daterange"||oAe.type==="Datetimerange"?(kh[oAe.prop]?(kh[oAe.startTime]=formatDate(kh[oAe.prop][0],oAe.type==="Daterange"?"yyyy-MM-dd":"yyyy-MM-dd HH:mm:ss"),kh[oAe.endTime]=formatDate(kh[oAe.prop][1],oAe.type==="Daterange"?"yyyy-MM-dd":"yyyy-MM-dd HH:mm:ss")):(kh[oAe.startTime]=null,kh[oAe.endTime]=null),delete kh[oAe.prop]):oAe.type==="Year"&&(kh[oAe.prop]=formatDate(kh[oAe.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-tob-is.prod.doublefs.com",_SYSTEM_SOURCE:"WEB",_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},saveSystemSource(Ff,kh){Ff._SYSTEM_SOURCE=kh},saveUrl(Ff,kh){Ff._BASE_URL=kh},saveLocale(Ff,kh){kh==="en"?(Ff.locale=English,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:oAe,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:oAe,partialUpdate:uAe})},1e3):Ff.dispatch("_TABLE_QUERY",{tableComp:pAe,pageKey:kh,row:oAe,partialUpdate:uAe})},_TABLE_QUERY(Ff,{tableComp:kh,pageKey:tAe,row:oAe,partialUpdate:uAe}){var bAe,PAe,SAe;let pAe={},hAe={};if(kh.dependencies&&(hAe=getTargetComp(Ff,tAe,kh.dependencies),pAe=getFormData(hAe)),kh.previousFormData={...kh.formData},kh.formData=pAe,((bAe=kh.configFlag)==null?void 0:bAe.pagination)!==!1&&(kh.formData={...kh.formData,...kh.pageInfo}),uAe){const BAe=kh.selectedRows.map(OAe=>OAe[uAe.searchKey]);kh.formData[uAe.searchKey]=BAe.toString()}if(kh.searchBefore&&kh.searchBefore(kh,oAe)===!1)return;const AAe=getOwnSearchData(kh,hAe),gAe={...kh.formData,...AAe},mAe=((PAe=kh.method)==null?void 0:PAe.toUpperCase())||"POST";let wAe=mAe=="GET"?"params":"data";!((SAe=kh.configFlag)!=null&&SAe.noShowLoading)&&Ff.commit("setLoading",!0),service({url:Ff.state._BASE_URL+kh.url,[wAe]:gAe,method:mAe}).then(BAe=>{var DAe;const OAe=filterRes(BAe,kh);kh.searchAfter&&kh.searchAfter(OAe,BAe,kh)===!1||(uAe?(DAe=kh.selectedNodes)==null||DAe.forEach(RAe=>{for(let TAe=0;TAe<OAe.result.length;TAe++){const FAe=OAe.result[TAe];RAe.data[uAe.dataKey]==FAe[uAe.dataKey]&&RAe.setData(FAe)}}):kh.customUpdateData?kh.customUpdateData(OAe,BAe,kh):Ff.commit("updateRowData",{tableComp:kh,res:OAe}))}).finally(()=>{Ff.commit("setLoading",!1)})},_UPDATE_COMPONENT(Ff,{pageKey:kh,compKey:tAe}){const oAe=getTargetComp(Ff,kh,tAe);oAe.updateKey=new Date().getTime()}}});function initData(Ff,kh,tAe){kh.forEach(oAe=>{if(oAe.children&&initData(Ff,oAe.children),oAe.type=="Form"){let uAe={};Object.defineProperty(oAe,"formData",{enumerable:!0,configurable:!0,get(){return uAe},set(pAe){uAe=pAe,console.error("[警告] 不建议直接替换formData对象,建议使用修改属性值的方式进行更新"),console.error("不推荐: formData = { ... }"),console.error("推荐: formData.propertyName = value")}}),oAe.elementGroup&&oAe.elementGroup.length?oAe.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}}):oAe.elementGroup=[]}oAe.type=="AgTable"&&(oAe.pageInfo||(oAe.pageInfo={pageNum:1,currentPage:1,pageSize:50}))})}function getOwnSearchData(Ff,kh){let tAe={};return Ff.params&&Object.keys(Ff.params).forEach(oAe=>{typeof Ff.params[oAe]=="function"?tAe[oAe]=Ff.params[oAe](kh):tAe[oAe]=Ff.params[oAe]}),Ff.exportDataSearchParams=tAe,tAe}function filterRes(Ff,kh){var oAe,uAe;if(!Ff)return{result:[],totalNum:0};let tAe={};return tAe.result=getDataByProp(Ff,(oAe=kh.data)==null?void 0:oAe.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 oAe=Ff;return kh.split(".").forEach(uAe=>{oAe=oAe[uAe]}),oAe||(oAe=getDefaultData(Ff,tAe)),oAe}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(oAe){let uAe="";switch(oAe){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&&oAe.length!=String(uAe).length&&(uAe=padding(uAe,oAe.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(oAe=>{var uAe;(uAe=Ff.split(".com/")[1])!=null&&uAe.startsWith(oAe.trim().slice(1))&&(kh=Ff.replace(/^http.*\.com/,location.origin))})),kh},downLoadData=Ff=>{const{url:kh,fileName:tAe,params:oAe,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),oAe).then(function(hAe){let AAe="";try{const wAe=hAe.headers["content-disposition"];if(wAe){const bAe=wAe.match(/filename\*?=(?:UTF-8'')?["']?([^"';]+)["']?/i);bAe&&(AAe=bAe[1])}}catch(wAe){console.warn("无法从响应头获取文件名:",wAe)}const gAe=URL.createObjectURL(hAe.data);var mAe=document.createElement("a");mAe.style.display="none",mAe.href=gAe,mAe.download=AAe?decodeURIComponent(AAe):tAe||"",document.body.appendChild(mAe),mAe.click(),document.body.removeChild(mAe),uAe.commit("setLoading",!1)}).catch(function(hAe){console.log(hAe)})},sum=(Ff,kh)=>{let tAe,oAe,uAe;try{tAe=Ff.toString().split(".")[1].length}catch{tAe=0}try{oAe=kh.toString().split(".")[1].length}catch{oAe=0}return uAe=Math.pow(10,Math.max(tAe,oAe)),(mul(Ff,uAe)+mul(kh,uAe))/uAe},mul=(Ff,kh)=>{let tAe=0,oAe=Ff.toString(),uAe=kh.toString();try{tAe+=oAe.split(".")[1].length}catch{}try{tAe+=uAe.split(".")[1].length}catch{}return Number(oAe.replace(".",""))*Number(uAe.replace(".",""))/Math.pow(10,tAe)},handleEnter=Ff=>{document.onkeydown=kh=>{(kh.keyCode==13||kh.which==13)&&Ff(kh)}};let customsOrgCode="";const header={"system-source":"",currency:"USD",lang:"","app-id":"0","x-time-zone":localStorage.getItem("my_timeZone")||"UTC+8"},regex=/https?:\/\/[^\/]+\/([^?]+)/,setRequestSign=(Ff,kh)=>{const tAe=location.origin,oAe=location.href,uAe=new Date().getTime().toString(),pAe=(kh.match(regex)||[])[1],hAe=CryptoJS.SHA256(tAe+"|"+oAe+"|"+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),header["system-source"]||(header["system-source"]=store.state._SYSTEM_SOURCE);const tAe={...header};return Ff.includes("/customs-service")&&(customsOrgCode=customsOrgCode||localStorage.getItem("my_org_code")||"",tAe["x-customs-org-code"]=customsOrgCode),setRequestSign(tAe,Ff),tAe},convertImageUrlToBase64=Ff=>new Promise((kh,tAe)=>{const oAe=new Image;oAe.setAttribute("crossOrigin","anonymous"),oAe.src=Ff,oAe.onload=()=>{try{const uAe=document.createElement("canvas"),pAe=window.devicePixelRatio||1,hAe=oAe.naturalWidth||oAe.width,AAe=oAe.naturalHeight||oAe.height;uAe.width=hAe,uAe.height=AAe;const gAe=uAe.getContext("2d");if(gAe){gAe.imageSmoothingEnabled=!0,gAe.drawImage(oAe,0,0,hAe,AAe);const mAe=uAe.toDataURL("image/png",1);kh(mAe)}else tAe(new Error("无法获取canvas上下文"))}catch(uAe){tAe(uAe)}},oAe.onerror=uAe=>{tAe(uAe)}}),elConfigProvider="",elForm="",_hoisted_1$s={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_hoisted_2$l=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$l];function render$6(Ff,kh){return vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_1$s,_hoisted_3$g)}const __unplugin_components_21={name:"ep-arrow-down",render:render$6},_hoisted_1$r={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},_hoisted_2$k=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$k];function render$5(Ff,kh){return vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_1$r,_hoisted_3$f)}const __unplugin_components_20={name:"ep-arrow-up",render:render$5},elFormItem="",elImage="",elImageViewer="",elUpload="",elProgress="";/**!
|
|
68
68
|
* Sortable 1.15.0
|
|
69
69
|
* @author RubaXa <trash@rubaxa.org>
|
|
70
70
|
* @author owenm <owen23355@gmail.com>
|
|
@@ -2183,4 +2183,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2183
2183
|
@font-face {
|
|
2184
2184
|
font-family: 'CircularXX-Medium';
|
|
2185
2185
|
src: url(${CircularXXMedium});
|
|
2186
|
-
`,document.head.appendChild(VAe)}function LAe(){localStorage.setItem("fabricHangTagPrintType",pAe.printType)}return{t:kh,fabricHangTagNewRef:oAe,printCountRef:uAe,...vue$1.toRefs(pAe),TipLog,show:hAe,close:AAe,print:gAe,confirm,setOffset:OAe,setDirection:DAe,confirmDirection:RAe,showDialog:TAe,closeDialog:FAe,changePrintType:LAe}}}),FabricHangTag_vue_vue_type_style_index_0_scoped_41be975a_lang="",_withScopeId$1=Ff=>(vue$1.pushScopeId("data-v-41be975a"),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$1={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$1=["innerHTML"],_hoisted_6$1={key:0,style:{height:"6pt"}},_hoisted_7=["innerHTML"],_hoisted_8={key:1,style:{height:"8pt"}},_hoisted_9={style:{margin:"8px 0"}},_hoisted_10=_withScopeId$1(()=>vue$1.createElementVNode("span",{style:{margin:"0 5px","font-size":"6px"}},"●",-1)),_hoisted_11=["innerHTML"],_hoisted_12={key:3,style:{height:"8pt"}},_hoisted_13={id:"barcode",style:{width:"100px"},t:"1755245905315",class:"icon",viewBox:"0 0 6865 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3265",width:"200",height:"200"},_hoisted_14=_withScopeId$1(()=>vue$1.createElementVNode("path",{d:"M69.818 0v1024H0V0h69.818z m23.273 0h46.545v1024H93.091V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM512 0h46.545v1024H512V0z m2257.455 0H2816v1024h-46.545V0z m2304 0H5120v1024h-46.545V0zM861.09 0h46.545v1024H861.09V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM721.455 0H768v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM954.182 0h46.545v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1233.455 0H1280v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1349.82 0h46.545v1024h-46.546V0z m2257.454 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1442.909 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1698.909 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1861.818 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1978.182 0h93.09v1024h-93.09V0z m2257.454 0h93.091v1024h-93.09V0z m2304 0h93.091v1024h-93.09V0zM2141.091 0h46.545v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1792 0h23.273v1024H1792V0z m2257.455 0h23.272v1024h-23.272V0z m2304 0h23.272v1024h-23.272V0zM2280.727 0H2304v1024h-23.273V0z m2257.455 0h23.273v1024h-23.273V0z m2304 0h23.273v1024h-23.273V0z m-6656 0h116.363v1024H186.182V0z m2257.454 0H2560v1024h-116.364V0z m2304 0H4864v1024h-116.364V0zM372.364 0h116.363v1024H372.364V0z m2257.454 0h116.364v1024h-116.364V0z m2304 0h116.364v1024h-116.364V0z m-4352 0h93.091v1024h-93.09V0z m2257.455 0h93.09v1024h-93.09V0z m2304 0h93.09v1024h-93.09V0zM1070.545 0h93.091v1024h-93.09V0zM3328 0h93.09v1024H3328V0z m2304 0h93.09v1024H5632V0zM1536 0h93.09v1024H1536V0z m2257.455 0h93.09v1024h-93.09V0z m2304 0h93.09v1024h-93.09V0z","p-id":"3266"},null,-1)),_hoisted_15=[_hoisted_14],_hoisted_16={style:{position:"absolute",bottom:"22px",right:"30px"}},_hoisted_17={class:"dialog-footer"},_hoisted_18={class:"dialog-footer"};function _sfc_render$1(Ff,kh,tAe,oAe,uAe,pAe){var RAe,TAe,FAe;const hAe=vue$1.resolveComponent("ZoomIn"),AAe=ElIcon,gAe=__unplugin_components_1,mAe=ElRadioButton,wAe=ElRadioGroup,bAe=ElButton,PAe=ElInputNumber,SAe=ElFormItem,BAe=ElForm,OAe=ElDialog,DAe=ElRadio;return vue$1.openBlock(),vue$1.createElementBlock(vue$1.Fragment,null,[vue$1.withDirectives(vue$1.createElementVNode("div",{class:vue$1.normalizeClass([Ff.zoomIn?"zoom-in":""]),onClick:kh[3]||(kh[3]=(...MAe)=>Ff.close&&Ff.close(...MAe))},[vue$1.createElementVNode("div",{onClick:kh[2]||(kh[2]=vue$1.withModifiers(()=>{},["stop"])),class:"container",style:{width:"max-content",background:"#e0e0e1",padding:"40px 10px 10px",color:"#000","font-size":"7pt","line-height":"7pt",display:"flex","flex-direction":"column","justify-content":"flex-end","border-radius":"10px",position:"relative","user-select":"none","word-break":"break-word"}},[vue$1.createElementVNode("div",_hoisted_1$1,[_hoisted_2$1,vue$1.createElementVNode("span",_hoisted_3$1,[vue$1.createVNode(AAe,{onClick:kh[0]||(kh[0]=MAe=>Ff.zoomIn=!0),style:{cursor:"pointer"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(hAe)]),_:1})]),vue$1.withDirectives(vue$1.createVNode(gAe,{ref:"fabricHangTagNewRef",data:Ff.data},null,8,["data"]),[[vue$1.vShow,Ff.printType=="new"]]),vue$1.withDirectives(vue$1.createElementVNode("div",_hoisted_4$1,[vue$1.createElementVNode("div",null,[vue$1.createElementVNode("p",{style:{"font-size":"17px","font-family":"CircularXX-Medium","margin-bottom":"5px","line-height":"20px"},innerHTML:(RAe=Ff.data.fabricSeries||Ff.data.name)==null?void 0:RAe.replace(/\n/g,"</br>")},null,8,_hoisted_5$1),Ff.data.friendlyReminder?vue$1.createCommentVNode("",!0):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_6$1)),vue$1.createElementVNode("p",{style:{margin:"5px 0"},innerHTML:(TAe=Ff.data.fabricIntroduction)==null?void 0:TAe.replace(/\n/g,"</br>")},null,8,_hoisted_7),Ff.data.friendlyReminder?vue$1.createCommentVNode("",!0):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_8)),vue$1.createElementVNode("ul",_hoisted_9,[(vue$1.openBlock(!0),vue$1.createElementBlock(vue$1.Fragment,null,vue$1.renderList(Ff.data.fabricFeatureDescList,MAe=>(vue$1.openBlock(),vue$1.createElementBlock("li",{key:MAe,style:{margin:"1pt 0",display:"flex","align-items":"center"}},[_hoisted_10,vue$1.createTextVNode(" "+vue$1.toDisplayString(MAe),1)]))),128))]),Ff.data.friendlyReminder?(vue$1.openBlock(),vue$1.createElementBlock("p",{key:2,style:{margin:"3pt 0"},innerHTML:(FAe=Ff.data.friendlyReminder)==null?void 0:FAe.replace(/\n/g,"</br>")},null,8,_hoisted_11)):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_12)),vue$1.withDirectives((vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_13,_hoisted_15,512)),[[vue$1.vShow,Ff.data.barCodeId]]),vue$1.createElementVNode("span",_hoisted_16,vue$1.toDisplayString(Ff.data.code),1)])],512),[[vue$1.vShow,Ff.printType=="old"]])]),vue$1.createVNode(wAe,{modelValue:Ff.printType,"onUpdate:modelValue":kh[1]||(kh[1]=MAe=>Ff.printType=MAe),size:"small",onChange:Ff.changePrintType,style:{display:"flex","justify-content":"center",position:"absolute",top:"8px",left:"-2px","z-index":"3",transform:"scale(0.8)"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(mAe,{label:"new"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("新版")),1)]),_:1}),vue$1.createVNode(mAe,{label:"old"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("旧版")),1)]),_:1})]),_:1},8,["modelValue","onChange"]),Ff.showPrintButton?(vue$1.openBlock(),vue$1.createBlock(bAe,{key:0,class:"print-button",onClick:vue$1.withModifiers(Ff.showDialog,["stop"]),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("打印")),1)]),_:1},8,["onClick"])):vue$1.createCommentVNode("",!0)])],2),[[vue$1.vShow,Ff.isShow]]),vue$1.createVNode(OAe,{title:Ff.t("打印数量"),modelValue:Ff.dialogState,"onUpdate:modelValue":kh[6]||(kh[6]=MAe=>Ff.dialogState=MAe),width:"350px",center:"","close-on-click-modal":!1,onClose:Ff.closeDialog},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_17,[vue$1.createVNode(bAe,{onClick:kh[5]||(kh[5]=MAe=>Ff.dialogState=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(bAe,{type:"primary",onClick:Ff.print,size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("确认")),1)]),_:1},8,["onClick"])])]),default:vue$1.withCtx(()=>[vue$1.createVNode(BAe,{"label-width":"20px"},{default:vue$1.withCtx(()=>[vue$1.createVNode(SAe,{label:" ",style:{"margin-bottom":"0"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(PAe,{ref:"printCountRef",modelValue:Ff.printCount,"onUpdate:modelValue":kh[4]||(kh[4]=MAe=>Ff.printCount=MAe),min:1,precision:0,controls:!1,placeholder:Ff.t("请输入打印数量"),style:{width:"100%"}},null,8,["modelValue","placeholder"])]),_:1}),vue$1.createVNode(SAe,{label:" "},{default:vue$1.withCtx(()=>[vue$1.createVNode(bAe,{onClick:Ff.setOffset,link:"",size:"small",style:{color:"#409eff"}},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("设置横向偏移")),1)]),_:1},8,["onClick"]),vue$1.createVNode(bAe,{onClick:Ff.setDirection,link:"",size:"small",style:{color:"#409eff"}},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("设置标签方向")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["title","modelValue","onClose"]),vue$1.createVNode(OAe,{title:Ff.t("设置标签方向"),modelValue:Ff.directionDialogVisible,"onUpdate:modelValue":kh[9]||(kh[9]=MAe=>Ff.directionDialogVisible=MAe),width:"350px",center:"","close-on-click-modal":!1},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_18,[vue$1.createVNode(bAe,{onClick:kh[8]||(kh[8]=MAe=>Ff.directionDialogVisible=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(bAe,{type:"primary",onClick:Ff.confirmDirection,size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("确定")),1)]),_:1},8,["onClick"])])]),default:vue$1.withCtx(()=>[vue$1.createVNode(wAe,{modelValue:Ff.direction,"onUpdate:modelValue":kh[7]||(kh[7]=MAe=>Ff.direction=MAe),style:{display:"flex","justify-content":"center",height:"74px"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(DAe,{label:"1"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("纵向")),1)]),_:1}),vue$1.createVNode(DAe,{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-41be975a"]]);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",components:{EleTable:__unplugin_components_0},setup(){let Ff=!1;const kh=PAe(),tAe=vue$1.ref([]),oAe=vue$1.ref(0),uAe=vue$1.ref({pageNum:1,pageSize:50}),pAe=vue$1.ref({needPage:!0,border:!0,pageSize:[50,100,200,500,1e3]}),hAe=vue$1.computed(()=>store.state.uploadDownloadDialogVisible);let AAe=null;const gAe=()=>{AAe=window.setInterval(()=>{wAe()},5e3)},mAe=()=>{AAe&&clearInterval(AAe),AAe=null,store.commit("setUploadDownloadDialogVisible",!1),Ff=!1};function wAe(){service({url:store.state._BASE_URL+"/export-service/common-task/page",data:{pageNum:uAe.value.pageNum,pageSize:uAe.value.pageSize},method:"POST"}).then(tme=>{tAe.value=tme.records,oAe.value=tme.total}).catch(tme=>{console.log(tme)})}const bAe=()=>{Ff||(wAe(),gAe(),Ff=!0)};function PAe(){return[{value:"typeName",label:"类型",width:100,align:"left"},{value:"fileName",label:"文件名",minWidth:200,slot:"fileName"},{value:"taskStatusName",label:"状态",width:120,slot:"taskStatusName"},{value:"failReason",label:"备注",minWidth:200,slot:"failReason"},{value:"createdAt",label:"操作时间",width:180},{value:"createdUserName",label:"操作人",width:120}]}const SAe={0:"#909399",1:"#67C23A",2:"#409EFF",3:"#409EFF",4:"#67C23A",5:"#F56C6C","-1":"#F56C6C"},BAe=tme=>SAe[tme]||"#909399",OAe=tme=>{uAe.value.pageNum=tme.currentPage||1,uAe.value.pageSize=tme.pageSize||50,wAe()},DAe=vue$1.ref(null),RAe=vue$1.reactive({x:0,y:0});let TAe=!1,FAe=0,MAe=0,LAe=0,_Ae=0;const VAe=tme=>{DAe.value&&(TAe=!0,FAe=tme.clientX,MAe=tme.clientY,LAe=RAe.x,_Ae=RAe.y,document.addEventListener("mousemove",WAe),document.addEventListener("mouseup",KAe))},WAe=tme=>{if(!TAe||!DAe.value)return;const ame=tme.clientX-FAe,cme=tme.clientY-MAe;let zAe=LAe+ame,$Ae=_Ae+cme;const rme=DAe.value.offsetWidth,eme=DAe.value.offsetHeight;zAe=Math.max(0,Math.min(window.innerWidth-rme,zAe)),$Ae=Math.max(0,Math.min(window.innerHeight-eme,$Ae)),RAe.x=zAe,RAe.y=$Ae},KAe=()=>{if(!DAe.value)return;TAe=!1,document.removeEventListener("mousemove",WAe),document.removeEventListener("mouseup",KAe);const tme=DAe.value.offsetWidth,ame=RAe.x,cme=window.innerWidth-(RAe.x+tme);DAe.value.style.transition="all 0.2s ease-out",ame<cme?RAe.x=0:RAe.x=window.innerWidth-tme;const zAe=DAe.value.offsetHeight;RAe.y=Math.max(0,Math.min(window.innerHeight-zAe,RAe.y)),setTimeout(()=>{DAe.value&&(DAe.value.style.transition="")},300)},XAe=()=>{if(!DAe.value)return;const tme=DAe.value.offsetWidth,ame=DAe.value.offsetHeight;RAe.x=window.innerWidth-tme,RAe.y=window.innerHeight-ame-30};return vue$1.onMounted(()=>{window.addEventListener("resize",XAe),vue$1.nextTick(()=>{if(DAe.value){const tme=DAe.value.offsetWidth,ame=DAe.value.offsetHeight;RAe.x=window.innerWidth-tme,RAe.y=window.innerHeight-ame-30}})}),{getData:wAe,dialogVisible:hAe,handleOpenDialog:bAe,dragButton:DAe,buttonPosition:RAe,startDrag:VAe,handleMouseDown:tme=>{const ame=new Date().getTime();VAe(tme);const cme=zAe=>{KAe();const $Ae=new Date().getTime(),rme=Math.sqrt(Math.pow(zAe.clientX-FAe,2)+Math.pow(zAe.clientY-MAe,2));$Ae-ame<200&&rme<5&&store.commit("setUploadDownloadDialogVisible",!0)};document.addEventListener("mouseup",cme,{once:!0})},stopPolling:mAe,tableColumns:kh,tableData:tAe,tableTotal:oAe,tablePageInfo:uAe,tableConfigFlag:pAe,handleTableChange:OAe,getStatusColor:BAe}}}),UploadDownloadCenter_vue_vue_type_style_index_0_scoped_95c6c15a_lang="",UploadDownloadCenter_vue_vue_type_style_index_1_lang="",_withScopeId=Ff=>(vue$1.pushScopeId("data-v-95c6c15a"),Ff=Ff(),vue$1.popScopeId(),Ff),_hoisted_1=_withScopeId(()=>vue$1.createElementVNode("p",{class:"drag-button-text"},"上传\\下载",-1)),_hoisted_2=[_hoisted_1],_hoisted_3=["href"],_hoisted_4={key:1},_hoisted_5=["href"],_hoisted_6={key:1};function _sfc_render(Ff,kh,tAe,oAe,uAe,pAe){const hAe=__unplugin_components_0,AAe=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]=(...gAe)=>Ff.handleMouseDown&&Ff.handleMouseDown(...gAe)),style:vue$1.normalizeStyle({left:Ff.buttonPosition.x+"px",top:Ff.buttonPosition.y+"px"})},_hoisted_2,36),vue$1.createVNode(AAe,{class:"upload-download-center-dialog",title:"上传/下载中心",modelValue:Ff.dialogVisible,"onUpdate:modelValue":kh[1]||(kh[1]=gAe=>Ff.dialogVisible=gAe),width:"80%","destroy-on-close":!0,top:"6vh",center:"",onOpen:Ff.handleOpenDialog,onClose:Ff.stopPolling},{default:vue$1.withCtx(()=>[vue$1.createVNode(hAe,{columns:Ff.tableColumns,data:Ff.tableData,totalNum:Ff.tableTotal,pageInfo:Ff.tablePageInfo,configFlag:Ff.tableConfigFlag,onHandleChange:Ff.handleTableChange,tableHeight:"72vh"},{fileName:vue$1.withCtx(({scope:gAe})=>[gAe.row.fileUrl?(vue$1.openBlock(),vue$1.createElementBlock("a",{key:0,href:gAe.row.fileUrl,target:"_blank",rel:"noopener noreferrer"},vue$1.toDisplayString(gAe.row.fileName),9,_hoisted_3)):(vue$1.openBlock(),vue$1.createElementBlock("span",_hoisted_4,vue$1.toDisplayString(gAe.row.fileName),1))]),taskStatusName:vue$1.withCtx(({scope:gAe})=>[vue$1.createElementVNode("span",{style:vue$1.normalizeStyle({color:Ff.getStatusColor(gAe.row.taskStatus)})},vue$1.toDisplayString(gAe.row.taskStatusName),5)]),failReason:vue$1.withCtx(({scope:gAe})=>[gAe.row.failFileUrl?(vue$1.openBlock(),vue$1.createElementBlock("a",{key:0,href:gAe.row.failFileUrl,target:"_blank",rel:"noopener noreferrer"},vue$1.toDisplayString(gAe.row.failReason),9,_hoisted_5)):(vue$1.openBlock(),vue$1.createElementBlock("span",_hoisted_6,vue$1.toDisplayString(gAe.row.failReason),1))]),_:1},8,["columns","data","totalNum","pageInfo","configFlag","onHandleChange"])]),_:1},8,["modelValue","onOpen","onClose"])],64)}const UploadDownloadCenter=_export_sfc$1(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-95c6c15a"]]);UploadDownloadCenter.install=Ff=>Ff.component(UploadDownloadCenter.name,UploadDownloadCenter);let timer=null,staticResourceMonitor=2e3,apiRequestThreshold=3e3;const userInfo=JSON.parse(localStorage.getItem("userInfo")||"{}"),username=userInfo.name||userInfo.displayName||"",PERFORMANCE_SERVER_URL="https://performance-monitor.prod.doublefs.com/api/performance";function reportPerformanceData(Ff){try{const kh=encodeURIComponent(JSON.stringify({url:window.location.href,timestamp:Date.now(),username,...Ff})),tAe=new Image;tAe.src=`${PERFORMANCE_SERVER_URL}?data=${kh}`,tAe.style.display="none",tAe.onload=()=>{console.log("性能数据上报成功"),document.body.removeChild(tAe)},tAe.onerror=oAe=>{console.error("性能数据上报失败",oAe),document.body.removeChild(tAe)},document.body.appendChild(tAe)}catch(kh){console.error("上报性能数据失败:",kh)}}const analyzeResourceLoadTime=()=>{if(!window.performance||!window.performance.getEntriesByType){console.warn("Performance API不可用,无法分析资源加载时间");return}const Ff=window.performance.getEntriesByType("resource"),kh=[],tAe=[],oAe=[],uAe=[];if(Ff.filter(hAe=>!hAe.isReport).forEach(hAe=>{hAe.isReport=!0;const AAe=hAe.name.toLowerCase();AAe.endsWith(".css")||hAe.initiatorType==="css"||hAe.initiatorType==="link"?hAe.duration>staticResourceMonitor&&tAe.push(hAe):AAe.endsWith(".js")||hAe.initiatorType==="script"?hAe.duration>staticResourceMonitor&&kh.push(hAe):hAe.initiatorType==="img"?hAe.duration>staticResourceMonitor&&uAe.push(hAe):(hAe.initiatorType==="xmlhttprequest"||hAe.initiatorType==="fetch")&&hAe.duration>apiRequestThreshold&&oAe.push(hAe)}),kh.length>0&&(console.log(`检测到${kh.length}个JS资源加载时间超过${staticResourceMonitor}ms:`),kh.forEach(hAe=>{console.log(`- JS: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),tAe.length>0&&(console.log(`检测到${tAe.length}个CSS资源加载时间超过${staticResourceMonitor}ms:`),tAe.forEach(hAe=>{console.log(`- CSS: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),uAe.length>0&&(console.log(`检测到${uAe.length}个图片资源加载时间超过${staticResourceMonitor}ms:`),uAe.forEach(hAe=>{console.log(`- 图片: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),oAe.length>0&&(console.log(`检测到${oAe.length}个API请求时间超过${apiRequestThreshold}ms:`),oAe.forEach(hAe=>{console.log(`- API: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),kh.length>0||tAe.length>0||oAe.length>0||uAe.length>0){const hAe={jsResources:kh.map(AAe=>({name:AAe.name,duration:AAe.duration,initiatorType:AAe.initiatorType})),cssResources:tAe.map(AAe=>({name:AAe.name,duration:AAe.duration,initiatorType:AAe.initiatorType})),apiResources:oAe.map(AAe=>({name:AAe.name,duration:AAe.duration,initiatorType:AAe.initiatorType})),imgResources:uAe.map(AAe=>({name:AAe.name,duration:AAe.duration,initiatorType:AAe.initiatorType}))};reportPerformanceData(hAe)}return{jsResources:kh,cssResources:tAe,apiResources:oAe,imgResources:uAe}},initPerformanceMonitor=(Ff=1e3,kh=3e3)=>{staticResourceMonitor=Ff,apiRequestThreshold=kh,window.addEventListener("load",()=>{clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3)}),service.interceptors.request.use(tAe=>(clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3),tAe),tAe=>Promise.reject(tAe.data))},index=(Ff,kh)=>{var oAe,uAe;kh.env||console.error('缺少环境变量,请在main.ts中注册"DfsPageConfig"时配置env【app.use(DfsPageConfig, {..., env: {"VITE_NODE_ENV":"production","VITE_APP_API":"https://gateway-c4.doublefs.com","BASE_URL":"/","MODE":"production","DEV":false,"PROD":true}})】'),["getters","_actions"].forEach(pAe=>{Object.keys(store[pAe]).forEach(hAe=>{kh.store[pAe][hAe]=store[pAe][hAe]})}),kh.store._mutations&&(kh.store._mutations.setUploadDownloadDialogVisible=store._mutations.setUploadDownloadDialogVisible),store.commit("saveUrl",kh.baseUrl),kh.systemSource&&store.commit("saveSystemSource",kh.systemSource),store.commit("saveLocale",kh.locale),store.commit("saveEnv",kh.env),kh.store.state._CONFIG_DATA=store.state._CONFIG_DATA,kh.store.state._BASE_URL=kh.baseUrl,store._mutations.setLoading=kh.store._mutations.setLoading,install(Ff),Ff.component("DfsPageConfig",Page);const tAe=()=>({t:pAe=>pAe});Ff.config.globalProperties.useI18n=kh.useI18n||tAe,kh.monitorConfig&&((uAe=(oAe=kh.env)==null?void 0:oAe.VITE_NODE_ENV)==null?void 0:uAe.indexOf("prod"))>-1&&initPerformanceMonitor(kh.monitorConfig.staticResourceMonitor,kh.monitorConfig.apiRequestThreshold),kh.isSendSensors&&sensors$1(kh.env,kh.project_name),kh.watermark&&watermark.init()};exports.AgTable=AgTable,exports.BatchSearchInput=BatchSearchInput,exports.CellSelect=_sfc_main$3,exports.Dialog=Dialog,exports.EleTable=__unplugin_components_0,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"}})});
|
|
2186
|
+
`,document.head.appendChild(VAe)}function LAe(){localStorage.setItem("fabricHangTagPrintType",pAe.printType)}return{t:kh,fabricHangTagNewRef:oAe,printCountRef:uAe,...vue$1.toRefs(pAe),TipLog,show:hAe,close:AAe,print:gAe,confirm,setOffset:OAe,setDirection:DAe,confirmDirection:RAe,showDialog:TAe,closeDialog:FAe,changePrintType:LAe}}}),FabricHangTag_vue_vue_type_style_index_0_scoped_41be975a_lang="",_withScopeId$1=Ff=>(vue$1.pushScopeId("data-v-41be975a"),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$1={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$1=["innerHTML"],_hoisted_6$1={key:0,style:{height:"6pt"}},_hoisted_7=["innerHTML"],_hoisted_8={key:1,style:{height:"8pt"}},_hoisted_9={style:{margin:"8px 0"}},_hoisted_10=_withScopeId$1(()=>vue$1.createElementVNode("span",{style:{margin:"0 5px","font-size":"6px"}},"●",-1)),_hoisted_11=["innerHTML"],_hoisted_12={key:3,style:{height:"8pt"}},_hoisted_13={id:"barcode",style:{width:"100px"},t:"1755245905315",class:"icon",viewBox:"0 0 6865 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3265",width:"200",height:"200"},_hoisted_14=_withScopeId$1(()=>vue$1.createElementVNode("path",{d:"M69.818 0v1024H0V0h69.818z m23.273 0h46.545v1024H93.091V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM512 0h46.545v1024H512V0z m2257.455 0H2816v1024h-46.545V0z m2304 0H5120v1024h-46.545V0zM861.09 0h46.545v1024H861.09V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM721.455 0H768v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM954.182 0h46.545v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1233.455 0H1280v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1349.82 0h46.545v1024h-46.546V0z m2257.454 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1442.909 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1698.909 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1861.818 0h46.546v1024h-46.546V0z m2257.455 0h46.545v1024h-46.545V0z m2304 0h46.545v1024h-46.545V0zM1978.182 0h93.09v1024h-93.09V0z m2257.454 0h93.091v1024h-93.09V0z m2304 0h93.091v1024h-93.09V0zM2141.091 0h46.545v1024h-46.545V0z m2257.454 0h46.546v1024h-46.546V0z m2304 0h46.546v1024h-46.546V0zM1792 0h23.273v1024H1792V0z m2257.455 0h23.272v1024h-23.272V0z m2304 0h23.272v1024h-23.272V0zM2280.727 0H2304v1024h-23.273V0z m2257.455 0h23.273v1024h-23.273V0z m2304 0h23.273v1024h-23.273V0z m-6656 0h116.363v1024H186.182V0z m2257.454 0H2560v1024h-116.364V0z m2304 0H4864v1024h-116.364V0zM372.364 0h116.363v1024H372.364V0z m2257.454 0h116.364v1024h-116.364V0z m2304 0h116.364v1024h-116.364V0z m-4352 0h93.091v1024h-93.09V0z m2257.455 0h93.09v1024h-93.09V0z m2304 0h93.09v1024h-93.09V0zM1070.545 0h93.091v1024h-93.09V0zM3328 0h93.09v1024H3328V0z m2304 0h93.09v1024H5632V0zM1536 0h93.09v1024H1536V0z m2257.455 0h93.09v1024h-93.09V0z m2304 0h93.09v1024h-93.09V0z","p-id":"3266"},null,-1)),_hoisted_15=[_hoisted_14],_hoisted_16={style:{position:"absolute",bottom:"22px",right:"30px"}},_hoisted_17={class:"dialog-footer"},_hoisted_18={class:"dialog-footer"};function _sfc_render$1(Ff,kh,tAe,oAe,uAe,pAe){var RAe,TAe,FAe;const hAe=vue$1.resolveComponent("ZoomIn"),AAe=ElIcon,gAe=__unplugin_components_1,mAe=ElRadioButton,wAe=ElRadioGroup,bAe=ElButton,PAe=ElInputNumber,SAe=ElFormItem,BAe=ElForm,OAe=ElDialog,DAe=ElRadio;return vue$1.openBlock(),vue$1.createElementBlock(vue$1.Fragment,null,[vue$1.withDirectives(vue$1.createElementVNode("div",{class:vue$1.normalizeClass([Ff.zoomIn?"zoom-in":""]),onClick:kh[3]||(kh[3]=(...MAe)=>Ff.close&&Ff.close(...MAe))},[vue$1.createElementVNode("div",{onClick:kh[2]||(kh[2]=vue$1.withModifiers(()=>{},["stop"])),class:"container",style:{width:"max-content",background:"#e0e0e1",padding:"40px 10px 10px",color:"#000","font-size":"7pt","line-height":"7pt",display:"flex","flex-direction":"column","justify-content":"flex-end","border-radius":"10px",position:"relative","user-select":"none","word-break":"break-word"}},[vue$1.createElementVNode("div",_hoisted_1$1,[_hoisted_2$1,vue$1.createElementVNode("span",_hoisted_3$1,[vue$1.createVNode(AAe,{onClick:kh[0]||(kh[0]=MAe=>Ff.zoomIn=!0),style:{cursor:"pointer"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(hAe)]),_:1})]),vue$1.withDirectives(vue$1.createVNode(gAe,{ref:"fabricHangTagNewRef",data:Ff.data},null,8,["data"]),[[vue$1.vShow,Ff.printType=="new"]]),vue$1.withDirectives(vue$1.createElementVNode("div",_hoisted_4$1,[vue$1.createElementVNode("div",null,[vue$1.createElementVNode("p",{style:{"font-size":"17px","font-family":"CircularXX-Medium","margin-bottom":"5px","line-height":"20px"},innerHTML:(RAe=Ff.data.fabricSeries||Ff.data.name)==null?void 0:RAe.replace(/\n/g,"</br>")},null,8,_hoisted_5$1),Ff.data.friendlyReminder?vue$1.createCommentVNode("",!0):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_6$1)),vue$1.createElementVNode("p",{style:{margin:"5px 0"},innerHTML:(TAe=Ff.data.fabricIntroduction)==null?void 0:TAe.replace(/\n/g,"</br>")},null,8,_hoisted_7),Ff.data.friendlyReminder?vue$1.createCommentVNode("",!0):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_8)),vue$1.createElementVNode("ul",_hoisted_9,[(vue$1.openBlock(!0),vue$1.createElementBlock(vue$1.Fragment,null,vue$1.renderList(Ff.data.fabricFeatureDescList,MAe=>(vue$1.openBlock(),vue$1.createElementBlock("li",{key:MAe,style:{margin:"1pt 0",display:"flex","align-items":"center"}},[_hoisted_10,vue$1.createTextVNode(" "+vue$1.toDisplayString(MAe),1)]))),128))]),Ff.data.friendlyReminder?(vue$1.openBlock(),vue$1.createElementBlock("p",{key:2,style:{margin:"3pt 0"},innerHTML:(FAe=Ff.data.friendlyReminder)==null?void 0:FAe.replace(/\n/g,"</br>")},null,8,_hoisted_11)):(vue$1.openBlock(),vue$1.createElementBlock("p",_hoisted_12)),vue$1.withDirectives((vue$1.openBlock(),vue$1.createElementBlock("svg",_hoisted_13,_hoisted_15,512)),[[vue$1.vShow,Ff.data.barCodeId]]),vue$1.createElementVNode("span",_hoisted_16,vue$1.toDisplayString(Ff.data.code),1)])],512),[[vue$1.vShow,Ff.printType=="old"]])]),vue$1.createVNode(wAe,{modelValue:Ff.printType,"onUpdate:modelValue":kh[1]||(kh[1]=MAe=>Ff.printType=MAe),size:"small",onChange:Ff.changePrintType,style:{display:"flex","justify-content":"center",position:"absolute",top:"8px",left:"-2px","z-index":"3",transform:"scale(0.8)"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(mAe,{label:"new"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("新版")),1)]),_:1}),vue$1.createVNode(mAe,{label:"old"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("旧版")),1)]),_:1})]),_:1},8,["modelValue","onChange"]),Ff.showPrintButton?(vue$1.openBlock(),vue$1.createBlock(bAe,{key:0,class:"print-button",onClick:vue$1.withModifiers(Ff.showDialog,["stop"]),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("打印")),1)]),_:1},8,["onClick"])):vue$1.createCommentVNode("",!0)])],2),[[vue$1.vShow,Ff.isShow]]),vue$1.createVNode(OAe,{title:Ff.t("打印数量"),modelValue:Ff.dialogState,"onUpdate:modelValue":kh[6]||(kh[6]=MAe=>Ff.dialogState=MAe),width:"350px",center:"","close-on-click-modal":!1,onClose:Ff.closeDialog},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_17,[vue$1.createVNode(bAe,{onClick:kh[5]||(kh[5]=MAe=>Ff.dialogState=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(bAe,{type:"primary",onClick:Ff.print,size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("确认")),1)]),_:1},8,["onClick"])])]),default:vue$1.withCtx(()=>[vue$1.createVNode(BAe,{"label-width":"20px"},{default:vue$1.withCtx(()=>[vue$1.createVNode(SAe,{label:" ",style:{"margin-bottom":"0"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(PAe,{ref:"printCountRef",modelValue:Ff.printCount,"onUpdate:modelValue":kh[4]||(kh[4]=MAe=>Ff.printCount=MAe),min:1,precision:0,controls:!1,placeholder:Ff.t("请输入打印数量"),style:{width:"100%"}},null,8,["modelValue","placeholder"])]),_:1}),vue$1.createVNode(SAe,{label:" "},{default:vue$1.withCtx(()=>[vue$1.createVNode(bAe,{onClick:Ff.setOffset,link:"",size:"small",style:{color:"#409eff"}},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("设置横向偏移")),1)]),_:1},8,["onClick"]),vue$1.createVNode(bAe,{onClick:Ff.setDirection,link:"",size:"small",style:{color:"#409eff"}},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("设置标签方向")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["title","modelValue","onClose"]),vue$1.createVNode(OAe,{title:Ff.t("设置标签方向"),modelValue:Ff.directionDialogVisible,"onUpdate:modelValue":kh[9]||(kh[9]=MAe=>Ff.directionDialogVisible=MAe),width:"350px",center:"","close-on-click-modal":!1},{footer:vue$1.withCtx(()=>[vue$1.createElementVNode("span",_hoisted_18,[vue$1.createVNode(bAe,{onClick:kh[8]||(kh[8]=MAe=>Ff.directionDialogVisible=!1),size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("取消")),1)]),_:1}),vue$1.createVNode(bAe,{type:"primary",onClick:Ff.confirmDirection,size:"small"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("确定")),1)]),_:1},8,["onClick"])])]),default:vue$1.withCtx(()=>[vue$1.createVNode(wAe,{modelValue:Ff.direction,"onUpdate:modelValue":kh[7]||(kh[7]=MAe=>Ff.direction=MAe),style:{display:"flex","justify-content":"center",height:"74px"}},{default:vue$1.withCtx(()=>[vue$1.createVNode(DAe,{label:"1"},{default:vue$1.withCtx(()=>[vue$1.createTextVNode(vue$1.toDisplayString(Ff.t("纵向")),1)]),_:1}),vue$1.createVNode(DAe,{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-41be975a"]]);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",components:{EleTable:__unplugin_components_0},setup(){let Ff=!1;const kh=PAe(),tAe=vue$1.ref([]),oAe=vue$1.ref(0),uAe=vue$1.ref({pageNum:1,pageSize:50}),pAe=vue$1.ref({needPage:!0,border:!0,pageSize:[50,100,200,500,1e3]}),hAe=vue$1.computed(()=>store.state.uploadDownloadDialogVisible);let AAe=null;const gAe=()=>{AAe=window.setInterval(()=>{wAe()},5e3)},mAe=()=>{AAe&&clearInterval(AAe),AAe=null,store.commit("setUploadDownloadDialogVisible",!1),Ff=!1};function wAe(){service({url:store.state._BASE_URL+"/export-service/common-task/page",data:{pageNum:uAe.value.pageNum,pageSize:uAe.value.pageSize},method:"POST"}).then(tme=>{tAe.value=tme.records,oAe.value=tme.total}).catch(tme=>{console.log(tme)})}const bAe=()=>{Ff||(wAe(),gAe(),Ff=!0)};function PAe(){return[{value:"typeName",label:"类型",width:100,align:"left"},{value:"fileName",label:"文件名",minWidth:200,slot:"fileName"},{value:"taskStatusName",label:"状态",width:120,slot:"taskStatusName"},{value:"failReason",label:"备注",minWidth:200,slot:"failReason"},{value:"createdAt",label:"操作时间",width:180},{value:"createdUserName",label:"操作人",width:120}]}const SAe={0:"#909399",1:"#67C23A",2:"#409EFF",3:"#409EFF",4:"#67C23A",5:"#F56C6C","-1":"#F56C6C"},BAe=tme=>SAe[tme]||"#909399",OAe=tme=>{uAe.value.pageNum=tme.currentPage||1,uAe.value.pageSize=tme.pageSize||50,wAe()},DAe=vue$1.ref(null),RAe=vue$1.reactive({x:0,y:0});let TAe=!1,FAe=0,MAe=0,LAe=0,_Ae=0;const VAe=tme=>{DAe.value&&(TAe=!0,FAe=tme.clientX,MAe=tme.clientY,LAe=RAe.x,_Ae=RAe.y,document.addEventListener("mousemove",WAe),document.addEventListener("mouseup",KAe))},WAe=tme=>{if(!TAe||!DAe.value)return;const ame=tme.clientX-FAe,cme=tme.clientY-MAe;let zAe=LAe+ame,$Ae=_Ae+cme;const rme=DAe.value.offsetWidth,eme=DAe.value.offsetHeight;zAe=Math.max(0,Math.min(window.innerWidth-rme,zAe)),$Ae=Math.max(0,Math.min(window.innerHeight-eme,$Ae)),RAe.x=zAe,RAe.y=$Ae},KAe=()=>{if(!DAe.value)return;TAe=!1,document.removeEventListener("mousemove",WAe),document.removeEventListener("mouseup",KAe);const tme=DAe.value.offsetWidth,ame=RAe.x,cme=window.innerWidth-(RAe.x+tme);DAe.value.style.transition="all 0.2s ease-out",ame<cme?RAe.x=0:RAe.x=window.innerWidth-tme;const zAe=DAe.value.offsetHeight;RAe.y=Math.max(0,Math.min(window.innerHeight-zAe,RAe.y)),setTimeout(()=>{DAe.value&&(DAe.value.style.transition="")},300)},XAe=()=>{if(!DAe.value)return;const tme=DAe.value.offsetWidth,ame=DAe.value.offsetHeight;RAe.x=window.innerWidth-tme,RAe.y=window.innerHeight-ame-30};return vue$1.onMounted(()=>{window.addEventListener("resize",XAe),vue$1.nextTick(()=>{if(DAe.value){const tme=DAe.value.offsetWidth,ame=DAe.value.offsetHeight;RAe.x=window.innerWidth-tme,RAe.y=window.innerHeight-ame-30}})}),{getData:wAe,dialogVisible:hAe,handleOpenDialog:bAe,dragButton:DAe,buttonPosition:RAe,startDrag:VAe,handleMouseDown:tme=>{const ame=new Date().getTime();VAe(tme);const cme=zAe=>{KAe();const $Ae=new Date().getTime(),rme=Math.sqrt(Math.pow(zAe.clientX-FAe,2)+Math.pow(zAe.clientY-MAe,2));$Ae-ame<200&&rme<5&&store.commit("setUploadDownloadDialogVisible",!0)};document.addEventListener("mouseup",cme,{once:!0})},stopPolling:mAe,tableColumns:kh,tableData:tAe,tableTotal:oAe,tablePageInfo:uAe,tableConfigFlag:pAe,handleTableChange:OAe,getStatusColor:BAe}}}),UploadDownloadCenter_vue_vue_type_style_index_0_scoped_95c6c15a_lang="",UploadDownloadCenter_vue_vue_type_style_index_1_lang="",_withScopeId=Ff=>(vue$1.pushScopeId("data-v-95c6c15a"),Ff=Ff(),vue$1.popScopeId(),Ff),_hoisted_1=_withScopeId(()=>vue$1.createElementVNode("p",{class:"drag-button-text"},"上传\\下载",-1)),_hoisted_2=[_hoisted_1],_hoisted_3=["href"],_hoisted_4={key:1},_hoisted_5=["href"],_hoisted_6={key:1};function _sfc_render(Ff,kh,tAe,oAe,uAe,pAe){const hAe=__unplugin_components_0,AAe=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]=(...gAe)=>Ff.handleMouseDown&&Ff.handleMouseDown(...gAe)),style:vue$1.normalizeStyle({left:Ff.buttonPosition.x+"px",top:Ff.buttonPosition.y+"px"})},_hoisted_2,36),vue$1.createVNode(AAe,{class:"upload-download-center-dialog",title:"上传/下载中心",modelValue:Ff.dialogVisible,"onUpdate:modelValue":kh[1]||(kh[1]=gAe=>Ff.dialogVisible=gAe),width:"80%","destroy-on-close":!0,top:"6vh",center:"",onOpen:Ff.handleOpenDialog,onClose:Ff.stopPolling},{default:vue$1.withCtx(()=>[vue$1.createVNode(hAe,{columns:Ff.tableColumns,data:Ff.tableData,totalNum:Ff.tableTotal,pageInfo:Ff.tablePageInfo,configFlag:Ff.tableConfigFlag,onHandleChange:Ff.handleTableChange,tableHeight:"72vh"},{fileName:vue$1.withCtx(({scope:gAe})=>[gAe.row.fileUrl?(vue$1.openBlock(),vue$1.createElementBlock("a",{key:0,href:gAe.row.fileUrl,target:"_blank",rel:"noopener noreferrer"},vue$1.toDisplayString(gAe.row.fileName),9,_hoisted_3)):(vue$1.openBlock(),vue$1.createElementBlock("span",_hoisted_4,vue$1.toDisplayString(gAe.row.fileName),1))]),taskStatusName:vue$1.withCtx(({scope:gAe})=>[vue$1.createElementVNode("span",{style:vue$1.normalizeStyle({color:Ff.getStatusColor(gAe.row.taskStatus)})},vue$1.toDisplayString(gAe.row.taskStatusName),5)]),failReason:vue$1.withCtx(({scope:gAe})=>[gAe.row.failFileUrl?(vue$1.openBlock(),vue$1.createElementBlock("a",{key:0,href:gAe.row.failFileUrl,target:"_blank",rel:"noopener noreferrer"},vue$1.toDisplayString(gAe.row.failReason),9,_hoisted_5)):(vue$1.openBlock(),vue$1.createElementBlock("span",_hoisted_6,vue$1.toDisplayString(gAe.row.failReason),1))]),_:1},8,["columns","data","totalNum","pageInfo","configFlag","onHandleChange"])]),_:1},8,["modelValue","onOpen","onClose"])],64)}const UploadDownloadCenter=_export_sfc$1(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-95c6c15a"]]);UploadDownloadCenter.install=Ff=>Ff.component(UploadDownloadCenter.name,UploadDownloadCenter);let timer=null,staticResourceMonitor=2e3,apiRequestThreshold=3e3;const userInfo=JSON.parse(localStorage.getItem("userInfo")||"{}"),username=userInfo.name||userInfo.displayName||"",PERFORMANCE_SERVER_URL="https://performance-monitor.prod.doublefs.com/api/performance";function reportPerformanceData(Ff){try{const kh=encodeURIComponent(JSON.stringify({url:window.location.href,timestamp:Date.now(),username,...Ff})),tAe=new Image;tAe.src=`${PERFORMANCE_SERVER_URL}?data=${kh}`,tAe.style.display="none",tAe.onload=()=>{console.log("性能数据上报成功"),document.body.removeChild(tAe)},tAe.onerror=oAe=>{console.error("性能数据上报失败",oAe),document.body.removeChild(tAe)},document.body.appendChild(tAe)}catch(kh){console.error("上报性能数据失败:",kh)}}const analyzeResourceLoadTime=()=>{if(!window.performance||!window.performance.getEntriesByType){console.warn("Performance API不可用,无法分析资源加载时间");return}const Ff=window.performance.getEntriesByType("resource"),kh=[],tAe=[],oAe=[],uAe=[];if(Ff.filter(hAe=>!hAe.isReport).forEach(hAe=>{hAe.isReport=!0;const AAe=hAe.name.toLowerCase();AAe.endsWith(".css")||hAe.initiatorType==="css"||hAe.initiatorType==="link"?hAe.duration>staticResourceMonitor&&tAe.push(hAe):AAe.endsWith(".js")||hAe.initiatorType==="script"?hAe.duration>staticResourceMonitor&&kh.push(hAe):hAe.initiatorType==="img"?hAe.duration>staticResourceMonitor&&uAe.push(hAe):(hAe.initiatorType==="xmlhttprequest"||hAe.initiatorType==="fetch")&&hAe.duration>apiRequestThreshold&&oAe.push(hAe)}),kh.length>0&&(console.log(`检测到${kh.length}个JS资源加载时间超过${staticResourceMonitor}ms:`),kh.forEach(hAe=>{console.log(`- JS: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),tAe.length>0&&(console.log(`检测到${tAe.length}个CSS资源加载时间超过${staticResourceMonitor}ms:`),tAe.forEach(hAe=>{console.log(`- CSS: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),uAe.length>0&&(console.log(`检测到${uAe.length}个图片资源加载时间超过${staticResourceMonitor}ms:`),uAe.forEach(hAe=>{console.log(`- 图片: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),oAe.length>0&&(console.log(`检测到${oAe.length}个API请求时间超过${apiRequestThreshold}ms:`),oAe.forEach(hAe=>{console.log(`- API: ${hAe.name}: ${(hAe.duration/1e3).toFixed(2)}s`)})),kh.length>0||tAe.length>0||oAe.length>0||uAe.length>0){const hAe={jsResources:kh.map(AAe=>({name:AAe.name,duration:AAe.duration,initiatorType:AAe.initiatorType})),cssResources:tAe.map(AAe=>({name:AAe.name,duration:AAe.duration,initiatorType:AAe.initiatorType})),apiResources:oAe.map(AAe=>({name:AAe.name,duration:AAe.duration,initiatorType:AAe.initiatorType})),imgResources:uAe.map(AAe=>({name:AAe.name,duration:AAe.duration,initiatorType:AAe.initiatorType}))};reportPerformanceData(hAe)}return{jsResources:kh,cssResources:tAe,apiResources:oAe,imgResources:uAe}},initPerformanceMonitor=(Ff=1e3,kh=3e3)=>{staticResourceMonitor=Ff,apiRequestThreshold=kh,window.addEventListener("load",()=>{clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3)}),service.interceptors.request.use(tAe=>(clearTimeout(timer),timer=setTimeout(()=>{analyzeResourceLoadTime()},5e3),tAe),tAe=>Promise.reject(tAe.data))},index=(Ff,kh)=>{var oAe,uAe;kh.env||console.error('缺少环境变量,请在main.ts中注册"DfsPageConfig"时配置env【app.use(DfsPageConfig, {..., env: {"VITE_NODE_ENV":"production","VITE_APP_API":"https://gateway-tob-is.prod.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),kh.systemSource&&store.commit("saveSystemSource",kh.systemSource),store.commit("saveLocale",kh.locale),store.commit("saveEnv",kh.env),kh.store.state._CONFIG_DATA=store.state._CONFIG_DATA,kh.store.state._BASE_URL=kh.baseUrl,store._mutations.setLoading=kh.store._mutations.setLoading,install(Ff),Ff.component("DfsPageConfig",Page);const tAe=()=>({t:pAe=>pAe});Ff.config.globalProperties.useI18n=kh.useI18n||tAe,kh.monitorConfig&&((uAe=(oAe=kh.env)==null?void 0:oAe.VITE_NODE_ENV)==null?void 0:uAe.indexOf("prod"))>-1&&initPerformanceMonitor(kh.monitorConfig.staticResourceMonitor,kh.monitorConfig.apiRequestThreshold),kh.isSendSensors&&sensors$1(kh.env,kh.project_name),kh.watermark&&watermark.init()};exports.AgTable=AgTable,exports.BatchSearchInput=BatchSearchInput,exports.CellSelect=_sfc_main$3,exports.Dialog=Dialog,exports.EleTable=__unplugin_components_0,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"}})});
|