大件运输联网系统前端代码
guoshilong
2022-12-26 a94f19a21fe2098811339aa916869b0ab923536c
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();
        });