29 lines
691 B
JavaScript
29 lines
691 B
JavaScript
|
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}
|