From 76bdc87c50fb00282e7867580df7a79e22f60f2b Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Wed, 28 Feb 2024 23:52:05 +0800
Subject: [PATCH] =?UTF-8?q?feat=20:=20=E9=9A=A7=E9=81=93=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=BD=E5=B7=A5=E9=95=BF=E5=BA=A6=E8=BE=93?=
=?UTF-8?q?=E5=85=A5=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/edit/edit.vue | 19 +++++--------------
src/views/tunnel-manage/index.vue | 6 +++---
2 files changed, 8 insertions(+), 17 deletions(-)
diff --git a/src/views/edit/edit.vue b/src/views/edit/edit.vue
index eca13aa..8254db5 100644
--- a/src/views/edit/edit.vue
+++ b/src/views/edit/edit.vue
@@ -25,9 +25,9 @@
-
-
-
+
+
+
是
@@ -56,7 +56,6 @@ const router = useRouter();
const tunnelId = reactive(router.currentRoute.value.params.tunnelId);
const userId = reactive(router.currentRoute.value.params.userId);
const type = reactive(router.currentRoute.value.params.type);
-const constructionLength = ref(0)
const modelEquipmentList = ref(null)
const form = ref({
tunnelName: "",
@@ -65,13 +64,10 @@ const form = ref({
isDefault: false,
remarks: "",
});
-const getTunnel = (type) => {
+const getTunnel = () => {
getTunnelDetail(tunnelId).then((res) => {
if (res?.code === 1000) {
form.value = res.data;
- if (type == 1) {
- constructionLength.value = res.data.constructionLength
- }
}
});
};
@@ -89,11 +85,7 @@ const handleGoTunnelMgr = () => {
};
const getTunnelInfo = () => {
initSceneData(tunnelId).then((res) => {
- constructionLength.value = res.data.constructionLength
modelEquipmentList.value = JSON.parse(res.data.tunnelThreeConfig)
- if(constructionLength.value===null){
- constructionLength.value=0
- }
if(modelEquipmentList.value===null){
modelEquipmentList.value=[]
}
@@ -103,8 +95,7 @@ const getTunnelInfo = () => {
tunnelAlias: form.value.tunnelAlias,
serialNumber: form.value.serialNumber,
remarks: form.value.remarks,
- constructionLength: constructionLength.value,
- // constructionLength: form.value.constructionLength,
+ constructionLength: form.value.constructionLength,
tunnelLength: form.value.totalLength,
isDefault: form.value.isDefault,
modelEquipmentList: modelEquipmentList.value,
diff --git a/src/views/tunnel-manage/index.vue b/src/views/tunnel-manage/index.vue
index be10f9d..e027b80 100644
--- a/src/views/tunnel-manage/index.vue
+++ b/src/views/tunnel-manage/index.vue
@@ -79,9 +79,9 @@
-
-
-
+
+
+
是