4565bd2a by jiaozeping@pashanhoo.com

lpb

1 parent 385f5d08
......@@ -3,7 +3,6 @@ import request from '@/utils/request'
楼盘查询
*/
// 根据条件进行列表查询
export function getLpZrz(data) {
return request({
......@@ -13,7 +12,6 @@ export function getLpZrz(data) {
})
}
// 获取楼盘表
export function getLpb(params) {
return request({
......@@ -22,5 +20,3 @@ export function getLpb(params) {
params
})
}
......
......@@ -6,25 +6,45 @@
<el-row>
<el-col :span="5">
<el-form-item label="项目名称">
<el-input placeholder="请输入项目名称" v-model="queryForm.xmmc" clearable class="width200px">
<el-input
placeholder="请输入项目名称"
v-model="queryForm.xmmc"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="项目编号">
<el-input placeholder="请输入项目编号" v-model="queryForm.xmbh" clearable class="width200px">
<el-input
placeholder="请输入项目编号"
v-model="queryForm.xmbh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="宗地代码">
<el-input placeholder="请输入宗地代码" v-model="queryForm.zddm" clearable class="width200px">
<el-input
placeholder="请输入宗地代码"
v-model="queryForm.zddm"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="自然幢号">
<el-input placeholder="请输入自然幢号" v-model="queryForm.zrzh" clearable class="width200px">
<el-input
placeholder="请输入自然幢号"
v-model="queryForm.zrzh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
......@@ -40,9 +60,17 @@
</div>
<!-- 表格 -->
<div class="from-clues-content">
<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
: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>
</div>
</div>
......@@ -50,15 +78,15 @@
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./lpcxdata";
import { getLpZrz,getLpb } from "@/api/lpb.js"
import { getLpZrz, getLpb } from "@/api/lpb.js";
export default {
name: "lpcx",
components: {},
mixins: [table],
mounted () {
mounted() {
sendThis(this);
},
data () {
data() {
return {
queryForm: {
xmmc: "",
......@@ -73,41 +101,42 @@ export default {
},
tableData: {
columns: datas.columns(),
data: []
}
data: [],
},
};
},
methods: {
//查询
queryClick(){
queryClick() {
this.fetchData();
},
// 初始化数据
fetchData () {
getLpZrz({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
fetchData() {
getLpZrz({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
this.pageData.total = res.result.total;
this.tableData.data = res.result.records
this.tableData.data = res.result.records;
}
})
});
},
handleSort (name, sort) {
handleSort(name, sort) {
console.log(name, sort);
},
//打开楼盘表
openlpbDialog (scope) {
openlpbClick(scope) {
debugger;
var zrzbsm=scope.row.bsm;
var zrzbsm = scope.row.bsm;
getLpb({zrzbsm:zrzbsm}).then(res => {
if(res.code == 200){
var lpbdata = res.result;
}
})
.catch((error) => {
getLpb({ zrzbsm: zrzbsm })
.then((res) => {
if (res.code == 200) {
var lpbdata = res.result;
}
})
.catch((error) => {
console.log(error);
});
},
......
......@@ -8,7 +8,7 @@ class data extends filter {
constructor() {
super()
}
columns () {
columns() {
return [
{
label: '序号',
......@@ -57,7 +57,7 @@ class data extends filter {
align: 'center',
fixed: 'right',
render: (h, scope) => {
return <el-button type="text" icon="el-icon-film" onClick={() => { vm.openlpbDialog(scope) }}>楼盘表</el-button>
return <el-button type="text" icon="el-icon-film" onClick={() => { vm.openlpbClick(scope) }}>楼盘表</el-button>
}
}
]
......