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

小区管理

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