Browse Source

bug fixed

duwendi 1 year ago
parent
commit
48900fe5de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pages/index/components/record_query.vue

+ 1 - 1
src/pages/index/components/record_query.vue

@@ -198,7 +198,7 @@ export default {
198 198
       getTableData1() {
199 199
         const {pageNum1, pageSize1} = this
200 200
         api.carListByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
201
-          this.tableData1 = (res.data.records || []).map(item => ({...item, carType: dictionary.typeMap[item.carType]}))
201
+          this.tableData1 = (res.data.records || []).map(item => ({...item, carType: item.plateNo.length === 7 ? '燃油汽车' : '新能源车', }))
202 202
           this.total1 = res.data.total
203 203
         })
204 204
       },