修改点击列问题
This commit is contained in:
@@ -191,9 +191,9 @@ const openCustomColumn = () => {
|
|||||||
table.reactData.customStore.activeBtn = false
|
table.reactData.customStore.activeBtn = false
|
||||||
}
|
}
|
||||||
if (customColumnVisibleOnPress) {
|
if (customColumnVisibleOnPress) {
|
||||||
table.closeCustom?.()
|
table?.closeCustom?.()
|
||||||
} else {
|
} else {
|
||||||
table.openCustom?.()
|
table?.openCustom?.()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
@@ -75,6 +75,10 @@ import type TableStoreClass from '@/utils/tableStore'
|
|||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||||
|
|
||||||
|
defineOptions({
|
||||||
|
inheritAttrs: false
|
||||||
|
})
|
||||||
|
|
||||||
const config = useConfig()
|
const config = useConfig()
|
||||||
const tableRef = ref<VxeTableInstance>()
|
const tableRef = ref<VxeTableInstance>()
|
||||||
const tableStore = inject('tableStore') as TableStoreClass
|
const tableStore = inject('tableStore') as TableStoreClass
|
||||||
@@ -151,9 +155,9 @@ const openCustomColumn = () => {
|
|||||||
table.reactData.customStore.activeBtn = false
|
table.reactData.customStore.activeBtn = false
|
||||||
}
|
}
|
||||||
if (customColumnVisibleOnPress) {
|
if (customColumnVisibleOnPress) {
|
||||||
table.closeCustom?.()
|
table?.closeCustom?.()
|
||||||
} else {
|
} else {
|
||||||
table.openCustom?.()
|
table?.openCustom?.()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const getRef = () => {
|
const getRef = () => {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main online">
|
<div class="default-main online">
|
||||||
<div class="online_header">
|
<div class="online_header">
|
||||||
<TableHeader date-picker area ref="tableHeaderRef">
|
<TableHeader date-picker area ref="tableHeaderRef" showCustomColumn>
|
||||||
<template #select>
|
<template #select>
|
||||||
<el-form-item label="统计类型">
|
<el-form-item label="统计类型">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
:tree-config="{ transform: true, parentField: 'uPid', rowField: 'uId' }"
|
:tree-config="{ transform: true, parentField: 'uPid', rowField: 'uId' }"
|
||||||
:scroll-y="{ enabled: true }"
|
:scroll-y="{ enabled: true }"
|
||||||
v-if="activeName == 0"
|
|
||||||
/>
|
/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :name="1" :lazy="true" label="稳态指标符合性占比图">
|
<el-tab-pane :name="1" :lazy="true" label="稳态指标符合性占比图">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main online">
|
<div class="default-main online">
|
||||||
<div class="online_header">
|
<div class="online_header">
|
||||||
<TableHeader date-picker area ref="tableHeaderRef">
|
<TableHeader date-picker area ref="tableHeaderRef" showCustomColumn>
|
||||||
<template #select>
|
<template #select>
|
||||||
<el-form-item label="统计类型">
|
<el-form-item label="统计类型">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
:tree-config="{ transform: true, parentField: 'uPid', rowField: 'uId' }"
|
:tree-config="{ transform: true, parentField: 'uPid', rowField: 'uId' }"
|
||||||
:scroll-y="{ enabled: true }"
|
:scroll-y="{ enabled: true }"
|
||||||
v-if="activeName == 0"
|
|
||||||
/>
|
/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :name="1" :lazy="true" label="稳态合格率统计图">
|
<el-tab-pane :name="1" :lazy="true" label="稳态合格率统计图">
|
||||||
|
|||||||
Reference in New Issue
Block a user