feat: add chart

This commit is contained in:
wangjiahao
2025-06-12 18:08:43 +08:00
parent 8859a8a984
commit 7cd0f919d1
2 changed files with 4 additions and 4 deletions
@@ -34,14 +34,12 @@
import { computed, reactive, ref } from 'vue'
import { useI18n } from 'vue-i18n'
const dialogShow = ref(false)
const curDvType = ref('dashboard')
const { t } = useI18n()
const selectComponentCount = computed(() => Object.keys(state.curMultiplexingComponents).length)
const state = reactive({
curMultiplexingComponents: {},
})
const dialogInit = (dvType = 'dashboard') => {
curDvType.value = dvType
const dialogInit = () => {
dialogShow.value = true
state.curMultiplexingComponents = {}
}
@@ -23,8 +23,10 @@ const snapshotStore = snapshotStoreWithOut()
const { snapshotIndex } = storeToRefs(snapshotStore)
const emits = defineEmits(['addComponent'])
const resourceGroupOptRef = ref(null)
const chatChartSelectionRef = ref(null)
const openViewDialog = () => {
// do addComponent
// @ts-expect-error @typescript-eslint/ban-ts-comment
chatChartSelectionRef.value?.dialogInit()
}
let nameEdit = ref(false)