feat : 新增echarts中指定日期展示及细节优化

This commit is contained in:
2024-02-28 18:08:44 +08:00
parent 59aa2a92d1
commit ea4f72780f
19 changed files with 810 additions and 438 deletions

View File

@@ -1,11 +1,11 @@
<template>
<div class="site-bgc">
<div class="box-top">
<div class="back-tunnel" @click="router.push('/')">
<div class="back-tunnel" @click="handleGoHome">
<div class="back-icon"></div>
<span>返回</span>
</div>
<div class="tunnel-title"></div>
<tunnel-title/>
<div class="all-del-btn">
<div class="all-btn" style=" margin-right: 40px;" v-if="!showAddIcon" @click="handleAdd">
添加
@@ -105,9 +105,11 @@
<script setup>
import {editSite, getSiteDetail, getSiteList, addSite, deleteSite} from "@/api/site";
import {ElMessage, ElMessageBox} from "element-plus";
import TunnelTitle from "@/components/tunnelTitle/index.vue";
const router = useRouter()
const userId = reactive(router.currentRoute.value.params.userId)
const siteId = reactive(router.currentRoute.value.params.siteId)
const siteList = ref([])
const siteIds = ref([])
const siteNameList = ref([])
@@ -135,6 +137,9 @@ const formRules = ref({
siteName: [{required: true, message: '请输入站点名称', trigger:['blur','change']}]
})
const formInstance = ref()
const handleGoHome = () => {
router.push('/' + 'siteToHome/' + siteId)
}
const getList = () => {
getSiteList({
userId:userId,