From a94f19a21fe2098811339aa916869b0ab923536c Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 26 Dec 2022 17:15:08 +0800
Subject: [PATCH] 添加车辆变更审批
---
src/views/applicationCarChange/applicationCarChange.vue | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/applicationCarChange/applicationCarChange.vue b/src/views/applicationCarChange/applicationCarChange.vue
index 69d0a9b..afa058c 100644
--- a/src/views/applicationCarChange/applicationCarChange.vue
+++ b/src/views/applicationCarChange/applicationCarChange.vue
@@ -36,7 +36,7 @@
</template>
<script>
- import {getList, getDetail, add, update, remove} from "@/api/applicationCarChange/applicationCarChange";
+ import {getPage, getDetail, add, update, remove} from "@/api/applicationCarChange/applicationCarChange";
import option from "@/const/applicationCarChange/applicationCarChange";
import {mapGetters} from "vuex";
@@ -176,10 +176,14 @@
},
onLoad(page, params = {}) {
this.loading = true;
- getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+ getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
+ //转换数据类型
+ this.data.forEach(e=>{
+ e.status = e.status.toString()
+ })
this.loading = false;
this.selectionClear();
});
--
Gitblit v1.9.3