|
@@ -14,10 +14,10 @@
|
|
|
<img src="@/assets/analyse/01.png" alt="" />
|
|
|
<p>包络谱图</p>
|
|
|
</div>
|
|
|
- <div @click="tendency" class="picture">
|
|
|
+ <!-- <div @click="tendency" class="picture">
|
|
|
<img src="@/assets/analyse/02.png" alt="" />
|
|
|
<p>趋势图</p>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
<div class="headright">
|
|
|
<img src="@/assets/analyse/07.png" alt="全部缩小" @click="suoxiao" />
|
|
@@ -403,11 +403,10 @@ export default {
|
|
|
return point ? point?.detectionPointCn : null; // 如果没有找到对应项,返回 null
|
|
|
},
|
|
|
|
|
|
- NewgetDetectionPointCn(key) {
|
|
|
- return this.pointNameMap[key] || key
|
|
|
+ NewgetDetectionPointCn(key) {
|
|
|
+ return this.pointNameMap[key] || key;
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
getCompanyLabel(companyCode) {
|
|
|
const selectedOption = this.parentOpt?.find(
|
|
|
(option) => option.codeNumber === companyCode
|
|
@@ -763,10 +762,19 @@ export default {
|
|
|
axios
|
|
|
.post("/AnalysisMulti/analysis/trend", params)
|
|
|
.then((res) => {
|
|
|
- this.qsList = JSON.parse(res.data);
|
|
|
+ let jsonStr = res.data;
|
|
|
+ // ① 仅字符串才处理
|
|
|
+ if (typeof jsonStr === "string") {
|
|
|
+ // ② 将 "NaN" 或裸 NaN 替换为 null(更安全的方式)
|
|
|
+ jsonStr = jsonStr.replace(/\bNaN\b/g, "null"); // 替换裸 NaN
|
|
|
+ }
|
|
|
+ // ③ 再解析为对象
|
|
|
+ this.qsList = JSON.parse(jsonStr);
|
|
|
this.fourList.push(newItem);
|
|
|
})
|
|
|
- .catch((error) => {});
|
|
|
+ .catch((error) => {
|
|
|
+ console.error("趋势图接口报错:", error);
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
conditions() {
|