邓洁: 用户管理及全选功能字体更改

This commit is contained in:
邓洁
2023-12-18 23:04:20 +08:00
parent 75a24b31d1
commit e4fada8d75
7 changed files with 283 additions and 41 deletions

View File

@@ -10,7 +10,7 @@
<div class="all-btn" style=" margin-right: 40px;" v-if="!showAddIcon" @click="handleAdd">
添加
</div>
<div class="all-btn">
<div class="all-btn" @click="handleChooseAll">
全选
</div>
<div class="all-btn del-btn" @click="handleMoreDelete">
@@ -19,7 +19,7 @@
</div>
</div>
<div class="box-content">
<div class="site-box" v-for="item in siteList" :key="item.tunnelId">
<div class="site-box" v-for="item in tunnelList" :key="item.tunnelId">
<div class="top">
<span>{{ item.tunnelName }}</span>
<span>施工长度500米 隧道长度10公里</span>
@@ -99,7 +99,7 @@ import {ElMessage, ElMessageBox} from "element-plus";
const router = useRouter()
const showAddIcon = ref(true)
const siteId = reactive(router.currentRoute.value.params.siteId)
const siteList = ref([
const tunnelList = ref([
{
tunnelName: '一号隧道',
num: 1,
@@ -219,7 +219,11 @@ const form = ref({
tunnelLength: '',
remarks: ''
});
const handleChooseAll=()=>{
tunnelList.value.map(item=>{
item.checked=!item.checked
})
}
const handleEdit = () => {
title.value = '编辑隧道'
isVisited.value = true