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
| <template>
| <div class="table-item">
| <lims-table
| :tableData="tableData"
| :column="column"
| :tableLoading="tableLoading"
| :height="'calc(100vh - 270px)'"
| :page="page"
| @pagination="pagination"
| ></lims-table>
| </div>
| </template>
|
| <script>
| import limsTable from "@/components/Table/lims-table.vue";
| import {
| page
| } from '../../../api/cnas/performance/staffEvaluate'
|
| export default {
| components: {
| limsTable,
| },
| props: {
| entity : {
| type: Object,
| default: () => {
| return {};
| },
| }
| },
| data() {
| return {
| tableData: [],
| tableLoading: false,
| column: [
| { label: "工号", prop: "account" },
| { label: "姓名", prop: "name" },
| {
| label: "员工互评",
| prop: "groupTotal",
| },
| { label: "组长评分", prop: "leaderTotal" },
| { label: "主管评分", prop: "competentTotal" },
| { label: "考评得分", prop: "score" },
| { label: "考评等级", prop: "grade" },
| ],
| page: {
| total: 0,
| size: 10,
| current: 0,
| },
| };
| },
| methods: {
| getList() {
| this.tableLoading = true;
| let param = { ...this.entity, ...this.page };
| delete param.total;
| page({ ...param })
| .then((res) => {
| this.tableLoading = false;
| if (res.code === 200) {
| this.tableData = res.data.records;
| this.page.total = res.data.total;
| }
| })
| .catch((err) => {
| this.tableLoading = false;
| });
| },
| pagination({ page, limit }) {
| this.page.current = page;
| this.page.size = limit;
| this.getList();
| },
| refreshTable() {
| this.getList();
| }
|
| },
| mounted() {},
| };
| </script>
|
| <style scoped>
| .table-item {
| width: 100%;
| height: 100%;
| }
| </style>
|
|