anxiao_web/pages/video/js/orgApi/getSkynetIpcList.js

29 lines
691 B
JavaScript
Raw Permalink Normal View History

2024-07-24 09:22:32 +08:00
import { stationurl,brigade } from "../../../../public/js/url.js";
import { createSchoolTree } from "../tree.js";
let skynetIpcInfo=[];
function showSkynetIpcInfo(){
getSkynetIpcList().then(res=>{
var data=res.data.data;
if(data!=null){
skynetIpcInfo=data
}
//画组织结构树
createSchoolTree();
})
}
function getSkynetIpcList(){
var data={
"brigade":brigade,
"pageindex":0,
"pagesize":1000
}
var loginurl=stationurl+"/firectrl/client/skynet_ipc/getlist";
return axios({
method: 'post',
url:loginurl,
data: data
})
}
export {skynetIpcInfo,showSkynetIpcInfo}