|
@@ -20,8 +20,39 @@ $(function() {
|
|
|
var obj=data.data.companyList[i];
|
|
|
$(".data-companyList").append("<tr> <td>"+obj.name+"</td> <td>"+obj.postNum+"</td> <td>"+obj.peopleNum+"</td></tr>")
|
|
|
}
|
|
|
+ for(var i in data.data){
|
|
|
+ if(typeof data.data[i] =="number"||typeof data.data[i] =="string"){
|
|
|
+
|
|
|
+ $(".data-"+i).text(data.data[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ createBar1(data.data.manNum,data.data.womanNUm);
|
|
|
+ recruitmentData(1)
|
|
|
+
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ function recruitmentData(i){
|
|
|
+
|
|
|
+ $.post(constant.serverUrl+"recruitmentData",{
|
|
|
+ pageIndex:i,
|
|
|
+ pageSize:50
|
|
|
+ },function(data,status){
|
|
|
+ console.log(data,status)
|
|
|
+ for(var i in data.data.data){
|
|
|
+ var obj=data.data.data[i];
|
|
|
+ $(".data-recruitmentData-list").append("<tr> <td>"+obj.positionName+"</td> <td>"+obj.wageTypeName+"</td> <td>"+obj.positionNumber+"</td></tr>")
|
|
|
+ }
|
|
|
+ var k=i+1;
|
|
|
+ if(data.data.totalPage>=k){
|
|
|
+
|
|
|
+ setTimeout(function(){
|
|
|
+ recruitmentData(k)
|
|
|
+ },5000)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
function createBar2() {
|
|
|
|
|
|
var chartDom = document.getElementById('main2');
|
|
@@ -62,20 +93,26 @@ $(function() {
|
|
|
var option;
|
|
|
|
|
|
option = {
|
|
|
- title: {
|
|
|
- text: 'Referer of a Website',
|
|
|
- subtext: 'Fake Data',
|
|
|
- left: 'center'
|
|
|
- },
|
|
|
+
|
|
|
tooltip: {
|
|
|
trigger: 'item'
|
|
|
},
|
|
|
- legend: {
|
|
|
- orient: 'vertical',
|
|
|
- left: 'left'
|
|
|
- },
|
|
|
+
|
|
|
series: [
|
|
|
{
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+
|
|
|
+ textStyle : {
|
|
|
+
|
|
|
+ color: '#cccccc',
|
|
|
+
|
|
|
+ fontSize : '12px'
|
|
|
+
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
name: 'Access From',
|
|
|
type: 'pie',
|
|
|
radius: '50%',
|
|
@@ -102,7 +139,7 @@ $(function() {
|
|
|
}
|
|
|
|
|
|
|
|
|
- function createBar1(title, data, clickEvent) {
|
|
|
+ function createBar1(num1,num2) {
|
|
|
|
|
|
|
|
|
var chartDom = document.getElementById('main1');
|
|
@@ -110,29 +147,40 @@ $(function() {
|
|
|
var option;
|
|
|
|
|
|
option = {
|
|
|
- title: {
|
|
|
- text: 'Referer of a Website',
|
|
|
- subtext: 'Fake Data',
|
|
|
- left: 'center'
|
|
|
- },
|
|
|
+ // title: {
|
|
|
+ // text: 'Referer of a Website',
|
|
|
+ // subtext: 'Fake Data',
|
|
|
+ // left: 'center'
|
|
|
+ // },
|
|
|
tooltip: {
|
|
|
trigger: 'item'
|
|
|
},
|
|
|
- legend: {
|
|
|
- orient: 'vertical',
|
|
|
- left: 'left'
|
|
|
- },
|
|
|
+ // legend: {
|
|
|
+ // orient: 'vertical',
|
|
|
+ // left: 'left'
|
|
|
+ // },
|
|
|
series: [
|
|
|
{
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+
|
|
|
+ textStyle : {
|
|
|
+
|
|
|
+ color: '#cccccc',
|
|
|
+
|
|
|
+ fontSize : '12px'
|
|
|
+
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
name: 'Access From',
|
|
|
type: 'pie',
|
|
|
radius: '50%',
|
|
|
data: [
|
|
|
- { value: 1048, name: 'Search Engine' },
|
|
|
- { value: 735, name: 'Direct' },
|
|
|
- { value: 580, name: 'Email' },
|
|
|
- { value: 484, name: 'Union Ads' },
|
|
|
- { value: 300, name: 'Video Ads' }
|
|
|
+ { value: num1, name: '男性' },
|
|
|
+ { value: num2, name: '女性' },
|
|
|
+
|
|
|
],
|
|
|
emphasis: {
|
|
|
itemStyle: {
|
|
@@ -150,7 +198,7 @@ $(function() {
|
|
|
|
|
|
}
|
|
|
|
|
|
- createBar1();
|
|
|
+
|
|
|
createBar2();
|
|
|
createBar3();
|
|
|
|