|
@@ -0,0 +1,194 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="body-wrapper">
|
|
3
|
+ <div class="search-card">
|
|
4
|
+ <h5>泊位列表</h5>
|
|
5
|
+ </div>
|
|
6
|
+ <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
|
|
7
|
+ <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
|
|
8
|
+ </el-table-column>
|
|
9
|
+ </el-table>
|
|
10
|
+ <div class="table-pagination">
|
|
11
|
+ <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
|
|
12
|
+ :current-page.sync="pageNum" :page-size.sync="pageSize">
|
|
13
|
+ </el-pagination>
|
|
14
|
+ </div>
|
|
15
|
+ <br>
|
|
16
|
+
|
|
17
|
+ <div class="search-card">
|
|
18
|
+ <h5>从业人员考核管理</h5>
|
|
19
|
+ </div>
|
|
20
|
+ <el-table :data="tableData2" style="background: #2a2a2a;border-color: #333;">
|
|
21
|
+ <el-table-column v-for="(item, index) in columns2" :key="index" :label="item.label" :prop="item.key">
|
|
22
|
+ </el-table-column>
|
|
23
|
+ </el-table>
|
|
24
|
+ <div class="table-pagination">
|
|
25
|
+ <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
|
|
26
|
+ :current-page.sync="pageNum2" :page-size.sync="pageSize2">
|
|
27
|
+ </el-pagination>
|
|
28
|
+ </div>
|
|
29
|
+ <br>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+ </div>
|
|
34
|
+</template>
|
|
35
|
+<script>
|
|
36
|
+import api from "@/api/article_liao";
|
|
37
|
+import piechart from "@/components/pieChart";
|
|
38
|
+
|
|
39
|
+export default {
|
|
40
|
+ components: {
|
|
41
|
+ piechart
|
|
42
|
+ },
|
|
43
|
+ data() {
|
|
44
|
+ return {
|
|
45
|
+ columns: [
|
|
46
|
+ {
|
|
47
|
+ label: '停车场',
|
|
48
|
+ key: 'm_name'
|
|
49
|
+ },
|
|
50
|
+ {
|
|
51
|
+ label: '泊位号',
|
|
52
|
+ key: 'qualification_name'
|
|
53
|
+ },
|
|
54
|
+ {
|
|
55
|
+ label: '泊位状态',
|
|
56
|
+ key: 'effective_time'
|
|
57
|
+ },
|
|
58
|
+ {
|
|
59
|
+ label: '是否潮汐车位',
|
|
60
|
+ key: 'assessment_results'
|
|
61
|
+ },
|
|
62
|
+ {
|
|
63
|
+ label: '是否充电泊位',
|
|
64
|
+ key: 'assessment_time'
|
|
65
|
+ },
|
|
66
|
+ {
|
|
67
|
+ label: '是否共享泊位',
|
|
68
|
+ key: 'sfgxbw'
|
|
69
|
+ },
|
|
70
|
+ {
|
|
71
|
+ label: '是否异常',
|
|
72
|
+ key: 'sfyc'
|
|
73
|
+ },
|
|
74
|
+ ],
|
|
75
|
+ columns2: [
|
|
76
|
+ {
|
|
77
|
+ label: '人员姓名',
|
|
78
|
+ key: 'staff_name'
|
|
79
|
+ },
|
|
80
|
+ {
|
|
81
|
+ label: '驾驶技术',
|
|
82
|
+ key: 'drive_level'
|
|
83
|
+ },
|
|
84
|
+ {
|
|
85
|
+ label: '服务态度',
|
|
86
|
+ key: 'server_level'
|
|
87
|
+ },
|
|
88
|
+ {
|
|
89
|
+ label: '沟通能力',
|
|
90
|
+ key: 'communicate_level'
|
|
91
|
+ },
|
|
92
|
+ {
|
|
93
|
+ label: '应急处理能力',
|
|
94
|
+ key: 'emergency_capability'
|
|
95
|
+ }
|
|
96
|
+ ],
|
|
97
|
+ modelPieColor: ["#2E8B57","#9078f8"],
|
|
98
|
+ modelData: {
|
|
99
|
+ list: [{name: '在线', value: 600}, {name: '离线', value: 800}]
|
|
100
|
+ },
|
|
101
|
+
|
|
102
|
+ tableData: [],
|
|
103
|
+ tableData2: [],
|
|
104
|
+ total: 0,
|
|
105
|
+ pageSize: 10,
|
|
106
|
+ pageNum: 1,
|
|
107
|
+ pageSize2: 10,
|
|
108
|
+ pageNum2: 1,
|
|
109
|
+ radio: '2',
|
|
110
|
+ dialogVisible: false,
|
|
111
|
+ selRow: {},
|
|
112
|
+ }
|
|
113
|
+ },
|
|
114
|
+ mounted() {
|
|
115
|
+ this.dashEmployeeQualificationQualifications()
|
|
116
|
+ this.dashEmployeeQualificationExamine()
|
|
117
|
+ },
|
|
118
|
+ watch: {
|
|
119
|
+ },
|
|
120
|
+ methods: {
|
|
121
|
+ handlePageChange() {
|
|
122
|
+ this.getTableData()
|
|
123
|
+ },
|
|
124
|
+ handleAudit(row) {
|
|
125
|
+ this.selRow = row
|
|
126
|
+ this.dialogVisible = true
|
|
127
|
+ },
|
|
128
|
+ handleCancelApply(row) {
|
|
129
|
+ console.log('enter handle cancel apply')
|
|
130
|
+ },
|
|
131
|
+ dashEmployeeQualificationQualifications(){
|
|
132
|
+ api.dashEmployeeQualificationQualifications().then(res => {
|
|
133
|
+ this.tableData = res.data()
|
|
134
|
+ this.pageNum = res.current
|
|
135
|
+ this.pageSize = res.page
|
|
136
|
+ })
|
|
137
|
+ },
|
|
138
|
+ dashEmployeeQualificationExamine(){
|
|
139
|
+ api.dashEmployeeQualificationExamine().then(res => {
|
|
140
|
+ this.tableData = res.data()
|
|
141
|
+ this.pageNum2 = res.current
|
|
142
|
+ this.pageSize2 = res.page
|
|
143
|
+ })
|
|
144
|
+ },
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+ getApplyTypeText(val) {
|
|
148
|
+ if (!val){
|
|
149
|
+ return '未申请'
|
|
150
|
+ }
|
|
151
|
+ const textMap = {
|
|
152
|
+ 1: '待审批',
|
|
153
|
+ 2: '审批通过',
|
|
154
|
+ 3: '审批驳回'
|
|
155
|
+ }
|
|
156
|
+ return textMap[val]
|
|
157
|
+ },
|
|
158
|
+ handleSearch() {
|
|
159
|
+ this.pageNum = 1
|
|
160
|
+ this.getTableData()
|
|
161
|
+ }
|
|
162
|
+ }
|
|
163
|
+}
|
|
164
|
+</script>
|
|
165
|
+<style lang="scss" scoped>
|
|
166
|
+.body-wrapper {
|
|
167
|
+ padding: 20px;
|
|
168
|
+ background: #0c0c0c;
|
|
169
|
+ .button-block{
|
|
170
|
+ text-align: right;
|
|
171
|
+ margin-bottom: 20px;
|
|
172
|
+ }
|
|
173
|
+ .table-pagination{
|
|
174
|
+ text-align: right;
|
|
175
|
+ }
|
|
176
|
+ .search-card{
|
|
177
|
+ font-size: 24px;
|
|
178
|
+ font-weight: bold;
|
|
179
|
+ color: #3498db;
|
|
180
|
+ margin-bottom: 20px;
|
|
181
|
+ .input-wrapper{
|
|
182
|
+ width: 36%;
|
|
183
|
+ }
|
|
184
|
+ }
|
|
185
|
+}
|
|
186
|
+.audit-dialog{
|
|
187
|
+ .mg-bt{
|
|
188
|
+ margin-bottom: 24px;
|
|
189
|
+ }
|
|
190
|
+ .label{
|
|
191
|
+ text-align: right;
|
|
192
|
+ }
|
|
193
|
+}
|
|
194
|
+</style>
|