ea897892 by tianhaohao@pashanhoo.com

添加从业人员统计功能

1 parent f418bcc7
......@@ -8,6 +8,6 @@ NODE_ENV=development
VUE_APP_BASE_API = '/api'
# 开发环境
#VUE_APP_API_BASE_URL = 'http://192.168.2.38:8027'
VUE_APP_API_BASE_URL = 'http://192.168.2.22:8027'
#VUE_APP_API_BASE_URL = 'http://192.168.2.91:8027' #田浩
VUE_APP_API_BASE_URL = 'http://172.16.56.32:8027' #黄南州
#VUE_APP_API_BASE_URL = 'http://172.16.56.32:8027' #黄南州
......
......@@ -37,5 +37,19 @@ class bdcdj {
data
})
}
/**
* @description: 成功率统计
* @param {*} startDate
* @param {*} endDate
* @param {*} qxdm
* @author: renchao
*/
async getWorkerStatistics () {
return request({
url: SERVER.SERVERAPI + '/rest/statistics/qjdc/getWorkerStatistics',
method: 'get'
})
}
}
export default new bdcdj()
......
......@@ -17,10 +17,12 @@
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="是否归档" class="d-flex">
<el-select v-model="form.qqzt" class="width100" clearable placeholder="是否确权">
<el-option key="gd1" label="已确权" value="1"></el-option>
<el-option key="gd2" label="未确权" value="2"></el-option>
<el-form-item label="数据状态" class="d-flex">
<el-select v-model="form.zt" class="width100" clearable placeholder="请选择">
<el-option label="临时" value="0"></el-option>
<el-option label="现势" value="1"></el-option>
<el-option label="历史" value="2"></el-option>
<el-option label="权属调查" value="4"></el-option>
</el-select>
</el-form-item>
</el-col>
......@@ -71,7 +73,7 @@ export default {
// 搜索表单
form: {
pcode: "",
qqzt: "1"
zt: "1"
},
chartData: []
};
......
import filter from '@/utils/filter.js'
class data extends filter {
constructor() {
super()
}
columns () {
return [
{
prop: "areaName",
label: "行政区划",
},
{
prop: "total",
label: "从业人数",
},
{
prop: "womanNum",
label: "女性从业人数",
},
{
prop: "womanRatio",
label: "女性从业占比",
// render: (h, scope) => {
// return (
// <span> {scope.row.womanRatio.toFixed(4)*100}%</span>
// );
// },
},
]
}
}
export default new data()
<!--
* @Author: yangwei
* @Date: 2023-02-17 16:32:50
* @LastEditors: Please set LastEditors
* @LastEditTime: 2023-05-11 10:11:15
* @FilePath: \bdcjg-web\src\views\statistics\registerBookQuality\index.vue
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<!-- 从业人员展示表 -->
<template>
<div class="from-clues">
<!-- 头部搜索 -->
<div class="from-clues-header">
<div
style="
height: 60px;
line-height: 60px;
color: white;
margin: 0 auto;
display: block;
width: 100%;
font-size: 24px;
text-align: center;
"
>
黄南州各市县登记中心从业人员展示图
</div>
</div>
<!-- 列表区域 -->
<div class="from-clues-content complex-header">
<lb-table
ref="table"
:pagination="false"
:border="true"
:column="tableData.columns"
:data="tableData.data"
>
</lb-table>
</div>
</div>
</template>
<script>
// 登簿质量评价表
// 引入表格头部数据
import data from "./index";
// 引入table混入方法
import tableMixin from "@/mixins/tableMixin.js";
import bdcdj from "@/api/bdcdj.js";
export default {
name: "jsbwcx",
mixins: [tableMixin],
data() {
return {
// 表格数据
tableData: {
// 表格头部
columns: data.columns(),
data: [],
},
downTitle: "",
};
},
created() {
this.loading();
},
mounted() {},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
loading() {
bdcdj.getWorkerStatistics().then((res) => {
this.tableData.data = res.result;
for (let item of this.tableData.data) {
item.womanRatio = ((item.womanNum / item.total) * 100).toFixed(2)+'%'; }
console.log(this.tableData.data);
});
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
// handleResetForm() {
// this.form.startTime = getCurrentDate();
// this.form.endTime = getCurrentDate("time");
// this.featchDataSelf();
// },
},
};
</script>
<style scoped lang="scss">
// 引入表单整体样式
@import "../css/index.scss";
/deep/.el-table thead.is-group th.el-table__cell {
height: 14px !important;
}
</style>