index.vue
2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!--
* @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) + "%";
}
});
},
// 重置
/**
* @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>