|
|
|
@ -97,9 +97,9 @@
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="search-list__bar"
|
|
|
|
class="search-list__bar"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Button size="small" type="success" :ghost="hasHouse !== 2" @click="hasHouse = 2">有房产</Button>
|
|
|
|
<Button size="small" type="success" :ghost="hasHouse !== 1" @click="hasHouse = 1,getList(1)">土地</Button>
|
|
|
|
<Button size="small" type="primary" :ghost="hasHouse !== 3" @click="hasHouse = 3">无房产</Button>
|
|
|
|
<Button size="small" type="primary" :ghost="hasHouse !== 2" @click="hasHouse = 2,getList(2)">房产</Button>
|
|
|
|
<Button size="small" type="info" :ghost="hasHouse !== 1" @click="hasHouse = 1">全部</Button>
|
|
|
|
<Button size="small" type="info" :ghost="hasHouse !== 3" @click="hasHouse = 3,getList(3)">全部</Button>
|
|
|
|
<el-input size="mini" style="margin-top: 4px;" placeholder="请输入地块名称" v-model="select.filter[1].value" clearable>
|
|
|
|
<el-input size="mini" style="margin-top: 4px;" placeholder="请输入地块名称" v-model="select.filter[1].value" clearable>
|
|
|
|
<el-button type="primary" slot="append" icon="el-icon-search" @click="areaPick"></el-button>
|
|
|
|
<el-button type="primary" slot="append" icon="el-icon-search" @click="areaPick"></el-button>
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
@ -134,12 +134,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
<p style="zoom: .9;text-align: center;padding: 4px 0;font-weight: 600;">总共 {{total}} 条</p>
|
|
|
|
<p style="zoom: .9;text-align: center;padding: 4px 0;font-weight: 600;">总共 {{total}} 条</p>
|
|
|
|
<ul v-if="list && list.length > 0">
|
|
|
|
<ul v-if="list && list.length > 0">
|
|
|
|
<li v-for="(item,index) in listFilter" :key="item.id" :style="{'border-color': openData.id === item.id ? 'blue' : ''}">
|
|
|
|
<li v-for="(item,index) in list" :key="item.id" :style="{'border-color': openData.id === item.id ? 'blue' : ''}">
|
|
|
|
<div class="left">
|
|
|
|
<div class="left">
|
|
|
|
<p>{{ item.name }}</p>
|
|
|
|
<p>{{ item.name }}</p>
|
|
|
|
|
|
|
|
<Tag :color="Object.hasOwn(item,'id_house_properties_land_id_relation') ? 'green' : 'purple'">{{ Object.hasOwn(item,'id_house_properties_land_id_relation') ? '土地' : '房产' }}</Tag>
|
|
|
|
<Tag color="blue" v-if="item.area">{{ wxAreas[item.area-1] }}</Tag>
|
|
|
|
<Tag color="blue" v-if="item.area">{{ wxAreas[item.area-1] }}</Tag>
|
|
|
|
<Tag color="cyan" v-if="item.shijimianji">{{ item.shijimianji }} m²</Tag>
|
|
|
|
<!-- <Tag color="cyan" v-if="item.shijimianji">{{ item.shijimianji }} m²</Tag>-->
|
|
|
|
<Tag color="red" v-if="item.id_house_properties_land_id_relation">房</Tag>
|
|
|
|
<Tag color="red" v-if="Object.hasOwn(item,'id_house_properties_land_id_relation')">{{ item.id_house_properties_land_id_relation ? '权属合一' : '权属分离' }}</Tag>
|
|
|
|
<Tag color="gold" v-if="item.jianzhuleixing">{{ jianzhuleixing(item.jianzhuleixing) }}</Tag>
|
|
|
|
<Tag color="gold" v-if="item.jianzhuleixing">{{ jianzhuleixing(item.jianzhuleixing) }}</Tag>
|
|
|
|
<Tag color="magenta" v-if="item.zichanleixing">{{ zichanleixing(item.zichanleixing) }}</Tag>
|
|
|
|
<Tag color="magenta" v-if="item.zichanleixing">{{ zichanleixing(item.zichanleixing) }}</Tag>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -272,7 +273,7 @@ export default {
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
dragging: false,
|
|
|
|
dragging: false,
|
|
|
|
searchShow: true,
|
|
|
|
searchShow: true,
|
|
|
|
hasHouse: 1, //1全部 2有 3无
|
|
|
|
hasHouse: 1, //1土地 2房产 3无
|
|
|
|
selectList: {
|
|
|
|
selectList: {
|
|
|
|
table_name: "assets",
|
|
|
|
table_name: "assets",
|
|
|
|
filter: [
|
|
|
|
filter: [
|
|
|
|
@ -289,7 +290,7 @@ export default {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
select: {
|
|
|
|
select: {
|
|
|
|
table_name: "assets",
|
|
|
|
//table_name: "assets",
|
|
|
|
filter: [
|
|
|
|
filter: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
key: "suoshuqu",
|
|
|
|
key: "suoshuqu",
|
|
|
|
@ -382,14 +383,35 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getList() {
|
|
|
|
async getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
const res = await index({
|
|
|
|
let opt = {
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
page_size: 9999,
|
|
|
|
page_size: 9999,
|
|
|
|
...this.select,
|
|
|
|
...this.select,
|
|
|
|
});
|
|
|
|
table_name: this.hasHouse === 1 ? 'lands' : 'houses'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.hasHouse === 3) {
|
|
|
|
|
|
|
|
delete opt.table_name
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let promise = [];
|
|
|
|
|
|
|
|
promise.push(index({
|
|
|
|
|
|
|
|
...opt,
|
|
|
|
|
|
|
|
table_name: 'lands'
|
|
|
|
|
|
|
|
}))
|
|
|
|
|
|
|
|
promise.push(index({
|
|
|
|
|
|
|
|
...opt,
|
|
|
|
|
|
|
|
table_name: 'houses'
|
|
|
|
|
|
|
|
}))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const res = await Promise.all(promise)
|
|
|
|
|
|
|
|
this.total = res.reduce((a,b) => a + b.total,0);
|
|
|
|
|
|
|
|
this.list = Array.from(res, i => i.data).reduce((a,b) => a.concat(b),[]);
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
const res = await index(opt);
|
|
|
|
this.total = res.total;
|
|
|
|
this.total = res.total;
|
|
|
|
this.list = res.data;
|
|
|
|
this.list = res.data;
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addCluster() {
|
|
|
|
addCluster() {
|
|
|
|
if (this.cluster) {
|
|
|
|
if (this.cluster) {
|
|
|
|
@ -544,7 +566,7 @@ export default {
|
|
|
|
let custom_form = JSON.parse(decode);
|
|
|
|
let custom_form = JSON.parse(decode);
|
|
|
|
this.customForm.customFormId = custom_form.custom_form_id;
|
|
|
|
this.customForm.customFormId = custom_form.custom_form_id;
|
|
|
|
this.customForm.tableName = custom_form.table_name;
|
|
|
|
this.customForm.tableName = custom_form.table_name;
|
|
|
|
this.select.table_name = custom_form.table_name;
|
|
|
|
//this.select.table_name = custom_form.table_name;
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|
console.warn(err);
|
|
|
|
console.warn(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|