ui-process-h5 0.1.23 → 0.1.25

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.
@@ -0,0 +1,3 @@
1
+ (function(N,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(N=typeof globalThis<"u"?globalThis:N||self,i(N.Design={},N.Vue))})(this,function(N,i){"use strict";const Ze=i.defineComponent({name:"TopTab",props:{tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]}},setup(e){const t=i.ref("http://59.53.91.231:8088/portal/r/w?sid=6f714ec1-7570-4525-ac51-b092402d8295&cmd=CLIENT_BPM_FORM_TRACK_OPEN&processInstId=1f6e7196-e1ea-428e-b295-aa23a54a2402&supportCanvas=true&formInfo="),n=i.ref([{actionName:"提交",activityName:"部门负责人",createDate:"2023-04-20 14:47:35",createUser:"18ccbf63229f0c79f39940ae284c111e",createUserName:"朱鸿飞",customUniqueId:"",departmentName:"测试部",id:"88df38c8-9756-4b4a-a9b0-dcb0ec1b57d5",metaAnnexList:null,msg:"同意",positionName:"测试部119147",processInstId:"1f6e7196-e1ea-428e-b295-aa23a54a2402",taskInstId:"38bbef1c-efbb-456d-bd79-08ed9d96b4b3"}]),r=i.ref(""),o=i.ref([{label:"基本信息",key:"a",type:"default",slot:"default"},{label:"流程图",key:"b",type:"default",slot:"tab2"},{label:"审批记录",key:"c",type:"default",slot:"tab3"}]),a=i.ref([{label:"基本信息",key:"a",type:"default",slot:"default"},{label:"流程图",key:"b",type:"default",slot:"tab2"},{label:"审批记录",key:"c",type:"default",slot:"tab3"}]),s=i.ref(),u=(c,d)=>{c!==r.value&&(r.value=c,f(d))},f=c=>{if(s.value.length){let d=document.getElementsByClassName("bottom-line")[0],p;if(d.offsetWidth<s.value[c].offsetWidth-10){let b=(s.value[c].offsetWidth-d.offsetWidth-10)/2;p=`${s.value[c].offsetLeft+b}px`}else if(d.offsetWidth>s.value[c].offsetWidth-10){let b=(d.offsetWidth-s.value[c].offsetWidth+10)/2;p=`${s.value[c].offsetLeft-b}px`}else p=`${s.value[c].offsetLeft}px`;d.style.transition=".3s",d.style.transform=`translateX(${p})`}};return i.watch(()=>e.selfTapList,(c,d)=>{c.length&&(a.value=[].concat(c),r.value=a.value[0].key)},{immediate:!0,deep:!0}),i.watch(()=>e.tapList,(c,d)=>{e.selfTapList.length||(a.value=[].concat(o.value),c.length>0&&c.forEach((p,b)=>{p.sort&&p.sort>1?a.value.splice(p.sort-1,0,p):p.sort==1?a.value.unshift(p):a.value.push(p)}),r.value=a.value[0].key)},{immediate:!0,deep:!0}),i.onMounted(()=>{f(0)}),{isTapList:a,active:r,handleActive:u,label:s,taskCommentList:n,trackUrl:t}}}),hr="",q=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},O=e=>(i.pushScopeId("data-v-baad7ff1"),e=e(),i.popScopeId(),e),ve={class:"tops-tab"},et={class:"tops-tab-header"},tt=["onClick"],nt={key:0,class:"bottom-line"},rt={class:"tops-tab-body"},ot=["src"],st={key:1,class:"textnone"},it={class:"seal-list__item--option"},at=O(()=>i.createElementVNode("span",null,"节点名称",-1)),lt={class:"seal-list__item--option"},ct=O(()=>i.createElementVNode("span",null,"审批人",-1)),ut={class:"seal-list__item--option"},dt=O(()=>i.createElementVNode("span",null,"审批操作",-1)),ft={class:"seal-list__item--option"},pt=O(()=>i.createElementVNode("span",null,"审批意见",-1)),mt=["innerHTML"],ht={class:"seal-list__item--option"},yt=O(()=>i.createElementVNode("span",null,"审批时间",-1)),bt={key:0,class:"seal-list__item--attch"},Et=[O(()=>i.createElementVNode("span",null,"查看附件",-1))],gt={key:1,class:"textnone"};function St(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",ve,[i.createElementVNode("div",et,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.isTapList,(s,u)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tops-tab-header-items",[s.key===e.active?"active":""]]),onClick:f=>e.handleActive(s.key,u),ref_for:!0,ref:"label"},i.toDisplayString(s.label),11,tt))),256)),e.isTapList.length?(i.openBlock(),i.createElementBlock("div",nt)):i.createCommentVNode("",!0)]),i.createElementVNode("div",rt,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.isTapList,s=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:s.key,style:{height:"calc(100% - 45px)"}},[s.key==="a"&&s.type==="default"?i.renderSlot(e.$slots,"default",{key:0},void 0,!0):i.createCommentVNode("",!0),s.key==="b"&&s.type==="default"?i.renderSlot(e.$slots,s.slot,{key:1},()=>[e.trackUrl?(i.openBlock(),i.createElementBlock("iframe",{key:0,src:e.trackUrl,style:{width:"100%","min-height":"500px",border:"none"},scrolling:"no",frameborder:"0"},null,8,ot)):(i.openBlock(),i.createElementBlock("div",st," 暂无流程图 "))],!0):i.createCommentVNode("",!0),s.key==="c"&&s.type==="default"?i.renderSlot(e.$slots,s.slot,{key:2},()=>{var u;return[((u=e.taskCommentList)==null?void 0:u.length)>0?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.taskCommentList,(f,c)=>(i.openBlock(),i.createElementBlock("div",{key:f.id,class:"seal-list__item"},[i.createElementVNode("div",null,[i.createElementVNode("div",it,[at,i.createElementVNode("span",null,i.toDisplayString(f.activityName),1)]),i.createElementVNode("div",lt,[ct,i.createElementVNode("span",null,i.toDisplayString(f.createUserName),1)]),i.createElementVNode("div",ut,[dt,i.createElementVNode("span",null,i.toDisplayString(f.actionName),1)]),i.createElementVNode("div",ft,[pt,i.createElementVNode("span",{innerHTML:f.msg},null,8,mt)]),i.createElementVNode("div",ht,[yt,i.createElementVNode("span",null,i.toDisplayString(f.createDate),1)]),f.metaAnnexList&&f.metaAnnexList.length?(i.openBlock(),i.createElementBlock("div",bt,Et)):i.createCommentVNode("",!0)])]))),128)):(i.openBlock(),i.createElementBlock("div",gt,"暂无数据"))]},!0):i.createCommentVNode("",!0),s.type=="slot"?i.renderSlot(e.$slots,s.slot,{key:3},void 0,!0):i.createCommentVNode("",!0)])),[[i.vShow,e.active===s.key]])),128))])])}const R=q(Ze,[["render",St],["__scopeId","data-v-baad7ff1"]]);R.install=function(e){return e.component(R.name,R),e};const _t=i.defineComponent({name:"TopPopup",props:{titleText:{default:"top-popup",type:String},cancelText:{default:"取消",type:String},comfigText:{default:"确定",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{require:!1,default:!0,type:Boolean},isMaskClose:{require:!1,default:!0,type:Boolean}},setup(e){const t=i.ref(!1),n=()=>{t.value=!0},r=()=>{typeof e.cancel=="function"&&e.cancel(),a()},o=()=>{typeof e.comfig=="function"&&e.comfig()},a=()=>{t.value=!1};return i.onMounted(()=>{document.querySelector("body")}),{handleOpen:n,handleCancel:r,handleComfig:o,handleClose:a,show:t}}}),br="",wt={class:"top-popup-header"},Nt={class:"header-title"},Tt={class:"top-popup-body"};function kt(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{class:"top-popup",style:i.normalizeStyle(e.show?"transform: translateY(0)":"transform: translateY(100%)")},[i.createElementVNode("div",wt,[i.createElementVNode("div",{class:"header-cancel",onClick:t[0]||(t[0]=(...s)=>e.handleCancel&&e.handleCancel(...s))},i.toDisplayString(e.cancelText),1),i.createElementVNode("div",Nt,i.toDisplayString(e.titleText),1),i.createElementVNode("div",{class:"header-comfig",onClick:t[1]||(t[1]=(...s)=>e.handleComfig&&e.handleComfig(...s))},i.toDisplayString(e.comfigText),1)]),i.createElementVNode("div",Tt,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4),e.show&&e.isMask?(i.openBlock(),i.createElementBlock("div",{key:0,class:"top-popup-mask",onClick:t[2]||(t[2]=s=>e.isMaskClose&&e.handleClose())})):i.createCommentVNode("",!0)],64)}const F=q(_t,[["render",kt],["__scopeId","data-v-474e328a"]]);F.install=function(e){return console.log("TopPopup.install",e),e.mount(F),e.component(F.name,F),e};const Er="",Ct=i.defineComponent({name:"TopButton",props:{type:{default:"default",type:String}},setup(e){const t=i.ref({textColor:"#fff",bckColor:"3c9cff"});switch(e.type){case"primary":t.value.textColor="#fff",t.value.bckColor="#3c9cff";break;case"danger":t.value.textColor="rgb(255, 96, 96)",t.value.bckColor="rgb(255, 230, 230)";break;case"default":t.value.textColor="rgb(51, 51, 51)",t.value.bckColor="rgb(241, 241, 241)";break}return{style:t}}});function Bt(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",{class:"top-button",style:i.normalizeStyle(`background-color:${e.style.bckColor};color:${e.style.textColor}`)},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const H=q(Ct,[["render",Bt],["__scopeId","data-v-156a54e6"]]);H.install=function(e){return e.component(H.name,H),e};function Ee(e,t){return function(){return e.apply(t,arguments)}}const{toString:At}=Object.prototype,{getPrototypeOf:ne}=Object,z=(e=>t=>{const n=At.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),T=e=>(e=e.toLowerCase(),t=>z(t)===e),J=e=>t=>typeof t===e,{isArray:P}=Array,U=J("undefined");function Ot(e){return e!==null&&!U(e)&&e.constructor!==null&&!U(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ge=T("ArrayBuffer");function Rt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ge(e.buffer),t}const Pt=J("string"),k=J("function"),Se=J("number"),re=e=>e!==null&&typeof e=="object",Lt=e=>e===!0||e===!1,W=e=>{if(z(e)!=="object")return!1;const t=ne(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Dt=T("Date"),xt=T("File"),Ft=T("Blob"),Ut=T("FileList"),Vt=e=>re(e)&&k(e.pipe),It=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||k(e.append)&&((t=z(e))==="formdata"||t==="object"&&k(e.toString)&&e.toString()==="[object FormData]"))},$t=T("URLSearchParams"),jt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function V(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),P(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let u;for(r=0;r<s;r++)u=a[r],t.call(null,e[u],u,e)}}function _e(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const we=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Ne=e=>!U(e)&&e!==we;function oe(){const{caseless:e}=Ne(this)&&this||{},t={},n=(r,o)=>{const a=e&&_e(t,o)||o;W(t[a])&&W(r)?t[a]=oe(t[a],r):W(r)?t[a]=oe({},r):P(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&V(arguments[r],n);return t}const Mt=(e,t,n,{allOwnKeys:r}={})=>(V(t,(o,a)=>{n&&k(o)?e[a]=Ee(o,n):e[a]=o},{allOwnKeys:r}),e),qt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ht=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},zt=(e,t,n,r)=>{let o,a,s;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!r||r(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=n!==!1&&ne(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Jt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Wt=e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!Se(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Kt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ne(Uint8Array)),Gt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Xt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yt=T("HTMLFormElement"),Qt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Te=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zt=T("RegExp"),ke=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};V(n,(o,a)=>{t(o,a,e)!==!1&&(r[a]=o)}),Object.defineProperties(e,r)},vt=e=>{ke(e,(t,n)=>{if(k(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(k(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},en=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return P(e)?r(e):r(String(e).split(t)),n},tn=()=>{},nn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),se="abcdefghijklmnopqrstuvwxyz",Ce="0123456789",Be={DIGIT:Ce,ALPHA:se,ALPHA_DIGIT:se+se.toUpperCase()+Ce},rn=(e=16,t=Be.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function on(e){return!!(e&&k(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const l={isArray:P,isArrayBuffer:ge,isBuffer:Ot,isFormData:It,isArrayBufferView:Rt,isString:Pt,isNumber:Se,isBoolean:Lt,isObject:re,isPlainObject:W,isUndefined:U,isDate:Dt,isFile:xt,isBlob:Ft,isRegExp:Zt,isFunction:k,isStream:Vt,isURLSearchParams:$t,isTypedArray:Kt,isFileList:Ut,forEach:V,merge:oe,extend:Mt,trim:jt,stripBOM:qt,inherits:Ht,toFlatObject:zt,kindOf:z,kindOfTest:T,endsWith:Jt,toArray:Wt,forEachEntry:Gt,matchAll:Xt,isHTMLForm:Yt,hasOwnProperty:Te,hasOwnProp:Te,reduceDescriptors:ke,freezeMethods:vt,toObjectSet:en,toCamelCase:Qt,noop:tn,toFiniteNumber:nn,findKey:_e,global:we,isContextDefined:Ne,ALPHABET:Be,generateString:rn,isSpecCompliantForm:on,toJSONObject:e=>{const t=new Array(10),n=(r,o)=>{if(re(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=P(r)?[]:{};return V(r,(s,u)=>{const f=n(s,o+1);!U(f)&&(a[u]=f)}),t[o]=void 0,a}}return r};return n(e,0)}};function y(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}l.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ae=y.prototype,Oe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Oe[e]={value:e}}),Object.defineProperties(y,Oe),Object.defineProperty(Ae,"isAxiosError",{value:!0}),y.from=(e,t,n,r,o,a)=>{const s=Object.create(Ae);return l.toFlatObject(e,s,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),y.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const sn=null;function ie(e){return l.isPlainObject(e)||l.isArray(e)}function Re(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function Pe(e,t,n){return e?e.concat(t).map(function(o,a){return o=Re(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function an(e){return l.isArray(e)&&!e.some(ie)}const ln=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function K(e,t,n){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,S){return!l.isUndefined(S[m])});const r=n.metaTokens,o=n.visitor||d,a=n.dots,s=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(o))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(l.isDate(h))return h.toISOString();if(!f&&l.isBlob(h))throw new y("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(h)||l.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,m,S){let _=h;if(h&&!S&&typeof h=="object"){if(l.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(l.isArray(h)&&an(h)||(l.isFileList(h)||l.endsWith(m,"[]"))&&(_=l.toArray(h)))return m=Re(m),_.forEach(function(te,mr){!(l.isUndefined(te)||te===null)&&t.append(s===!0?Pe([m],mr,a):s===null?m:m+"[]",c(te))}),!1}return ie(h)?!0:(t.append(Pe(S,m,a),c(h)),!1)}const p=[],b=Object.assign(ln,{defaultVisitor:d,convertValue:c,isVisitable:ie});function E(h,m){if(!l.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(h),l.forEach(h,function(_,x){(!(l.isUndefined(_)||_===null)&&o.call(t,_,l.isString(x)?x.trim():x,m,b))===!0&&E(_,m?m.concat(x):[x])}),p.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Le(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ae(e,t){this._pairs=[],e&&K(e,this,t)}const De=ae.prototype;De.append=function(t,n){this._pairs.push([t,n])},De.toString=function(t){const n=t?function(r){return t.call(this,r,Le)}:Le;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function cn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xe(e,t,n){if(!t)return e;const r=n&&n.encode||cn,o=n&&n.serialize;let a;if(o?a=o(t,n):a=l.isURLSearchParams(t)?t.toString():new ae(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class un{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Fe=un,Ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dn=typeof URLSearchParams<"u"?URLSearchParams:ae,fn=typeof FormData<"u"?FormData:null,pn=typeof Blob<"u"?Blob:null,mn=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),hn=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),w={isBrowser:!0,classes:{URLSearchParams:dn,FormData:fn,Blob:pn},isStandardBrowserEnv:mn,isStandardBrowserWebWorkerEnv:hn,protocols:["http","https","file","blob","url","data"]};function yn(e,t){return K(e,new w.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return w.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function bn(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function En(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function Ve(e){function t(n,r,o,a){let s=n[a++];const u=Number.isFinite(+s),f=a>=n.length;return s=!s&&l.isArray(o)?o.length:s,f?(l.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!u):((!o[s]||!l.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&l.isArray(o[s])&&(o[s]=En(o[s])),!u)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(r,o)=>{t(bn(r),o,n,0)}),n}return null}const gn={"Content-Type":void 0};function Sn(e,t,n){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:Ue,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=l.isObject(t);if(a&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return o&&o?JSON.stringify(Ve(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return yn(t,this.formSerializer).toString();if((u=l.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return K(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Sn(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&l.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(s)throw u.name==="SyntaxError"?y.from(u,y.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:w.classes.FormData,Blob:w.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};l.forEach(["delete","get","head"],function(t){G.headers[t]={}}),l.forEach(["post","put","patch"],function(t){G.headers[t]=l.merge(gn)});const le=G,_n=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wn=e=>{const t={};let n,r,o;return e&&e.split(`
2
+ `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&_n[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ie=Symbol("internals");function I(e){return e&&String(e).trim().toLowerCase()}function X(e){return e===!1||e==null?e:l.isArray(e)?e.map(X):String(e)}function Nn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Tn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ce(e,t,n,r,o){if(l.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!l.isString(t)){if(l.isString(r))return t.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(t)}}function kn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Cn(e,t){const n=l.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}class Y{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(u,f,c){const d=I(f);if(!d)throw new Error("header name must be a non-empty string");const p=l.findKey(o,d);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||f]=X(u))}const s=(u,f)=>l.forEach(u,(c,d)=>a(c,d,f));return l.isPlainObject(t)||t instanceof this.constructor?s(t,n):l.isString(t)&&(t=t.trim())&&!Tn(t)?s(wn(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=I(t),t){const r=l.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Nn(o);if(l.isFunction(n))return n.call(this,o,r);if(l.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=I(t),t){const r=l.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ce(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=I(s),s){const u=l.findKey(r,s);u&&(!n||ce(r,r[u],u,n))&&(delete r[u],o=!0)}}return l.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||ce(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return l.forEach(this,(o,a)=>{const s=l.findKey(r,a);if(s){n[s]=X(o),delete n[a];return}const u=t?kn(a):String(a).trim();u!==a&&delete n[a],n[u]=X(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return l.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&l.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ie]=this[Ie]={accessors:{}}).accessors,o=this.prototype;function a(s){const u=I(s);r[u]||(Cn(o,s),r[u]=!0)}return l.isArray(t)?t.forEach(a):a(t),this}}Y.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.freezeMethods(Y.prototype),l.freezeMethods(Y);const C=Y;function ue(e,t){const n=this||le,r=t||n,o=C.from(r.headers);let a=r.data;return l.forEach(e,function(u){a=u.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function $e(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}l.inherits($,y,{__CANCEL__:!0});function Bn(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const An=w.isStandardBrowserEnv?function(){return{write:function(n,r,o,a,s,u){const f=[];f.push(n+"="+encodeURIComponent(r)),l.isNumber(o)&&f.push("expires="+new Date(o).toGMTString()),l.isString(a)&&f.push("path="+a),l.isString(s)&&f.push("domain="+s),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function On(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rn(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function je(e,t){return e&&!On(t)?Rn(e,t):t}const Pn=w.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(a){let s=a;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const u=l.isString(s)?o(s):s;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Ln(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),d=r[a];s||(s=c),n[o]=f,r[o]=c;let p=a,b=0;for(;p!==o;)b+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-s<t)return;const E=d&&c-d;return E?Math.round(b*1e3/E):void 0}}function Me(e,t){let n=0;const r=Dn(50,250);return o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,u=a-n,f=r(u),c=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:f||void 0,estimated:f&&s&&c?(s-a)/f:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const Q={http:sn,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let o=e.data;const a=C.from(e.headers).normalize(),s=e.responseType;let u;function f(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}l.isFormData(o)&&(w.isStandardBrowserEnv||w.isStandardBrowserWebWorkerEnv)&&a.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const E=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(E+":"+h))}const d=je(e.baseURL,e.url);c.open(e.method.toUpperCase(),xe(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const E=C.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:E,config:e,request:c};Bn(function(_){n(_),f()},function(_){r(_),f()},m),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(r(new y("Request aborted",y.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Ue;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new y(h,m.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,c)),c=null},w.isStandardBrowserEnv){const E=(e.withCredentials||Pn(d))&&e.xsrfCookieName&&An.read(e.xsrfCookieName);E&&a.set(e.xsrfHeaderName,E)}o===void 0&&a.setContentType(null),"setRequestHeader"in c&&l.forEach(a.toJSON(),function(h,m){c.setRequestHeader(m,h)}),l.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Me(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Me(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=E=>{c&&(r(!E||E.type?new $(null,e,c):E),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const b=Ln(d);if(b&&w.protocols.indexOf(b)===-1){r(new y("Unsupported protocol "+b+":",y.ERR_BAD_REQUEST,e));return}c.send(o||null)})}};l.forEach(Q,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xn={getAdapter:e=>{e=l.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=l.isString(n)?Q[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new y(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(l.hasOwnProp(Q,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!l.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Q};function de(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function qe(e){return de(e),e.headers=C.from(e.headers),e.data=ue.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xn.getAdapter(e.adapter||le.adapter)(e).then(function(r){return de(e),r.data=ue.call(e,e.transformResponse,r),r.headers=C.from(r.headers),r},function(r){return $e(r)||(de(e),r&&r.response&&(r.response.data=ue.call(e,e.transformResponse,r.response),r.response.headers=C.from(r.response.headers))),Promise.reject(r)})}const He=e=>e instanceof C?e.toJSON():e;function L(e,t){t=t||{};const n={};function r(c,d,p){return l.isPlainObject(c)&&l.isPlainObject(d)?l.merge.call({caseless:p},c,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function o(c,d,p){if(l.isUndefined(d)){if(!l.isUndefined(c))return r(void 0,c,p)}else return r(c,d,p)}function a(c,d){if(!l.isUndefined(d))return r(void 0,d)}function s(c,d){if(l.isUndefined(d)){if(!l.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function u(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const f={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(c,d)=>o(He(c),He(d),!0)};return l.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const p=f[d]||o,b=p(e[d],t[d],d);l.isUndefined(b)&&p!==u||(n[d]=b)}),n}const ze="1.3.6",fe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Je={};fe.transitional=function(t,n,r){function o(a,s){return"[Axios v"+ze+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,u)=>{if(t===!1)throw new y(o(s," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!Je[s]&&(Je[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,u):!0}};function Fn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const u=e[a],f=u===void 0||s(u,a,e);if(f!==!0)throw new y("option "+a+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+a,y.ERR_BAD_OPTION)}}const pe={assertOptions:Fn,validators:fe},B=pe.validators;class Z{constructor(t){this.defaults=t,this.interceptors={request:new Fe,response:new Fe}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=L(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&pe.assertOptions(r,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),o!=null&&(l.isFunction(o)?n.paramsSerializer={serialize:o}:pe.assertOptions(o,{encode:B.function,serialize:B.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=a&&l.merge(a.common,a[n.method]),s&&l.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=C.concat(s,a);const u=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,u.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,p=0,b;if(!f){const h=[qe.bind(this),void 0];for(h.unshift.apply(h,u),h.push.apply(h,c),b=h.length,d=Promise.resolve(n);p<b;)d=d.then(h[p++],h[p++]);return d}b=u.length;let E=n;for(p=0;p<b;){const h=u[p++],m=u[p++];try{E=h(E)}catch(S){m.call(this,S);break}}try{d=qe.call(this,E)}catch(h){return Promise.reject(h)}for(p=0,b=c.length;p<b;)d=d.then(c[p++],c[p++]);return d}getUri(t){t=L(this.defaults,t);const n=je(t.baseURL,t.url);return xe(n,t.params,t.paramsSerializer)}}l.forEach(["delete","get","head","options"],function(t){Z.prototype[t]=function(n,r){return this.request(L(r||{},{method:t,url:n,data:(r||{}).data}))}}),l.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,u){return this.request(L(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Z.prototype[t]=n(),Z.prototype[t+"Form"]=n(!0)});const v=Z;class me{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(u=>{r.subscribe(u),a=u}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,u){r.reason||(r.reason=new $(a,s,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new me(function(o){t=o}),cancel:t}}}const Un=me;function Vn(e){return function(n){return e.apply(null,n)}}function In(e){return l.isObject(e)&&e.isAxiosError===!0}const he={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(he).forEach(([e,t])=>{he[t]=e});const $n=he;function We(e){const t=new v(e),n=Ee(v.prototype.request,t);return l.extend(n,v.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return We(L(e,o))},n}const g=We(le);g.Axios=v,g.CanceledError=$,g.CancelToken=Un,g.isCancel=$e,g.VERSION=ze,g.toFormData=K,g.AxiosError=y,g.Cancel=g.CanceledError,g.all=function(t){return Promise.all(t)},g.spread=Vn,g.isAxiosError=In,g.mergeConfig=L,g.AxiosHeaders=C,g.formToJSON=e=>Ve(l.isHTMLForm(e)?new FormData(e):e),g.HttpStatusCode=$n,g.default=g;const Ke=g;/*! js-cookie v3.0.1 | MIT */function ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var jn={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ye(e,t){function n(o,a,s){if(!(typeof document>"u")){s=ee({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var f in s)s[f]&&(u+="; "+f,s[f]!==!0&&(u+="="+s[f].split(";")[0]));return document.cookie=o+"="+e.write(a,o)+u}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var a=document.cookie?document.cookie.split("; "):[],s={},u=0;u<a.length;u++){var f=a[u].split("="),c=f.slice(1).join("=");try{var d=decodeURIComponent(f[0]);if(s[d]=e.read(c,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:r,remove:function(o,a){n(o,"",ee({},a,{expires:-1}))},withAttributes:function(o){return ye(this.converter,ee({},this.attributes,o))},withConverter:function(o){return ye(ee({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}ye(jn,{path:"/"});var Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xe=typeof window>"u",A={version:"1.1.1",storage:Xe?null:window.localStorage,session:{storage:Xe?null:window.sessionStorage}},Ye={set:function(t,n){if(!this.disabled)return n===void 0?this.remove(t):(this.storage.setItem(t,Mn(n)),n)},get:function(t,n){if(this.disabled)return n;var r=qn(this.storage.getItem(t));return r===void 0?n:r},has:function(t){return this.get(t)!==void 0},remove:function(t){this.disabled||this.storage.removeItem(t)},clear:function(){this.disabled||this.storage.clear()},getAll:function(){if(this.disabled)return null;var t={};return this.forEach(function(n,r){t[n]=r}),t},forEach:function(t){if(!this.disabled)for(var n=0;n<this.storage.length;n++){var r=this.storage.key(n);t(r,this.get(r))}}};Ge(A,Ye),Ge(A.session,Ye);function Mn(e){return JSON.stringify(e)}function qn(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return e||void 0}}try{var j="__storejs__";A.set(j,j),A.get(j)!==j&&(A.disabled=!0),A.remove(j)}catch{A.disabled=!0}function Qe(e,t){return A.get(e,t)}const Hn={APP_NAME:"ui-process-h5",APP_VERSION:"0.1.24",APP_BUILD_TIME:"2023-04-23 11:33:30"}.VUE_APP_BASE_URL;Ke.defaults.headers["Content-Type"]="application/json;charset=utf-8";const zn={baseURL:Hn,timeout:999999999,errorTip:!0,transformResponse:[function(e,t){if(typeof e=="string")try{e=JSON.parse(e)}catch{}return e}]},be=Ke.create(zn);be.interceptors.request.use(e=>{const t=(e.headers||{}).isToken===!1;return Qe("token","")&&!t&&(e.headers.Authorization="Bearer "+Qe("token","")),e}),be.interceptors.response.use(e=>{if(Object.prototype.toString.call(e.data)==="[object Blob]")return e;const{data:t,config:n}=e,{code:r,success:o}=t;return e.data.msg,t.fail=r!==200&&o!==!0,r===401?(console.log("登录状态已过期"),t):(r!==200&&console.log("错误"),t)});const Jn="/prod-api/aws";function Wn(e){return be({url:Jn+"/pis/getProcessStatus",method:"get",params:e})}const Kn=i.defineComponent({name:"TopProcess",components:{TopTab:R,TopPopup:F,TopButton:H},props:{tapList:{require:!1,default:()=>[],type:Array},processId:{require:!0,default:"",type:String},processDefId:{require:!0,default:"",type:String},taskId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean}},setup(e){const t=i.ref({}),n=i.ref(),r=i.ref([{taskId:"ecd82a93-4a62-42a7-b7bd-df38d2f1609a",taskState:1,nodeId:"obj_026aac284c1a4303854f978b674be4b9",customUniqueId:"",nodeName:"部门负责人"}]),o=i.ref({id:"obj_026aac284c1a4303854f978b674be4b9",name:"部门负责人",no:"1",buttons:[],ccTaskButtonLabel:"",ccTaskButtonAnnex:null,completeButtonLabel:"同意",completeButtonAnnex:null,delegateTaskButtonLabel:"转办",delegateTaskButtonAnnex:null,printFormButtonLabel:"",supplyUnusualTransferButtonLabel:"",readingOfficeLabel:"",readingOfficeButtonAnnex:null,jointlySignLabel:"",jointlySignButtonAnnex:null,counterSignLabel:"加签",counterSignButtonAnnex:null,coordinationLabel:"",coordinationButtonAnnex:null,otherButtonAnnexList:null,humanPerformer:{id:"obj_2bd3494ae5c54309b7f2ea452921790b",name:"任意指定",resourceAssignmentExpressionModel:{formalExpression:""}},commentModels:[{actionName:"提交",isDefault:!0},{actionName:"作废",isDefault:!1}],routeTxt:{departmentIds:null,companyIds:null,teamList:null,routeType:"DynamicUsers"},loopCardinality:1,isHistoryRoute:!1,participantList:null,historyRoute:!1});i.watch(()=>e.processId,(p,b)=>{p&&(t.value={status:"审批中",createUid:"18ccbf63229f0c79f39940ae284c111e",createTopUserId:"128ec9c9b7f26135272596fe01c57690",createTime:"2023-04-20 15:01:48",currUserName:"朱鸿飞",allUserNames:["朱鸿飞"],userNodeGroup:{分管领导:["朱鸿飞"]},appId:"com.awspaas.user.apps.top.study.project",statusCode:"1",statusName:"审批中",bizStatusName:"审批中",taskState:1})},{immediate:!0,deep:!0}),Wn({processInstId:"4ac28800-7056-483b-8d38-a4932daf055b"}).then(p=>{console.log("res",p)}),console.log("asd",r.value[0].taskState);const a=i.computed(()=>{var E,h;let p=[],b=r.value&&r.value[0]&&r.value[0].taskState!=4;if(b&&!e.isView&&o.value.completeButtonLabel){let m={};m.name=o.value.completeButtonLabel,m.btnProps={type:"primary"},p.push(m)}if(b&&!e.isView&&t.value.currUserName){let m={};m.name="拒绝",m.btnProps={type:"danger"},p.push(m)}if(b&&!e.isView&&o.value.buttons&&o.value.buttons.length&&o.value.buttons.forEach(m=>{if(m.label==="退回"){let S={};S.name=m.label,S.btnProps={type:"danger"},p.push(S)}}),b&&!e.isView&&o.value.delegateTaskButtonLabel){let m={};m.name=o.value.delegateTaskButtonLabel,m.btnProps={type:"default"},p.push(m)}if(e.processId&&t.value.createTopUserId==e.userId&&((E=r.value[0])==null?void 0:E.taskState)!=2&&t.value.status!=="已驳回"&&t.value.status!=="已撤销"){let m={};m.name="催办",m.btnProps={type:"default"},p.push(m)}if(e.processId&&t.value.createTopUserId==e.userId&&((h=r.value[0])==null?void 0:h.taskState)!=2&&t.value.status!=="已驳回"&&t.value.status!=="已撤销"){let m={};m.name="撤销",m.btnProps={type:"default"},p.push(m)}if(b&&!e.isView&&o.value.counterSignLabel){let m={};m.name=o.value.counterSignLabel,m.btnProps={type:"primary"},p.push(m)}return p}),s=i.computed(()=>a.value.length>3?a.value.slice(3):[]),u=()=>{console.log("handleCancel")},f=()=>{console.log("handleComfig","确定按钮"),n.value.handleClose()},c=i.computed(()=>"calc(100vh - 205px)");return{processStatus:t,processCardHeight:c,handleTest:()=>{n.value.handleOpen()},TopPopup1:n,handleCancel:u,handleComfig:f,operBtn:a,actionBtn:s}},methods:{getColor(e){return e=="审核中"?"#FFA52D":e=="已驳回"?"#F14B4C":e=="已撤销"?"#CECECE":e=="已完成"?"#6DC743":"#1389FF"}}}),wr="",D=e=>(i.pushScopeId("data-v-c2ed7f04"),e=e(),i.popScopeId(),e),Gn={class:"process-warp"},Xn={key:0,class:"process-main"},Yn={class:"process-ml-item border"},Qn=D(()=>i.createElementVNode("div",{class:"process-mli-name"},"流程状态",-1)),Zn={class:"process-mli-value"},vn={class:"process-ml-item border"},er=D(()=>i.createElementVNode("div",{class:"process-mli-name"},"流程发起时间",-1)),tr={class:"process-mli-value"},nr={key:0,class:"process-ml-item"},rr=D(()=>i.createElementVNode("div",{class:"process-mli-name"},"审批节点",-1)),or={class:"process-mli-value"},sr={class:"process-mliv-jd"},ir={key:1,class:"process-foot"},ar={class:"footBtnRow"},lr={class:"process-btn"},cr={key:1,class:"elips"},ur=[D(()=>i.createElementVNode("div",{class:"circle"},null,-1)),D(()=>i.createElementVNode("div",{class:"circle"},null,-1)),D(()=>i.createElementVNode("div",{class:"circle"},null,-1))];function dr(e,t,n,r,o,a){const s=i.resolveComponent("TopTab"),u=i.resolveComponent("TopButton"),f=i.resolveComponent("TopPopup");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Gn,[e.processStatus.status?(i.openBlock(),i.createElementBlock("div",Xn,[i.createElementVNode("div",Yn,[Qn,i.createElementVNode("div",Zn,[e.processStatus.status||e.processStatus.bizStatusName?(i.openBlock(),i.createElementBlock("div",{key:0,class:"process-mliv-dd",style:i.normalizeStyle({background:e.getColor(e.processStatus.status)})},i.toDisplayString(e.processStatus.bizStatusName?e.processStatus.bizStatusName:e.processStatus.status),5)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",vn,[er,i.createElementVNode("div",tr,[i.createElementVNode("span",null,i.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(i.openBlock(),i.createElementBlock("div",nr,[rr,i.createElementVNode("div",or,[i.createElementVNode("span",sr,i.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}审批中`),1)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"process-card",style:i.normalizeStyle({height:e.processCardHeight})},[i.createVNode(s,{tapList:e.tapList},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tapList"])],4),e.isAdditional?(i.openBlock(),i.createElementBlock("div",ir,[i.createElementVNode("div",ar,[i.renderSlot(e.$slots,"btn",{},void 0,!0)])])):i.createCommentVNode("",!0),i.createElementVNode("div",lr,[e.processStatus.status!="已完成"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.operBtn,(c,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:c.name},[d<3?(i.openBlock(),i.createBlock(u,{key:0,onClick:e.handleTest,type:c.btnProps.type.toString()},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.name),1)]),_:2},1032,["onClick","type"])):i.createCommentVNode("",!0)],64))),128)):i.createCommentVNode("",!0),e.operBtn.length>3?(i.openBlock(),i.createElementBlock("div",cr,ur)):i.createCommentVNode("",!0)])]),i.createVNode(f,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig},{default:i.withCtx(()=>[i.createTextVNode(" csaasd1 ")]),_:1},8,["cancel","comfig"])],64)}const M=q(Kn,[["render",dr],["__scopeId","data-v-c2ed7f04"]]);M.install=function(e){return e.component(M.name,M),e};const fr=[R,M],pr={install:function(e){fr.forEach(t=>{e.use(t)})}};N.TopProcess=M,N.TopTab=R,N.default=pr,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .tops-tab[data-v-baad7ff1]{height:100%}.tops-tab-header[data-v-baad7ff1]{display:flex;width:100%;height:45px;font-size:14px;color:#333;padding:10px 17px;font-weight:500;box-sizing:border-box;overflow-x:auto;white-space:nowrap;flex-wrap:nowrap;flex-shrink:0;-ms-overflow-style:none;position:relative;background-color:#fff}.tops-tab-header[data-v-baad7ff1]:after{content:"";position:absolute;width:100%;height:1px;background-color:#f2f2f2;left:0;bottom:0;z-index:10}.tops-tab-header[data-v-baad7ff1]::-webkit-scrollbar{display:none}.tops-tab-header-items[data-v-baad7ff1]{white-space:nowrap;padding-right:10px;box-sizing:border-box;display:inline-block;height:100%;text-align:center;margin-right:32px;font-weight:400;font-size:15px;text-align:left;color:#333;display:flex;align-items:center}.tops-tab-header-items[data-v-baad7ff1]:last-child{padding-right:0;margin-right:0}.tops-tab-header .active[data-v-baad7ff1]{position:relative;color:#1389ff;font-family:PingFang SC Bold;font-weight:700;font-size:15px;text-align:left}.tops-tab-header .bottom-line[data-v-baad7ff1]{width:30px;height:3px;border-radius:1.5px;background-color:#1389ff;position:absolute;bottom:1px;left:0;z-index:12}.tops-tab-body[data-v-baad7ff1]{height:100%}.seal-list__item[data-v-baad7ff1]{padding:6px 10px 0;margin:10px 10px 0;background-color:#fff;border-radius:10px;box-sizing:border-box}.seal-list__item[data-v-baad7ff1]:last-child{margin-bottom:70px}.seal-list__item .seal-list__item--header[data-v-baad7ff1]{margin-bottom:6px;display:flex;align-items:center}.seal-list__item .seal-list__item--header span[data-v-baad7ff1]:first-of-type{font-size:15px;margin-right:6px;font-weight:700}.seal-list__item .seal-list__item--option[data-v-baad7ff1]{display:flex;justify-content:space-between;align-items:center;font-size:14px;padding:10px 0;color:#333}.seal-list__item .seal-list__item--option span[data-v-baad7ff1]:last-child{max-width:144px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#888}.seal-list__item .seal-list__item--attch[data-v-baad7ff1]{font-size:14px;padding:10px 0;color:#333;text-align:right;color:#1389ff}.seal-list__item .seal-list__item--actions[data-v-baad7ff1]{margin-top:12px;position:relative;display:flex;justify-content:space-around;align-items:center}.seal-list__item .seal-list__item--actions[data-v-baad7ff1] :before{content:"";top:0;width:100%;transform:scaleY(.5);transform-origin:top;border-top:1px #e8e8e8 solid;position:absolute}.seal-list__item .seal-list__item--actions .van-button[data-v-baad7ff1]{width:50%}.seal-list__item .seal-list__item--actions .van-button[data-v-baad7ff1] :after{content:"";height:60%;border-left:1px #e8e8e8 solid;position:absolute;left:100%;top:50%;transform:translate(-50%,-50%) scaleX(.5);transform-origin:left}.seal-list__item .seal-list__item--actions .van-button[data-v-baad7ff1]:last-child :after{content:none}.top-popup[data-v-474e328a]{width:100%;height:80vh;position:fixed;left:0;background-color:#fff;z-index:199;border-radius:20px 20px 0 0;padding:0 10px;box-sizing:border-box;transition:all .5s ease;bottom:0}.top-popup-mask[data-v-474e328a]{position:fixed;width:100vw;height:100vh;background-color:#000;opacity:.7;top:0;left:0;z-index:99}.top-popup-header[data-v-474e328a]{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.top-popup-header .header-cancel[data-v-474e328a],.top-popup-header .header-comfig[data-v-474e328a]{color:#1389ff}.fade-enter-active[data-v-474e328a],.fade-leave-active[data-v-474e328a]{transition:all .5s ease}.fade-enter[data-v-474e328a],.fade-leave-to[data-v-474e328a]{bottom:-100%}.fade-enter-to[data-v-474e328a],.fade-leave[data-v-474e328a]{bottom:0d}.top-button[data-v-156a54e6]{width:100%;border-radius:20px;height:36px;background-color:#3c9cff;color:#fff;font-size:14px;justify-content:center;display:flex;align-items:center}.process-warp[data-v-41bcbb23]{overflow:hidden;height:100vh;width:100%;position:relative;background-color:#f3f3f7}.process-main[data-v-41bcbb23]{display:flex;justify-content:space-between;flex-direction:column;align-items:center;padding:0 17px;background:#fff;margin:0 0 10px}.process-main .border[data-v-41bcbb23]{border-bottom:#e8e8e8 1px solid}.process-main .process-ml-item[data-v-41bcbb23]{display:flex;align-items:center;font-size:15px;font-weight:400;width:100%;justify-content:space-between;height:44px}.process-main .process-ml-item .process-mli-name[data-v-41bcbb23]{color:#333}.process-main .process-ml-item .process-mli-value[data-v-41bcbb23]{color:#888}.process-main .process-ml-item .process-mli-value .process-mliv-dd[data-v-41bcbb23]{height:26px;min-width:30px;padding:0 12px;border-radius:20px;background:#1389ff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}.process-main .process-ml-item .process-mli-value .process-mliv-jd[data-v-41bcbb23]{color:#1389ff}.process-btn[data-v-41bcbb23]{display:flex;min-height:60px;padding-top:5px;background:#fff;border-top:1px solid #dddddf9e;box-sizing:border-box;justify-content:center;align-items:center;flex-direction:row-reverse}.process-btn .top-button[data-v-41bcbb23],.process-btn .elips[data-v-41bcbb23]{margin:0 5px}.elips[data-v-41bcbb23]{min-width:60px;height:100%;background-color:#fff;display:flex;justify-content:center;align-items:center}.elips .circle[data-v-41bcbb23]{width:6px;height:6px;margin:0 2px;background-color:#333;border-radius:50%}
1
+ .tops-tab[data-v-baad7ff1]{height:100%}.tops-tab-header[data-v-baad7ff1]{display:flex;width:100%;height:45px;font-size:14px;color:#333;padding:10px 17px;font-weight:500;box-sizing:border-box;overflow-x:auto;white-space:nowrap;flex-wrap:nowrap;flex-shrink:0;-ms-overflow-style:none;position:relative;background-color:#fff}.tops-tab-header[data-v-baad7ff1]:after{content:"";position:absolute;width:100%;height:1px;background-color:#f2f2f2;left:0;bottom:0;z-index:10}.tops-tab-header[data-v-baad7ff1]::-webkit-scrollbar{display:none}.tops-tab-header-items[data-v-baad7ff1]{white-space:nowrap;padding-right:10px;box-sizing:border-box;display:inline-block;height:100%;text-align:center;margin-right:32px;font-weight:400;font-size:15px;text-align:left;color:#333;display:flex;align-items:center}.tops-tab-header-items[data-v-baad7ff1]:last-child{padding-right:0;margin-right:0}.tops-tab-header .active[data-v-baad7ff1]{position:relative;color:#1389ff;font-family:PingFang SC Bold;font-weight:700;font-size:15px;text-align:left}.tops-tab-header .bottom-line[data-v-baad7ff1]{width:30px;height:3px;border-radius:1.5px;background-color:#1389ff;position:absolute;bottom:1px;left:0;z-index:12}.tops-tab-body[data-v-baad7ff1]{height:100%}.seal-list__item[data-v-baad7ff1]{padding:6px 10px 0;margin:10px 10px 0;background-color:#fff;border-radius:10px;box-sizing:border-box}.seal-list__item[data-v-baad7ff1]:last-child{margin-bottom:70px}.seal-list__item .seal-list__item--header[data-v-baad7ff1]{margin-bottom:6px;display:flex;align-items:center}.seal-list__item .seal-list__item--header span[data-v-baad7ff1]:first-of-type{font-size:15px;margin-right:6px;font-weight:700}.seal-list__item .seal-list__item--option[data-v-baad7ff1]{display:flex;justify-content:space-between;align-items:center;font-size:14px;padding:10px 0;color:#333}.seal-list__item .seal-list__item--option span[data-v-baad7ff1]:last-child{max-width:144px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#888}.seal-list__item .seal-list__item--attch[data-v-baad7ff1]{font-size:14px;padding:10px 0;color:#333;text-align:right;color:#1389ff}.seal-list__item .seal-list__item--actions[data-v-baad7ff1]{margin-top:12px;position:relative;display:flex;justify-content:space-around;align-items:center}.seal-list__item .seal-list__item--actions[data-v-baad7ff1] :before{content:"";top:0;width:100%;transform:scaleY(.5);transform-origin:top;border-top:1px #e8e8e8 solid;position:absolute}.seal-list__item .seal-list__item--actions .van-button[data-v-baad7ff1]{width:50%}.seal-list__item .seal-list__item--actions .van-button[data-v-baad7ff1] :after{content:"";height:60%;border-left:1px #e8e8e8 solid;position:absolute;left:100%;top:50%;transform:translate(-50%,-50%) scaleX(.5);transform-origin:left}.seal-list__item .seal-list__item--actions .van-button[data-v-baad7ff1]:last-child :after{content:none}.top-popup[data-v-474e328a]{width:100%;height:80vh;position:fixed;left:0;background-color:#fff;z-index:199;border-radius:20px 20px 0 0;padding:0 10px;box-sizing:border-box;transition:all .5s ease;bottom:0}.top-popup-mask[data-v-474e328a]{position:fixed;width:100vw;height:100vh;background-color:#000;opacity:.7;top:0;left:0;z-index:99}.top-popup-header[data-v-474e328a]{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.top-popup-header .header-cancel[data-v-474e328a],.top-popup-header .header-comfig[data-v-474e328a]{color:#1389ff}.fade-enter-active[data-v-474e328a],.fade-leave-active[data-v-474e328a]{transition:all .5s ease}.fade-enter[data-v-474e328a],.fade-leave-to[data-v-474e328a]{bottom:-100%}.fade-enter-to[data-v-474e328a],.fade-leave[data-v-474e328a]{bottom:0d}.top-button[data-v-156a54e6]{width:100%;border-radius:20px;height:36px;background-color:#3c9cff;color:#fff;font-size:14px;justify-content:center;display:flex;align-items:center}.process-warp[data-v-c2ed7f04]{overflow:hidden;height:100vh;width:100%;position:relative;background-color:#f3f3f7}.process-main[data-v-c2ed7f04]{display:flex;justify-content:space-between;flex-direction:column;align-items:center;padding:0 17px;background:#fff;margin:0 0 10px}.process-main .border[data-v-c2ed7f04]{border-bottom:#e8e8e8 1px solid}.process-main .process-ml-item[data-v-c2ed7f04]{display:flex;align-items:center;font-size:15px;font-weight:400;width:100%;justify-content:space-between;height:44px}.process-main .process-ml-item .process-mli-name[data-v-c2ed7f04]{color:#333}.process-main .process-ml-item .process-mli-value[data-v-c2ed7f04]{color:#888}.process-main .process-ml-item .process-mli-value .process-mliv-dd[data-v-c2ed7f04]{height:26px;min-width:30px;padding:0 12px;border-radius:20px;background:#1389ff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}.process-main .process-ml-item .process-mli-value .process-mliv-jd[data-v-c2ed7f04]{color:#1389ff}.process-btn[data-v-c2ed7f04]{display:flex;min-height:60px;padding-top:5px;background:#fff;border-top:1px solid #dddddf9e;box-sizing:border-box;justify-content:center;align-items:center;flex-direction:row-reverse}.process-btn .top-button[data-v-c2ed7f04],.process-btn .elips[data-v-c2ed7f04]{margin:0 5px}.elips[data-v-c2ed7f04]{min-width:60px;height:100%;background-color:#fff;display:flex;justify-content:center;align-items:center}.elips .circle[data-v-c2ed7f04]{width:6px;height:6px;margin:0 2px;background-color:#333;border-radius:50%}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ui-process-h5",
3
3
  "private": false,
4
4
  "description": "流程组件",
5
- "version": "0.1.23",
5
+ "version": "0.1.25",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "dev": "vite",
@@ -18,12 +18,12 @@
18
18
  "publicConfig": {
19
19
  "registry": "http://registry.npmjs.org/"
20
20
  },
21
- "main": "./lib/index.umd.js",
22
- "module": "./lib/index.mjs",
21
+ "main": "./lib/design.umd.js",
22
+ "module": "./lib/design.mjs",
23
23
  "exports": {
24
24
  ".": {
25
- "import": "./lib/index.mjs",
26
- "require": "./lib/index.umd.js"
25
+ "import": "./lib/design.mjs",
26
+ "require": "./lib/design.umd.js"
27
27
  },
28
28
  "./lib/style.css": "./lib/style.css"
29
29
  },
@@ -61,7 +61,7 @@
61
61
  <TopButton
62
62
  v-if="index < 3"
63
63
  @click="handleTest"
64
- :type="item.btnProps.type"
64
+ :type="item.btnProps.type.toString()"
65
65
  >
66
66
  {{ item.name }}
67
67
  </TopButton>
@@ -87,6 +87,7 @@ import { defineComponent, ref, watch, computed } from "vue-demi";
87
87
  import TopTab from "../../tab";
88
88
  import TopPopup from "../../popup";
89
89
  import TopButton from "../../button";
90
+ import { getProcessStatus } from "../../utils/request/api";
90
91
 
91
92
  export default defineComponent({
92
93
  name: "TopProcess",
@@ -201,6 +202,12 @@ export default defineComponent({
201
202
  }
202
203
  );
203
204
 
205
+ getProcessStatus({
206
+ processInstId: "4ac28800-7056-483b-8d38-a4932daf055b",
207
+ }).then((res) => {
208
+ console.log("res", res);
209
+ });
210
+
204
211
  console.log("asd", taskNode.value[0].taskState);
205
212
  /* copmuted */
206
213
  // 按钮对象
@@ -1,6 +1,6 @@
1
1
  import request from "./request";
2
2
 
3
- const proxyStr = "/aws";
3
+ const proxyStr = "/prod-api/aws";
4
4
 
5
5
  export function getProcessStatus(query: any) {
6
6
  return request({
@@ -7,7 +7,7 @@ import axios, {
7
7
  import { ACCESS_TOKEN, loadStorage } from "./cache";
8
8
 
9
9
  const host = process.env.VUE_APP_BASE_URL;
10
- // const host = "http://59.53.91.231:2100";
10
+ // const host = "http://59.53.91.231:2106";
11
11
 
12
12
  axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
13
13