|
|
@ -2,18 +2,40 @@ |
|
|
|
<div class="m-zyqd"> |
|
|
|
|
|
|
|
<el-row :gutter="16"> |
|
|
|
<el-col :span="8">
<div class="kuangkuang">
<h3>发布政策数</h3>
<h2>{{info.pub_policy_total}}</h2>
</div>
</el-col>
<el-col :span="8">
<div class="kuangkuang">
<h3>指派服务数</h3>
<h2>{{info.assign_service_total}}</h2>
</div>
</el-col>
<el-col :span="8">
<div class="kuangkuang">
<h3>政策找人数</h3>
<h2>{{info.policy_search_person_total}}</h2>
</div>
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="kuangkuang"> |
|
|
|
<h3>发布政策数</h3> |
|
|
|
<h2>{{info.pub_policy_total}}</h2> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="kuangkuang"> |
|
|
|
<h3>指派服务数</h3> |
|
|
|
<h2>{{info.assign_service_total}}</h2> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="kuangkuang"> |
|
|
|
<h3>政策找人数</h3> |
|
|
|
<h2>{{info.policy_search_person_total}}</h2> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
<div class="pieMain pieMain2"> |
|
|
|
<div class="pie"><screen-echarts-frame @myChartMethod="pieInitOk" ref="pieChart"></screen-echarts-frame></div> |
|
|
|
<div class="pie"><screen-echarts-frame @myChartMethod="pieInitOk" ref="pieChart"></screen-echarts-frame> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import screenEchartsFrame from '@/views/dataBoard/cpts/screen-echarts-frame/index'; |
|
|
|
import { pieOption } from './fwBarOption05.js'; |
|
|
|
import { requestPostBi } from '@/js/dai/request-bipass'; |
|
|
|
import { |
|
|
|
pieOption |
|
|
|
} from './fwBarOption05.js'; |
|
|
|
import { |
|
|
|
requestPostBi |
|
|
|
} from '@/js/dai/request-bipass'; |
|
|
|
export default { |
|
|
|
props: { |
|
|
|
orgId: { |
|
|
@ -51,16 +73,18 @@ export default { |
|
|
|
async getInfo() { |
|
|
|
let url = 'policy_search_person'; |
|
|
|
this.$refs.pieChart.showLoading(); |
|
|
|
const { data, code, msg } = await requestPostBi( |
|
|
|
url, |
|
|
|
{ |
|
|
|
const { |
|
|
|
data, |
|
|
|
code, |
|
|
|
msg |
|
|
|
} = await requestPostBi( |
|
|
|
url, { |
|
|
|
queryParam: { |
|
|
|
org_id: this.orgId, |
|
|
|
start_date: this.searchDate[0], |
|
|
|
end_date: this.searchDate[1] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
}, { |
|
|
|
// mockId: 69463163, |
|
|
|
} |
|
|
|
); |
|
|
@ -104,11 +128,15 @@ export default { |
|
|
|
let pieData1 = []; |
|
|
|
let pieData2 = []; |
|
|
|
let pieData3 = []; |
|
|
|
|
|
|
|
let i = 0; |
|
|
|
data.forEach((item, index) => { |
|
|
|
if ((item.assign_service_num > 0 || item.pub_policy_num > 0) && i < 10) { |
|
|
|
pieData0.push(item.common_service_type_name); |
|
|
|
pieData1.push(item.assign_service_num); |
|
|
|
pieData2.push(item.pub_policy_num); |
|
|
|
|
|
|
|
i++; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.pieData = [pieData0, pieData1, pieData2]; |
|
|
@ -131,5 +159,7 @@ export default { |
|
|
|
|
|
|
|
<style lang="scss" src="@/assets/scss/dataBoard/renfang/index.scss" scoped></style> |
|
|
|
<style scoped> |
|
|
|
.pieMain2{margin-left:0px!important} |
|
|
|
.pieMain2 { |
|
|
|
margin-left: 0px !important |
|
|
|
} |
|
|
|
</style> |