src/views/securityEquipment/car.vue
@@ -1,6 +1,11 @@
<template>
  <basic-container>
    <div class="equipments">
    <div
      :class="[
        'equipments',
        $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
      ]"
    >
      <avue-crud
        :option="option"
        :data="data"
@@ -116,6 +121,7 @@
        selection: true,
        labelWidth: 110,
        column: column,
        ...this.$store.state.control.clearOtherBut,
      },
      useifid: 266,
    };
@@ -334,14 +340,14 @@
      ).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
        data.records.forEach(item=>{
          if(item.numberType==-1){
            item.numberType=null;
        data.records.forEach((item) => {
          if (item.numberType == -1) {
            item.numberType = null;
          }
          if(item.carType==-1){
            item.carType=null;
          if (item.carType == -1) {
            item.carType = null;
          }
        })
        });
        this.data = data.records;
        console.log(this.data);
        this.loading = false;