|
@@ -48,6 +48,10 @@
|
|
<a-input v-model:value="stationName" size="small" placeholder="请输入" @blur="changeName" />
|
|
<a-input v-model:value="stationName" size="small" placeholder="请输入" @blur="changeName" />
|
|
<div class="modal-lj">连接状态:</div>
|
|
<div class="modal-lj">连接状态:</div>
|
|
<a-radio-group v-model:value="stationStatus" size="small" :options="ljList" @change="changeStatus" />
|
|
<a-radio-group v-model:value="stationStatus" size="small" :options="ljList" @change="changeStatus" />
|
|
|
|
+ <a-popconfirm title="删除内容无法恢复,是否删除" ok-text="确定" cancel-text="取消" @confirm="handleDelStation"
|
|
|
|
+ @cancel="handleCancelDelStation">
|
|
|
|
+ <a-button type="primary" preIcon="ant-design:delete-outlined" size="mini">删除</a-button>
|
|
|
|
+ </a-popconfirm>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -179,6 +183,10 @@
|
|
<a-input v-model:value="stationName" size="small" placeholder="请输入" @blur="changeName" />
|
|
<a-input v-model:value="stationName" size="small" placeholder="请输入" @blur="changeName" />
|
|
<div class="modal-lj">连接状态:</div>
|
|
<div class="modal-lj">连接状态:</div>
|
|
<a-radio-group v-model:value="stationStatus" size="small" :options="ljList" @change="changeStatus" />
|
|
<a-radio-group v-model:value="stationStatus" size="small" :options="ljList" @change="changeStatus" />
|
|
|
|
+ <a-popconfirm title="删除内容无法恢复,是否删除" ok-text="确定" cancel-text="取消" @confirm="handleDelStation"
|
|
|
|
+ @cancel="handleCancelDelStation">
|
|
|
|
+ <a-button type="primary" preIcon="ant-design:delete-outlined" size="mini">删除</a-button>
|
|
|
|
+ </a-popconfirm>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -356,6 +364,7 @@ import {
|
|
set158StationData,
|
|
set158StationData,
|
|
get158StationDevices,
|
|
get158StationDevices,
|
|
set158StationRead,
|
|
set158StationRead,
|
|
|
|
+ remove158Substation
|
|
} from '../safetyList.api';
|
|
} from '../safetyList.api';
|
|
import { historyColumns } from '../historyLsit.data';
|
|
import { historyColumns } from '../historyLsit.data';
|
|
import { columnsDetail, columns } from '../safetyList.data';
|
|
import { columnsDetail, columns } from '../safetyList.data';
|
|
@@ -705,7 +714,7 @@ async function handleClick(data) {
|
|
//获取分站实时监测信息
|
|
//获取分站实时监测信息
|
|
async function getSubStationList() {
|
|
async function getSubStationList() {
|
|
let res = await subStationList({ strtype: 'modbus' });
|
|
let res = await subStationList({ strtype: 'modbus' });
|
|
- if (res.length != 0) {
|
|
|
|
|
|
+ if (res.length == 0) {
|
|
cardList.value = res;
|
|
cardList.value = res;
|
|
openNum.value = cardList.value?.filter((v) => v.linkstatus == 1)['length'];
|
|
openNum.value = cardList.value?.filter((v) => v.linkstatus == 1)['length'];
|
|
clsoeNum.value = cardList.value?.filter((v) => v.linkstatus == 0)['length'];
|
|
clsoeNum.value = cardList.value?.filter((v) => v.linkstatus == 0)['length'];
|
|
@@ -970,6 +979,17 @@ function pageChange(val) {
|
|
getStationList1();
|
|
getStationList1();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//删除左侧分站
|
|
|
|
+async function handleDelStation(){
|
|
|
|
+ let res=await remove158Substation({stationId:stationId.value})
|
|
|
|
+ console.log(res,'删除左侧分站')
|
|
|
|
+ if(res){
|
|
|
|
+ getSubStationList();
|
|
|
|
+ getStationList1();
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+//取消删除左侧分站
|
|
|
|
+function handleCancelDelStation(){}
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getSubStationList();
|
|
getSubStationList();
|
|
getStationList1();
|
|
getStationList1();
|
|
@@ -1096,7 +1116,7 @@ onUnmounted(() => {
|
|
position: relative;
|
|
position: relative;
|
|
// width: 242px;
|
|
// width: 242px;
|
|
width: 182px;
|
|
width: 182px;
|
|
- height: 110px;
|
|
|
|
|
|
+ height: 120px;
|
|
margin-bottom: 15px;
|
|
margin-bottom: 15px;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
@@ -1104,7 +1124,7 @@ onUnmounted(() => {
|
|
.card-itemN {
|
|
.card-itemN {
|
|
position: relative;
|
|
position: relative;
|
|
width: 85px;
|
|
width: 85px;
|
|
- height: 110px;
|
|
|
|
|
|
+ height: 120px;
|
|
background: url('/@/assets/images/zd-2.png') no-repeat center;
|
|
background: url('/@/assets/images/zd-2.png') no-repeat center;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -1122,7 +1142,7 @@ onUnmounted(() => {
|
|
.card-itemL {
|
|
.card-itemL {
|
|
position: relative;
|
|
position: relative;
|
|
width: 85px;
|
|
width: 85px;
|
|
- height: 110px;
|
|
|
|
|
|
+ height: 120px;
|
|
background: url('/@/assets/images/zd-3.png') no-repeat center;
|
|
background: url('/@/assets/images/zd-3.png') no-repeat center;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -1140,7 +1160,7 @@ onUnmounted(() => {
|
|
.card-itemD {
|
|
.card-itemD {
|
|
position: relative;
|
|
position: relative;
|
|
width: 85px;
|
|
width: 85px;
|
|
- height: 110px;
|
|
|
|
|
|
+ height: 120px;
|
|
background: url('/@/assets/images/zd-1.png') no-repeat center;
|
|
background: url('/@/assets/images/zd-1.png') no-repeat center;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -1256,7 +1276,7 @@ onUnmounted(() => {
|
|
position: relative;
|
|
position: relative;
|
|
// width: 242px;
|
|
// width: 242px;
|
|
width: 182px;
|
|
width: 182px;
|
|
- height: 110px;
|
|
|
|
|
|
+ height: 120px;
|
|
margin-bottom: 15px;
|
|
margin-bottom: 15px;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
@@ -1264,7 +1284,7 @@ onUnmounted(() => {
|
|
.card-itemN {
|
|
.card-itemN {
|
|
position: relative;
|
|
position: relative;
|
|
width: 85px;
|
|
width: 85px;
|
|
- height: 110px;
|
|
|
|
|
|
+ height: 120px;
|
|
background: url('/@/assets/images/zd-2.png') no-repeat center;
|
|
background: url('/@/assets/images/zd-2.png') no-repeat center;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -1282,7 +1302,7 @@ onUnmounted(() => {
|
|
.card-itemL {
|
|
.card-itemL {
|
|
position: relative;
|
|
position: relative;
|
|
width: 85px;
|
|
width: 85px;
|
|
- height: 110px;
|
|
|
|
|
|
+ height: 120px;
|
|
background: url('/@/assets/images/zd-3.png') no-repeat center;
|
|
background: url('/@/assets/images/zd-3.png') no-repeat center;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -1300,7 +1320,7 @@ onUnmounted(() => {
|
|
.card-itemD {
|
|
.card-itemD {
|
|
position: relative;
|
|
position: relative;
|
|
width: 85px;
|
|
width: 85px;
|
|
- height: 110px;
|
|
|
|
|
|
+ height: 120px;
|
|
background: url('/@/assets/images/zd-1.png') no-repeat center;
|
|
background: url('/@/assets/images/zd-1.png') no-repeat center;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -1368,7 +1388,12 @@ onUnmounted(() => {
|
|
padding-top: 20px !important;
|
|
padding-top: 20px !important;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+.zxm-picker,
|
|
|
|
+.zxm-input {
|
|
|
|
+ border: 1px solid #3ad8ff77 !important;
|
|
|
|
+ background-color: #ffffff !important;
|
|
|
|
+ color: #fff !important;
|
|
|
|
+}
|
|
::v-deep(.zxm-radio-wrapper) {
|
|
::v-deep(.zxm-radio-wrapper) {
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
@@ -1387,11 +1412,12 @@ onUnmounted(() => {
|
|
::v-deep(.zxm-form-item-label > label) {
|
|
::v-deep(.zxm-form-item-label > label) {
|
|
color: #fff !important;
|
|
color: #fff !important;
|
|
}
|
|
}
|
|
-.zxm-picker,
|
|
|
|
-.zxm-input {
|
|
|
|
- border: 1px solid #3ad8ff77 !important;
|
|
|
|
- background-color: #ffffff !important;
|
|
|
|
- color: #fff !important;
|
|
|
|
|
|
+
|
|
|
|
+::v-deep .zxm-btn{
|
|
|
|
+line-height:15px;
|
|
|
|
+height:20px;
|
|
|
|
+padding:0px 17px;
|
|
|
|
+font-size:12px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<style>
|
|
<style>
|