he wei
2021-11-05 1a136c4df1ddee2fedb119a264e73147b79bfb1c
src/pages/alarmWork/list.vue
@@ -61,27 +61,12 @@
<script>
import FlexLayout from "@/components/FlexLayout.vue";
import ListCard from "@/components/listCard.vue";
import ListCard from "./components/listCard.vue";
let list = [
  {
    a: 1
  },
  {
    a: 2
  },
  {
    a: 1
  },
  {
    a: 2
  },{
    a: 1
  },
  {
    a: 2
  }
];
import {
  getList
} from './js/api';
export default {
   data() {
      return {
@@ -120,11 +105,36 @@
    },
    handleCurrentChange (val) {
      console.log(`当前页: ${val}`);
    },
    // 查列表
    getList () {
      let param = {
        pageNum: 1,
        pageSize: 1,
        type: 1
      };
      let data = {
      };
      getList(param, data).then((res) => {
        res = res.data;
        console.log(res, '=====');
        let list = [];
        if (res.code) {
          list = res.data;
        }
        console.log(list);
        this.list = list;
      }).catch((err) => {
        console.error(err);
      });
    }
  },
   mounted() {
    this.unitType = this.$route.meta.unitType
    this.list = list;
    this.unitType = this.$route.meta.unitType;
    this.getList();
   }
}
@@ -135,7 +145,7 @@
  background: #fff;
  border-bottom: 1px solid #c4c4c4;
  margin-bottom: 16px;
  padding: 16px 10px;
  padding: 14px 30px;
}
.contain-search span.label {
  font-size: 18px;