| | |
| | | |
| | | <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 { |
| | |
| | | }, |
| | | 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(); |
| | | } |
| | | |
| | | } |
| | |
| | | background: #fff; |
| | | border-bottom: 1px solid #c4c4c4; |
| | | margin-bottom: 16px; |
| | | padding: 16px 10px; |
| | | padding: 14px 30px; |
| | | } |
| | | .contain-search span.label { |
| | | font-size: 18px; |