9ef8b82d by jiaozeping@pashanhoo.com

登记薄

1 parent dc70fe77
......@@ -6,27 +6,52 @@
<el-row>
<el-col :span="5">
<el-form-item label="权利类型">
<el-select v-model="queryForm.qllx" filterable clearable placeholder="请选择权利类型">
<el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode">
<el-select
v-model="queryForm.qllx"
filterable
clearable
placeholder="请选择权利类型"
>
<el-option
v-for="item in dictData['A8']"
:key="item.dcode"
:label="item.dname"
:value="item.dcode"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="不动产单元号">
<el-input placeholder="请输入不动产单元号" v-model="queryForm.bdcdyh" clearable class="width200px">
<el-input
placeholder="请输入不动产单元号"
v-model="queryForm.bdcdyh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="不动产权证号">
<el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width200px">
<el-input
placeholder="请输入不动产权证号"
v-model="queryForm.bdcqzh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width200px">
<el-input
placeholder="请输入业务号"
v-model="queryForm.ywh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
......@@ -42,9 +67,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="tableData.total"
@size-change="handleSizeChange"
@p-current-change="handleCurrentChange"
:column="tableData.columns"
:data="tableData.data"
>
</lb-table>
</div>
</div>
......@@ -58,10 +91,10 @@ import { mapGetters } from "vuex";
export default {
name: "djbcx",
mixins: [table],
mounted () {
mounted() {
sendThis(this);
},
data () {
data() {
return {
queryForm: {
qllx: "",
......@@ -74,7 +107,6 @@ export default {
size: 10,
total: 0,
},
ywlys: datas.ywlys(),
tableData: {
columns: datas.columns(),
data: [],
......@@ -89,43 +121,44 @@ export default {
},
methods: {
// 初始化数据
fetchData () {
fetchData() {
debugger;
getDjbBysearch({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.pageData.total = total;
this.tableData.data = records;
this.tableData.total = total;
}
});
},
handleSort (name, sort) {
handleSort(name, sort) {
console.log(name, sort);
},
// 查询
queryClick () {
this.pageData.current = 1;
this.pageData.currentPage = 1;
queryClick() {
// this.pageData.current = 1;
// this.pageData.currentPage = 1;
this.fetchData();
},
// 高级查询
moreQueryClick () { },
openDialog (scroll) {
moreQueryClick() {},
openDialog(scroll) {
this.$popup({
titleStyle:"left",
title: '登记簿详情', // 弹窗标题
editItem: 'registerBook/djbFrame', // 弹窗内容
formData: scroll,
width:"1220px",
height:"790px",
// cancelText: '取消摆烂', // 右边按钮文本
// confirmText: '确定点击', //左边按钮文本
cancel: () => {
console.log('取消回调')
},
confirm: () => {
console.log('确认回调')
}
});
titleStyle: "left",
title: "登记簿详情", // 弹窗标题
editItem: "registerBook/djbFrame", // 弹窗内容
formData: scroll,
width: "1220px",
height: "790px",
// cancelText: '取消摆烂', // 右边按钮文本
// confirmText: '确定点击', //左边按钮文本
cancel: () => {
console.log("取消回调");
},
confirm: () => {
console.log("确认回调");
},
});
},
},
};
......