diff --git a/src/assets/images/tunnel/sdgl_bjtq.png b/src/assets/images/tunnel/sdgl_bjtq.png new file mode 100644 index 0000000..c5879a6 Binary files /dev/null and b/src/assets/images/tunnel/sdgl_bjtq.png differ diff --git a/src/assets/images/tunnel/zdgl_bj.png b/src/assets/images/tunnel/zdgl_bj.png new file mode 100644 index 0000000..4dba7f0 Binary files /dev/null and b/src/assets/images/tunnel/zdgl_bj.png differ diff --git a/src/views/tunnel-manage/index.vue b/src/views/tunnel-manage/index.vue index e6eac53..f2092f6 100644 --- a/src/views/tunnel-manage/index.vue +++ b/src/views/tunnel-manage/index.vue @@ -19,7 +19,8 @@
-
+
{{ item.tunnelName }} 施工长度500米 隧道长度10公里 @@ -87,7 +88,7 @@
@@ -219,9 +220,16 @@ const form = ref({ tunnelLength: '', remarks: '' }); -const handleChooseAll=()=>{ - tunnelList.value.map(item=>{ - item.checked=!item.checked +const isEdit = ref(false) +const bgImage = computed(() => (isEdit.value ? "zdgl_bj.png" : "sdgl_bjtq.png")); + +const handleGoToEditTunnel = (tunnelId) => { + isEdit.value = true + router.push('/edit') +} +const handleChooseAll = () => { + tunnelList.value.map(item => { + item.checked = !item.checked }) } const handleEdit = () => { @@ -403,6 +411,7 @@ const handleMoreDelete = () => { justify-content: space-between; box-sizing: border-box; overflow: hidden; + .add-box { cursor: pointer; font-weight: bold; @@ -422,15 +431,20 @@ const handleMoreDelete = () => { } .site-box { + cursor: pointer; margin-top: 50px; margin-right: 1.5%; padding: 40px 30px; width: 925px; height: 550px; - background-image: url('@/assets/images/site/zdgl_bj.png'); + background-image: url('@/assets/images/tunnel/zdgl_bj.png'); //box-sizing: border-box; position: relative; + &:hover { + background-image: url('@/assets/images/tunnel/sdgl_bjtq.png'); + } + &:nth-child(4n) { margin-right: 0; }