From fa9d2b5117227f263ad9aa15b71bddb3fe64ac81 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 29 七月 2025 13:21:28 +0800 Subject: [PATCH] 新增巡查任务编辑功能 --- src/components/grid/GridSearch.vue | 19 +++++-------------- 1 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/components/grid/GridSearch.vue b/src/components/grid/GridSearch.vue index cbb977a..406818d 100644 --- a/src/components/grid/GridSearch.vue +++ b/src/components/grid/GridSearch.vue @@ -17,10 +17,10 @@ label="缁忕含搴�" :content="data.gridCell.longitude + ', ' + data.gridCell.latitude" /> - <DescriptionsListItem label="鍥涜嚦鑼冨洿" content="/" /> + <!-- <DescriptionsListItem label="鍥涜嚦鑼冨洿" content="/" /> --> </DescriptionsList> - <el-tabs v-model="activeName" > + <el-tabs v-model="activeName"> <el-tab-pane label="缃戞牸鏁版嵁" name="first"> <DescriptionsList> <DescriptionsListItem @@ -134,21 +134,11 @@ const data = computed(() => { if (gridStore.selectedGridCellAndDataDetail) { - // const { gridCell, gridDataDetail } = - // gridStore.selectedGridCellAndDataDetail; - // const res = []; - // // 濡傛灉缃戞牸鏁版嵁涓鸿瀺鍚堟暟鎹紝鍒欓渶瑕佸悓姝ュ睍绀哄嚭鍘熷鏁版嵁 - // if (gridDataDetail.mixData) { - // } return { gridCell: gridStore.selectedGridCellAndDataDetail.gridCell, gridDataDetail: gridStore.selectedGridCellAndDataDetail.gridDataDetail, extData: gridStore.selectedGridCellAndDataDetail.extData }; - // console.log(gridStore.selectedGridCellAndDataDetail); - - // return undefined; - // return gridStore.selectedGridCellAndDataDetail; } else { return undefined; } @@ -158,6 +148,7 @@ () => gridStore.selectedGridCellAndDataDetail, (nv, ov) => { if (nv != ov) { + activeName.value = 'first'; dialogVisible.value = true; } }, @@ -165,10 +156,10 @@ ); </script> <style scoped> -:deep(.el-tabs__item){ +:deep(.el-tabs__item) { color: rgba(221, 221, 221, 0.806); } -:deep(.is-active){ +:deep(.is-active) { color: #f0ff1d; } </style> -- Gitblit v1.9.3