|
|
@@ -1,1002 +1,48 @@
|
|
|
<template>
|
|
|
- <div class="app-container drainage-facility-page">
|
|
|
- <!-- 设施分布地图 -->
|
|
|
- <el-card shadow="never" class="map-card">
|
|
|
- <template #header>
|
|
|
- <div class="card-header">
|
|
|
- <div class="card-title">
|
|
|
- <span>设施分布</span>
|
|
|
- <span class="card-sub">按当前筛选条件叠加展示,共 {{ visibleMapRecords.length }} 个带坐标设施</span>
|
|
|
- </div>
|
|
|
- <div class="card-actions">
|
|
|
- <el-button size="small" :icon="Refresh" :loading="loading" @click="loadAll">刷新</el-button>
|
|
|
- <el-button size="small" :icon="Aim" @click="fitMap">全图</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 设施类型页签:只看某一类要素 -->
|
|
|
- <div class="map-tabs">
|
|
|
- <div class="map-tab" :class="{ active: activeType === '' }" @click="switchType('')">全部</div>
|
|
|
- <div v-for="item in typeOptions" :key="item.value" class="map-tab"
|
|
|
- :class="{ active: activeType === String(item.value) }" @click="switchType(String(item.value))">
|
|
|
- {{ item.label }}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="map-wrap">
|
|
|
- <GisMapCanvas ref="mapRef" :points="mapPoints" :lines="[]" :enable-clustering="true"
|
|
|
- cluster-label="设施" @ready="onMapReady" @point-click="handlePointClick" />
|
|
|
- <div v-if="!mapPoints.length" class="map-empty">
|
|
|
- {{ loading ? '正在加载…' : '当前筛选条件下没有可展示的设施(需录入经纬度)' }}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="map-legend">
|
|
|
- <span class="legend-title">图标颜色:</span>
|
|
|
- <span v-for="item in statusOptions" :key="item.value" class="legend-item">
|
|
|
- <i :style="{ background: statusColor(item.value) }"></i>{{ item.label }}
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
-
|
|
|
- <!-- 查询条件 -->
|
|
|
- <el-form ref="queryRef" :model="query" :inline="true" v-show="showSearch" label-width="80px">
|
|
|
- <el-form-item label="设施编码">
|
|
|
- <el-input v-model="query.facilityCode" placeholder="请输入" clearable style="width: 160px"
|
|
|
- @keyup.enter="handleQuery" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="设施名称">
|
|
|
- <el-input v-model="query.facilityName" placeholder="请输入" clearable style="width: 160px"
|
|
|
- @keyup.enter="handleQuery" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="设施类型">
|
|
|
- <el-select v-model="query.facilityType" placeholder="请选择" clearable style="width: 140px">
|
|
|
- <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="设施等级">
|
|
|
- <el-select v-model="query.facilityLevel" placeholder="请选择" clearable style="width: 140px">
|
|
|
- <el-option v-for="item in levelOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="管理单位">
|
|
|
- <el-input v-model="query.managementUnit" placeholder="请输入" clearable style="width: 170px"
|
|
|
- @keyup.enter="handleQuery" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="运行状态">
|
|
|
- <el-select v-model="query.status" placeholder="请选择" clearable style="width: 130px">
|
|
|
- <el-option v-for="item in statusOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="地点">
|
|
|
- <el-input v-model="query.location" placeholder="请输入" clearable style="width: 160px"
|
|
|
- @keyup.enter="handleQuery" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
|
|
- <el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
-
|
|
|
- <!-- 设施清单 -->
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button v-hasPermi="['drainage:facility:add']" type="primary" plain icon="Plus"
|
|
|
- @click="handleAdd">新增</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button v-hasPermi="['drainage:facility:remove']" type="danger" plain icon="Delete"
|
|
|
- :disabled="selectedIds.length === 0" @click="handleBatchDelete">
|
|
|
- 删除{{ selectedIds.length ? `(${selectedIds.length})` : '' }}
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- <right-toolbar v-model:showSearch="showSearch" @queryTable="loadAll"></right-toolbar>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-table v-loading="loading" :data="tableData" style="width: 100%"
|
|
|
- @selection-change="handleSelectionChange" @row-dblclick="openDetail">
|
|
|
- <el-table-column type="selection" width="50" align="center" />
|
|
|
- <el-table-column label="设施编码" prop="facilityCode" min-width="120" show-overflow-tooltip />
|
|
|
- <el-table-column label="设施名称" prop="facilityName" min-width="150" show-overflow-tooltip />
|
|
|
- <el-table-column label="设施类型" width="110" align="center">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-tag size="small" :type="typeTagType(row.facilityType)">{{ typeLabel(row.facilityType) }}</el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="等级" width="90" align="center">
|
|
|
- <template #default="{ row }">
|
|
|
- <span>{{ levelLabel(row.facilityLevel) || '-' }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="管理单位" prop="managementUnit" min-width="140" show-overflow-tooltip />
|
|
|
- <el-table-column label="地点" prop="location" min-width="140" show-overflow-tooltip />
|
|
|
- <el-table-column label="运行状态" width="100" align="center">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-tag size="small" :type="statusTagType(row.status)">{{ statusLabel(row.status) }}</el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="建设日期" prop="buildDate" width="110" align="center" />
|
|
|
- <el-table-column label="操作" width="170" align="center" fixed="right">
|
|
|
- <template #default="{ row }">
|
|
|
- <el-button link type="primary" @click="openDetail(row)">详情</el-button>
|
|
|
- <el-button v-hasPermi="['drainage:facility:edit']" link type="primary" @click="handleEdit(row)">修改</el-button>
|
|
|
- <el-button v-hasPermi="['drainage:facility:remove']" link type="danger" @click="handleDelete(row)">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <pagination v-show="total > 0" :total="total" v-model:page="pageNum" v-model:limit="pageSize"
|
|
|
- @pagination="loadPage" />
|
|
|
-
|
|
|
- <!-- 详情抽屉(只读) -->
|
|
|
- <el-drawer v-model="detailVisible" title="工程设施详情" size="680px" direction="rtl"
|
|
|
- @opened="onDetailOpened">
|
|
|
- <el-descriptions :column="2" border class="detail-desc">
|
|
|
- <el-descriptions-item label="设施编码">{{ fmt(detailRow.facilityCode) }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="设施名称">{{ fmt(detailRow.facilityName) }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="设施类型">
|
|
|
- <el-tag size="small" :type="typeTagType(detailRow.facilityType)">{{ typeLabel(detailRow.facilityType) }}</el-tag>
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="运行状态">
|
|
|
- <el-tag size="small" :type="statusTagType(detailRow.status)">{{ statusLabel(detailRow.status) }}</el-tag>
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="设施等级">{{ levelLabel(detailRow.facilityLevel) || '-' }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="管理单位">{{ fmt(detailRow.managementUnit) }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="建设日期">{{ fmt(detailRow.buildDate) }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="创建时间">{{ fmt(detailRow.createTime) }}</el-descriptions-item>
|
|
|
- <el-descriptions-item v-if="isFlowType(detailRow.facilityType)" label="设计流量(m³/s)">
|
|
|
- {{ fmt(detailRow.designFlow) }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item v-if="isPumpType(detailRow.facilityType)" label="设计扬程(m)">
|
|
|
- {{ fmt(detailRow.designHead) }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item v-if="isStorageType(detailRow.facilityType)" label="调蓄容积(m³)">
|
|
|
- {{ fmt(detailRow.storageCapacity) }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="经度">{{ fmt(detailRow.longitude) }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="纬度">{{ fmt(detailRow.latitude) }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="地点" :span="2">{{ fmt(detailRow.location) }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="备注" :span="2">{{ fmt(detailRow.remark) }}</el-descriptions-item>
|
|
|
- </el-descriptions>
|
|
|
-
|
|
|
- <div class="detail-map-section">
|
|
|
- <div class="detail-map-title">设施位置</div>
|
|
|
- <div class="detail-map-wrap">
|
|
|
- <GisMapCanvas v-if="detailVisible" ref="detailMapRef" :points="detailPoints" :lines="[]"
|
|
|
- :enable-clustering="false" :show-marker-name="false" @ready="onDetailMapReady" />
|
|
|
- <div v-if="!detailPoints.length" class="map-empty">该设施未录入坐标</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <template #footer>
|
|
|
- <el-button @click="detailVisible = false">关 闭</el-button>
|
|
|
- </template>
|
|
|
- </el-drawer>
|
|
|
-
|
|
|
- <!-- 新增 / 修改 -->
|
|
|
- <el-dialog v-model="formVisible" :title="formTitle" width="860px" append-to-body
|
|
|
- :close-on-click-modal="false" @opened="onFormOpened" @closed="onFormClosed">
|
|
|
- <el-form ref="formRef" :model="form" :rules="formRules" label-width="110px">
|
|
|
- <el-row :gutter="16">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="设施编码" prop="facilityCode">
|
|
|
- <el-input v-model="form.facilityCode" placeholder="请输入设施编码" maxlength="64" clearable />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="设施名称" prop="facilityName">
|
|
|
- <el-input v-model="form.facilityName" placeholder="请输入设施名称" maxlength="200" clearable />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="16">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="设施类型" prop="facilityType">
|
|
|
- <el-select v-model="form.facilityType" placeholder="请选择设施类型" style="width: 100%">
|
|
|
- <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="设施等级" prop="facilityLevel">
|
|
|
- <el-select v-model="form.facilityLevel" placeholder="请选择设施等级" clearable style="width: 100%">
|
|
|
- <el-option v-for="item in levelOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="16">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="管理单位" prop="managementUnit">
|
|
|
- <el-input v-model="form.managementUnit" placeholder="请输入管理单位" maxlength="200" clearable />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="运行状态" prop="status">
|
|
|
- <el-select v-model="form.status" placeholder="请选择运行状态" style="width: 100%">
|
|
|
- <el-option v-for="item in statusOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="16">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="地点" prop="location">
|
|
|
- <el-input v-model="form.location" placeholder="请输入位置描述" maxlength="500" clearable />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="建设日期" prop="buildDate">
|
|
|
- <el-date-picker v-model="form.buildDate" type="date" placeholder="请选择建设日期"
|
|
|
- value-format="YYYY-MM-DD" style="width: 100%" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="16">
|
|
|
- <el-col v-if="isFlowType(form.facilityType)" :span="12">
|
|
|
- <el-form-item label="设计流量(m³/s)" prop="designFlow">
|
|
|
- <el-input-number v-model="form.designFlow" :min="0" :precision="2" :controls="false"
|
|
|
- placeholder="请输入设计流量" style="width: 100%" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col v-if="isPumpType(form.facilityType)" :span="12">
|
|
|
- <el-form-item label="设计扬程(m)" prop="designHead">
|
|
|
- <el-input-number v-model="form.designHead" :min="0" :precision="2" :controls="false"
|
|
|
- placeholder="请输入设计扬程" style="width: 100%" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col v-if="isStorageType(form.facilityType)" :span="12">
|
|
|
- <el-form-item label="调蓄容积(m³)" prop="storageCapacity">
|
|
|
- <el-input-number v-model="form.storageCapacity" :min="0" :precision="2" :controls="false"
|
|
|
- placeholder="请输入调蓄容积" style="width: 100%" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="16">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="经度" prop="longitude">
|
|
|
- <el-input-number v-model="form.longitude" :precision="8" :controls="false" placeholder="地图点选或手输"
|
|
|
- style="width: 100%" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="纬度" prop="latitude">
|
|
|
- <el-input-number v-model="form.latitude" :precision="8" :controls="false" placeholder="地图点选或手输"
|
|
|
- style="width: 100%" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-form-item label="备注" prop="remark">
|
|
|
- <el-input v-model="form.remark" type="textarea" :rows="2" maxlength="500" show-word-limit
|
|
|
- placeholder="请输入备注" />
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
-
|
|
|
- <div class="form-map-section">
|
|
|
- <div class="form-map-title">
|
|
|
- <span>位置标注</span>
|
|
|
- <span class="form-map-tip">在地图上点击可定位,坐标自动回填(内部按 WGS84 存储)</span>
|
|
|
- </div>
|
|
|
- <div class="form-map-wrap">
|
|
|
- <GisMapCanvas v-if="formVisible" ref="formMapRef" :points="formPoints" :lines="[]"
|
|
|
- :enable-clustering="false" :show-marker-name="false" @ready="onFormMapReady"
|
|
|
- @map-click="handleMapPick" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <template #footer>
|
|
|
- <el-button @click="formVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" :loading="submitting" @click="submitForm">确 定</el-button>
|
|
|
- </template>
|
|
|
- </el-dialog>
|
|
|
+ <div class="app-container facility-tab-page">
|
|
|
+ <el-tabs v-model="activeTab" class="facility-tabs">
|
|
|
+ <el-tab-pane :label="tabLabel('0')" name="gate">
|
|
|
+ <DrainageGatePage v-if="activeTab === 'gate'" />
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane :label="tabLabel('1')" name="storage">
|
|
|
+ <DrainageStoragePage v-if="activeTab === 'storage'" />
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane :label="tabLabel('2')" name="pump">
|
|
|
+ <PumpStationPage v-if="activeTab === 'pump'" fixed-station-type="1" />
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup name="Gcssgl">
|
|
|
-import { computed, nextTick, onMounted, ref, watch } from 'vue'
|
|
|
-import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
-import { Aim, Refresh } from '@element-plus/icons-vue'
|
|
|
-import GisMapCanvas from '@/components/GisMapCanvas.vue'
|
|
|
+import { ref } from 'vue'
|
|
|
import { useDict } from '@/utils/dict'
|
|
|
-import {
|
|
|
- getFacilityPage,
|
|
|
- getFacilityMap,
|
|
|
- getFacilityDetail,
|
|
|
- addFacility,
|
|
|
- updateFacility,
|
|
|
- deleteFacility,
|
|
|
- batchDeleteFacility
|
|
|
-} from '@/api/drainage'
|
|
|
-
|
|
|
-const { drainage_facility_type: typeDict, drainage_facility_status: statusDict } =
|
|
|
- useDict('drainage_facility_type', 'drainage_facility_status')
|
|
|
-
|
|
|
-/** 字典未配置时的兜底,保证下拉与页签不会空白 */
|
|
|
-const TYPE_FALLBACK = [
|
|
|
- { value: '0', label: '闸门' },
|
|
|
- { value: '1', label: '调蓄设施' },
|
|
|
- { value: '2', label: '泵站' }
|
|
|
-]
|
|
|
-const STATUS_FALLBACK = [
|
|
|
- { value: '0', label: '正常' },
|
|
|
- { value: '1', label: '检修' },
|
|
|
- { value: '2', label: '停用' },
|
|
|
- { value: '3', label: '故障' }
|
|
|
-]
|
|
|
-
|
|
|
-const typeOptions = computed(() => (typeDict.value && typeDict.value.length ? typeDict.value : TYPE_FALLBACK))
|
|
|
-const statusOptions = computed(() => (statusDict.value && statusDict.value.length ? statusDict.value : STATUS_FALLBACK))
|
|
|
-
|
|
|
-// ==================== 查询条件 ====================
|
|
|
-const emptyQuery = () => ({
|
|
|
- facilityCode: '',
|
|
|
- facilityName: '',
|
|
|
- facilityType: '',
|
|
|
- facilityLevel: '',
|
|
|
- managementUnit: '',
|
|
|
- location: '',
|
|
|
- status: ''
|
|
|
-})
|
|
|
-const query = ref(emptyQuery())
|
|
|
-const showSearch = ref(true)
|
|
|
-const queryRef = ref()
|
|
|
-
|
|
|
-// 设施等级:前端写死可选项,落库存编码(不存中文)
|
|
|
-const levelOptions = [
|
|
|
- { value: '1', label: '一级' },
|
|
|
- { value: '2', label: '二级' },
|
|
|
- { value: '3', label: '三级' }
|
|
|
-]
|
|
|
-
|
|
|
-// ==================== 列表 ====================
|
|
|
-const tableData = ref([])
|
|
|
-const total = ref(0)
|
|
|
-const pageNum = ref(1)
|
|
|
-const pageSize = ref(10)
|
|
|
-const loading = ref(false)
|
|
|
-const selectedIds = ref([])
|
|
|
-
|
|
|
-// ==================== 地图 ====================
|
|
|
-const mapRecords = ref([])
|
|
|
-const mapRef = ref(null)
|
|
|
-const activeType = ref('')
|
|
|
-
|
|
|
-// ==================== 详情 ====================
|
|
|
-const detailVisible = ref(false)
|
|
|
-const detailRow = ref({})
|
|
|
-const detailMapRef = ref(null)
|
|
|
-
|
|
|
-/** 组装请求参数:空值不下发 */
|
|
|
-function buildParams() {
|
|
|
- const params = {}
|
|
|
- Object.keys(query.value).forEach((key) => {
|
|
|
- const value = query.value[key]
|
|
|
- if (value !== '' && value !== null && value !== undefined) {
|
|
|
- params[key] = value
|
|
|
- }
|
|
|
- })
|
|
|
- return params
|
|
|
-}
|
|
|
-
|
|
|
-/** 列表与地图共用一套筛选条件,一起刷新 */
|
|
|
-async function loadAll() {
|
|
|
- loading.value = true
|
|
|
- const params = buildParams()
|
|
|
- try {
|
|
|
- const [pageRes, mapRes] = await Promise.all([
|
|
|
- getFacilityPage(pageNum.value, pageSize.value, params),
|
|
|
- getFacilityMap(params)
|
|
|
- ])
|
|
|
- // 分页接口直接返回 Page 对象,地图接口返回 AjaxResult
|
|
|
- const pageData = pageRes && pageRes.code !== undefined ? (pageRes.data || {}) : (pageRes || {})
|
|
|
- tableData.value = pageData.records || []
|
|
|
- total.value = pageData.total || 0
|
|
|
- const mapData = mapRes && mapRes.code !== undefined ? (mapRes.data || []) : (mapRes || [])
|
|
|
- mapRecords.value = Array.isArray(mapData) ? mapData : []
|
|
|
- } catch (error) {
|
|
|
- console.error('加载工程设施数据失败', error)
|
|
|
- ElMessage.error('工程设施数据加载失败,请稍后重试')
|
|
|
- tableData.value = []
|
|
|
- mapRecords.value = []
|
|
|
- total.value = 0
|
|
|
- } finally {
|
|
|
- loading.value = false
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-/** 只翻页时不动地图数据 */
|
|
|
-async function loadPage() {
|
|
|
- loading.value = true
|
|
|
- try {
|
|
|
- const res = await getFacilityPage(pageNum.value, pageSize.value, buildParams())
|
|
|
- const pageData = res && res.code !== undefined ? (res.data || {}) : (res || {})
|
|
|
- tableData.value = pageData.records || []
|
|
|
- total.value = pageData.total || 0
|
|
|
- } catch (error) {
|
|
|
- console.error('加载工程设施列表失败', error)
|
|
|
- ElMessage.error('工程设施列表加载失败,请稍后重试')
|
|
|
- } finally {
|
|
|
- loading.value = false
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-function handleQuery() {
|
|
|
- pageNum.value = 1
|
|
|
- loadAll()
|
|
|
-}
|
|
|
-
|
|
|
-function handleSizeChange() {
|
|
|
- pageNum.value = 1
|
|
|
- loadPage()
|
|
|
-}
|
|
|
-
|
|
|
-function resetQuery() {
|
|
|
- query.value = emptyQuery()
|
|
|
- pageNum.value = 1
|
|
|
- loadAll()
|
|
|
-}
|
|
|
-
|
|
|
-// ==================== 地图数据 ====================
|
|
|
-/** 坐标:非法或 (0,0) 视为无坐标 */
|
|
|
-function toCoord(lng, lat) {
|
|
|
- const x = Number(lng)
|
|
|
- const y = Number(lat)
|
|
|
- if (!Number.isFinite(x) || !Number.isFinite(y)) return null
|
|
|
- if (x === 0 && y === 0) return null
|
|
|
- return { lng: x, lat: y }
|
|
|
-}
|
|
|
-
|
|
|
-/** 运行状态 → 地图图标状态(与列表标签同一口径) */
|
|
|
-const STATUS_KEY_MAP = { '0': 'normal', '1': 'workOrder', '2': 'offline', '3': 'alarm' }
|
|
|
-
|
|
|
-function statusKeyOf(status) {
|
|
|
- return STATUS_KEY_MAP[String(status)] || 'normal'
|
|
|
-}
|
|
|
-
|
|
|
-/** 图例色块取 gisPointStatusColors 的同色值,避免与地图图标不一致 */
|
|
|
-const STATUS_COLORS = {
|
|
|
- normal: '#2ecc71',
|
|
|
- alarm: '#e74c3c',
|
|
|
- workOrder: '#3498db',
|
|
|
- offline: '#95a5a6'
|
|
|
-}
|
|
|
-
|
|
|
-function statusColor(value) {
|
|
|
- return STATUS_COLORS[statusKeyOf(value)] || '#2ecc71'
|
|
|
-}
|
|
|
-
|
|
|
-/** 当前页签下的设施 */
|
|
|
-const visibleMapRecords = computed(() => {
|
|
|
- if (!activeType.value) return mapRecords.value
|
|
|
- return mapRecords.value.filter((row) => String(row.facilityType) === activeType.value)
|
|
|
-})
|
|
|
-
|
|
|
-const mapPoints = computed(() =>
|
|
|
- visibleMapRecords.value
|
|
|
- .map((row) => {
|
|
|
- const coord = toCoord(row.longitude, row.latitude)
|
|
|
- if (!coord) return null
|
|
|
- return {
|
|
|
- id: row.facilityId,
|
|
|
- name: row.facilityName || row.facilityCode || '设施',
|
|
|
- ...coord,
|
|
|
- statusKey: statusKeyOf(row.status),
|
|
|
- raw: row
|
|
|
- }
|
|
|
- })
|
|
|
- .filter(Boolean)
|
|
|
-)
|
|
|
-
|
|
|
-function switchType(value) {
|
|
|
- activeType.value = value
|
|
|
-}
|
|
|
-
|
|
|
-function fitMap() {
|
|
|
- mapRef.value?.fitBounds()
|
|
|
-}
|
|
|
-
|
|
|
-// 地图实例就绪后再贴合视野:地图初始化可能晚于接口数据返回
|
|
|
-function onMapReady() {
|
|
|
- nextTick(() => fitMap())
|
|
|
-}
|
|
|
-
|
|
|
-watch(
|
|
|
- mapPoints,
|
|
|
- () => {
|
|
|
- nextTick(() => fitMap())
|
|
|
- },
|
|
|
- { flush: 'post' }
|
|
|
-)
|
|
|
-
|
|
|
-// ==================== 详情 ====================
|
|
|
-const detailPoints = computed(() => {
|
|
|
- const coord = toCoord(detailRow.value.longitude, detailRow.value.latitude)
|
|
|
- if (!coord) return []
|
|
|
- return [{
|
|
|
- id: detailRow.value.facilityId,
|
|
|
- name: detailRow.value.facilityName || '设施',
|
|
|
- ...coord,
|
|
|
- statusKey: statusKeyOf(detailRow.value.status)
|
|
|
- }]
|
|
|
-})
|
|
|
-
|
|
|
-/** 地图点位点击:直接打开该设施详情 */
|
|
|
-function handlePointClick(point) {
|
|
|
- const row = point?.raw || point
|
|
|
- if (row && row.facilityId) openDetail(row)
|
|
|
-}
|
|
|
-
|
|
|
-async function openDetail(row) {
|
|
|
- detailRow.value = { ...row }
|
|
|
- detailVisible.value = true
|
|
|
- // 列表字段已够用,再取一次详情兜底(失败则沿用列表数据)
|
|
|
- try {
|
|
|
- const res = await getFacilityDetail(row.facilityId)
|
|
|
- const data = res && res.code !== undefined ? res.data : res
|
|
|
- if (data && typeof data === 'object') {
|
|
|
- detailRow.value = data
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- console.warn('工程设施详情接口未取到数据,使用列表数据展示', error)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-function onDetailOpened() {
|
|
|
- nextTick(() => {
|
|
|
- setTimeout(() => detailMapRef.value?.fitBounds(), 200)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-function onDetailMapReady() {
|
|
|
- nextTick(() => {
|
|
|
- setTimeout(() => detailMapRef.value?.fitBounds(), 120)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// ==================== 新增 / 修改 ====================
|
|
|
-const formVisible = ref(false)
|
|
|
-const formTitle = ref('新增工程设施')
|
|
|
-const formRef = ref(null)
|
|
|
-const submitting = ref(false)
|
|
|
-const editingId = ref('')
|
|
|
-const formMapRef = ref(null)
|
|
|
-
|
|
|
-const emptyForm = () => ({
|
|
|
- facilityId: '',
|
|
|
- facilityCode: '',
|
|
|
- facilityName: '',
|
|
|
- facilityType: '',
|
|
|
- facilityLevel: '',
|
|
|
- managementUnit: '',
|
|
|
- location: '',
|
|
|
- longitude: null,
|
|
|
- latitude: null,
|
|
|
- status: '0',
|
|
|
- buildDate: '',
|
|
|
- designFlow: null,
|
|
|
- designHead: null,
|
|
|
- storageCapacity: null,
|
|
|
- remark: ''
|
|
|
-})
|
|
|
-const form = ref(emptyForm())
|
|
|
-
|
|
|
-const formRules = {
|
|
|
- facilityCode: [{ required: true, message: '请输入设施编码', trigger: 'blur' }],
|
|
|
- facilityName: [{ required: true, message: '请输入设施名称', trigger: 'blur' }],
|
|
|
- facilityType: [{ required: true, message: '请选择设施类型', trigger: 'change' }],
|
|
|
- status: [{ required: true, message: '请选择运行状态', trigger: 'change' }]
|
|
|
-}
|
|
|
-
|
|
|
-function isFlowType(value) {
|
|
|
- return ['0', '2'].includes(String(value))
|
|
|
-}
|
|
|
-
|
|
|
-function isPumpType(value) {
|
|
|
- return String(value) === '2'
|
|
|
-}
|
|
|
-
|
|
|
-function isStorageType(value) {
|
|
|
- return String(value) === '1'
|
|
|
-}
|
|
|
-
|
|
|
-/** 表单里的坐标标记(内部已是 WGS84,与天地图坐标系一致) */
|
|
|
-const formPoints = computed(() => {
|
|
|
- const coord = toCoord(form.value.longitude, form.value.latitude)
|
|
|
- if (!coord) return []
|
|
|
- return [{
|
|
|
- id: 'form',
|
|
|
- name: form.value.facilityName || '待保存设施',
|
|
|
- ...coord,
|
|
|
- statusKey: statusKeyOf(form.value.status)
|
|
|
- }]
|
|
|
-})
|
|
|
-
|
|
|
-function handleAdd() {
|
|
|
- editingId.value = ''
|
|
|
- formTitle.value = '新增工程设施'
|
|
|
- form.value = emptyForm()
|
|
|
- formVisible.value = true
|
|
|
-}
|
|
|
-
|
|
|
-function handleEdit(row) {
|
|
|
- editingId.value = row.facilityId
|
|
|
- formTitle.value = '修改工程设施'
|
|
|
- form.value = {
|
|
|
- ...emptyForm(),
|
|
|
- ...row,
|
|
|
- facilityLevel: normalizeLevel(row.facilityLevel),
|
|
|
- buildDate: row.buildDate || '',
|
|
|
- longitude: row.longitude === null || row.longitude === undefined ? null : Number(row.longitude),
|
|
|
- latitude: row.latitude === null || row.latitude === undefined ? null : Number(row.latitude),
|
|
|
- designFlow: row.designFlow === null || row.designFlow === undefined ? null : Number(row.designFlow),
|
|
|
- designHead: row.designHead === null || row.designHead === undefined ? null : Number(row.designHead),
|
|
|
- storageCapacity: row.storageCapacity === null || row.storageCapacity === undefined ? null : Number(row.storageCapacity)
|
|
|
- }
|
|
|
- formVisible.value = true
|
|
|
-}
|
|
|
-
|
|
|
-/** 类型切换后清掉该类型不适用的参数,避免脏值落库 */
|
|
|
-watch(() => form.value.facilityType, (type) => {
|
|
|
- if (!formVisible.value) return
|
|
|
- if (!isFlowType(type)) form.value.designFlow = null
|
|
|
- if (!isPumpType(type)) form.value.designHead = null
|
|
|
- if (!isStorageType(type)) form.value.storageCapacity = null
|
|
|
-})
|
|
|
-
|
|
|
-function onFormOpened() {
|
|
|
- nextTick(() => {
|
|
|
- setTimeout(() => formMapRef.value?.fitBounds(), 200)
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-function onFormClosed() {
|
|
|
- formRef.value?.resetFields()
|
|
|
- form.value = emptyForm()
|
|
|
- editingId.value = ''
|
|
|
-}
|
|
|
+import DrainageGatePage from '@/views/subSystem/pipeNetwork/facilities/drainageGate/index.vue'
|
|
|
+import DrainageStoragePage from '@/views/subSystem/pipeNetwork/facilities/drainageStorage/index.vue'
|
|
|
+import PumpStationPage from '@/views/subSystem/pipeNetwork/facilities/pumpStation/index.vue'
|
|
|
|
|
|
-function onFormMapReady() {
|
|
|
- nextTick(() => {
|
|
|
- setTimeout(() => formMapRef.value?.fitBounds(), 120)
|
|
|
- })
|
|
|
+const { drainage_facility_type: typeDict } = useDict('drainage_facility_type')
|
|
|
+const TYPE_FALLBACK = {
|
|
|
+ '0': '闸门',
|
|
|
+ '1': '调蓄设施',
|
|
|
+ '2': '泵站'
|
|
|
}
|
|
|
-
|
|
|
-/** 地图点选:坐标直接回填,WGS84 与 CGCS2000 口径一致 */
|
|
|
-function handleMapPick(point) {
|
|
|
- const lng = Number(point?.lng)
|
|
|
- const lat = Number(point?.lat)
|
|
|
- if (!Number.isFinite(lng) || !Number.isFinite(lat)) return
|
|
|
- const wgsLng = Number(lng), wgsLat = Number(lat)
|
|
|
- form.value.longitude = Number(wgsLng.toFixed(8))
|
|
|
- form.value.latitude = Number(wgsLat.toFixed(8))
|
|
|
-}
|
|
|
-
|
|
|
-/** 只提交实体字段,避免把列表里的额外字段带进后端 */
|
|
|
-function buildPayload() {
|
|
|
- const source = form.value
|
|
|
- return {
|
|
|
- facilityCode: source.facilityCode,
|
|
|
- facilityName: source.facilityName,
|
|
|
- facilityType: source.facilityType,
|
|
|
- facilityLevel: source.facilityLevel || null,
|
|
|
- managementUnit: source.managementUnit || null,
|
|
|
- location: source.location || null,
|
|
|
- longitude: source.longitude,
|
|
|
- latitude: source.latitude,
|
|
|
- status: source.status,
|
|
|
- buildDate: source.buildDate || null,
|
|
|
- designFlow: source.designFlow,
|
|
|
- designHead: source.designHead,
|
|
|
- storageCapacity: source.storageCapacity,
|
|
|
- remark: source.remark || null
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-function submitForm() {
|
|
|
- formRef.value?.validate(async (valid) => {
|
|
|
- if (!valid) return
|
|
|
- submitting.value = true
|
|
|
- try {
|
|
|
- const payload = buildPayload()
|
|
|
- const res = editingId.value
|
|
|
- ? await updateFacility({ ...payload, facilityId: editingId.value })
|
|
|
- : await addFacility(payload)
|
|
|
- if (res && (res.code === 0 || res.code === 200)) {
|
|
|
- ElMessage.success(editingId.value ? '修改成功' : '新增成功')
|
|
|
- formVisible.value = false
|
|
|
- loadAll()
|
|
|
- } else {
|
|
|
- ElMessage.error(res?.msg || (editingId.value ? '修改失败' : '新增失败'))
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- console.error('保存工程设施失败', error)
|
|
|
- ElMessage.error('操作失败')
|
|
|
- } finally {
|
|
|
- submitting.value = false
|
|
|
- }
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-// ==================== 删除 ====================
|
|
|
-function handleSelectionChange(selection) {
|
|
|
- selectedIds.value = selection.map((item) => item.facilityId)
|
|
|
-}
|
|
|
-
|
|
|
-function handleDelete(row) {
|
|
|
- ElMessageBox.confirm(`确认删除设施「${row.facilityName}」吗?`, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(async () => {
|
|
|
- try {
|
|
|
- const res = await deleteFacility(row.facilityId)
|
|
|
- if (res && (res.code === 0 || res.code === 200)) {
|
|
|
- ElMessage.success('删除成功')
|
|
|
- // 删掉当前页最后一条时回退一页,避免停在空页
|
|
|
- if (tableData.value.length === 1 && pageNum.value > 1) pageNum.value -= 1
|
|
|
- loadAll()
|
|
|
- } else {
|
|
|
- ElMessage.error(res?.msg || '删除失败')
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- console.error('删除工程设施失败', error)
|
|
|
- ElMessage.error('删除失败')
|
|
|
- }
|
|
|
- }).catch(() => {})
|
|
|
-}
|
|
|
-
|
|
|
-function handleBatchDelete() {
|
|
|
- const ids = [...selectedIds.value]
|
|
|
- if (!ids.length) return
|
|
|
- ElMessageBox.confirm(`确认删除选中的 ${ids.length} 条设施吗?`, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(async () => {
|
|
|
- try {
|
|
|
- const res = await batchDeleteFacility(ids)
|
|
|
- if (!res || (res.code !== 0 && res.code !== 200)) {
|
|
|
- ElMessage.error(res?.msg || '删除失败')
|
|
|
- return
|
|
|
- }
|
|
|
- ElMessage.success('删除成功')
|
|
|
- selectedIds.value = []
|
|
|
- // 整页被删空时回退一页,避免停在空页
|
|
|
- if (tableData.value.length === ids.length && pageNum.value > 1) pageNum.value -= 1
|
|
|
- loadAll()
|
|
|
- } catch (error) {
|
|
|
- console.error('批量删除工程设施失败', error)
|
|
|
- ElMessage.error('删除失败')
|
|
|
- }
|
|
|
- }).catch(() => {})
|
|
|
-}
|
|
|
-
|
|
|
-// ==================== 展示辅助 ====================
|
|
|
-function dictItem(dictRef, value) {
|
|
|
- const list = dictRef?.value || []
|
|
|
- return list.find((item) => String(item.value) === String(value))
|
|
|
-}
|
|
|
-
|
|
|
-function typeLabel(value) {
|
|
|
- const fallback = TYPE_FALLBACK.find((item) => item.value === String(value))
|
|
|
- return dictItem(typeDict, value)?.label || fallback?.label || '-'
|
|
|
-}
|
|
|
-
|
|
|
-/** 等级:库里存编码,展示转中文;兼容历史中文值原样显示 */
|
|
|
-function levelLabel(value) {
|
|
|
- if (value === null || value === undefined || value === '') return ''
|
|
|
- const hit = levelOptions.find((item) => item.value === String(value))
|
|
|
- return hit ? hit.label : String(value)
|
|
|
-}
|
|
|
-
|
|
|
-/** 编辑回显用:把可能存在的历史中文等级归一成编码,保证下拉能选中 */
|
|
|
-function normalizeLevel(value) {
|
|
|
- if (value === null || value === undefined || value === '') return ''
|
|
|
- const hit = levelOptions.find((item) => item.value === String(value) || item.label === String(value))
|
|
|
- return hit ? hit.value : ''
|
|
|
-}
|
|
|
-
|
|
|
-function typeTagType(value) {
|
|
|
- const item = dictItem(typeDict, value)
|
|
|
- const listClass = item?.listClass || item?.elTagType || ''
|
|
|
- // Element Plus 没有 primary 类型,回落为默认样式
|
|
|
- return ['success', 'warning', 'danger', 'info'].includes(listClass) ? listClass : ''
|
|
|
-}
|
|
|
-
|
|
|
-function statusLabel(value) {
|
|
|
- const fallback = STATUS_FALLBACK.find((item) => item.value === String(value))
|
|
|
- return dictItem(statusDict, value)?.label || fallback?.label || '-'
|
|
|
-}
|
|
|
-
|
|
|
-function statusTagType(value) {
|
|
|
- const item = dictItem(statusDict, value)
|
|
|
- const listClass = item?.listClass || item?.elTagType || ''
|
|
|
- if (['success', 'warning', 'danger', 'info'].includes(listClass)) return listClass
|
|
|
- const fallback = { '0': 'success', '1': 'warning', '2': 'info', '3': 'danger' }
|
|
|
- return fallback[String(value)] || 'info'
|
|
|
+function tabLabel(value) {
|
|
|
+ const hit = (typeDict.value || []).find((item) => String(item.value) === String(value))
|
|
|
+ return hit?.label || TYPE_FALLBACK[value] || '-'
|
|
|
}
|
|
|
|
|
|
-function fmt(value) {
|
|
|
- if (value === null || value === undefined || value === '') return '-'
|
|
|
- return value
|
|
|
-}
|
|
|
-
|
|
|
-onMounted(() => {
|
|
|
- loadAll()
|
|
|
-})
|
|
|
+const activeTab = ref('gate')
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-.drainage-facility-page {
|
|
|
+.facility-tab-page {
|
|
|
padding: 16px;
|
|
|
}
|
|
|
|
|
|
-.card-header {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- gap: 12px;
|
|
|
-}
|
|
|
-
|
|
|
-.card-title {
|
|
|
- display: flex;
|
|
|
- align-items: baseline;
|
|
|
- gap: 10px;
|
|
|
- font-size: 15px;
|
|
|
- font-weight: 600;
|
|
|
- color: #303133;
|
|
|
-}
|
|
|
-
|
|
|
-.card-sub {
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 400;
|
|
|
- color: #909399;
|
|
|
-}
|
|
|
-
|
|
|
-.card-actions {
|
|
|
- display: flex;
|
|
|
- gap: 8px;
|
|
|
-}
|
|
|
-
|
|
|
-.map-card,
|
|
|
-.filter-card,
|
|
|
-.table-card {
|
|
|
- margin-bottom: 16px;
|
|
|
-}
|
|
|
-
|
|
|
-.map-tabs {
|
|
|
- display: flex;
|
|
|
- background: #f5f7fa;
|
|
|
- border: 1px solid #e4e7ed;
|
|
|
- border-radius: 4px 4px 0 0;
|
|
|
- border-bottom: none;
|
|
|
-}
|
|
|
-
|
|
|
-.map-tab {
|
|
|
- padding: 8px 24px;
|
|
|
- font-size: 14px;
|
|
|
- cursor: pointer;
|
|
|
- color: #606266;
|
|
|
- transition: all 0.2s;
|
|
|
- user-select: none;
|
|
|
-}
|
|
|
-
|
|
|
-.map-tab:hover {
|
|
|
- color: #409eff;
|
|
|
-}
|
|
|
-
|
|
|
-.map-tab.active {
|
|
|
- background: #409eff;
|
|
|
- color: #fff;
|
|
|
-}
|
|
|
-
|
|
|
-.map-wrap {
|
|
|
- position: relative;
|
|
|
- height: 360px;
|
|
|
- border: 1px solid #e4e7ed;
|
|
|
- border-radius: 0 0 4px 4px;
|
|
|
- overflow: hidden;
|
|
|
-}
|
|
|
-
|
|
|
-.map-empty {
|
|
|
- position: absolute;
|
|
|
- inset: 0;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- color: #909399;
|
|
|
- font-size: 13px;
|
|
|
- background: rgba(255, 255, 255, 0.72);
|
|
|
- pointer-events: none;
|
|
|
-}
|
|
|
-
|
|
|
-.map-legend {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- flex-wrap: wrap;
|
|
|
- gap: 16px;
|
|
|
- padding: 8px 4px 0;
|
|
|
- font-size: 12px;
|
|
|
- color: #606266;
|
|
|
-}
|
|
|
-
|
|
|
-.legend-title {
|
|
|
- color: #909399;
|
|
|
-}
|
|
|
-
|
|
|
-.legend-item {
|
|
|
- display: inline-flex;
|
|
|
- align-items: center;
|
|
|
- gap: 6px;
|
|
|
-}
|
|
|
-
|
|
|
-.legend-item i {
|
|
|
- display: inline-block;
|
|
|
- width: 10px;
|
|
|
- height: 10px;
|
|
|
- border-radius: 50%;
|
|
|
-}
|
|
|
-
|
|
|
-.filter-form {
|
|
|
- margin-bottom: -18px;
|
|
|
-}
|
|
|
-
|
|
|
-.toolbar {
|
|
|
- margin-bottom: 12px;
|
|
|
-}
|
|
|
-
|
|
|
-.pager {
|
|
|
- margin-top: 16px;
|
|
|
- justify-content: flex-end;
|
|
|
-}
|
|
|
-
|
|
|
-.detail-desc {
|
|
|
- margin-bottom: 16px;
|
|
|
-}
|
|
|
-
|
|
|
-.detail-map-section {
|
|
|
- margin-top: 8px;
|
|
|
-}
|
|
|
-
|
|
|
-.detail-map-title {
|
|
|
- margin-bottom: 8px;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 600;
|
|
|
- color: #303133;
|
|
|
-}
|
|
|
-
|
|
|
-.detail-map-wrap {
|
|
|
- position: relative;
|
|
|
- height: 280px;
|
|
|
- border: 1px solid #e4e7ed;
|
|
|
- border-radius: 4px;
|
|
|
- overflow: hidden;
|
|
|
-}
|
|
|
-
|
|
|
-.form-map-section {
|
|
|
- margin-top: 4px;
|
|
|
-}
|
|
|
-
|
|
|
-.form-map-title {
|
|
|
- display: flex;
|
|
|
- align-items: baseline;
|
|
|
- gap: 10px;
|
|
|
- margin-bottom: 8px;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 600;
|
|
|
- color: #303133;
|
|
|
-}
|
|
|
-
|
|
|
-.form-map-tip {
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 400;
|
|
|
- color: #909399;
|
|
|
-}
|
|
|
-
|
|
|
-.form-map-wrap {
|
|
|
- height: 300px;
|
|
|
- border: 1px solid #e4e7ed;
|
|
|
+.facility-tabs {
|
|
|
+ background: #fff;
|
|
|
+ padding: 16px;
|
|
|
border-radius: 4px;
|
|
|
- overflow: hidden;
|
|
|
}
|
|
|
</style>
|