-
+
@@ -60,22 +62,22 @@
@@ -89,35 +91,35 @@
@@ -126,10 +128,10 @@
-
-
+
+
@@ -178,87 +180,87 @@
{{ scope.row.lookupStatus ? "已读" : "未读" }}
+ >{{ scope.row.lookupStatus ? "已读" : "未读" }}
详情
+ type="primary"
+ size="mini"
+ style="font-weight: bold"
+ @click="handleView(scope.row)"
+ link
+ >详情
删除
+ type="danger"
+ size="mini"
+ v-if="roleKey !== 'administrator'"
+ @click="handleDelete(scope.row)"
+ link
+ >删除
@@ -278,9 +280,9 @@ import AirInfo from "@/components/content/airInfo/AirInfo.vue";
import BadGasInfo from "@/components/content/badGasInfo/BadGasInfo.vue";
import ManageBtn from "@/components/manageBtn/index.vue";
import TunnelTitle from "@/components/tunnelTitle/index.vue";
-import { dateFormat } from "@/utils/date.js";
-import { getToken } from "@/utils/auth";
-import { useAuthStore } from "@/store/userstore.js";
+import {dateFormat} from "@/utils/date.js";
+import {getToken} from "@/utils/auth";
+import {useAuthStore} from "@/store/userstore.js";
import {
getLargeScreen,
getLargeScreenInfo,
@@ -292,15 +294,15 @@ import {
endSimulation,
blastingSimulation,
} from "@/api/largeScreen";
-import { ElLoading, ElMessage, ElMessageBox } from "element-plus";
-import { getUserInfo } from "@/api/login";
-import { initSceneData } from "@/api/tunnelScene";
+import {ElLoading, ElMessage, ElMessageBox} from "element-plus";
+import {getUserInfo} from "@/api/login";
+import {initSceneData} from "@/api/tunnelScene";
import {
getScreenSimulateTunnel,
getSimulateTunnelDetail,
getTunnelList,
} from "@/api/tunnelManage";
-import { debounce } from "lodash";
+import {debounce} from "lodash";
const authStore = useAuthStore();
const router = useRouter();
@@ -308,6 +310,7 @@ const previewId = reactive(router.currentRoute.value.params.tunnelId);
const siteId = reactive(router.currentRoute.value.params.siteId);
const tunnelIdFlag = reactive(router.currentRoute.value.params.tunnelId);
const selectIndex = ref(-1);
+const previewRef = ref();
const isVisited = ref(false);
const isDetailVisited = ref(false);
const showFan = ref(false);
@@ -338,6 +341,7 @@ const tunnelBtn = ref();
const tunnelList = ref([]);
const tunnelId = ref(0);
const tunnelLength = ref(0);
+const tunnelAlias = ref('');
const constructionLength = ref(0);
const routeList = ref([]);
let socket = reactive("");
@@ -419,6 +423,9 @@ const submitDevice = () => {
showDevice.value = false;
getScreenInfo(previewId);
// initWebSocket()
+ nextTick(() => {
+ previewRef.value.rerender()
+ })
};
const simulatedBlasting = async () => {
await blastingSimulation(previewId, 10);
@@ -555,6 +562,7 @@ const getBasicData = (id) => {
getSimulateTunnelDetail(id).then((res) => {
if (res?.code === 1000) {
tunnelLength.value = res.data.totalLength;
+ tunnelAlias.value = res.data.tunnelAlias;
serialNumber.value = res.data.serialNumber;
constructionLength.value = res.data.constructionLength;
initWebSocket();
@@ -590,13 +598,13 @@ const getScreenInfo = (id) => {
// })
res.data.sensorList.forEach((item) => {
if (
- item.equipmentType === "dust" ||
- item.equipmentType === "carbonDioxide" ||
- item.equipmentType === "carbonMonoxide" ||
- item.equipmentType === "hydrogenSulfide" ||
- item.equipmentType === "sulfurDioxide" ||
- item.equipmentType === "sulfurMonoxide" ||
- item.equipmentType === "nitrogenDioxide"
+ item.equipmentType === "dust" ||
+ item.equipmentType === "carbonDioxide" ||
+ item.equipmentType === "carbonMonoxide" ||
+ item.equipmentType === "hydrogenSulfide" ||
+ item.equipmentType === "sulfurDioxide" ||
+ item.equipmentType === "sulfurMonoxide" ||
+ item.equipmentType === "nitrogenDioxide"
) {
showBadLoading.value = 0;
} else {
隧道总长度: {{ tunnelLength }}米
开始模拟开始模拟
模拟爆破
@@ -36,17 +36,19 @@
报警时间:
@@ -143,33 +145,33 @@