|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
- <el-dialog title="庭院管网目录" :visible.sync="show" width="1000px" append-to-body>
|
|
|
+ <el-dialog title="阀井目录" :visible.sync="show" width="1100px" append-to-body>
|
|
|
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
|
|
- <el-tab-pane label="庭院管网" name="1">
|
|
|
+ <el-tab-pane label="阀井目录" name="1">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true">
|
|
|
<el-form-item label="阀井名称" prop="valveWellName">
|
|
|
<el-input
|
|
@@ -99,6 +99,17 @@
|
|
|
<el-table-column label="压力等级" align="center" prop="pressureRating" />
|
|
|
<el-table-column label="是否需要下井才能开关阀门" align="center" prop="isXyxjcnkg" />
|
|
|
<el-table-column label="备注" align="center" prop="remarks" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="操作" align="center" fixed>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<pagination
|
|
|
v-show="total1>0"
|
|
@@ -120,8 +131,9 @@
|
|
|
import {addNetworkRelation, listNetworkRelation, myListArea} from "@/api/gas/networkRelation";
|
|
|
import Cookies from 'js-cookie'
|
|
|
import {listArea} from "@/api/gas/area";
|
|
|
-import {addValvewellRelation, myListValveWell} from "@/api/gas/valvewellRelation";
|
|
|
+import {addValvewellRelation, delValvewellRelation, myListValveWell} from "@/api/gas/valvewellRelation";
|
|
|
import {listValveWellPosition} from "@/api/gas/valveWellPosition";
|
|
|
+import {delRegulatorBoxRelation} from "@/api/gas/regulatorBoxRelation";
|
|
|
export default {
|
|
|
name: "vw",
|
|
|
dicts: ['district'],
|
|
@@ -141,6 +153,7 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
valveWellName: undefined,
|
|
|
+ jobNum:undefined,
|
|
|
position: undefined,
|
|
|
longitude: undefined,
|
|
|
latitude: undefined,
|
|
@@ -176,6 +189,7 @@ export default {
|
|
|
queryParams1: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
+ jobNum:undefined,
|
|
|
valveWellName: undefined,
|
|
|
position: undefined,
|
|
|
longitude: undefined,
|
|
@@ -193,6 +207,19 @@ export default {
|
|
|
},created() {
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleDelete(row) {
|
|
|
+ const ids = row.id;
|
|
|
+ this.$modal.confirm('是否确认删除编号为"' + ids + '"的数据项?').then(() => {
|
|
|
+ this.loading1 = true;
|
|
|
+ return delValvewellRelation(ids,this.jobNum);
|
|
|
+ }).then(() => {
|
|
|
+ this.loading1 = false;
|
|
|
+ this.handleClick();
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ }).finally(() => {
|
|
|
+ this.loading1 = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
handleClick(tab,event){
|
|
|
console.log(this.activeName)
|
|
|
this.loading1 = true;
|
|
@@ -213,7 +240,11 @@ export default {
|
|
|
if (res.code===200){
|
|
|
this.$msgbox.alert('添加成功')
|
|
|
this.loading1=false
|
|
|
+ this.getList()
|
|
|
}
|
|
|
+ }).catch(e=>{
|
|
|
+ this.loading1=false
|
|
|
+ this.getList()
|
|
|
})
|
|
|
},
|
|
|
init(user){
|
|
@@ -242,6 +273,7 @@ export default {
|
|
|
/** 查询调压箱管理列表 */
|
|
|
getList(user) {
|
|
|
this.loading = true;
|
|
|
+ this.queryParams.jobNum=this.jobNum
|
|
|
listValveWellPosition(this.queryParams).then(response => {
|
|
|
this.list = response.rows;
|
|
|
this.total = response.total;
|