楼盘表
Showing
3 changed files
with
35 additions
and
25 deletions
src/api/lpb.js
0 → 100644
... | @@ -40,7 +40,7 @@ | ... | @@ -40,7 +40,7 @@ |
40 | </div> | 40 | </div> |
41 | <!-- 表格 --> | 41 | <!-- 表格 --> |
42 | <div class="from-clues-content"> | 42 | <div class="from-clues-content"> |
43 | <lb-table :page-size="pageData.size" @sort-change="handleSort" :current-page.sync="pageData.current" | 43 | <lb-table :page-size="pageData.size" border @sort-change="handleSort" :current-page.sync="pageData.current" |
44 | :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | 44 | :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
45 | :column="tableData.columns" :data="tableData.data"> | 45 | :column="tableData.columns" :data="tableData.data"> |
46 | </lb-table> | 46 | </lb-table> |
... | @@ -50,6 +50,7 @@ | ... | @@ -50,6 +50,7 @@ |
50 | <script> | 50 | <script> |
51 | import table from "@/utils/mixin/table"; | 51 | import table from "@/utils/mixin/table"; |
52 | import { datas, sendThis } from "./lpcxdata"; | 52 | import { datas, sendThis } from "./lpcxdata"; |
53 | import { getLpZrz } from "@/api/lpb.js" | ||
53 | export default { | 54 | export default { |
54 | name: "lpcx", | 55 | name: "lpcx", |
55 | components: {}, | 56 | components: {}, |
... | @@ -66,27 +67,31 @@ export default { | ... | @@ -66,27 +67,31 @@ export default { |
66 | zrzh: "", | 67 | zrzh: "", |
67 | }, | 68 | }, |
68 | pageData: { | 69 | pageData: { |
69 | current: 1, | 70 | currentPage: 1, |
70 | size: 10, | 71 | pageSize: 10, |
71 | total: 2, | 72 | total: 0, |
72 | }, | 73 | }, |
73 | ywlys: datas.ywlys(), | ||
74 | tableData: { | 74 | tableData: { |
75 | columns: datas.columns(), | 75 | columns: datas.columns(), |
76 | data: [ | 76 | data: [] |
77 | { | 77 | } |
78 | slsj: "2022-5-12", | ||
79 | }, | ||
80 | { | ||
81 | slsj: "2022-5-13", | ||
82 | }, | ||
83 | ], | ||
84 | }, | ||
85 | }; | 78 | }; |
86 | }, | 79 | }, |
87 | methods: { | 80 | methods: { |
81 | |||
82 | |||
83 | queryClick(){ | ||
84 | this.fetchData(); | ||
85 | }, | ||
86 | |||
88 | // 初始化数据 | 87 | // 初始化数据 |
89 | fetchData () { | 88 | fetchData () { |
89 | getLpZrz({ ...this.queryForm, ...this.pageData }).then(res => { | ||
90 | if (res.code === 200) { | ||
91 | this.pageData.total = res.result.total; | ||
92 | this.tableData.data = res.result.records | ||
93 | } | ||
94 | }) | ||
90 | }, | 95 | }, |
91 | handleSort (name, sort) { | 96 | handleSort (name, sort) { |
92 | console.log(name, sort); | 97 | console.log(name, sort); | ... | ... |
... | @@ -40,7 +40,7 @@ class data extends filter { | ... | @@ -40,7 +40,7 @@ class data extends filter { |
40 | label: "用途", | 40 | label: "用途", |
41 | }, | 41 | }, |
42 | { | 42 | { |
43 | prop: "mj", | 43 | prop: "zydmj", |
44 | label: "面积(㎡)", | 44 | label: "面积(㎡)", |
45 | }, | 45 | }, |
46 | { | 46 | { |
... | @@ -62,16 +62,6 @@ class data extends filter { | ... | @@ -62,16 +62,6 @@ class data extends filter { |
62 | } | 62 | } |
63 | ] | 63 | ] |
64 | } | 64 | } |
65 | |||
66 | ywlys () { | ||
67 | return [ | ||
68 | { value: 1, label: "办事大厅" }, | ||
69 | { value: 2, label: "微信小程序" }, | ||
70 | { value: 3, label: "法院端" }, | ||
71 | { value: 4, label: "银行端" }, | ||
72 | ] | ||
73 | } | ||
74 | |||
75 | } | 65 | } |
76 | let datas = new data() | 66 | let datas = new data() |
77 | export { | 67 | export { | ... | ... |
-
Please register or sign in to post a comment