Browse Source

首页更改

linwu 3 weeks ago
parent
commit
fd21aa3829

+ 162 - 118
app/Admin/Controllers/HomeController.php

@@ -32,153 +32,196 @@ class HomeController extends Controller
 
     public function __construct()
     {
-        if (get_subsite_id()!=0) {
-            $this->where[] = array('subsite_id','=',get_subsite_id());
+        if (get_subsite_id() != 0) {
+            $this->where[] = ['subsite_id', '=', get_subsite_id()];
         }
     }
 
     public function index(
-        Content $content,
-        CompanyRepository $companyRepository,
-        MemberRepository $memberRepository,
-        JobsRepository $jobsRepository,
-        ResumeRepository $resumeRepository,
+        Content             $content,
+        CompanyRepository   $companyRepository,
+        MemberRepository    $memberRepository,
+        JobsRepository      $jobsRepository,
+        ResumeRepository    $resumeRepository,
         ResumeImgRepository $resumeImgRepository,
-        FeedbackRepository $feedbackRepository,
-        ReportRepository $reportRepository
-    ) {
+        FeedbackRepository  $feedbackRepository,
+        ReportRepository    $reportRepository
+    )
+    {
+        $view = 'admin.home.index';
+        if (Admin::user()->isRole('health')) {
+            $view = 'admin.home.health';
+        }
+        if (Admin::user()->isRole('ic_group')) {
+            $view = 'admin.home.ic';
+        }
+        if (Admin::user()->isRole('health') || Admin::user()->isRole('ic_group')) {
+            $data = [
+                'company'            => $this->company($companyRepository, $this->where),
+                'jobs'               => $this->jobs($jobsRepository, $this->where),
+                'needAuthCompany'    => $this->needAuthCompany($companyRepository, $this->where),
+                'needAuditJobs'      => $this->needAuditJobs($jobsRepository, $this->where),
+            ];
+        } else {
+            $data = [
+                'company'            => $this->company($companyRepository, $this->where),
+                'person'             => $this->person($memberRepository, $this->where),
+                'jobs'               => $this->jobs($jobsRepository, $this->where),
+                'resume'             => $this->resume($resumeRepository, $this->where),
+                'needAuthCompany'    => $this->needAuthCompany($companyRepository, $this->where),
+                'needAuditJobs'      => $this->needAuditJobs($jobsRepository, $this->where),
+                'needAuditResume'    => $this->needAuditResume($resumeRepository, $this->where),
+                'needAuditResumeImg' => $this->needAuditResumeImg($resumeImgRepository, $this->where),
+                'suggestion'         => $this->suggestion($feedbackRepository, $this->where),
+                'report'             => $this->report($reportRepository, $this->where),
+            ];
+        }
+
         return $content
             ->header('首页')
             ->description('统计列表')
-            ->body(view('admin.home.index')->with([
-                'company'=>$this->company($companyRepository, $this->where),
-                'person'=>$this->person($memberRepository, $this->where),
-                'jobs'=>$this->jobs($jobsRepository, $this->where),
-                'resume'=>$this->resume($resumeRepository, $this->where),
-                'needAuthCompany'=>$this->needAuthCompany($companyRepository, $this->where),
-                'needAuditJobs'=>$this->needAuditJobs($jobsRepository, $this->where),
-                'needAuditResume'=>$this->needAuditResume($resumeRepository, $this->where),
-                'needAuditResumeImg'=>$this->needAuditResumeImg($resumeImgRepository, $this->where),
-                'suggestion'=>$this->suggestion($feedbackRepository, $this->where),
-                'report'=>$this->report($reportRepository, $this->where),
-            ]));
+            ->body(view($view)->with($data));
     }
 
 
     protected function company($companyRepository, $where)
     {
-        return (object)['getCompanyCount'=>$companyRepository->getCompanyCount($where),'getLastCompanyCount'=>$companyRepository->getLastCompanyCount($where),'getNextCompanyCount'=>$companyRepository->getNextCompanyCount($where)];
+        if (Admin::user()->isRole('health')) {
+            $where[] = ['is_health', '=', 1];
+        }
+        if (Admin::user()->isRole('ic_group')) {
+            $where[] = ['is_ic', '=', 1];
+        }
+        return (object)['getCompanyCount' => $companyRepository->getCompanyCount($where), 'getLastCompanyCount' => $companyRepository->getLastCompanyCount($where), 'getNextCompanyCount' => $companyRepository->getNextCompanyCount($where)];
     }
 
     protected function person($memberRepository, $where)
     {
-        return (object)['getPersonCount'=>$memberRepository->getPersonCount($where),'getLastPersonCount'=>$memberRepository->getLastPersonCount($where),'getNextPersonCount'=>$memberRepository->getNextPersonCount($where)];
+        return (object)['getPersonCount' => $memberRepository->getPersonCount($where), 'getLastPersonCount' => $memberRepository->getLastPersonCount($where), 'getNextPersonCount' => $memberRepository->getNextPersonCount($where)];
     }
 
     protected function jobs($jobsRepository, $where)
     {
-        return (object)['getJobCount'=>$jobsRepository->getJobCount($where),'getLastJobsCount'=>$jobsRepository->getLastJobsCount($where),'getNextJobsCount'=>$jobsRepository->getNextJobsCount($where)];
+        if (Admin::user()->isRole('health')) {
+            $where[] = ['is_health', '=', 1];
+        }
+        if (Admin::user()->isRole('ic_group')) {
+            $where[] = ['is_ic', '=', 1];
+        }
+        return (object)['getJobCount' => $jobsRepository->getJobCount($where), 'getLastJobsCount' => $jobsRepository->getLastJobsCount($where), 'getNextJobsCount' => $jobsRepository->getNextJobsCount($where)];
     }
 
     protected function resume($resumeRepository, $where)
     {
-        return (object)['getResumesCount'=>$resumeRepository->getResumesCount($where),'getLastResumeCount'=>$resumeRepository->getLastResumeCount($where),'getNextResumeCount'=>$resumeRepository->getNextResumeCount($where)];
+        return (object)['getResumesCount' => $resumeRepository->getResumesCount($where), 'getLastResumeCount' => $resumeRepository->getLastResumeCount($where), 'getNextResumeCount' => $resumeRepository->getNextResumeCount($where)];
     }
 
     protected function needAuthCompany($companyRepository, $where)
     {
-        $where[] = ['audit','=',2];
-        return (object)['getAuditCount'=>$companyRepository->getAuditCount($where)];
+        $where[] = ['audit', '=', 2];
+        if (Admin::user()->isRole('health')) {
+            $where[] = ['is_health', '=', 1];
+        }
+        if (Admin::user()->isRole('ic_group')) {
+            $where[] = ['is_ic', '=', 1];
+        }
+        return (object)['getAuditCount' => $companyRepository->getAuditCount($where)];
     }
 
     protected function needAuditJobs($jobsRepository, $where)
     {
-        $where[] = ['audit','=',2];
-        return (object)['getJobsCount'=>$jobsRepository->getJobCount($where)];
+        $where[] = ['audit', '=', 2];
+        if (Admin::user()->isRole('health')) {
+            $where[] = ['is_health', '=', 1];
+        }
+        if (Admin::user()->isRole('ic_group')) {
+            $where[] = ['is_ic', '=', 1];
+        }
+        return (object)['getJobsCount' => $jobsRepository->getJobCount($where)];
     }
 
     protected function needAuditResume($resumeRepository, $where)
     {
-        $where[] = ['audit','=',1];
-        return (object)['getAuditCount'=>$resumeRepository->getAuditCount($where)];
+        $where[] = ['audit', '=', 1];
+        return (object)['getAuditCount' => $resumeRepository->getAuditCount($where)];
     }
 
     protected function needAuditResumeImg($resumeImgRepository, $subsite_id)
     {
-        $where[] = ['audit','=',1];
-        return (object)['getAuditCount'=>$resumeImgRepository->getAuditCount($where, $subsite_id)];
+        $where[] = ['audit', '=', 1];
+        return (object)['getAuditCount' => $resumeImgRepository->getAuditCount($where, $subsite_id)];
     }
 
     protected function suggestion($feedbackRepository, $where)
     {
-        $where[] = array('audit','=',0);
-        return (object)['getCount'=>$feedbackRepository->getCount($where)];
+        $where[] = ['audit', '=', 0];
+        return (object)['getCount' => $feedbackRepository->getCount($where)];
     }
 
     protected function report($reportRepository, $where)
     {
-        $where[] = array('audit','=',1);
-        return (object)['getCount'=>$reportRepository->getCount($where)];
+        $where[] = ['audit', '=', 1];
+        return (object)['getCount' => $reportRepository->getCount($where)];
     }
 
     protected function appeal($appealRepository, $where)
     {
-        $where[] = array('status','=',0);
-        return (object)['getCount'=>$appealRepository->getCount($where)];
+        $where[] = ['status', '=', 0];
+        return (object)['getCount' => $appealRepository->getCount($where)];
     }
 
     protected function jobfairJobs($jobfairJobRepository)
     {
-        $where[] = array('audit','=',2);
-        $where[] = array('type','=',1);
-        return (object)['getCount'=>$jobfairJobRepository->getCount($where)];
+        $where[] = ['audit', '=', 2];
+        $where[] = ['type', '=', 1];
+        return (object)['getCount' => $jobfairJobRepository->getCount($where)];
     }
 
     protected function jobfairCompany($jobfairCompanyRepository, $subsite_id)
     {
-        $where[] = array('audit','=',2);
-        return (object)['getCount'=>$jobfairCompanyRepository->getCount($where, $subsite_id)];
+        $where[] = ['audit', '=', 2];
+        return (object)['getCount' => $jobfairCompanyRepository->getCount($where, $subsite_id)];
     }
 
     protected function jobfairoutJobs($jobfairJobRepository)
     {
-        $where[] = array('audit','=',2);
-        $where[] = array('type','=',2);
-        return (object)['getCount'=>$jobfairJobRepository->getCount($where)];
+        $where[] = ['audit', '=', 2];
+        $where[] = ['type', '=', 2];
+        return (object)['getCount' => $jobfairJobRepository->getCount($where)];
     }
 
     protected function jobfairoutCompany($jobfairoutCompanyRepository, $subsite_id)
     {
-        $where[] = array('audit','=',2);
-        return (object)['getCount'=>$jobfairoutCompanyRepository->getCount($where, $subsite_id)];
+        $where[] = ['audit', '=', 2];
+        return (object)['getCount' => $jobfairoutCompanyRepository->getCount($where, $subsite_id)];
     }
 
     protected function companyImg($companyImgRepository, $subsite_id)
     {
-        return (object)['getCount'=>$companyImgRepository->getCount($subsite_id, [0,2])];
+        return (object)['getCount' => $companyImgRepository->getCount($subsite_id, [0, 2])];
     }
 
     protected function memberInfo($memberInfoRepository, $subsite_id)
     {
-        $where[] = array('photo','=',1);
-        $where[] = array('photo_audit','=',1);
-        return (object)['getCount'=>$memberInfoRepository->getCount($where, $subsite_id)];
+        $where[] = ['photo', '=', 1];
+        $where[] = ['photo_audit', '=', 1];
+        return (object)['getCount' => $memberInfoRepository->getCount($where, $subsite_id)];
     }
 
     protected function register($table, $where)
     {
         $result = [];
         $dayArr = getLastDates(30);
-        $sql = "deleted_at is null";
+        $sql    = "deleted_at is null";
         if ($where) {
             $whereSubsite = $where[0][2] ? $where[0][2] : 0;
-            $sql.=" and subsite_id=".$whereSubsite;
+            $sql          .= " and subsite_id=" . $whereSubsite;
         }
-        $realArr = DB::select("select DATE_FORMAT(created_at,'%Y-%m-%d') as days,count(*) as count FROM ".$table." WHERE ".$sql." and created_at >= '".date('Y-m-d H:i:s', strtotime('-30 days'))."' AND created_at <= '".date('Y-m-d H:i:s')."' GROUP BY days");
+        $realArr = DB::select("select DATE_FORMAT(created_at,'%Y-%m-%d') as days,count(*) as count FROM " . $table . " WHERE " . $sql . " and created_at >= '" . date('Y-m-d H:i:s', strtotime('-30 days')) . "' AND created_at <= '" . date('Y-m-d H:i:s') . "' GROUP BY days");
         foreach ($dayArr as $key => $val) {
             if (in_array($val, array_column($realArr, 'days'))) {
                 foreach ($realArr as $key1 => $val1) {
-                    if ($val==$val1->days) {
+                    if ($val == $val1->days) {
                         $result[] = [$val, $val1->count];
                         break;
                     }
@@ -196,47 +239,47 @@ class HomeController extends Controller
         $sql = "deleted_at is null";
         if ($where) {
             $whereSubsite = $where[0][2] ? $where[0][2] : 0;
-            $sql.=" and subsite_id=".$whereSubsite;
+            $sql          .= " and subsite_id=" . $whereSubsite;
         }
-        $result = [];
-        $category =  Category::where('alias', 'AIX_company_type')->select(['id', 'demand'])->get()->toArray();
+        $result        = [];
+        $category      = Category::where('alias', 'AIX_company_type')->select(['id', 'demand'])->get()->toArray();
         $category_name = array_column($category, 'demand');
-        $company = DB::select("select nature,count(*) as count from companys WHERE ".$sql." group by nature");
+        $company       = DB::select("select nature,count(*) as count from companys WHERE " . $sql . " group by nature");
         foreach ($category as $key => $val) {
             if (in_array($val['id'], array_column($company, 'nature'))) {
                 foreach ($company as $key1 => $val1) {
-                    if ($val['id']==$val1->nature) {
-                        $result[] = ['value'=>$val1->count, 'name'=>$val['demand']];
+                    if ($val['id'] == $val1->nature) {
+                        $result[] = ['value' => $val1->count, 'name' => $val['demand']];
                         break;
                     }
                 }
             } else {
-                $result[] = ['value'=>0, 'name'=>$val['demand']];
+                $result[] = ['value' => 0, 'name' => $val['demand']];
             }
         }
-        return ['category_name'=>$category_name,'result'=>$result];
+        return ['category_name' => $category_name, 'result' => $result];
     }
 
     protected function userAction()
     {
-        $result = [];
-        $dayArr = getLastDates(14);
-        $jobsRefresh = RefreshLog::when(get_subsite_id()>0, function ($query) {
+        $result      = [];
+        $dayArr      = getLastDates(14);
+        $jobsRefresh = RefreshLog::when(get_subsite_id() > 0, function ($query) {
             $query->whereHas('companys', function ($query) {
                 $query->where('subsite_id', get_subsite_id());
             });
         })->where('utype', 1)->where('type', 1006)->where('created_at', '>=', date('Y-m-d H:i:s', strtotime('-14 days')))->where('created_at', '<=', date('Y-m-d H:i:s'))->selectRaw('DATE_FORMAT(created_at,\'%Y-%m-%d\') as days,count(*) as count')->groupBy('days')->get()->toArray();
-        $jobsApply = PersonalJobsApply::when(get_subsite_id()>0, function ($query) {
+        $jobsApply   = PersonalJobsApply::when(get_subsite_id() > 0, function ($query) {
             $query->whereHas('resumes', function ($query) {
                 $query->where('subsite_id', get_subsite_id());
             });
         })->where('created_at', '>=', date('Y-m-d H:i:s', strtotime('-14 days')))->where('created_at', '<=', date('Y-m-d H:i:s'))->selectRaw('DATE_FORMAT(created_at,\'%Y-%m-%d\') as days,count(*) as count')->groupBy('days')->get()->toArray();
-        $newArray = ['jobsRefresh'=>$jobsRefresh,'jobsApply'=>$jobsApply];
+        $newArray    = ['jobsRefresh' => $jobsRefresh, 'jobsApply' => $jobsApply];
         foreach ($dayArr as $key => $val) {
             foreach ($newArray as $key2 => $val2) {
                 if (in_array($val, array_column($val2, 'days'))) {
                     foreach ($val2 as $key1 => $val1) {
-                        if ($val==$val1['days']) {
+                        if ($val == $val1['days']) {
                             $result[$key2][] = $val1['count'];
                             break;
                         }
@@ -246,68 +289,69 @@ class HomeController extends Controller
                 }
             }
         }
-        return ['day'=>$dayArr, 'userAction'=>$result];
+        return ['day' => $dayArr, 'userAction' => $result];
     }
 
     public function ajax()
     {
-        $where = $this->where;
-        $member = $this->register('members', $where);
-        $company = $this->register('companys', $where);
+        $where       = $this->where;
+        $member      = $this->register('members', $where);
+        $company     = $this->register('companys', $where);
         $companyType = $this->companyType($where);
-        $userAction = $this->userAction();
-        return response()->json(['member'=>$member,'company'=>$company,'companyType'=>$companyType,'userAction'=>$userAction]);
+        $userAction  = $this->userAction();
+        return response()->json(['member' => $member, 'company' => $company, 'companyType' => $companyType, 'userAction' => $userAction]);
     }
 
     public function menuMessage(
-        CompanyRepository $companyRepository,
-        JobsRepository $jobsRepository,
-        CompanyImgRepository $companyImgRepository,
-        ResumeRepository $resumeRepository,
-        ResumeImgRepository $resumeImgRepository,
-        MemberInfoRepository $memberInfoRepository,
-        FeedbackRepository $feedbackRepository,
-        ReportRepository $reportRepository,
-        AppealRepository $appealRepository,
-        JobfairJobRepository $jobfairJobRepository,
-        JobfairCompanyRepository $jobfairCompanyRepository,
+        CompanyRepository           $companyRepository,
+        JobsRepository              $jobsRepository,
+        CompanyImgRepository        $companyImgRepository,
+        ResumeRepository            $resumeRepository,
+        ResumeImgRepository         $resumeImgRepository,
+        MemberInfoRepository        $memberInfoRepository,
+        FeedbackRepository          $feedbackRepository,
+        ReportRepository            $reportRepository,
+        AppealRepository            $appealRepository,
+        JobfairJobRepository        $jobfairJobRepository,
+        JobfairCompanyRepository    $jobfairCompanyRepository,
         JobfairoutCompanyRepository $jobfairoutCompanyRepository
-    ) {
+    )
+    {
 
-        $needAuthCompany = $this->needAuthCompany($companyRepository, $this->where)->getAuditCount;
-        $needAuditJobs = $this->needAuditJobs($jobsRepository, $this->where)->getJobsCount;
-        $companyImg =$this->companyImg($companyImgRepository, $this->where)->getCount;
-        $needAuditResume = $this->needAuditResume($resumeRepository, $this->where)->getAuditCount;
+        $needAuthCompany    = $this->needAuthCompany($companyRepository, $this->where)->getAuditCount;
+        $needAuditJobs      = $this->needAuditJobs($jobsRepository, $this->where)->getJobsCount;
+        $companyImg         = $this->companyImg($companyImgRepository, $this->where)->getCount;
+        $needAuditResume    = $this->needAuditResume($resumeRepository, $this->where)->getAuditCount;
         $needAuditResumeImg = $this->needAuditResumeImg($resumeImgRepository, $this->where)->getAuditCount;
-        $memberInfo = $this->memberInfo($memberInfoRepository, $this->where)->getCount;
-        $suggestion = $this->suggestion($feedbackRepository, $this->where)->getCount;
-        $report = $this->report($reportRepository, $this->where)->getCount;
-        $appeal = $this->appeal($appealRepository, $this->where)->getCount;
+        $memberInfo         = $this->memberInfo($memberInfoRepository, $this->where)->getCount;
+        $suggestion         = $this->suggestion($feedbackRepository, $this->where)->getCount;
+        $report             = $this->report($reportRepository, $this->where)->getCount;
+        $appeal             = $this->appeal($appealRepository, $this->where)->getCount;
 
-        $jobfairJobs = $this->jobfairJobs($jobfairJobRepository)->getCount;
+        $jobfairJobs    = $this->jobfairJobs($jobfairJobRepository)->getCount;
         $jobfairCompany = $this->jobfairCompany($jobfairCompanyRepository, $this->where)->getCount;
 
-        $jobfairoutJobs = $this->jobfairoutJobs($jobfairJobRepository)->getCount;
+        $jobfairoutJobs    = $this->jobfairoutJobs($jobfairJobRepository)->getCount;
         $jobfairoutCompany = $this->jobfairoutCompany($jobfairoutCompanyRepository, $this->where)->getCount;
         return response()->json([
-            ["id"=>13,"num"=>$needAuthCompany+$needAuditJobs+$companyImg, "has_child"=>true],
-            ["id"=>14,"num"=>$needAuthCompany, "has_child"=>false],
-            ["id"=>31,"num"=>$needAuditJobs, "has_child"=>false],
-            ["id"=>41,"num"=>$companyImg, "has_child"=>false],
-            ["id"=>110,"num"=>$needAuditResume+$needAuditResumeImg+$memberInfo, "has_child"=>true],
-            ["id"=>111,"num"=>$needAuditResume, "has_child"=>false],
-            ["id"=>112,"num"=>$needAuditResumeImg, "has_child"=>false],
-            ["id"=>113,"num"=>$memberInfo, "has_child"=>false],
-            ["id"=>19,"num"=>$suggestion+$report+$appeal, "has_child"=>true],
-            ["id"=>106,"num"=>$suggestion, "has_child"=>false],
-            ["id"=>47,"num"=>$report, "has_child"=>false],
-            ["id"=>50,"num"=>$appeal, "has_child"=>false],
-            ["id"=>145,"num"=>$jobfairJobs+$jobfairCompany, "has_child"=>true],
-            ["id"=>149,"num"=>$jobfairJobs, "has_child"=>false],
-            ["id"=>151,"num"=>$jobfairCompany, "has_child"=>false],
-            ["id"=>175,"num"=>$jobfairoutJobs+$jobfairoutCompany, "has_child"=>true],
-            ["id"=>177,"num"=>$jobfairoutJobs, "has_child"=>false],
-            ["id"=>179,"num"=>$jobfairoutCompany, "has_child"=>false],
+            ["id" => 13, "num" => $needAuthCompany + $needAuditJobs + $companyImg, "has_child" => true],
+            ["id" => 14, "num" => $needAuthCompany, "has_child" => false],
+            ["id" => 31, "num" => $needAuditJobs, "has_child" => false],
+            ["id" => 41, "num" => $companyImg, "has_child" => false],
+            ["id" => 110, "num" => $needAuditResume + $needAuditResumeImg + $memberInfo, "has_child" => true],
+            ["id" => 111, "num" => $needAuditResume, "has_child" => false],
+            ["id" => 112, "num" => $needAuditResumeImg, "has_child" => false],
+            ["id" => 113, "num" => $memberInfo, "has_child" => false],
+            ["id" => 19, "num" => $suggestion + $report + $appeal, "has_child" => true],
+            ["id" => 106, "num" => $suggestion, "has_child" => false],
+            ["id" => 47, "num" => $report, "has_child" => false],
+            ["id" => 50, "num" => $appeal, "has_child" => false],
+            ["id" => 145, "num" => $jobfairJobs + $jobfairCompany, "has_child" => true],
+            ["id" => 149, "num" => $jobfairJobs, "has_child" => false],
+            ["id" => 151, "num" => $jobfairCompany, "has_child" => false],
+            ["id" => 175, "num" => $jobfairoutJobs + $jobfairoutCompany, "has_child" => true],
+            ["id" => 177, "num" => $jobfairoutJobs, "has_child" => false],
+            ["id" => 179, "num" => $jobfairoutCompany, "has_child" => false],
         ]);
     }
 

+ 383 - 0
resources/views/admin/home/health.blade.php

@@ -0,0 +1,383 @@
+<!--数量统计-->
+<meta name="csrf-token" content="{{ csrf_token() }}">
+<div class="row">
+    <div class="col-lg-3 col-sm-6 col-xs-12">
+        <div class="white-box shadow">
+            <p class="box-title com-icon">企业会员</p>
+            <p class="text-center lg-text"><a href="{{admin_base_path('/firm/company')}}"><span class="font-orange">{{ $company->getCompanyCount or 0 }}</span></a></p>
+            <ul class="list-inline two-part">
+                <li class="sm-text">上月增加:<span class="font-orange">{{ $company->getLastCompanyCount or 0 }}</span></li>
+                <li class="sm-text">本月增加:<span class="font-orange">{{ $company->getNextCompanyCount or 0 }}</span></li>
+            </ul>
+        </div>
+    </div>
+    <div class="col-lg-3 col-sm-6 col-xs-12">
+        <div class="white-box shadow">
+            <p class="box-title job-icon">招聘岗位数</p>
+            <p class="text-center lg-text"><a href="{{admin_base_path('/firm/jobs')}}"><span class="font-green">{{ $jobs->getJobCount or 0 }}</span></a></p>
+            <ul class="list-inline two-part">
+                <li class="sm-text">上月增加:<span class="font-green">{{ $jobs->getLastJobsCount or 0 }}</span></li>
+                <li class="sm-text">本月增加:<span class="font-green">{{ $jobs->getNextJobsCount or 0 }}</span></li>
+            </ul>
+        </div>
+    </div>
+</div>
+<!--待办事项-->
+<div class="shadow white-box">
+    <div class="row ">
+        <div class="col-lg-12 col-md-12 col-xs-12" style="margin-bottom: 10px;">
+            <p class="blue-title">待办事项</p>
+        </div>
+        <div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
+            <div class="gray-box clearfix">
+                <div class="pull-left">
+                    <p class="font-16 text-center">待认证企业</p>
+                    <a href="{{admin_base_path('/firm/company')}}?audit=2"><p class="font-26-blue text-center">{{ $needAuthCompany->getAuditCount or 0 }}</p></a>
+                </div>
+                <div class="pull-right">
+                    <a href="{{admin_base_path('/firm/company')}}?audit=2"> <img src="/vendor/laravel-admin/AdminLTE/dist/img/index-todo-icon1.png"/></a>
+                </div>
+            </div>
+        </div>
+        <div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
+            <div class="gray-box clearfix">
+                <div class="pull-left">
+                    <p class="font-16 text-center">待审核职位</p>
+                    <a href="{{admin_base_path('/firm/jobs')}}?audit=2"><p class="font-26-999 text-center">{{ $needAuditJobs->getJobsCount or 0 }}</p></a>
+                </div>
+                <div class="pull-right">
+                    <a href="{{admin_base_path('/firm/jobs')}}?audit=2"><img src="/vendor/laravel-admin/AdminLTE/dist/img//index-todo-icon2.png"/></a>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+
+<style type="text/css">
+    .content-wrapper{background: #fff;}
+    .clearfix:after{display:block;clear:both;content:"";visibility:hidden;height:0;}
+    .clearfix{zoom:1;  /*为了兼容IE*/}
+    .white-box{background: #fff;padding: 10px 20px;margin-bottom: 20px;}
+    .white-box p,ul,li{margin: 0;padding: 0;}
+    .gray-box{background: #f5f5f5;padding: 15px 25px;margin-bottom: 10px;height: 105px;overflow: hidden;}
+    .shadow{box-shadow:0 0 15px rgba(0, 0, 0, .2);-webkit-box-shadow:0 0 15px rgba(0, 0, 0, .2);}
+    .white-box .box-title{font-size: 20px;color: #4d4d4d;padding-left: 68px;height: 48px;line-height: 48px;}
+    .blue-title{font-size: 18px;color: #3c8dbc;}
+    .font-orange{color: #ed6407}
+    .font-red{color: #fd4d51}
+    .font-green{color: #12c36b;}
+    .font-blue{color: #3e8ff6;}
+    .font-16{color: #4d4d4d;font-size: 16px;}
+    .font-26-blue{color: #3c8dbc;font-size: 26px;}
+    .font-26-999{color: #999999;font-size: 26px;}
+    .white-box .com-icon{background: url(/vendor/laravel-admin/AdminLTE/dist/img/index-com-icon.png)no-repeat;}
+    .white-box .per-icon{background: url(/vendor/laravel-admin/AdminLTE/dist/img/index-per-icon.png)no-repeat;}
+    .white-box .job-icon{background: url(/vendor/laravel-admin/AdminLTE/dist/img/index-job-icon.png)no-repeat;}
+    .white-box .resume-icon{background: url(/vendor/laravel-admin/AdminLTE/dist/img/index-resume-icon.png)no-repeat;}
+    .white-box .lg-text{font-size: 40px;color: #666666;}
+    .white-box .sm-text{font-size: 16px;color: #666666;}
+    .white-box .two-part{min-height: 44px;}
+    .white-box .two-part li{width: 49%;vertical-align: top;}
+    .white-box .rgt-bor{border-right:2px solid #ededed}
+    @media screen and (min-width:1200px) and (max-width:1400px){.white-box .gray-box .pull-right{display: none;}}
+    @media screen and (min-width:1400px) and (max-width:1670px){.white-box .gray-box {padding: 15px 8px;}.white-box .gray-box img{width: 55px;}}
+</style>
+
+<script type="text/javascript" src="{{ theme_asset('app/js/jquery.ba-resize.min.js') }}"></script>
+<script>
+	//	会员注册趋势折线
+    var myChart = echarts.init(document.getElementById("reg-trend"));
+    //  企业类型分布饼图
+    var myChart1 = echarts.init(document.getElementById('com-distribution'));
+    var colorList =["#ec948a","#eab374","#54b7ea","#61c5d0","#a9e0d4","#bddb89","#44d4b0","#99b5ff","#797bac","#8bc0df","#FF9966","#996600","#999966","#669933","#FF9999","#996699","#9999CC","#663366","#CC3399"];
+    //	用户行为分析图
+    var myChart2 = echarts.init(document.getElementById('beh-analysis'));
+    myChart.showLoading();
+    myChart1.showLoading();
+    myChart2.showLoading();
+    $.ajax({
+        headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
+        url:"{{admin_base_path()}}/home/ajax",
+        type:'post',
+        dataType: 'json',
+        success:function(data){
+            myChart.hideLoading();
+            myChart1.hideLoading();
+            myChart2.hideLoading();
+            myChart.setOption({
+                tooltip: {
+                    trigger: 'axis'
+                },
+                legend: { //图例组件
+                    right:'10%',
+                    data: ["企业会员", "个人会员"],
+                    textStyle:{
+                        color:"#4d4d4d",
+                        fontSize:14
+                    }
+                },
+                grid: {
+                    left: '10',//grid 组件离容器左侧的距离
+                    right: '10',
+                    bottom: '10',
+                    containLabel: true //grid 区域是否包含坐标轴的刻度标签。
+                },
+                //x轴信息样式
+                xAxis: {
+                    boundaryGap:true,
+                    axisTick:{
+                        alignWithLabel:true
+                    },
+                    splitLine: {   //grid 区域中的分隔线。
+                        show: true,
+                        interval: 0,//坐标轴分隔线的显示间隔 , 0 强制显示所有标签
+                        lineStyle: {
+                            color: ['#ebebeb']
+                        }
+                    },
+                    axisLabel:{
+                        interval: 0 //坐标轴刻度标签的显示间隔 , 0 强制显示所有标签。
+                       //rotate:30  //刻度标签旋转的角度
+                    },
+                    data:(function(){
+                        var  res = [];
+                        for(var i = 0;i<data.company.length;i++){
+                            res.push(data.company[i][0].substr(5))
+                        }
+                        return res
+                    })()
+                },
+                yAxis: {
+                    type: 'value',
+                    splitLine: {
+                        show: true,
+                        interval: 'auto',
+                        lineStyle: {
+                            color: ['#ebebeb']
+                        }
+                    }
+                },
+                series: [
+                    {
+                        name:'企业会员',
+                        type:'line',
+                        symbol:'circle',
+                        symbolSize:6,
+                        smooth:true,
+                        itemStyle:{
+                            normal:{
+                                color:'#0fa9f1',
+                            }
+                        },
+                        markPoint:{   //图表标注
+                           	//symbol:'roundRect',//标记的图形
+                            //symbolOffset:[15,-10],//标记相对于原本位置的偏移
+                            symbolSize:35,//标记的大小
+                            data: [
+                                {type: 'max', name: '最大值'},
+                            ]
+                        },
+                        data:(function(){
+                            var  com_res = [];
+                            for(var i = 0;i<data.company.length;i++){
+                                com_res.push(data.company[i][1])
+                            }
+                            return com_res
+                        })()
+                    },
+                    {
+                        name:'个人会员',
+                        type:'line',
+                        symbol:'circle',
+                        symbolSize:6,
+                        smooth:true,
+                        itemStyle:{
+                            normal:{
+                                color:'#f95592',
+                            }
+                        },
+                        markPoint:{   //图表标注
+                            //symbol:'roundRect',//标记的图形
+                            //symbolOffset:[15,-10],//标记相对于原本位置的偏移
+                            symbolSize:35,//标记的大小
+                            data: [
+                                {type: 'max', name: '最大值'},
+                            ]
+                        },
+                        data:(function(){
+                            var  mem_res = [];
+                            for(var i = 0;i<data.member.length;i++){
+                                mem_res.push(data.member[i][1])
+                            }
+                            return mem_res
+                        })()
+                    },
+                ]
+            });
+            myChart1.setOption({
+                tooltip: {
+                    trigger: 'item',
+                    formatter:  "{b}: {c} ({d}%)"
+                },
+                /*legend: {
+                    //orient: 'vertical',
+                    textStyle:{
+                        color:'#4d4d4d',
+                        fontSize: 14,
+                    },
+                    right:10,
+                    bottom:0,
+                    itemWidth:15,
+                    itemHeight:8,
+                    data:data.companyType.category_name
+                },*/
+                series: [
+                    {
+                        type:'pie',
+                        radius: ['35%', '55%'],
+                        center: ['50%', '52%'],
+                        // roseType: 'radius',
+                        clockwise :true,
+                        z:10,
+                        itemStyle: {
+                            normal: {
+                                color: function(params) {
+                                    // build a color map as your need.
+                                    return colorList[params.dataIndex]
+                                },
+                            }
+                        },
+                        label: {
+                            normal: {
+                                formatter:'{b}: {d}%'
+                            }
+                        },
+                        labelLine: {
+                            normal: {
+                                length: 20,
+                                length2: 0,
+                                lineStyle:{
+                                    width:2
+                                }
+                            }
+                        },
+                        data:data.companyType.result
+                    },
+                    {
+                        type:'pie',
+                        radius: ['15%', '20%'],
+                        center: ['50%', '52%'],
+                        z:10,
+                        itemStyle: {
+                            normal: {
+                                color: function(params) {
+                                    return colorList[params.dataIndex]
+                                },
+                            }
+                        },
+                        label:{
+                            show:false
+                        },
+                        data:data.companyType.result
+                    }
+                ]
+            });
+            myChart2.setOption({
+                tooltip: {
+                    trigger: 'axis',
+                    axisPointer: { // 坐标轴指示器,坐标轴触发有效
+                        type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
+                    }
+                },
+                grid: {
+                    left: '10',
+                    right: '10',
+                    bottom: '10',
+                    containLabel: true
+                },
+                legend: {
+                    right:'10%',
+                    textStyle:{
+                        color:"#4d4d4d",
+                        fontSize:14
+                    },
+                    data: ['职位刷新数量', '简历投递数量']
+                },
+                xAxis: [
+                    {
+                        type: 'category',
+                        axisTick: {
+                            alignWithLabel: true,
+                        },
+                        axisLabel:{
+                            interval: 0
+                            //rotate:30
+                        },
+                        data:(function(){
+	                        var  xres = [];
+	                        for(var i = 0;i<data.userAction.day.length;i++){
+	                            xres.push(data.userAction.day[i].substr(5))
+	                        }
+	                        return xres
+	                    })()
+                    }
+                ],
+                yAxis: [{
+                    type: 'value',
+                    min: 0,
+                    splitLine: {
+                        show: true,
+                        interval: 'auto',
+                        lineStyle: {
+                            color: ['#ebebeb']
+                        }
+                    }
+                }],
+                series: [{
+                    name: '职位刷新数量',
+                    type: 'bar',
+                    itemStyle: {
+                        normal: {color: '#8bc0df'}
+                    },
+                    label: {
+                        normal: {
+                            show: false,
+                            position: 'top'
+                        }
+                    },
+                    markPoint:{   //图表标注
+                        symbolSize:35,
+                        data: [
+                            {type: 'max', name: '最大值'},
+                        ]
+                    },
+                    data: data.userAction.userAction.jobsRefresh
+                }, {
+                    name: '简历投递数量',
+                    type: 'bar',
+                    itemStyle: {
+                        normal: {color: '#797bac'}
+                    },
+                    label: {
+                        normal: {
+                            show: false,
+                            position: 'top'
+                        }
+                    },
+                     markPoint:{   //图表标注
+                        symbolSize:35,
+                        data: [
+                            {type: 'max', name: '最大值'},
+                        ]
+                    },
+                    data: data.userAction.userAction.jobsApply
+                }]
+            });
+        }
+    });
+	$(".chart").resize(function(){
+		myChart.resize();
+		myChart1.resize();
+		myChart2.resize();
+	})
+</script>

+ 383 - 0
resources/views/admin/home/ic.blade.php

@@ -0,0 +1,383 @@
+<!--数量统计-->
+<meta name="csrf-token" content="{{ csrf_token() }}">
+<div class="row">
+    <div class="col-lg-3 col-sm-6 col-xs-12">
+        <div class="white-box shadow">
+            <p class="box-title com-icon">企业会员</p>
+            <p class="text-center lg-text"><a href="{{admin_base_path('/firm/company')}}"><span class="font-orange">{{ $company->getCompanyCount or 0 }}</span></a></p>
+            <ul class="list-inline two-part">
+                <li class="sm-text">上月增加:<span class="font-orange">{{ $company->getLastCompanyCount or 0 }}</span></li>
+                <li class="sm-text">本月增加:<span class="font-orange">{{ $company->getNextCompanyCount or 0 }}</span></li>
+            </ul>
+        </div>
+    </div>
+    <div class="col-lg-3 col-sm-6 col-xs-12">
+        <div class="white-box shadow">
+            <p class="box-title job-icon">招聘岗位数</p>
+            <p class="text-center lg-text"><a href="{{admin_base_path('/firm/jobs')}}"><span class="font-green">{{ $jobs->getJobCount or 0 }}</span></a></p>
+            <ul class="list-inline two-part">
+                <li class="sm-text">上月增加:<span class="font-green">{{ $jobs->getLastJobsCount or 0 }}</span></li>
+                <li class="sm-text">本月增加:<span class="font-green">{{ $jobs->getNextJobsCount or 0 }}</span></li>
+            </ul>
+        </div>
+    </div>
+</div>
+<!--待办事项-->
+<div class="shadow white-box">
+    <div class="row ">
+        <div class="col-lg-12 col-md-12 col-xs-12" style="margin-bottom: 10px;">
+            <p class="blue-title">待办事项</p>
+        </div>
+        <div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
+            <div class="gray-box clearfix">
+                <div class="pull-left">
+                    <p class="font-16 text-center">待认证企业</p>
+                    <a href="{{admin_base_path('/firm/company')}}?audit=2"><p class="font-26-blue text-center">{{ $needAuthCompany->getAuditCount or 0 }}</p></a>
+                </div>
+                <div class="pull-right">
+                    <a href="{{admin_base_path('/firm/company')}}?audit=2"> <img src="/vendor/laravel-admin/AdminLTE/dist/img/index-todo-icon1.png"/></a>
+                </div>
+            </div>
+        </div>
+        <div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
+            <div class="gray-box clearfix">
+                <div class="pull-left">
+                    <p class="font-16 text-center">待审核职位</p>
+                    <a href="{{admin_base_path('/firm/jobs')}}?audit=2"><p class="font-26-999 text-center">{{ $needAuditJobs->getJobsCount or 0 }}</p></a>
+                </div>
+                <div class="pull-right">
+                    <a href="{{admin_base_path('/firm/jobs')}}?audit=2"><img src="/vendor/laravel-admin/AdminLTE/dist/img//index-todo-icon2.png"/></a>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+
+<style type="text/css">
+    .content-wrapper{background: #fff;}
+    .clearfix:after{display:block;clear:both;content:"";visibility:hidden;height:0;}
+    .clearfix{zoom:1;  /*为了兼容IE*/}
+    .white-box{background: #fff;padding: 10px 20px;margin-bottom: 20px;}
+    .white-box p,ul,li{margin: 0;padding: 0;}
+    .gray-box{background: #f5f5f5;padding: 15px 25px;margin-bottom: 10px;height: 105px;overflow: hidden;}
+    .shadow{box-shadow:0 0 15px rgba(0, 0, 0, .2);-webkit-box-shadow:0 0 15px rgba(0, 0, 0, .2);}
+    .white-box .box-title{font-size: 20px;color: #4d4d4d;padding-left: 68px;height: 48px;line-height: 48px;}
+    .blue-title{font-size: 18px;color: #3c8dbc;}
+    .font-orange{color: #ed6407}
+    .font-red{color: #fd4d51}
+    .font-green{color: #12c36b;}
+    .font-blue{color: #3e8ff6;}
+    .font-16{color: #4d4d4d;font-size: 16px;}
+    .font-26-blue{color: #3c8dbc;font-size: 26px;}
+    .font-26-999{color: #999999;font-size: 26px;}
+    .white-box .com-icon{background: url(/vendor/laravel-admin/AdminLTE/dist/img/index-com-icon.png)no-repeat;}
+    .white-box .per-icon{background: url(/vendor/laravel-admin/AdminLTE/dist/img/index-per-icon.png)no-repeat;}
+    .white-box .job-icon{background: url(/vendor/laravel-admin/AdminLTE/dist/img/index-job-icon.png)no-repeat;}
+    .white-box .resume-icon{background: url(/vendor/laravel-admin/AdminLTE/dist/img/index-resume-icon.png)no-repeat;}
+    .white-box .lg-text{font-size: 40px;color: #666666;}
+    .white-box .sm-text{font-size: 16px;color: #666666;}
+    .white-box .two-part{min-height: 44px;}
+    .white-box .two-part li{width: 49%;vertical-align: top;}
+    .white-box .rgt-bor{border-right:2px solid #ededed}
+    @media screen and (min-width:1200px) and (max-width:1400px){.white-box .gray-box .pull-right{display: none;}}
+    @media screen and (min-width:1400px) and (max-width:1670px){.white-box .gray-box {padding: 15px 8px;}.white-box .gray-box img{width: 55px;}}
+</style>
+
+<script type="text/javascript" src="{{ theme_asset('app/js/jquery.ba-resize.min.js') }}"></script>
+<script>
+	//	会员注册趋势折线
+    var myChart = echarts.init(document.getElementById("reg-trend"));
+    //  企业类型分布饼图
+    var myChart1 = echarts.init(document.getElementById('com-distribution'));
+    var colorList =["#ec948a","#eab374","#54b7ea","#61c5d0","#a9e0d4","#bddb89","#44d4b0","#99b5ff","#797bac","#8bc0df","#FF9966","#996600","#999966","#669933","#FF9999","#996699","#9999CC","#663366","#CC3399"];
+    //	用户行为分析图
+    var myChart2 = echarts.init(document.getElementById('beh-analysis'));
+    myChart.showLoading();
+    myChart1.showLoading();
+    myChart2.showLoading();
+    $.ajax({
+        headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
+        url:"{{admin_base_path()}}/home/ajax",
+        type:'post',
+        dataType: 'json',
+        success:function(data){
+            myChart.hideLoading();
+            myChart1.hideLoading();
+            myChart2.hideLoading();
+            myChart.setOption({
+                tooltip: {
+                    trigger: 'axis'
+                },
+                legend: { //图例组件
+                    right:'10%',
+                    data: ["企业会员", "个人会员"],
+                    textStyle:{
+                        color:"#4d4d4d",
+                        fontSize:14
+                    }
+                },
+                grid: {
+                    left: '10',//grid 组件离容器左侧的距离
+                    right: '10',
+                    bottom: '10',
+                    containLabel: true //grid 区域是否包含坐标轴的刻度标签。
+                },
+                //x轴信息样式
+                xAxis: {
+                    boundaryGap:true,
+                    axisTick:{
+                        alignWithLabel:true
+                    },
+                    splitLine: {   //grid 区域中的分隔线。
+                        show: true,
+                        interval: 0,//坐标轴分隔线的显示间隔 , 0 强制显示所有标签
+                        lineStyle: {
+                            color: ['#ebebeb']
+                        }
+                    },
+                    axisLabel:{
+                        interval: 0 //坐标轴刻度标签的显示间隔 , 0 强制显示所有标签。
+                       //rotate:30  //刻度标签旋转的角度
+                    },
+                    data:(function(){
+                        var  res = [];
+                        for(var i = 0;i<data.company.length;i++){
+                            res.push(data.company[i][0].substr(5))
+                        }
+                        return res
+                    })()
+                },
+                yAxis: {
+                    type: 'value',
+                    splitLine: {
+                        show: true,
+                        interval: 'auto',
+                        lineStyle: {
+                            color: ['#ebebeb']
+                        }
+                    }
+                },
+                series: [
+                    {
+                        name:'企业会员',
+                        type:'line',
+                        symbol:'circle',
+                        symbolSize:6,
+                        smooth:true,
+                        itemStyle:{
+                            normal:{
+                                color:'#0fa9f1',
+                            }
+                        },
+                        markPoint:{   //图表标注
+                           	//symbol:'roundRect',//标记的图形
+                            //symbolOffset:[15,-10],//标记相对于原本位置的偏移
+                            symbolSize:35,//标记的大小
+                            data: [
+                                {type: 'max', name: '最大值'},
+                            ]
+                        },
+                        data:(function(){
+                            var  com_res = [];
+                            for(var i = 0;i<data.company.length;i++){
+                                com_res.push(data.company[i][1])
+                            }
+                            return com_res
+                        })()
+                    },
+                    {
+                        name:'个人会员',
+                        type:'line',
+                        symbol:'circle',
+                        symbolSize:6,
+                        smooth:true,
+                        itemStyle:{
+                            normal:{
+                                color:'#f95592',
+                            }
+                        },
+                        markPoint:{   //图表标注
+                            //symbol:'roundRect',//标记的图形
+                            //symbolOffset:[15,-10],//标记相对于原本位置的偏移
+                            symbolSize:35,//标记的大小
+                            data: [
+                                {type: 'max', name: '最大值'},
+                            ]
+                        },
+                        data:(function(){
+                            var  mem_res = [];
+                            for(var i = 0;i<data.member.length;i++){
+                                mem_res.push(data.member[i][1])
+                            }
+                            return mem_res
+                        })()
+                    },
+                ]
+            });
+            myChart1.setOption({
+                tooltip: {
+                    trigger: 'item',
+                    formatter:  "{b}: {c} ({d}%)"
+                },
+                /*legend: {
+                    //orient: 'vertical',
+                    textStyle:{
+                        color:'#4d4d4d',
+                        fontSize: 14,
+                    },
+                    right:10,
+                    bottom:0,
+                    itemWidth:15,
+                    itemHeight:8,
+                    data:data.companyType.category_name
+                },*/
+                series: [
+                    {
+                        type:'pie',
+                        radius: ['35%', '55%'],
+                        center: ['50%', '52%'],
+                        // roseType: 'radius',
+                        clockwise :true,
+                        z:10,
+                        itemStyle: {
+                            normal: {
+                                color: function(params) {
+                                    // build a color map as your need.
+                                    return colorList[params.dataIndex]
+                                },
+                            }
+                        },
+                        label: {
+                            normal: {
+                                formatter:'{b}: {d}%'
+                            }
+                        },
+                        labelLine: {
+                            normal: {
+                                length: 20,
+                                length2: 0,
+                                lineStyle:{
+                                    width:2
+                                }
+                            }
+                        },
+                        data:data.companyType.result
+                    },
+                    {
+                        type:'pie',
+                        radius: ['15%', '20%'],
+                        center: ['50%', '52%'],
+                        z:10,
+                        itemStyle: {
+                            normal: {
+                                color: function(params) {
+                                    return colorList[params.dataIndex]
+                                },
+                            }
+                        },
+                        label:{
+                            show:false
+                        },
+                        data:data.companyType.result
+                    }
+                ]
+            });
+            myChart2.setOption({
+                tooltip: {
+                    trigger: 'axis',
+                    axisPointer: { // 坐标轴指示器,坐标轴触发有效
+                        type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
+                    }
+                },
+                grid: {
+                    left: '10',
+                    right: '10',
+                    bottom: '10',
+                    containLabel: true
+                },
+                legend: {
+                    right:'10%',
+                    textStyle:{
+                        color:"#4d4d4d",
+                        fontSize:14
+                    },
+                    data: ['职位刷新数量', '简历投递数量']
+                },
+                xAxis: [
+                    {
+                        type: 'category',
+                        axisTick: {
+                            alignWithLabel: true,
+                        },
+                        axisLabel:{
+                            interval: 0
+                            //rotate:30
+                        },
+                        data:(function(){
+	                        var  xres = [];
+	                        for(var i = 0;i<data.userAction.day.length;i++){
+	                            xres.push(data.userAction.day[i].substr(5))
+	                        }
+	                        return xres
+	                    })()
+                    }
+                ],
+                yAxis: [{
+                    type: 'value',
+                    min: 0,
+                    splitLine: {
+                        show: true,
+                        interval: 'auto',
+                        lineStyle: {
+                            color: ['#ebebeb']
+                        }
+                    }
+                }],
+                series: [{
+                    name: '职位刷新数量',
+                    type: 'bar',
+                    itemStyle: {
+                        normal: {color: '#8bc0df'}
+                    },
+                    label: {
+                        normal: {
+                            show: false,
+                            position: 'top'
+                        }
+                    },
+                    markPoint:{   //图表标注
+                        symbolSize:35,
+                        data: [
+                            {type: 'max', name: '最大值'},
+                        ]
+                    },
+                    data: data.userAction.userAction.jobsRefresh
+                }, {
+                    name: '简历投递数量',
+                    type: 'bar',
+                    itemStyle: {
+                        normal: {color: '#797bac'}
+                    },
+                    label: {
+                        normal: {
+                            show: false,
+                            position: 'top'
+                        }
+                    },
+                     markPoint:{   //图表标注
+                        symbolSize:35,
+                        data: [
+                            {type: 'max', name: '最大值'},
+                        ]
+                    },
+                    data: data.userAction.userAction.jobsApply
+                }]
+            });
+        }
+    });
+	$(".chart").resize(function(){
+		myChart.resize();
+		myChart1.resize();
+		myChart2.resize();
+	})
+</script>