diff --git a/src/views/chart/components/ContentCharts/hooks/asideHook.ts b/src/views/chart/components/ContentCharts/hooks/asideHook.ts
index 0ac2e962..fa51c5fa 100644
--- a/src/views/chart/components/ContentCharts/hooks/asideHook.ts
+++ b/src/views/chart/components/ContentCharts/hooks/asideHook.ts
@@ -5,7 +5,7 @@ import { themeColor, setItem, getCharts } from './layoutHook'
import { PackagesCategoryEnum, PackagesCategoryName } from '@/packages/index.d'
// 图表
import { usePackagesStore } from '@/store/modules/packagesStore/packagesStore'
-import { ChartLayoutStoreEnums } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
+import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
// 图标
const { BarChartIcon } = icon.ionicons5
const {
@@ -68,9 +68,9 @@ const clickItemHandle = (key: string, item: any) => {
selectOptions.value = item
// 处理折叠
if (beforeSelect === key) {
- setItem(ChartLayoutStoreEnums.CHARTS, !getCharts.value)
+ setItem(ChartLayoutStoreEnum.CHARTS, !getCharts.value)
} else {
- setItem(ChartLayoutStoreEnums.CHARTS, true)
+ setItem(ChartLayoutStoreEnum.CHARTS, true)
}
beforeSelect = key
}
diff --git a/src/views/chart/components/ContentDetails/index.vue b/src/views/chart/components/ContentDetails/index.vue
index 09776b7f..a74654c2 100644
--- a/src/views/chart/components/ContentDetails/index.vue
+++ b/src/views/chart/components/ContentDetails/index.vue
@@ -1,8 +1,8 @@
-
-
+
+
(getDetails.value)
const collapsedHindle = () => {
collapsed.value = true
- setItem(ChartLayoutStoreEnums.DETAILS, true)
+ setItem(ChartLayoutStoreEnum.DETAILS, true)
}
const expandHindle = () => {
collapsed.value = false
- setItem(ChartLayoutStoreEnums.DETAILS, false)
+ setItem(ChartLayoutStoreEnum.DETAILS, false)
}
watch(getDetails, (newData) => {
diff --git a/src/views/chart/components/ContentDrag/index.ts b/src/views/chart/components/ContentDrag/index.ts
deleted file mode 100644
index 08a77860..00000000
--- a/src/views/chart/components/ContentDrag/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import ContentDrag from './index.vue'
-
-export { ContentDrag }
diff --git a/src/views/chart/components/ContentDrag/index.vue b/src/views/chart/components/ContentDrag/index.vue
deleted file mode 100644
index 2d5d3f74..00000000
--- a/src/views/chart/components/ContentDrag/index.vue
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/chart/components/ContentEdit/components/EditRange/index.ts b/src/views/chart/components/ContentEdit/components/EditRange/index.ts
new file mode 100644
index 00000000..eadec58a
--- /dev/null
+++ b/src/views/chart/components/ContentEdit/components/EditRange/index.ts
@@ -0,0 +1,3 @@
+import EditRange from './index.vue'
+
+export { EditRange }
diff --git a/src/views/chart/components/ContentEdit/components/EditRange/index.vue b/src/views/chart/components/ContentEdit/components/EditRange/index.vue
new file mode 100644
index 00000000..2e6e494f
--- /dev/null
+++ b/src/views/chart/components/ContentEdit/components/EditRange/index.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/chart/components/ContentEdit/hooks/useStore.ts b/src/views/chart/components/ContentEdit/hooks/useStore.ts
new file mode 100644
index 00000000..371fbd77
--- /dev/null
+++ b/src/views/chart/components/ContentEdit/hooks/useStore.ts
@@ -0,0 +1,6 @@
+import { useChartEditStoreStore } from '@/store/modules/chartEditStore/chartEditStore'
+const chartEditStore = useChartEditStoreStore()
+
+export const getChartEditStore = () => {
+ return chartEditStore
+}
diff --git a/src/views/chart/components/ContentEdit/index.ts b/src/views/chart/components/ContentEdit/index.ts
new file mode 100644
index 00000000..4a4766a1
--- /dev/null
+++ b/src/views/chart/components/ContentEdit/index.ts
@@ -0,0 +1,3 @@
+import ContentEdit from './index.vue'
+
+export { ContentEdit }
diff --git a/src/views/chart/components/ContentEdit/index.vue b/src/views/chart/components/ContentEdit/index.vue
new file mode 100644
index 00000000..4472bf92
--- /dev/null
+++ b/src/views/chart/components/ContentEdit/index.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/chart/components/ContentLayers/index.vue b/src/views/chart/components/ContentLayers/index.vue
index 6b24ec8f..248f8487 100644
--- a/src/views/chart/components/ContentLayers/index.vue
+++ b/src/views/chart/components/ContentLayers/index.vue
@@ -18,13 +18,13 @@
diff --git a/src/views/chart/components/HeaderLeftBtn/index.vue b/src/views/chart/components/HeaderLeftBtn/index.vue
index b16d7a32..1d922645 100644
--- a/src/views/chart/components/HeaderLeftBtn/index.vue
+++ b/src/views/chart/components/HeaderLeftBtn/index.vue
@@ -26,7 +26,7 @@ import { renderIcon, goDialog, goHome } from '@/utils'
import { icon } from '@/plugins'
const { LayersIcon, BarChartIcon, PrismIcon, HomeIcon } = icon.ionicons5
import { useChartLayoutStore } from '@/store/modules/chartLayoutStore/chartLayoutStore'
-import { ChartLayoutStoreEnums } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
+import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
const { setItem } = useChartLayoutStore()
const { getLayers, getCharts, getDetails } = toRefs(useChartLayoutStore())
@@ -40,19 +40,19 @@ type ItemType = {
const btnList = reactive([
{
- key: ChartLayoutStoreEnums.CHARTS,
+ key: ChartLayoutStoreEnum.CHARTS,
select: getCharts,
title: '图表组件',
icon: renderIcon(BarChartIcon)
},
{
- key: ChartLayoutStoreEnums.LAYERS,
+ key: ChartLayoutStoreEnum.LAYERS,
select: getLayers,
title: '图层控制',
icon: renderIcon(LayersIcon)
},
{
- key: ChartLayoutStoreEnums.DETAILS,
+ key: ChartLayoutStoreEnum.DETAILS,
select: getDetails,
title: '详情设置',
icon: renderIcon(PrismIcon)
@@ -62,7 +62,7 @@ const btnList = reactive([
// store 描述的是展示的值,所以和 ContentDetails 的 collapsed 是相反的
const styleHandle = (item: ItemType) => {
- if (item.key === ChartLayoutStoreEnums.DETAILS) {
+ if (item.key === ChartLayoutStoreEnum.DETAILS) {
return item.select ? '' : 'success'
}
return item.select ? 'success' : ''
diff --git a/src/views/chart/index.vue b/src/views/chart/index.vue
index 1c46625f..83a851e1 100644
--- a/src/views/chart/index.vue
+++ b/src/views/chart/index.vue
@@ -22,17 +22,31 @@