邓洁: 修复bug
This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
<div class="site-box" v-for="item in siteList" :key="item.siteId">
|
||||
<div class="top">
|
||||
<span>站点名称:{{ item.siteName }}</span>
|
||||
<el-checkbox v-model="item.checked" size="large" @change="handleClickSite(item)"/>
|
||||
<el-checkbox v-if="!item.isDefault" v-model="item.checked" size="large" @change="handleClickSite(item)"/>
|
||||
<span v-else>默认</span>
|
||||
</div>
|
||||
<div class="box-center">
|
||||
<div class="left-img"></div>
|
||||
@@ -106,6 +107,7 @@ import {editSite, getSiteDetail, getSiteList, addSite, deleteSite} from "@/api/s
|
||||
import {ElMessage, ElMessageBox} from "element-plus";
|
||||
|
||||
const router = useRouter()
|
||||
const userId = reactive(router.currentRoute.value.params.userId)
|
||||
const siteList = ref([
|
||||
// {
|
||||
// siteName: '松江站',
|
||||
@@ -143,7 +145,6 @@ const info = ref({
|
||||
totalLength: 0
|
||||
})
|
||||
const title = ref('新增站点')
|
||||
const isClick = ref(false);
|
||||
const isVisited = ref(false);
|
||||
const total = ref(10);
|
||||
const showAddIcon = ref(true)
|
||||
@@ -163,6 +164,7 @@ const formRules = ref({
|
||||
const formInstance = ref()
|
||||
const getList = () => {
|
||||
getSiteList({
|
||||
userId:userId,
|
||||
...pageInfo
|
||||
}).then((res) => {
|
||||
total.value = res.data.total;
|
||||
@@ -199,7 +201,7 @@ const handleClickSite = (type) => {
|
||||
}
|
||||
}
|
||||
const goToAddTunnel = (siteId) => {
|
||||
router.push('/tunnel/' + siteId+'/s')
|
||||
router.push('/tunnel/' + siteId+'/s'+'/'+userId)
|
||||
}
|
||||
|
||||
//重置from表单
|
||||
@@ -258,7 +260,6 @@ const handleMoreDelete = () => {
|
||||
siteList.value.map(item=>{
|
||||
siteIds.value.map(siteItem=>{
|
||||
if(item.siteId===siteItem){
|
||||
console.log('item.tunnelList',item.tunnelList)
|
||||
if(item.tunnelList.length!==0){
|
||||
ElMessage.error('该站点下存在隧道,不能删除!')
|
||||
flag=false
|
||||
@@ -508,12 +509,12 @@ const handleCurrentChange = (val) => {
|
||||
color: #FFFFFF;
|
||||
line-height: 42px;
|
||||
|
||||
> div:last-child {
|
||||
cursor: pointer;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
||||
> span:last-child {
|
||||
padding:1px 8px;
|
||||
font-size: 32px;
|
||||
border: 2px solid #05FEFF;
|
||||
border-radius: 25px;
|
||||
border-radius:10px;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user