|
@@ -66,6 +66,7 @@
|
|
<n-card>
|
|
<n-card>
|
|
<n-scrollbar style="max-height: 600px">
|
|
<n-scrollbar style="max-height: 600px">
|
|
<highcharts
|
|
<highcharts
|
|
|
|
+ ref="chart"
|
|
constructor-type="stockChart"
|
|
constructor-type="stockChart"
|
|
:options="chartOptions"
|
|
:options="chartOptions"
|
|
></highcharts>
|
|
></highcharts>
|
|
@@ -197,30 +198,27 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { Chart as highcharts } from "highcharts-vue";
|
|
import { Chart as highcharts } from "highcharts-vue";
|
|
|
|
|
|
-const onUpdateValues = (val) => {
|
|
|
|
- console.log(val);
|
|
|
|
- console.log(chartOptions);
|
|
|
|
- // val.forEach(() => {
|
|
|
|
- // chartOptions.series.push({
|
|
|
|
- // data: getData(n),
|
|
|
|
- // lineWidth: 0.5,
|
|
|
|
- // cursor: "pointer",
|
|
|
|
- // events: {
|
|
|
|
- // click() {
|
|
|
|
- // modal.showModal = true;
|
|
|
|
- // modal.title = "详情";
|
|
|
|
- // },
|
|
|
|
- // },
|
|
|
|
- // })
|
|
|
|
- // });
|
|
|
|
|
|
+const chart = ref(null);
|
|
|
|
+
|
|
|
|
+const onUpdateValues = () => {
|
|
|
|
+ let data = getData(n);
|
|
|
|
+ chart.value.chart.addSeries({
|
|
|
|
+ data,
|
|
|
|
+ lineWidth: 0.5,
|
|
|
|
+ cursor: "pointer",
|
|
|
|
+ events: {
|
|
|
|
+ click() {
|
|
|
|
+ modal.showModal = true;
|
|
|
|
+ modal.title = "详情";
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ });
|
|
};
|
|
};
|
|
|
|
|
|
const handleDelete = () => {
|
|
const handleDelete = () => {
|
|
console.log("delete");
|
|
console.log("delete");
|
|
};
|
|
};
|
|
|
|
|
|
-const value = ref(false);
|
|
|
|
-
|
|
|
|
const range = ref(null);
|
|
const range = ref(null);
|
|
|
|
|
|
const generalOptions = ["groode", "veli good", "emazing", "lidiculous"].map(
|
|
const generalOptions = ["groode", "veli good", "emazing", "lidiculous"].map(
|
|
@@ -230,7 +228,7 @@ const generalOptions = ["groode", "veli good", "emazing", "lidiculous"].map(
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
-const selectedAll = ref(false);
|
|
|
|
|
|
+const selectedAll = ref(null);
|
|
|
|
|
|
// 表单数据
|
|
// 表单数据
|
|
const formValue = reactive({
|
|
const formValue = reactive({
|