|
@@ -3,8 +3,8 @@
|
|
<div class="FD">
|
|
<div class="FD">
|
|
<!-- 光标 -->
|
|
<!-- 光标 -->
|
|
<div v-if="BGshow" class="eigenvalue">
|
|
<div v-if="BGshow" class="eigenvalue">
|
|
- <el-checkbox-group v-model="checkedGB">
|
|
|
|
- <el-checkbox v-for="(item, index) in GBcheckList" :key="index" :label="item.val">
|
|
|
|
|
|
+ <el-checkbox-group v-model="checkedGB" @change="handlecursor">
|
|
|
|
+ <el-checkbox v-for="(item, index) in GBcheckList" :key="index" :label="item.val" :disabled="item.disabled">
|
|
{{ item.val }}
|
|
{{ item.val }}
|
|
</el-checkbox>
|
|
</el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
@@ -19,17 +19,22 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- ECharts 图表容器 -->
|
|
<!-- ECharts 图表容器 -->
|
|
-
|
|
|
|
<div class="line-chart" ref="chart"></div>
|
|
<div class="line-chart" ref="chart"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
-import * as echarts from "echarts"; // 导入 echarts 库
|
|
|
|
|
|
+import * as echarts from "echarts";
|
|
|
|
+import cursorReferenceMixin from "./spectrogramcharts/cursorReferenceMixin";
|
|
|
|
+import Bdgb from "./spectrogramcharts/Bdgb";
|
|
|
|
+import Xdgb from "./spectrogramcharts/Xdgb";
|
|
|
|
+import Tjgb from "./spectrogramcharts/Tjgb";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
- name: "TimedomainCharts", // 组件名称
|
|
|
|
|
|
+ name: "TimedomainCharts",
|
|
|
|
+ mixins: [cursorReferenceMixin, Bdgb, Xdgb, Tjgb],
|
|
|
|
+
|
|
props: {
|
|
props: {
|
|
currentIndex: {
|
|
currentIndex: {
|
|
type: Number,
|
|
type: Number,
|
|
@@ -60,16 +65,16 @@ export default {
|
|
return {
|
|
return {
|
|
chartInstance: null,
|
|
chartInstance: null,
|
|
option: null,
|
|
option: null,
|
|
- TZshow: false,
|
|
|
|
|
|
+ // TZshow: false,
|
|
BGshow: false,
|
|
BGshow: false,
|
|
PXshow: false,
|
|
PXshow: false,
|
|
spectrumList: {},
|
|
spectrumList: {},
|
|
|
|
|
|
GBcheckList: [
|
|
GBcheckList: [
|
|
- { val: "添加光标" },
|
|
|
|
- { val: "谐波光标" },
|
|
|
|
- { val: "边带光标" },
|
|
|
|
- { val: "移动峰值" },
|
|
|
|
|
|
+ { val: "添加光标", checked: false, disabled: false },
|
|
|
|
+ { val: "谐波光标", checked: false, disabled: false },
|
|
|
|
+ { val: "边带光标", checked: false, disabled: false },
|
|
|
|
+ { val: "移动峰值", checked: false, disabled: false },
|
|
],
|
|
],
|
|
PXcheckList: [
|
|
PXcheckList: [
|
|
{ val: "Fr", checked: false },
|
|
{ val: "Fr", checked: false },
|
|
@@ -85,62 +90,201 @@ export default {
|
|
BSF: [],
|
|
BSF: [],
|
|
FTF: [],
|
|
FTF: [],
|
|
B3P: [],
|
|
B3P: [],
|
|
-
|
|
|
|
checkedGB: [],
|
|
checkedGB: [],
|
|
checkedValues: [],
|
|
checkedValues: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- // 监听 chartData 和 chartLabels 的变化,重新绘制图表
|
|
|
|
- chartData(newData) {
|
|
|
|
- this.updateChart(newData, this.chartLabels);
|
|
|
|
- },
|
|
|
|
- chartLabels(newLabels) {
|
|
|
|
- this.updateChart(this.chartData, newLabels);
|
|
|
|
- },
|
|
|
|
spectrumListTwo(newValue) {
|
|
spectrumListTwo(newValue) {
|
|
- this.spectrumList = newValue; // 将 spectrumListTwo 的新值赋给 spectrumList
|
|
|
|
|
|
+ this.spectrumList = newValue;
|
|
if (this.chartInstance) {
|
|
if (this.chartInstance) {
|
|
- this.updateChart(this.spectrumList.y, this.spectrumList.x); // 更新图表
|
|
|
|
|
|
+ this.updateChart(this.spectrumList.y, this.spectrumList.x);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
spectrumList: {
|
|
spectrumList: {
|
|
handler(newValue) {
|
|
handler(newValue) {
|
|
if (!newValue) return;
|
|
if (!newValue) return;
|
|
- console.log(newValue, "newValue");
|
|
|
|
if (this.chartInstance) {
|
|
if (this.chartInstance) {
|
|
- this.updateChart(newValue.y, newValue.x); // 只在 chartInstance 初始化后更新图表
|
|
|
|
|
|
+ this.updateChart(newValue.y, newValue.x);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- deep: true, // 深度监听
|
|
|
|
|
|
+ deep: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ beforeDestroy() {
|
|
|
|
+ if (this.chartInstance) {
|
|
|
|
+ this.chartInstance.getZr().off("dblclick", this.handleDoubleClick);
|
|
|
|
+ this.chartInstance
|
|
|
|
+ .getZr()
|
|
|
|
+ .off("mousemove", this.handleSidebandCursorMove);
|
|
|
|
+ this.chartInstance.dispose();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
-
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- this.initializeChart(); // 延迟2秒后调用
|
|
|
|
|
|
+ this.initializeChart();
|
|
this.getTime();
|
|
this.getTime();
|
|
- }, 500); // 500毫秒,即0.5秒
|
|
|
|
|
|
+ }, 500);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
methods: {
|
|
methods: {
|
|
initializeChart() {
|
|
initializeChart() {
|
|
const chartDom = this.$refs.chart;
|
|
const chartDom = this.$refs.chart;
|
|
if (chartDom && !this.chartInstance) {
|
|
if (chartDom && !this.chartInstance) {
|
|
- this.chartInstance = echarts.init(chartDom); // 仅初始化一次
|
|
|
|
|
|
+ this.chartInstance = echarts.init(chartDom);
|
|
|
|
+ this.chartInstance.getZr().on("dblclick", this.handleDoubleClick);
|
|
}
|
|
}
|
|
|
|
|
|
- // 使用 $nextTick 确保数据更新后再渲染图表
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
if (this.chartInstance && this.spectrumList.y && this.spectrumList.x) {
|
|
if (this.chartInstance && this.spectrumList.y && this.spectrumList.x) {
|
|
- this.updateChart(this.spectrumList.y, this.spectrumList.x); // 更新图表
|
|
|
|
|
|
+ this.updateChart(this.spectrumList.y, this.spectrumList.x);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 光标
|
|
|
|
+ handlecursor() {
|
|
|
|
+ // 特殊光标类型数组
|
|
|
|
+ const specialCursors = ["添加光标","移动峰值", "边带光标", "谐波光标"];
|
|
|
|
+
|
|
|
|
+ // 检查是否有多个特殊光标被选中
|
|
|
|
+ const selectedSpecials = specialCursors.filter((type) =>
|
|
|
|
+ this.checkedGB.includes(type)
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // 如果多于1个,则只保留第一个
|
|
|
|
+ if (selectedSpecials.length > 1) {
|
|
|
|
+ this.checkedGB = [
|
|
|
|
+ ...this.checkedGB.filter((val) => !specialCursors.includes(val)),
|
|
|
|
+ selectedSpecials[0], // 保留第一个选中的
|
|
|
|
+ ];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 其余逻辑保持不变...
|
|
|
|
+ const isMoveChecked = this.checkedGB.includes("移动峰值");
|
|
|
|
+ const isSidebandChecked = this.checkedGB.includes("边带光标");
|
|
|
|
+ const isHarmonicChecked = this.checkedGB.includes("谐波光标");
|
|
|
|
+
|
|
|
|
+ isMoveChecked ? this.handleMoveCursor() : this.removeCursor();
|
|
|
|
+ isSidebandChecked
|
|
|
|
+ ? this.enableSidebandCursor()
|
|
|
|
+ : this.disableSidebandCursor();
|
|
|
|
+ isHarmonicChecked
|
|
|
|
+ ? this.enableHarmonicCursor()
|
|
|
|
+ : this.disableHarmonicCursor();
|
|
|
|
+
|
|
|
|
+ // 设置互斥disabled状态
|
|
|
|
+ this.GBcheckList = this.GBcheckList.map((item) => ({
|
|
|
|
+ ...item,
|
|
|
|
+ disabled:
|
|
|
|
+ specialCursors.includes(item.val) &&
|
|
|
|
+ this.checkedGB.some(
|
|
|
|
+ (val) => val !== item.val && specialCursors.includes(val)
|
|
|
|
+ ),
|
|
|
|
+ }));
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 特征值
|
|
|
|
+ handleCheckChange() {
|
|
|
|
+ this.PXcheckList.forEach((item) => {
|
|
|
|
+ item.checked = this.checkedValues.includes(item.val);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ this.updateFeatureLines();
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ updateFeatureLines() {
|
|
|
|
+ const newFeatureLines = {
|
|
|
|
+ Fr: this.checkedValues.includes("Fr") ? this.spectrumList.fn_Gen : [],
|
|
|
|
+ BPFI: this.checkedValues.includes("BPFI") ? this.spectrumList.BPFI : [],
|
|
|
|
+ BPFO: this.checkedValues.includes("BPFO") ? this.spectrumList.BPFO : [],
|
|
|
|
+ BSF: this.checkedValues.includes("BSF") ? this.spectrumList.BSF : [],
|
|
|
|
+ FTF: this.checkedValues.includes("FTF") ? this.spectrumList.FTF : [],
|
|
|
|
+ B3P: this.checkedValues.includes("3P")
|
|
|
|
+ ? Array.isArray(this.spectrumList.B3P)
|
|
|
|
+ ? this.spectrumList.B3P
|
|
|
|
+ : [{ Xaxis: this.spectrumList.B3P, val: "3P" }]
|
|
|
|
+ : [],
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ if (this.chartInstance) {
|
|
|
|
+ const currentOption = this.chartInstance.getOption();
|
|
|
|
+
|
|
|
|
+ // 获取现有的光标系列
|
|
|
|
+ const cursorLineSeries =
|
|
|
|
+ currentOption.series.find((s) => s.id === "CURSOR_LINE_SERIES") || {};
|
|
|
|
+ const cursorPointSeries =
|
|
|
|
+ currentOption.series.find((s) => s.id === "CURSOR_POINT_SERIES") ||
|
|
|
|
+ {};
|
|
|
|
+ const cursorHighLineSeries =
|
|
|
|
+ currentOption.series.find((s) => s.id === "PEAK_REFERENCE_LINE") ||
|
|
|
|
+ {};
|
|
|
|
+
|
|
|
|
+ // 生成新的特征值系列
|
|
|
|
+ const featureSeries = this.generateSeries(newFeatureLines);
|
|
|
|
+
|
|
|
|
+ this.chartInstance.setOption(
|
|
|
|
+ {
|
|
|
|
+ series: [
|
|
|
|
+ currentOption.series[0], // 主数据系列
|
|
|
|
+ ...featureSeries.slice(1), // 新的特征值系列
|
|
|
|
+ cursorLineSeries, // 保留光标线系列
|
|
|
|
+ cursorPointSeries, // 保留光标点系列
|
|
|
|
+ cursorHighLineSeries, // 保留峰值参考线
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ { replaceMerge: ["series"] }
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ generateSeries(featureLines) {
|
|
|
|
+ const createMarkLine = (dataSource, color) => ({
|
|
|
|
+ type: "line",
|
|
|
|
+ markLine: {
|
|
|
|
+ silent: false,
|
|
|
|
+ lineStyle: { color, type: "dashed", width: 1 },
|
|
|
|
+ symbol: ["arrow", "none"],
|
|
|
|
+ label: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: "end",
|
|
|
|
+ formatter: ({ data }) => data.val,
|
|
|
|
+ },
|
|
|
|
+ emphasis: {
|
|
|
|
+ lineStyle: { color: "#FF6A00", width: 2 },
|
|
|
|
+ label: {
|
|
|
|
+ show: true,
|
|
|
|
+ formatter: ({ value }) => `特征值: ${value}`,
|
|
|
|
+ color: "#000",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ data: dataSource.map(({ Xaxis, val }) => ({ xAxis: Xaxis, val })),
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ const markLines = [
|
|
|
|
+ { data: featureLines.Fr, color: "#A633FF" },
|
|
|
|
+ { data: featureLines.BPFI, color: "#23357e" },
|
|
|
|
+ { data: featureLines.BPFO, color: "#42a0ae" },
|
|
|
|
+ { data: featureLines.BSF, color: "#008080" },
|
|
|
|
+ { data: featureLines.FTF, color: "#af254f" },
|
|
|
|
+ { data: featureLines.B3P, color: "#FFD700" },
|
|
|
|
+ ].map(({ data, color }) => createMarkLine(data, color));
|
|
|
|
+
|
|
|
|
+ return [
|
|
|
|
+ {
|
|
|
|
+ name: "数据系列",
|
|
|
|
+ type: "line",
|
|
|
|
+ data: this.spectrumList.x.map((x, i) => [x, this.spectrumList.y[i]]),
|
|
|
|
+ symbol: "none",
|
|
|
|
+ lineStyle: { color: "#162961", width: 1 },
|
|
|
|
+ itemStyle: { color: "#162961", borderColor: "#fff", borderWidth: 1 },
|
|
|
|
+ large: true,
|
|
|
|
+ },
|
|
|
|
+ ...markLines,
|
|
|
|
+ ];
|
|
|
|
+ },
|
|
|
|
|
|
- // 更新图表数据
|
|
|
|
updateChart(data, labels) {
|
|
updateChart(data, labels) {
|
|
if (
|
|
if (
|
|
!this.chartInstance ||
|
|
!this.chartInstance ||
|
|
@@ -281,86 +425,7 @@ export default {
|
|
this.chartInstance.setOption(option);
|
|
this.chartInstance.setOption(option);
|
|
},
|
|
},
|
|
|
|
|
|
- handleCheckChange() {
|
|
|
|
- this.PXcheckList.forEach((item) => {
|
|
|
|
- item.checked = this.checkedValues.includes(item.val);
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- // 构建新的特征频率数据
|
|
|
|
- const newFeatureLines = {
|
|
|
|
- Fr: this.checkedValues.includes("Fr") ? this.spectrumList.fn_Gen : [],
|
|
|
|
- BPFI: this.checkedValues.includes("BPFI") ? this.spectrumList.BPFI : [],
|
|
|
|
- BPFO: this.checkedValues.includes("BPFO") ? this.spectrumList.BPFO : [],
|
|
|
|
- BSF: this.checkedValues.includes("BSF") ? this.spectrumList.BSF : [],
|
|
|
|
- FTF: this.checkedValues.includes("FTF") ? this.spectrumList.FTF : [],
|
|
|
|
- B3P: this.checkedValues.includes("3P")
|
|
|
|
- ? Array.isArray(this.spectrumList.B3P)
|
|
|
|
- ? this.spectrumList.B3P
|
|
|
|
- : [{ Xaxis: this.spectrumList.B3P, val: "3P" }]
|
|
|
|
- : [],
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- // 仅更新 `series`,避免重新渲染整个 ECharts 组件
|
|
|
|
- if (this.chartInstance) {
|
|
|
|
- this.chartInstance.setOption(
|
|
|
|
- {
|
|
|
|
- series: this.generateSeries(newFeatureLines),
|
|
|
|
- },
|
|
|
|
- { replaceMerge: ["series"] }
|
|
|
|
- );
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- generateSeries(featureLines) {
|
|
|
|
- const createMarkLine = (dataSource, color) => ({
|
|
|
|
- type: "line",
|
|
|
|
- markLine: {
|
|
|
|
- silent: false,
|
|
|
|
- lineStyle: { color, type: "dashed", width:1 },
|
|
|
|
- symbol: ["arrow", "none"],
|
|
|
|
- label: {
|
|
|
|
- show: true,
|
|
|
|
- position: "end",
|
|
|
|
- formatter: ({ data }) => data.val,
|
|
|
|
- },
|
|
|
|
- emphasis: {
|
|
|
|
- lineStyle: { color: "#FF6A00", width: 2 },
|
|
|
|
- label: {
|
|
|
|
- show: true,
|
|
|
|
- formatter: ({ value }) => `特征值: ${value}`,
|
|
|
|
- color: "#000",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- data: dataSource.map(({ Xaxis, val }) => ({ xAxis: Xaxis, val })),
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- const markLines = [
|
|
|
|
- { data: featureLines.Fr, color: "#A633FF" },
|
|
|
|
- { data: featureLines.BPFI, color: "#23357e" },
|
|
|
|
- { data: featureLines.BPFO, color: "#42a0ae" },
|
|
|
|
- { data: featureLines.BSF, color: "#008080" },
|
|
|
|
- { data: featureLines.FTF, color: "#af254f" },
|
|
|
|
- { data: featureLines.B3P, color: "#FFD700" },
|
|
|
|
- ].map(({ data, color }) => createMarkLine(data, color));
|
|
|
|
-
|
|
|
|
- return [
|
|
|
|
- {
|
|
|
|
- name: "数据系列",
|
|
|
|
- type: "line",
|
|
|
|
- data: this.spectrumList.x.map((x, i) => [x, this.spectrumList.y[i]]),
|
|
|
|
- symbol: "none",
|
|
|
|
- lineStyle: { color: "#162961", width: 1 },
|
|
|
|
- itemStyle: { color: "#162961", borderColor: "#fff", borderWidth: 1 },
|
|
|
|
- large: true,
|
|
|
|
- },
|
|
|
|
- ...markLines,
|
|
|
|
- ];
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ // 获取数据
|
|
getTime() {
|
|
getTime() {
|
|
this.$emit("handleLoading", null, true, this.activeIndex);
|
|
this.$emit("handleLoading", null, true, this.activeIndex);
|
|
const params = {
|
|
const params = {
|
|
@@ -371,11 +436,11 @@ export default {
|
|
axios
|
|
axios
|
|
.post("/WJapi/analysis/frequency", params)
|
|
.post("/WJapi/analysis/frequency", params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- console.log(res, "频谱图数据");
|
|
|
|
this.spectrumList = { ...JSON.parse(res.data) };
|
|
this.spectrumList = { ...JSON.parse(res.data) };
|
|
|
|
+
|
|
console.log(this.spectrumList, "频谱图数据1");
|
|
console.log(this.spectrumList, "频谱图数据1");
|
|
|
|
+
|
|
const XrmsValue = this.spectrumList?.Xrms;
|
|
const XrmsValue = this.spectrumList?.Xrms;
|
|
- // 通过 $emit 传递 XrmsValue 给父组件
|
|
|
|
this.$emit("updateXrms", XrmsValue);
|
|
this.$emit("updateXrms", XrmsValue);
|
|
this.PXcheckList.forEach((item) => {
|
|
this.PXcheckList.forEach((item) => {
|
|
if (item.checked) {
|
|
if (item.checked) {
|
|
@@ -430,66 +495,15 @@ export default {
|
|
};
|
|
};
|
|
|
|
|
|
if (stateMap[value]) {
|
|
if (stateMap[value]) {
|
|
- // Toggle the state for the given value
|
|
|
|
this.TZshow = value === "1" ? !this.TZshow : false;
|
|
this.TZshow = value === "1" ? !this.TZshow : false;
|
|
this.BGshow = value === "2" ? !this.BGshow : false;
|
|
this.BGshow = value === "2" ? !this.BGshow : false;
|
|
this.PXshow = value === "3" ? !this.PXshow : false;
|
|
this.PXshow = value === "3" ? !this.PXshow : false;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
- // handleCheckChange() {
|
|
|
|
- // this.PXcheckList.forEach((item) => {
|
|
|
|
- // // 如果 `checkedValues` 里有这个项,则 checked=true,否则 checked=false
|
|
|
|
- // item.checked = this.checkedValues.includes(item.val);
|
|
|
|
- // });
|
|
|
|
-
|
|
|
|
- // // 重置数据数组
|
|
|
|
- // this.Fr = [];
|
|
|
|
- // this.BPFI = [];
|
|
|
|
- // this.BPFO = [];
|
|
|
|
- // this.BSF = [];
|
|
|
|
- // this.FTF = [];
|
|
|
|
- // this.B3P = [];
|
|
|
|
-
|
|
|
|
- // // 找到刚刚被点击的项
|
|
|
|
- // const changedItem = this.PXcheckList.find(
|
|
|
|
- // (item) => !this.checkedValues.includes(item.val) !== item.checked
|
|
|
|
- // );
|
|
|
|
-
|
|
|
|
- // if (changedItem) {
|
|
|
|
- // console.log("当前点击项:", changedItem);
|
|
|
|
- // // 根据选中状态赋值
|
|
|
|
- // if (this.checkedValues.includes("Fr")) {
|
|
|
|
- // this.Fr = this.spectrumList.fn_Gen;
|
|
|
|
- // }
|
|
|
|
- // if (this.checkedValues.includes("BPFI")) {
|
|
|
|
- // this.BPFI = this.spectrumList.BPFI;
|
|
|
|
- // }
|
|
|
|
- // if (this.checkedValues.includes("BPFO")) {
|
|
|
|
- // this.BPFO = this.spectrumList.BPFO;
|
|
|
|
- // }
|
|
|
|
- // if (this.checkedValues.includes("BSF")) {
|
|
|
|
- // this.BSF = this.spectrumList.BSF;
|
|
|
|
- // }
|
|
|
|
- // if (this.checkedValues.includes("FTF")) {
|
|
|
|
- // this.FTF = this.spectrumList.FTF;
|
|
|
|
- // }
|
|
|
|
- // if (this.checkedValues.includes("3P")) {
|
|
|
|
- // this.B3P = Array.isArray(this.spectrumList.B3P)
|
|
|
|
- // ? this.spectrumList.B3P
|
|
|
|
- // : [{ Xaxis: this.spectrumList.B3P, val: "3P" }];
|
|
|
|
- // }
|
|
|
|
- // // 更新 ECharts 图表数据
|
|
|
|
- // if (this.chartInstance) {
|
|
|
|
- // this.updateChart(this.spectrumList.y, this.spectrumList.x);
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
+
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.line-chart {
|
|
.line-chart {
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -518,4 +532,4 @@ export default {
|
|
height: 16px;
|
|
height: 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|