Merge pull request '邓洁 : 修改隧道管理鼠标悬浮背景及跳转' (#173) from dengjie into dev

Reviewed-on: http://git.feashow.cn/clay/tunnel-cloud-web/pulls/173
This commit is contained in:
odjbin
2023-12-20 09:54:36 +00:00
3 changed files with 20 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -19,7 +19,8 @@
</div> </div>
</div> </div>
<div class="box-content"> <div class="box-content">
<div class="site-box" v-for="item in tunnelList" :key="item.tunnelId"> <div class="site-box" v-for="item in tunnelList" :key="item.tunnelId"
@click="handleGoToEditTunnel(item.tunnelId)">
<div class="top"> <div class="top">
<span>{{ item.tunnelName }}</span> <span>{{ item.tunnelName }}</span>
<span>施工长度500米 隧道长度10公里</span> <span>施工长度500米 隧道长度10公里</span>
@@ -87,7 +88,7 @@
</el-dialog> </el-dialog>
<div class="pagination"> <div class="pagination">
<span>首页</span> <span>首页</span>
<el-pagination background :page-size="6" :total="50" prev-text="上一页" next-text="下一页" layout="prev, pager, next" /> <el-pagination background :page-size="6" :total="50" prev-text="上一页" next-text="下一页" layout="prev, pager, next"/>
<span>尾页</span> <span>尾页</span>
</div> </div>
</div> </div>
@@ -219,9 +220,16 @@ const form = ref({
tunnelLength: '', tunnelLength: '',
remarks: '' remarks: ''
}); });
const handleChooseAll=()=>{ const isEdit = ref(false)
tunnelList.value.map(item=>{ const bgImage = computed(() => (isEdit.value ? "zdgl_bj.png" : "sdgl_bjtq.png"));
item.checked=!item.checked
const handleGoToEditTunnel = (tunnelId) => {
isEdit.value = true
router.push('/edit')
}
const handleChooseAll = () => {
tunnelList.value.map(item => {
item.checked = !item.checked
}) })
} }
const handleEdit = () => { const handleEdit = () => {
@@ -403,6 +411,7 @@ const handleMoreDelete = () => {
justify-content: space-between; justify-content: space-between;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
.add-box { .add-box {
cursor: pointer; cursor: pointer;
font-weight: bold; font-weight: bold;
@@ -422,15 +431,20 @@ const handleMoreDelete = () => {
} }
.site-box { .site-box {
cursor: pointer;
margin-top: 50px; margin-top: 50px;
margin-right: 1.5%; margin-right: 1.5%;
padding: 40px 30px; padding: 40px 30px;
width: 925px; width: 925px;
height: 550px; height: 550px;
background-image: url('@/assets/images/site/zdgl_bj.png'); background-image: url('@/assets/images/tunnel/zdgl_bj.png');
//box-sizing: border-box; //box-sizing: border-box;
position: relative; position: relative;
&:hover {
background-image: url('@/assets/images/tunnel/sdgl_bjtq.png');
}
&:nth-child(4n) { &:nth-child(4n) {
margin-right: 0; margin-right: 0;
} }