修改台账

This commit is contained in:
guanj
2026-04-13 10:48:32 +08:00
parent 2601068a55
commit cfcbfc45d6
7 changed files with 67 additions and 37 deletions

View File

@@ -20,14 +20,8 @@
<el-button @click="handleBack" :icon="Back">返回</el-button>
</div>
<!-- v-loading="loading" -->
<el-tabs
class="home_body"
type="border-card"
v-model.trim="activeName1"
@tab-click="handleClick"
>
<!-- v-loading="loading" -->
<el-tabs class="home_body" type="border-card" v-model.trim="activeName1" @tab-click="handleClick">
<el-tab-pane label="瞬时波形" name="ssbx" :style="'height:' + bxecharts + ';overflow-y: auto;'">
<shushiboxi
v-if="isWp && wp && activeName == 'ssbx' && showBoxi"
@@ -110,9 +104,15 @@ const value = ref(1)
const isWp = ref(false)
const boxoList: any = ref([])
const getWpData = (val: any, list: any) => {
wp.value = val
isWp.value = true
boxoList.value = list
wp.value = {}
isWp.value = false
boxoList.value = []
setTimeout(() => {
wp.value = val
isWp.value = true
boxoList.value = list
}, 100)
}
const changeView = () => {
showBoxi.value = false
@@ -140,7 +140,6 @@ const handleBack = () => {
emit('handleHideCharts')
}
const setHeight = (h: any, vh: any, num = 1) => {
console.log('🚀 ~ setHeight ~ h:', h)
if (h != false) {
parentHeight.value = h
}

View File

@@ -28,6 +28,7 @@ import { mainHeight } from '@/utils/layout'
import { getVisitorConfig, updateVisitorConfig } from '@/api/cs-device-boot/user'
import { ref, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
import { debounce } from 'lodash-es'
const pageHeight = mainHeight(60)
const loading = ref(true)
const defaultCheckedKeys: any = ref([])
@@ -35,6 +36,7 @@ const tableData = ref([])
const treeRef = ref(null)
const ignoreCheckChange = ref(false)
const checkChange = (data: any) => {
console.log('🚀 ~ checkChange ~ data:', data)
if (data.data.pName == '便携式设备') {
if (ignoreCheckChange.value) {
ignoreCheckChange.value = false // 清除标记,不影响后续正常触发
@@ -55,7 +57,7 @@ const checkChange = (data: any) => {
updateVisitorConfigs()
}
}
const updateVisitorConfigs = () => {
const updateVisitorConfigs = debounce (() => {
const result = Array.from(new Set(defaultCheckedKeys.value))
updateVisitorConfig(
result.map(item => {
@@ -68,7 +70,7 @@ const updateVisitorConfigs = () => {
getVisitorConfigs()
}
})
}
},500)
const getVisitorConfigs = () => {
getVisitorConfig().then((res: any) => {
if (res.code === 'A0000') {