提交 e3d3ead6 authored 作者: 何忠建's avatar 何忠建

小区管理

上级 9c272cb3
<!--
* @Author: luofu
* @Date: 2023-07-20 10:54:31
* @Descripttion:
-->
<template> <template>
<a-card :bordered="false"> <a-card :bordered="false">
<!-- 查询区域 --> <!-- 查询区域 -->
...@@ -6,7 +11,7 @@ ...@@ -6,7 +11,7 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<a-form-item label="小区名称"> <a-form-item label="小区名称">
<j-input placeholder="请输入小区名称" v-model="queryParam.advName"></j-input> <j-input placeholder="请输入小区名称" v-model="queryParam.communityName"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
...@@ -22,11 +27,8 @@ ...@@ -22,11 +27,8 @@
<!-- table区域-begin --> <!-- table区域-begin -->
<div> <div>
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns" <a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
:dataSource="dataSource1" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap" :dataSource="dataSource" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap"
@change="handleTableChange"> @change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a type="primary" @click="onStatus(record)">解绑/绑定</a>
</span>
</a-table> </a-table>
</div> </div>
</a-card> </a-card>
...@@ -41,40 +43,30 @@ export default { ...@@ -41,40 +43,30 @@ export default {
data() { data() {
return { return {
columns: [ columns: [
{
title: '#',
dataIndex: '',
key: 'rowIndex',
width: 60,
align: 'center',
customRender: function (t, r, index) {
return parseInt(index) + 1
},
},
{ {
title: '小区名称', title: '小区名称',
align: 'center', align: 'center',
dataIndex: 'name', dataIndex: 'communityName',
}, },
{ {
title: '所属区域', title: '所属区域',
align: 'center', align: 'center',
dataIndex: 'domain', dataIndex: 'communityArea',
}, },
{ {
title: '占地面积(m2)', title: '占地面积(m2)',
align: 'center', align: 'center',
dataIndex: 'area', dataIndex: 'coverArea',
}, },
{ {
title: '总栋数', title: '总栋数',
align: 'center', align: 'center',
dataIndex: 'num1', dataIndex: 'buildingNum',
}, },
{ {
title: '房屋数量', title: '房屋数量',
align: 'center', align: 'center',
dataIndex: 'num2', dataIndex: 'houseNum',
}, },
{ {
title: '商铺数量', title: '商铺数量',
...@@ -84,51 +76,21 @@ export default { ...@@ -84,51 +76,21 @@ export default {
{ {
title: '联系人', title: '联系人',
align: 'center', align: 'center',
dataIndex: 'name1', dataIndex: 'adminName',
}, },
{ {
title: '详细地址', title: '详细地址',
dataIndex: 'add', dataIndex: 'addressInfo',
align: 'center',
},
{
title: '操作',
dataIndex: 'action',
scopedSlots: { customRender: 'action' },
align: 'center', align: 'center',
fixed: 'right',
width: 150,
}, },
], ],
dataSource1:[ dataSource: [],
{name:'汉江之星小区',domain:'汉江',area:3000,num1:10,num2:20,num3:30,name1:'李四',add:'武汉市'}
],
url: { url: {
list: '/property-central/property/propertyAdv/list', list: '/property-company/community/companyCommunity/partnersCommunityPage',
}, },
dictOptions: [],
} }
}, },
created() {}, methods: {},
methods: {
onStatus(record) {
let that = this
this.$confirm({
title: `确认${record.propertyStatus === 'normal' ? '绑定' : '解绑'}此小区?`,
closable: true,
okText: `${record.propertyStatus === 'normal' ? '绑定' : '解绑'}`,
onOk() {
// return freezeOrPropertyApi({
// id: record.id,
// status: `${record.propertyStatus === 'normal' ? 'freeze' : 'normal'}`,
// }).then((res) => {
// that.searchQuery()
// })
},
onCancel() {},
})
},
},
} }
</script> </script>
<style scoped> <style scoped>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<a-col :span="10"> <a-col :span="10">
<a-form-item label="小区名称"> <a-form-item label="小区名称">
<a-input placeholder="请输入小区名称" v-model="queryParam.username"></a-input> <a-input placeholder="请输入小区名称" v-model="queryParam.communityName"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
...@@ -68,46 +68,36 @@ ...@@ -68,46 +68,36 @@
queryParam: {}, queryParam: {},
// 表头 // 表头
columns: [ columns: [
{ {
title: '#', title: '小区名称',
dataIndex: '', align: 'center',
key: 'rowIndex', dataIndex: 'communityName',
width: 50, },
align: "center", {
customRender: function (t, r, index) { title: '所属区域',
return parseInt(index) + 1; align: 'center',
} dataIndex: 'communityArea',
}, },
{ {
title: '小区名称', title: '总栋数',
align: "center", align: 'center',
width: 100, dataIndex: 'buildingNum',
dataIndex: 'username' },
}, {
{ title: '房屋数量',
title: '所属区域', align: 'center',
align: "center", dataIndex: 'houseNum',
width: 100, },
dataIndex: 'realname' {
}, title: '联系人',
{ align: 'center',
title: '总栋数', dataIndex: 'adminName',
align: "center", },
width: 150, {
dataIndex: 'orgCodeTxt' title: '详细地址',
}, dataIndex: 'addressInfo',
{ align: 'center',
title: '联系人', },
align: "center",
width: 100,
dataIndex: 'sex_dictText'
},
{
title: '联系方式',
align: "center",
width: 100,
dataIndex: 'phone'
},
], ],
//数据集 //数据集
...@@ -133,7 +123,7 @@ ...@@ -133,7 +123,7 @@
selectedRows: [], selectedRows: [],
selectedCurrently:{}, selectedCurrently:{},
url: { url: {
list: "/sys/user/list", list: "/property-company/community/companyCommunity/partnersCommunityPage",
} }
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论