439e33a1 by 蔡俊立

功能完善

1 parent d4004ee4
import request from '@/utils/request'
import SERVER from './config'
// 登簿日志分页
export function getRecordLogPage (data) {
return request({
url: SERVER.SERVERAPI + '/sjsb/RecordLog/getRecordLogPage',
method: 'post',
data
})
}
......@@ -173,7 +173,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -460,7 +460,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -73,7 +73,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -271,7 +271,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -143,7 +143,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -272,7 +272,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -191,7 +191,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -264,7 +264,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -257,7 +257,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -140,7 +140,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -330,7 +330,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -183,7 +183,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -286,7 +286,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -91,7 +91,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -73,7 +73,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -143,7 +143,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -143,7 +143,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -250,7 +250,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -84,7 +84,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -257,7 +257,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -360,7 +360,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -132,7 +132,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -47,7 +47,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
......@@ -387,7 +387,7 @@ export default {
type: String,
default: ''
},
dataTable: {
bsmYwsjb: {
type: String,
default: ''
}
......
class data {
columns () {
return [
{
prop: "qumc",
prop: "AREANAME",
label: "区域名称",
},
{
prop: "date",
prop: "UPLOADTIME",
label: "日期",
},
{
prop: "type",
label: "类型"
label: "类别",
render: (h, scope) => {
return (
<div class={'difference'}>
<p>{'登簿量'}</p>
<p>{'接入量'}</p>
</div>
)
},
},
{
label: "总量",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.totalnum === scope.row.accessInfoModel.totalnum ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.totalnum}</p>
<p>{scope.row.accessInfoModel.totalnum}</p>
<div class={scope.row.totalnum === scope.row.totalnum ? '' : 'difference'}>
<p>{scope.row.registerTotalnum}</p>
<p>{scope.row.accessTotalnum}</p>
</div>
)
},
},
{
prop: "ywlxsl",
label: "业务类型数量"
label: "业务类型数量",
render: (h, scope) => {
return (
<div class={'difference'}>
<p>{scope.row.BUSINESSTYPECOUNT}</p>
<p>{''}</p>
</div>
)
},
},
{
label: "首次登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.firstreg === scope.row.accessInfoModel.firstreg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.firstreg}</p>
<p>{scope.row.accessInfoModel.firstreg}</p>
<div class={scope.row.firstreg === scope.row.firstreg ? '' : 'difference'}>
<p>{scope.row.registerFirstreg}</p>
<p>{scope.row.accessFirstreg}</p>
</div>
)
},
......@@ -43,9 +59,9 @@ class data {
label: "转移登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.transferreg === scope.row.accessInfoModel.transferreg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.transferreg}</p>
<p>{scope.row.accessInfoModel.transferreg}</p>
<div class={scope.row.transferreg === scope.row.transferreg ? '' : 'difference'}>
<p>{scope.row.registerTransferreg}</p>
<p>{scope.row.accessTransferreg}</p>
</div>
)
},
......@@ -54,9 +70,9 @@ class data {
label: "变更登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.changereg === scope.row.accessInfoModel.changereg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.changereg}</p>
<p>{scope.row.accessInfoModel.changereg}</p>
<div class={scope.row.changereg === scope.row.changereg ? '' : 'difference'}>
<p>{scope.row.registerChangereg}</p>
<p>{scope.row.accessChangereg}</p>
</div>
)
},
......@@ -65,9 +81,9 @@ class data {
label: "注销登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.logoutreg === scope.row.accessInfoModel.logoutreg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.logoutreg}</p>
<p>{scope.row.accessInfoModel.logoutreg}</p>
<div class={scope.row.logoutreg === scope.row.logoutreg ? '' : 'difference'}>
<p>{scope.row.registerLogoutreg}</p>
<p>{scope.row.accessLogoutreg}</p>
</div>
)
},
......@@ -76,9 +92,9 @@ class data {
label: "更正登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.rivisereg === scope.row.accessInfoModel.rivisereg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.rivisereg}</p>
<p>{scope.row.accessInfoModel.rivisereg}</p>
<div class={scope.row.rivisereg === scope.row.rivisereg ? '' : 'difference'}>
<p>{scope.row.registerRivisereg}</p>
<p>{scope.row.accessRivisereg}</p>
</div>
)
},
......@@ -89,9 +105,9 @@ class data {
label: "异议登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.dissentingreg === scope.row.accessInfoModel.dissentingreg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.dissentingreg}</p>
<p>{scope.row.accessInfoModel.dissentingreg}</p>
<div class={scope.row.dissentingreg === scope.row.dissentingreg ? '' : 'difference'}>
<p>{scope.row.registerDissentingreg}</p>
<p>{scope.row.accessDissentingreg}</p>
</div>
)
},
......@@ -101,9 +117,9 @@ class data {
label: "预告登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.advancereg === scope.row.accessInfoModel.advancereg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.advancereg}</p>
<p>{scope.row.accessInfoModel.advancereg}</p>
<div class={scope.row.advancereg === scope.row.advancereg ? '' : 'difference'}>
<p>{scope.row.registerAdvancereg}</p>
<p>{scope.row.accessAdvancereg}</p>
</div>
)
},
......@@ -113,9 +129,9 @@ class data {
label: "查封登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.seizereg === scope.row.accessInfoModel.seizereg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.seizereg}</p>
<p>{scope.row.accessInfoModel.seizereg}</p>
<div class={scope.row.seizereg === scope.row.seizereg ? '' : 'difference'}>
<p>{scope.row.registerSeizereg}</p>
<p>{scope.row.accessSeizereg}</p>
</div>
)
},
......@@ -125,9 +141,9 @@ class data {
label: "地役权登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.easementreg === scope.row.accessInfoModel.easementreg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.easementreg}</p>
<p>{scope.row.accessInfoModel.easementreg}</p>
<div class={scope.row.easementreg === scope.row.easementreg ? '' : 'difference'}>
<p>{scope.row.registerEasementreg}</p>
<p>{scope.row.accessEasementreg}</p>
</div>
)
},
......@@ -137,9 +153,9 @@ class data {
label: "抵押权登记",
render: (h, scope) => {
return (
<div class={scope.row.registerInfoModel.mortgagereg === scope.row.accessInfoModel.mortgagereg ? '' : 'difference'}>
<p>{scope.row.registerInfoModel.mortgagereg}</p>
<p>{scope.row.accessInfoModel.mortgagereg}</p>
<div class={scope.row.mortgagereg === scope.row.mortgagereg ? '' : 'difference'}>
<p>{scope.row.registerMortgagereg}</p>
<p>{scope.row.accessMortgagereg}</p>
</div>
)
},
......
......@@ -7,8 +7,8 @@
<el-row>
<el-col :span="6">
<el-form-item label="行政区" label-width="60px">
<el-select v-model="form.pcode" class="width100" filterable placeholder="请选择行政区">
<el-option v-for="item in []" :key="item.dcode" :label="item.dname" :value="item.dcode">
<el-select v-model="form.areacode" class="width100" filterable placeholder="请选择行政区">
<el-option v-for="item in dicData['XZQ']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
</el-option>
</el-select>
</el-form-item>
......@@ -35,7 +35,7 @@
</div>
<!-- 列表区域 -->
<div class="from-clues-content">
<lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total"
<lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="tableData.total"
@size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
:data="tableData.data">
</lb-table>
......@@ -48,9 +48,14 @@
import data from "./data"
// 引入表格混入方法
import tableMixin from '@/mixins/tableMixin.js'
import {getRecordLogPage} from "@/api/dbrzcx.js";
import { mapGetters } from 'vuex'
export default {
name: "dbrzcx",
mixins: [tableMixin],
computed: {
...mapGetters(['dicData'])
},
data () {
return {
// 开始结束日期限制
......@@ -75,10 +80,9 @@ export default {
},
// 表单
form: {
pcode: '',
areacode: '',
startTime: '',
endTime: '',
currentPage: 1
},
// table数据
tableData: {
......@@ -90,7 +94,8 @@ export default {
index: this.indexMethod,
}].concat(data.columns()),
// 列表
data: []
data: [],
total: 0,
},
// 分页
pageData: {
......@@ -105,6 +110,13 @@ export default {
this.$refs.ruleForm.resetFields();
},
async featchData () {
getRecordLogPage({ ...this.form, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
this.tableData.data = records ? records : []
}
})
}
}
}
......