dca5777f by 任超

style:申请查询

1 parent 246fbfa7
import request from '@/utils/request'
import SERVER from './config'
// 根据条件进行列表查询
export function getJtfcPage (data) {
export function getJtfcPage (data, headers) {
return request({
url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/getJtfcPage',
method: 'post',
data
data,
headers
})
}
// 新增申请查询家庭房产信息
export function addJtfcCxjgXx (data) {
export function addJtfcCxjgXx (data, headers) {
return request({
url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/addJtfcCxjgXx',
method: 'post',
data,
showLoading: true,
loadingTarget: '正在查询中...'
headers
})
}
\ No newline at end of file
......
......@@ -28,9 +28,9 @@
</div>
<!-- 表格 -->
<div class="from-clues-content">
<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 :page-size="pageData.size" id="dydjb" 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>
......@@ -66,7 +66,7 @@ export default {
methods: {
// 初始化数据
fetchData () {
getJtfcPage({ ...this.queryForm, ...this.pageData }).then((res) => {
getJtfcPage({ ...this.queryForm, ...this.pageData }, { 'target': '#dydjb' }).then((res) => {
let { records, total } = res.result;
this.tableData.data = records;
this.tableData.total = total;
......@@ -78,27 +78,22 @@ export default {
dydjbClick (scope) {
// var sqcxBsm = scope.row.bsmSqcx;
this.$popup({
title: "打印登记薄",
width: "65%",
this.$popup("打印登记薄", "sqcx/dydjb/components/dydjbInfo", {
btnShow: true,
editItem: "sqcx/dydjb/components/dydjbInfo", // 弹窗内容
height: "800px",
formData: {
sqcxdata: scope.row,
},
cancel: function () { }, //取消事件的回调
confirm: function () {
// that.loadBdcdylist();
}, //确认事件的回调
});
}
})
},
queryClick () {
this.fetchData();
},
},
};
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......
......@@ -25,9 +25,9 @@
</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 id="jtfc" :current-page.sync="pageData.current"
:total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
:column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
<addjtfc v-model="isDialog" />
......@@ -66,10 +66,9 @@ export default {
queryClick () {
this.fetchData();
},
// 初始化数据
fetchData () {
getJtfcPage({ ...this.queryForm, ...this.pageData }).then((res) => {
getJtfcPage({ ...this.queryForm, ...this.pageData }, { 'target': '#jtfc' }).then((res) => {
let { records, total } = res.result;
this.tableData.data = records;
this.tableData.total = total;
......@@ -80,9 +79,9 @@ export default {
},
handleAdd () {
this.isDialog = true;
},
},
};
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
......
......@@ -27,9 +27,9 @@
</div>
<!-- 表格 -->
<div class="from-clues-content">
<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 :page-size="pageData.size" border id="sqcxjl" @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>
......@@ -65,7 +65,7 @@ export default {
// 初始化数据
fetchData () {
getJtfcPage({ ...this.queryForm, ...this.pageData }).then((res) => {
getJtfcPage({ ...this.queryForm, ...this.pageData }, { 'target': '#sqcxjl' }).then((res) => {
let { records, total } = res.result;
this.tableData.data = records;
this.tableData.total = total;
......