|
@@ -2,29 +2,15 @@
|
|
|
<div class="default-main ">
|
|
|
<div style="display: flex;justify-content: space-between;background: #ffffff;padding: 20px">
|
|
|
<div style="display: flex;align-items: center">
|
|
|
- <!-- <span>区县:</span>-->
|
|
|
- <!-- <el-select v-model="districtId" placeholder="请选择区县" style="width: 150px;margin-right: 10px"-->
|
|
|
- <!-- @change="selectDstrict"-->
|
|
|
- <!-- :clearable="true">-->
|
|
|
- <!-- <el-option v-for="item in districtList" :label="item.districtName" :value="item.id"></el-option>-->
|
|
|
- <!-- </el-select>-->
|
|
|
- <!-- <span>小区:</span>-->
|
|
|
- <!-- <el-select v-model="communityId" placeholder="请选择小区" style="width: 150px;margin-right: 10px"-->
|
|
|
- <!-- @change="selectCommunity" :clearable="true">-->
|
|
|
- <!-- <el-option v-for="item in communityList" :label="item.communityName" :value="item.id"></el-option>-->
|
|
|
- <!-- </el-select>-->
|
|
|
- <!-- <span>楼号:</span>-->
|
|
|
- <!-- <el-select v-model="buildingId" placeholder="请选择楼号" style="width: 150px;margin-right: 10px"-->
|
|
|
- <!-- @change="selectBuilding"-->
|
|
|
- <!-- :clearable="true">-->
|
|
|
- <!-- <el-option v-for="item in buildingList" :label="item.buildingNumber" :value="item.id"></el-option>-->
|
|
|
- <!-- </el-select>-->
|
|
|
<el-button v-if="auth('add')" type="primary" :disabled="buildingId == ''"
|
|
|
@click="openDialog('add')">登记车位
|
|
|
</el-button>
|
|
|
<el-button v-if="auth('map')" type="primary" :disabled="buildingId == ''"
|
|
|
@click="parkingMapRef.open(buildingId)">车位绑定
|
|
|
</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ @click="getData">刷新
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-input v-model="quickSearch" placeholder="通过车位编号模糊检索" @change="getData" clearable></el-input>
|
|
@@ -34,23 +20,26 @@
|
|
|
<div
|
|
|
style="display: flex;background-color: #ffffff;width: 100%;padding: 0 20px 20px 20px;justify-content: space-between">
|
|
|
<el-tree node-key="id" :expand-on-click-node="false" :data="treeData"
|
|
|
- style="width: 250px;border: #d0d0d0 1px solid" highlight-current @nodeClick="treeNodeClick">
|
|
|
+ style="width: 200px;border: #d0d0d0 1px solid" highlight-current @nodeClick="treeNodeClick">
|
|
|
<template #default="{node,data}">
|
|
|
<span>{{ data.label ? data.label : data.buildingNumber }}</span>
|
|
|
</template>
|
|
|
</el-tree>
|
|
|
|
|
|
- <div style="width: calc(100% - 270px);">
|
|
|
+ <div style="width: calc(100% - 220px);">
|
|
|
<div style="color: #3f6ad8">
|
|
|
<span>当前位置:</span>
|
|
|
<span>{{ dir }}</span>
|
|
|
</div>
|
|
|
<el-table style="margin-top: 10px" :data="parkingData" border @row-dblclick="detailDialogRef.open($event)">
|
|
|
- <el-table-column prop="districtName" label="区县"></el-table-column>
|
|
|
- <el-table-column prop="communityName" label="小区"></el-table-column>
|
|
|
+ <el-table-column prop="districtName" label="位置" min-width="150px">
|
|
|
+ <template #default="{row}">
|
|
|
+ <span>{{ row.districtName + " / " + row.communityName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="buildingNumber" label="楼号"></el-table-column>
|
|
|
<el-table-column prop="parkingNumber" label="车位编号"></el-table-column>
|
|
|
- <el-table-column prop="parkingType" label="车位类型" width="100">
|
|
|
+ <el-table-column prop="parkingType" label="车位类型">
|
|
|
<template #default="{ row }">
|
|
|
<span>{{ row.parkingType == 1 ? "车库" : "车位" }}</span>
|
|
|
</template>
|
|
@@ -87,6 +76,14 @@
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="车位状态">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <el-tag :type="row.parkingStatus == 1 ? 'info' : 'success'"
|
|
|
+ style="margin: 0 5px;">
|
|
|
+ {{ ["正常", "下架"][row.parkingStatus] }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="是否标记">
|
|
|
<template #default="{ row }">
|
|
|
<el-tag :type="row.mapId == 0 ? 'danger' : 'success'" style="margin: 0 5px;">{{ row.mapId
|
|
@@ -113,7 +110,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination style="background: #ffffff;padding: 20px 0px"
|
|
|
+ <el-pagination style="background: #ffffff;padding: 20px 0"
|
|
|
v-model:current-page="currentPage"
|
|
|
v-model:page-size="pageSize"
|
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
@@ -213,7 +210,7 @@ function selectCommunity(event: any) {
|
|
|
|
|
|
let parkingData = ref([]);
|
|
|
|
|
|
-function selectBuilding(event: any) {
|
|
|
+function selectBuilding() {
|
|
|
getData();
|
|
|
}
|
|
|
|