본문 바로가기

카테고리 없음

프로젝트 루트 참고


/* 원형 */
 function getComBarChart() { 

 

cloud2d.getComBarChart({companyPk:selectedCompanyPk}, function (companyInfoResult) {   <--- rest  타입  -> () : 배열 {}: 오프젝트 로 넘겨줌

 

오프젝트 ---------------------------{
if(!companyInfoResult) {
alert('회사 정보 내부/협업 조회 실패');
return;
}
$("#bar-chart").empty();
var innerHtml = "";

    var bar = new Morris.Bar({
        element: 'bar-chart',
        resize: true,
        data: companyInfoResult ,
        barColors: ['#00a65a', '#f56954'],
        xkey: 'y',
        ykeys: ['a', 'b'],
        labels: ['내부', '협업'],
        hideHover: 'auto'
      });
   
$("#bar-chart").append(innerHtml);   
});

                }--------------------------------------여기까지 가져간다.

 

----------------------------------------------------------------------------------------------------------------------------------- //회사 정보 내부 사용자 목록 조회
_cloud2d.prototype.getComBarChart = function(comCompany, callback) {  가져온 컴퍼니pk ,  function 를 컨트롤러에 넘겨줌
return this.restApi.get('api/v1/companys/archart', comCompany, callback);
}