1191a3c6 by 蔡俊立
2 parents f772e993 7439149d
import request from '@/utils/request'
// 根据条件进行列表查询
export function getJtfcPage (data) {
return request({
url: '/sqcx/jtfc/getJtfcPage',
method: 'post',
data
})
}
// 新增申请查询家庭房产信息
export function addJtfcCxjgXx (data) {
return request({
url: '/sqcx/jtfc/addJtfcCxjgXx',
method: 'post',
data,
showLoading: true,
loadingTarget: '正在查询中...'
})
}
\ No newline at end of file
import request from '@/utils/request'
// 根据条件进行列表查询
export function getJtfcPage (data) {
return request({
url: '/sqcx/getJtfcPage',
method: 'post',
data
})
}
// 新增申请查询家庭房产信息
export function addJtfcCxjgXx (data) {
return request({
url: '/sqcx/addJtfcCxjgXx',
method: 'post',
data,
showLoading: true,
loadingTarget: '正在查询中...'
})
}
\ No newline at end of file
// import request from '@/utils/request'
// // 根据条件进行列表查询
// export function getJtfcPage (data) {
// return request({
// url: '/sqcx/getJtfcPage',
// method: 'post',
// data
// })
// }
// // 新增申请查询家庭房产信息
// export function addJtfcCxjgXx (data) {
// return request({
// url: '/sqcx/addJtfcCxjgXx',
// method: 'post',
// data,
// showLoading: true,
// loadingTarget: '正在查询中...'
// })
// }
\ No newline at end of file
......
......@@ -46,7 +46,7 @@
<script>
import personInfoTable from '@/views/components/personInfoTable'
import { addJtfcCxjgXx } from '@/api/sqcx'
import { addJtfcCxjgXx } from '@/api/jtfc'
export default {
components: {
personInfoTable
......
<template>
<div class="from-clues">
<!-- 表单部分 -->
<!-- 家庭房产 -->
<div class="from-clues-header">
<el-form :model="queryForm" ref="queryForm" label-width="80px">
<el-form :model="queryForm" ref="queryForm" label-width="70px">
<el-row>
<el-col :span="5">
<el-form-item label="查询编号">
<el-input placeholder="请输入编号" v-model="queryForm.cxbh" clearable>
<el-input
placeholder="请输入查询编号"
v-model="queryForm.cxbh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="申请人">
<el-input placeholder="请输入申请人" v-model="queryForm.sqr" clearable>
<el-input
placeholder="请输入申请人"
v-model="queryForm.sqr"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="14" class="btnCol">
<el-button type="primary" icon="el-icon-search" @click="fetchData">查询</el-button>
<el-button type="primary" @click="handleAdd" icon="el-icon-plus">新增</el-button>
<el-button type="primary" @click="queryClick()"
>查询</el-button
>
<el-button type="primary" @click="handleAdd"
>新增</el-button
>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table :page-size="pageData.size" border :current-page.sync="pageData.current" :total="tableData.total"
@size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
:data="tableData.data">
<lb-table
:page-size="pageData.size"
border
:current-page.sync="pageData.current"
:total="tableData.total"
@size-change="handleSizeChange"
@p-current-change="handleCurrentChange"
:column="tableData.columns"
:data="tableData.data"
>
</lb-table>
</div>
<editDialog v-model="isDialog" />
......@@ -36,59 +57,54 @@
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./jtfcdata";
import { getJtfcPage } from "@/api/sqcx";
import editDialog from "../components/editDialog.vue"
import { getJtfcPage } from "@/api/jtfc";
import editDialog from "../components/editDialog.vue";
export default {
name: "jtfc",
components: { editDialog },
mixins: [table],
mounted () {
mounted() {
sendThis(this);
},
data () {
data() {
return {
isDialog: false,
sqrOption: [],
cxytOption: [],
queryForm: {
cxbh: "",
sqr: ""
sqr: "",
},
tableData: {
total: 0,
columns: datas.columns(),
data: [
{
cxlx: "家庭房产",
cxbh: "20200409146",
cxsj: "2016-10-12 10:00:00",
slry: "查询窗口",
sqr: "张三",
yqlrgx: "不动产权利人",
qlr: "张三",
cxyt: "预告买卖记录||首次登记",
},
],
data: [],
},
};
},
methods: {
queryClick(){
this.fetchData();
},
// 初始化数据
fetchData () {
fetchData() {
getJtfcPage({ ...this.queryForm, ...this.pageData }).then((res) => {
let { records, total } = res.result;
this.tableData.data = records
this.tableData.data = records;
this.tableData.total = total;
});
},
handleSort (name, sort) {
handleSort(name, sort) {
console.log(name, sort);
},
handleAdd () {
this.isDialog = true
}
}
}
handleAdd() {
this.isDialog = true;
},
},
};
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......
......@@ -73,15 +73,6 @@ class data extends filter {
]
}
ywlys () {
return [
{ value: 1, label: "办事大厅" },
{ value: 2, label: "微信小程序" },
{ value: 3, label: "法院端" },
{ value: 4, label: "银行端" },
]
}
}
let datas = new data()
export {
......
<template>
<div class="from-clues">
<!-- 表单部分 -->
<!-- 楼盘查询 -->
<div class="from-clues-header">
<el-form :model="queryForm" ref="queryForm" label-width="70px">
<el-row>
......@@ -136,7 +136,7 @@ export default {
width: "50%",
btnShow: true,
editItem: "xxxxxxxxxx",
height: "800px",
height: "600px",
formData: {
bsmSlsq: this.bsmSlsq,
dataList: this.unitData,
......@@ -148,15 +148,15 @@ export default {
});
// getLpb({ zrzbsm: zrzbsm })
// .then((res) => {
// if (res.code == 200) {
// var lpbdata = res.result;
// }
// })
// .catch((error) => {
// console.log(error);
// });
getLpb({ zrzbsm: zrzbsm })
.then((res) => {
if (res.code == 200) {
var lpbdata = res.result;
}
})
.catch((error) => {
console.log(error);
});
},
},
};
......