<!-- * @Description: * @Autor: renchao * @LastEditTime: 2023-10-31 14:44:39 --> <template> <div class="from-clues"> <!-- 表单部分 --> <div class="from-clues-header"> <el-form :model="queryForm" ref="queryForm" @submit.native.prevent label-width="100px"> <el-row> <el-col :span="5"> <el-form-item label="业务来源" prop="ywly"> <el-select v-model="queryForm.ywly" class="width100" filterable clearable placeholder="请选择业务来源"> <el-option v-for="item in dictData['ywly']" :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="权利类型" prop="qllx"> <el-select v-model="queryForm.qllx" class="width100" 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="登记类型" prop="djlx"> <el-select v-model="queryForm.djlx" class="width100" filterable clearable placeholder="请选择登记类型"> <el-option v-for="item in dictData['A21']" :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="业务号" prop="ywh"> <el-input placeholder="请输入业务号" v-model.trim="queryForm.ywh" clearable class="width200px"> </el-input> </el-form-item> </el-col> <el-col :span="4" class="btnColRight"> <el-form-item> <el-button @click="handleReset">重置</el-button> <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button> <!-- <el-button @click="moreQueryClick">高级查询</el-button> --> </el-form-item> </el-col> </el-row> <el-row> <el-col :span="5"> <el-form-item label="不动产单元号" prop="bdcdyh"> <el-input placeholder="请输入不动产单元号" v-model.trim="queryForm.bdcdyh" clearable class="width100"> </el-input> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="申请人" prop="sqrmc"> <el-input placeholder="如需要模糊查询,前后输入%" v-model.trim="queryForm.sqrmc" clearable class="width100"> </el-input> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="申请人证件号" prop="sqrzjhm"> <el-input placeholder="如需要模糊查询,前后输入%" v-model.trim="queryForm.sqrzjhm" clearable class="width100"> </el-input> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="坐落" prop="zl"> <el-input placeholder="如需要模糊查询,前后输入%" v-model.trim="queryForm.zl" clearable class="width100"> </el-input> </el-form-item> </el-col> </el-row> </el-form> </div> <!-- 表格 --> <div class="from-clues-content"> <lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort" :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> </lb-table> </div> </div> </template> <script> import { mapGetters } from 'vuex' import table from "@/utils/mixin/table"; import { datas, sendThis } from "./jdcxdata"; import { getJdcxBysearch } from "@/api/search.js" export default { name: "jdcx", components: {}, mixins: [table], mounted () { sendThis(this); }, computed: { ...mapGetters(['dictData']) }, data () { return { queryForm: { }, tableData: { total: 0, columns: datas.columns(), data: [] } } }, activated () { this.queryClick() }, methods: { /** * @description: 初始化数据 * @author: renchao */ queryClick () { this.$startLoading() getJdcxBysearch({ ...this.queryForm, ...this.pageData }).then(res => { this.$endLoading() if (res.code === 200) { let { total, records } = res.result this.tableData.total = total ? total : 0; this.tableData.data = records ? records : []; } }) }, handleReset () { this.$refs.queryForm.resetFields(); }, /** * @description: handleSort * @param {*} name * @param {*} sort * @author: renchao */ handleSort (name, sort) { console.log(name, sort); }, /** * @description: openDialog * @param {*} item * @author: renchao */ openDialog (item) { if (item.sjlx == "3") { item.djywbm = "DJBBL"; const { href } = this.$router.resolve( "/djbworkFrameview?bsmSlsq=" + item.bsmSlsq + "&bsmBusiness=" + item.bsmBusiness + "&sqywbm=" + item.djywbm ); window.open(href, `djbworkFrameview${item.bsmSlsq}`); } else { const { href } = this.$router.resolve( "/workFrameView?bsmSlsq=" + item.bsmSlsq + "&bsmBusiness=" + item.bsmBusiness + '&type=jdcx' ); window.open(href, `workFrameView${item.bsmSlsq}`) } } } } </script> <style scoped lang="scss"> @import "~@/styles/public.scss"; </style>