Преглед на файлове

数据对接修复

数据对接修复
烬玊 преди 1 година
родител
ревизия
24a8635d58

+ 9 - 2
src/api/article_liao.js

@@ -171,9 +171,16 @@ export default {
171 171
     return axios.get('/dash/employee/qualification/qualifications', {params})
172 172
   },
173 173
   //从业人员考核管理
174
+  dashDataDockingDelete(params){
175
+    return axios.tet('/dash/data/docking/delete', params)
176
+  },
177
+  //从业人员考核
174 178
   dashEmployeeQualificationExamine(params){
175
-    return axios.get('/dash/employee/qualification/examine', {params})
179
+    return axios.get('/dash/employee/qualification/examine', params)
180
+  },
181
+  //车主停车欠费情况
182
+  dashCarOwnerCreditPage(params){
183
+    return axios.get('/dash/car/owner/credit/page', params)
176 184
   },
177
-
178 185
 
179 186
 }

+ 194 - 0
src/pages/index/components/berth_list.vue

@@ -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>

+ 7 - 3
src/pages/index/components/car_owner_credit.vue

@@ -45,6 +45,9 @@ export default {
45 45
         } ,{
46 46
           label: '催缴总次数',
47 47
           key: 'totalReminders'
48
+        },{
49
+          label: '信用分',
50
+          key: 'credit_point'
48 51
         }
49 52
       ],
50 53
       tableData: [],
@@ -55,18 +58,19 @@ export default {
55 58
   },
56 59
   mounted() {
57 60
     this.getTableData()
61
+    this.dashCarOwnerCreditPage()
58 62
   },
59 63
   methods: {
60 64
     handlePageChange() {
61 65
       this.getTableData()
62 66
     },
63
-    getTableData() {
67
+    dashCarOwnerCreditPage(){
64 68
       const {pageNum, pageSize} = this
65
-      api.czxyjgListByPage({current: pageNum, size: pageSize}).then(res => {
69
+      api.dashCarOwnerCreditPage({current: pageNum, size: pageSize}).then(res => {
66 70
         this.tableData = res.data.records || []
67 71
         this.total = res.data.total
68 72
       })
69
-    }
73
+    },
70 74
   }
71 75
 }
72 76
 </script>

+ 12 - 1
src/pages/index/components/data_docking.vue

@@ -37,7 +37,7 @@
37 37
   </el-table>
38 38
   <div class="table-pagination">
39 39
     <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
40
-                   :current-page.sync="pageNum2" :page-size.sync="pageSize2">
40
+                   :current-page.sync="pageNum" :page-size.sync="pageSize">
41 41
     </el-pagination>
42 42
     <el-dialog
43 43
       :title="title"
@@ -126,6 +126,17 @@ export default {
126 126
       this.formLabelAlign = row
127 127
       this.dialogVisible = true
128 128
     },
129
+    deleteRow (record) {
130
+      api.dashDataDockingDelete({id: record.id}).then(res => {
131
+        if (res.code === 200) {
132
+          this.$message({
133
+            message: '删除成功!',
134
+            type: 'success'
135
+          })
136
+          this.dashDataDockingPage()
137
+        }
138
+      })
139
+    },
129 140
     handleConfirm() {
130 141
       api.dashDataDockingSave({moduleName: this.formLabelAlign.moduleName,apiUrl: this.formLabelAlign.apiUrl,apiKey: this.formLabelAlign.apiKey}).then(res => {
131 142
         if(res.code === 200) {

+ 11 - 11
src/pages/index/components/employee_qualification.vue

@@ -45,11 +45,11 @@ export default {
45 45
       columns: [
46 46
         {
47 47
           label: '人员姓名',
48
-          key: 'm_name'
48
+          key: 'MName'
49 49
         },
50 50
         {
51 51
           label: '资质名称',
52
-          key: 'qualification_name'
52
+          key: 'qualificationName'
53 53
         },
54 54
         {
55 55
           label: '有效时间',
@@ -57,33 +57,33 @@ export default {
57 57
         },
58 58
         {
59 59
           label: '考核结果',
60
-          key: 'assessment_results'
60
+          key: 'assessmentResults'
61 61
         },
62 62
         {
63 63
           label: '考核时间',
64
-          key: 'assessment_time'
64
+          key: 'startAssessmentTime'
65 65
         }
66 66
       ],
67 67
       columns2: [
68 68
         {
69 69
           label: '人员姓名',
70
-          key: 'staff_name'
70
+          key: 'staffName'
71 71
         },
72 72
         {
73 73
           label: '驾驶技术',
74
-          key: 'drive_level'
74
+          key: 'driveLevel'
75 75
         },
76 76
         {
77 77
           label: '服务态度',
78
-          key: 'server_level'
78
+          key: 'serverLevel'
79 79
         },
80 80
         {
81 81
           label: '沟通能力',
82
-          key: 'communicate_level'
82
+          key: 'communicateLevel'
83 83
         },
84 84
         {
85 85
           label: '应急处理能力',
86
-          key: 'emergency_capability'
86
+          key: 'emergencyCapability'
87 87
         }
88 88
       ],
89 89
       modelPieColor: ["#2E8B57","#9078f8"],
@@ -122,14 +122,14 @@ export default {
122 122
     },
123 123
     dashEmployeeQualificationQualifications(){
124 124
       api.dashEmployeeQualificationQualifications().then(res => {
125
-        this.tableData = res.data()
125
+        this.tableData = res.data.records
126 126
         this.pageNum = res.current
127 127
         this.pageSize = res.page
128 128
       })
129 129
     },
130 130
     dashEmployeeQualificationExamine(){
131 131
       api.dashEmployeeQualificationExamine().then(res => {
132
-        this.tableData = res.data()
132
+        this.tableData2 = res.data.records
133 133
         this.pageNum2 = res.current
134 134
         this.pageSize2 = res.page
135 135
       })

+ 1 - 0
src/pages/index/layouts/indexLayout.vue

@@ -84,6 +84,7 @@ export default {
84 84
         {name: 'demo2', url: '/demo2'},
85 85
         {name: 'hot_map', url: '/hot_map'},
86 86
         {name: 'heat_map', url: '/heat_map'},
87
+        {name: '泊位列表', url: '/berth_list'},
87 88
       ]
88 89
     }
89 90
   },