You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.9 KiB
1 lines
1.9 KiB
import{B as h,b_ as n}from"./index.1762932289438.js";import{g as d,h as u}from"./dict.17629322894382.js";import{c as p,e as g,f as D}from"./depart.17629322894382.js";function S(){return h.get({url:"/dict/content/tree"})}let a=!0,l=!0,i=!0,o=!0;const c={};let f=!0;const w=n({id:"catch",state:()=>({dict:{},dictContent:[],dictProblemSources:[],departs:[],departsAll:[],flowNodes:[],dataDeparts:[]}),getters:{},actions:{setDict(e,r){this.dict[e]=r},getDicts(e){return e.forEach(r=>{this.getDict(r)}),this.dict},getDict(e){return!this.dict[e]&&!c[e]&&(c[e]=!0,(async()=>(await Promise.allSettled([u(e)])).forEach(s=>{s.status=="fulfilled"&&this.setDict(e,s.value)}))()),this.dict[e]},getDictContent(){return!this.dictContent.length&&o&&(o=!1,(async()=>(await Promise.allSettled([S()])).forEach(t=>{t.status=="fulfilled"&&t.value.forEach(s=>{this.dictContent.push(s)})}))()),this.dictContent},getDictProblemSources(){return!this.dictProblemSources.length&&f&&(f=!1,(async()=>(await Promise.allSettled([d()])).forEach(t=>{t.status=="fulfilled"&&t.value.forEach(s=>{this.dictProblemSources.push(s)})}))()),this.dictProblemSources},getDeparts(){return!this.departs.length&&a&&(a=!1,(async()=>(await Promise.allSettled([D()])).forEach(t=>{t.status=="fulfilled"&&t.value.forEach(s=>{this.departs.push(s)})}))()),this.departs},getDepartsAll(){return!this.departsAll.length&&l&&(l=!1,(async()=>(await Promise.allSettled([g()])).forEach(t=>{t.status=="fulfilled"&&t.value.forEach(s=>{this.departsAll.push(s)})}))()),this.departsAll},getDepartNotPolice(){return!this.dataDeparts.length&&i&&(i=!1,(async()=>(await Promise.allSettled([p()])).forEach(t=>{t.status=="fulfilled"&&t.value.forEach(s=>{this.dataDeparts.push(s)})}))()),this.dataDeparts},getFlowNodes(){return this.flowNodes.length||(async()=>(await Promise.allSettled([listFlowNode()])).forEach(t=>{t.status=="fulfilled"&&t.value.forEach(s=>{this.flowNodes.push(s)})}))(),this.flowNodes}}});export{w as u};
|
|
|