|
@@ -67,6 +67,9 @@
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button type="success" plain icon="Download" size="small" @click="handleExport" v-hasPermi="['waterSupply:waterPipe:export']">导出</el-button>
|
|
<el-button type="success" plain icon="Download" size="small" @click="handleExport" v-hasPermi="['waterSupply:waterPipe:export']">导出</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button type="info" plain icon="Upload" size="small" @click="importVisible = true" v-hasPermi="['waterSupply:waterPipe:import']">导入</el-button>
|
|
|
|
|
+ </el-col>
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList" />
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList" />
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
@@ -84,6 +87,10 @@
|
|
|
<el-table-column label="长度(m)" align="center" prop="pipeLength" width="100" />
|
|
<el-table-column label="长度(m)" align="center" prop="pipeLength" width="100" />
|
|
|
<el-table-column label="起点位置" align="center" prop="startPoint" :show-overflow-tooltip="true" min-width="140" />
|
|
<el-table-column label="起点位置" align="center" prop="startPoint" :show-overflow-tooltip="true" min-width="140" />
|
|
|
<el-table-column label="终点位置" align="center" prop="endPoint" :show-overflow-tooltip="true" min-width="140" />
|
|
<el-table-column label="终点位置" align="center" prop="endPoint" :show-overflow-tooltip="true" min-width="140" />
|
|
|
|
|
+ <el-table-column label="起点经度" align="center" prop="startLongitude" width="120" />
|
|
|
|
|
+ <el-table-column label="起点纬度" align="center" prop="startLatitude" width="120" />
|
|
|
|
|
+ <el-table-column label="终点经度" align="center" prop="endLongitude" width="120" />
|
|
|
|
|
+ <el-table-column label="终点纬度" align="center" prop="endLatitude" width="120" />
|
|
|
<el-table-column label="铺设年份" align="center" prop="layingYear" width="100" />
|
|
<el-table-column label="铺设年份" align="center" prop="layingYear" width="100" />
|
|
|
<el-table-column label="设计压力(MPa)" align="center" prop="pressureRating" width="130" />
|
|
<el-table-column label="设计压力(MPa)" align="center" prop="pressureRating" width="130" />
|
|
|
<el-table-column label="状态" align="center" width="80">
|
|
<el-table-column label="状态" align="center" width="80">
|
|
@@ -174,6 +181,10 @@
|
|
|
<el-input v-model="form.endPoint" placeholder="请输入终点位置" maxlength="200" />
|
|
<el-input v-model="form.endPoint" placeholder="请输入终点位置" maxlength="200" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="12"><el-form-item label="起点经度" prop="startLongitude"><el-input-number v-model="form.startLongitude" :precision="8" :step="0.00000001" controls-position="right" style="width: 100%" /></el-form-item></el-col>
|
|
|
|
|
+ <el-col :span="12"><el-form-item label="起点纬度" prop="startLatitude"><el-input-number v-model="form.startLatitude" :precision="8" :step="0.00000001" controls-position="right" style="width: 100%" /></el-form-item></el-col>
|
|
|
|
|
+ <el-col :span="12"><el-form-item label="终点经度" prop="endLongitude"><el-input-number v-model="form.endLongitude" :precision="8" :step="0.00000001" controls-position="right" style="width: 100%" /></el-form-item></el-col>
|
|
|
|
|
+ <el-col :span="12"><el-form-item label="终点纬度" prop="endLatitude"><el-input-number v-model="form.endLatitude" :precision="8" :step="0.00000001" controls-position="right" style="width: 100%" /></el-form-item></el-col>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item label="备注" prop="remark">
|
|
<el-form-item label="备注" prop="remark">
|
|
|
<el-input v-model="form.remark" type="textarea" :rows="3" placeholder="请输入备注" maxlength="500" />
|
|
<el-input v-model="form.remark" type="textarea" :rows="3" placeholder="请输入备注" maxlength="500" />
|
|
@@ -204,6 +215,10 @@
|
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="起点位置" :span="2">{{ detailData.startPoint }}</el-descriptions-item>
|
|
<el-descriptions-item label="起点位置" :span="2">{{ detailData.startPoint }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="终点位置" :span="2">{{ detailData.endPoint }}</el-descriptions-item>
|
|
<el-descriptions-item label="终点位置" :span="2">{{ detailData.endPoint }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="起点经度">{{ detailData.startLongitude }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="起点纬度">{{ detailData.startLatitude }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="终点经度">{{ detailData.endLongitude }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="终点纬度">{{ detailData.endLatitude }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="备注" :span="2">{{ detailData.remark }}</el-descriptions-item>
|
|
<el-descriptions-item label="备注" :span="2">{{ detailData.remark }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="创建者">{{ detailData.createBy }}</el-descriptions-item>
|
|
<el-descriptions-item label="创建者">{{ detailData.createBy }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="创建时间">{{ detailData.createTime }}</el-descriptions-item>
|
|
<el-descriptions-item label="创建时间">{{ detailData.createTime }}</el-descriptions-item>
|
|
@@ -215,6 +230,8 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-drawer>
|
|
</el-drawer>
|
|
|
|
|
|
|
|
|
|
+ <WaterFacilityImportDialog v-model="importVisible" title="管网信息" upload-url="/api/water/pipe/importData" template-url="/api/water/pipe/importTemplate" @imported="getList" />
|
|
|
|
|
+
|
|
|
<!-- 回收站对话框 -->
|
|
<!-- 回收站对话框 -->
|
|
|
<el-dialog title="回收站" v-model:visible="recycleVisible" width="900px" append-to-body>
|
|
<el-dialog title="回收站" v-model:visible="recycleVisible" width="900px" append-to-body>
|
|
|
<el-form :model="recycleQuery" ref="recycleForm" :inline="true" size="small">
|
|
<el-form :model="recycleQuery" ref="recycleForm" :inline="true" size="small">
|
|
@@ -262,9 +279,11 @@ import { getDicts } from '@/api/system/dict/data'
|
|
|
import { saveAs } from 'file-saver'
|
|
import { saveAs } from 'file-saver'
|
|
|
import { exportWaterPipe } from '@/api/pipeNetwork/waterSupply'
|
|
import { exportWaterPipe } from '@/api/pipeNetwork/waterSupply'
|
|
|
import { buildWaterFacilityQuery, getRequestErrorMessage, normalizePipeStatus } from '@/utils/waterFacilityQuery'
|
|
import { buildWaterFacilityQuery, getRequestErrorMessage, normalizePipeStatus } from '@/utils/waterFacilityQuery'
|
|
|
|
|
+import WaterFacilityImportDialog from '@/views/subSystem/waterSupply/components/WaterFacilityImportDialog.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'WaterPipeInfo',
|
|
name: 'WaterPipeInfo',
|
|
|
|
|
+ components: { WaterFacilityImportDialog },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
|
|
@@ -290,6 +309,7 @@ export default {
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
// 详情显示
|
|
// 详情显示
|
|
|
detailVisible: false,
|
|
detailVisible: false,
|
|
|
|
|
+ importVisible: false,
|
|
|
// 详情数据
|
|
// 详情数据
|
|
|
detailData: {},
|
|
detailData: {},
|
|
|
// 回收站显示
|
|
// 回收站显示
|