6fab4126 by jiaozeping@pashanhoo.com

楼盘表

1 parent 45d8a33e
import request from '@/utils/request'
/*
楼盘查询
*/
// 根据条件进行列表查询
export function getLpZrz(data) {
return request({
url: '/zhcx/lpcx/getLpZrz',
method: 'post',
data: data
})
}
......@@ -40,7 +40,7 @@
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table :page-size="pageData.size" @sort-change="handleSort" :current-page.sync="pageData.current"
<lb-table :page-size="pageData.size" border @sort-change="handleSort" :current-page.sync="pageData.current"
:total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
:column="tableData.columns" :data="tableData.data">
</lb-table>
......@@ -50,6 +50,7 @@
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./lpcxdata";
import { getLpZrz } from "@/api/lpb.js"
export default {
name: "lpcx",
components: {},
......@@ -66,27 +67,31 @@ export default {
zrzh: "",
},
pageData: {
current: 1,
size: 10,
total: 2,
currentPage: 1,
pageSize: 10,
total: 0,
},
ywlys: datas.ywlys(),
tableData: {
columns: datas.columns(),
data: [
{
slsj: "2022-5-12",
},
{
slsj: "2022-5-13",
},
],
},
data: []
}
};
},
methods: {
queryClick(){
this.fetchData();
},
// 初始化数据
fetchData () {
getLpZrz({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
this.pageData.total = res.result.total;
this.tableData.data = res.result.records
}
})
},
handleSort (name, sort) {
console.log(name, sort);
......
......@@ -40,7 +40,7 @@ class data extends filter {
label: "用途",
},
{
prop: "mj",
prop: "zydmj",
label: "面积(㎡)",
},
{
......@@ -62,16 +62,6 @@ class data extends filter {
}
]
}
ywlys () {
return [
{ value: 1, label: "办事大厅" },
{ value: 2, label: "微信小程序" },
{ value: 3, label: "法院端" },
{ value: 4, label: "银行端" },
]
}
}
let datas = new data()
export {
......