|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2024-05-29 09:14:23
|
|
* @Date: 2024-05-29 09:14:23
|
|
- * @LastEditTime: 2024-12-27 14:13:38
|
|
|
|
|
|
+ * @LastEditTime: 2024-12-31 14:29:58
|
|
* @LastEditors: bogon
|
|
* @LastEditors: bogon
|
|
* @Description: In User Settings Edit
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: /performance-test/src/views/performance/components/EditAnalysis.vue
|
|
* @FilePath: /performance-test/src/views/performance/components/EditAnalysis.vue
|
|
@@ -67,7 +67,6 @@
|
|
></el-empty>
|
|
></el-empty>
|
|
<el-card v-if="!noData" shadow="always" class="box-card">
|
|
<el-card v-if="!noData" shadow="always" class="box-card">
|
|
<el-row class="assetssConent">
|
|
<el-row class="assetssConent">
|
|
- <!-- {{ generalFilesData }} -->
|
|
|
|
<el-col
|
|
<el-col
|
|
:span="24"
|
|
:span="24"
|
|
v-if="form.configAnalysis === 'yaw_error' && this.csvData.length > 0"
|
|
v-if="form.configAnalysis === 'yaw_error' && this.csvData.length > 0"
|
|
@@ -629,7 +628,6 @@ export default {
|
|
created() {
|
|
created() {
|
|
//获取分析 分析类型、机组编号 列表
|
|
//获取分析 分析类型、机组编号 列表
|
|
// this.getWindCodeList();
|
|
// this.getWindCodeList();
|
|
- console.log(this.form.configAnalysis, "1111this.form.configAnalysis");
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
iframeLoad() {
|
|
iframeLoad() {
|
|
@@ -723,7 +721,6 @@ export default {
|
|
response.data.length > 0 &&
|
|
response.data.length > 0 &&
|
|
response.data[0].generalFiles) ||
|
|
response.data[0].generalFiles) ||
|
|
[];
|
|
[];
|
|
-
|
|
|
|
this.diagramRelations = [];
|
|
this.diagramRelations = [];
|
|
this.diagramRelations =
|
|
this.diagramRelations =
|
|
(response.data &&
|
|
(response.data &&
|
|
@@ -744,7 +741,6 @@ export default {
|
|
? this.editableTabs[0].commentTypeCode
|
|
? this.editableTabs[0].commentTypeCode
|
|
: "";
|
|
: "";
|
|
}
|
|
}
|
|
- console.log(this.form.configAnalysis, "this.form.configAnalysis");
|
|
|
|
const fileUrl = response.data[0].generalFiles[0].fileAddr;
|
|
const fileUrl = response.data[0].generalFiles[0].fileAddr;
|
|
if (this.form.configAnalysis === "yaw_error") {
|
|
if (this.form.configAnalysis === "yaw_error") {
|
|
this.fetchCsvData("yaw_error", fileUrl);
|
|
this.fetchCsvData("yaw_error", fileUrl);
|
|
@@ -937,11 +933,6 @@ export default {
|
|
this.productionIndicatorCsvData = result.data.filter(
|
|
this.productionIndicatorCsvData = result.data.filter(
|
|
(row) => Object.keys(row).length
|
|
(row) => Object.keys(row).length
|
|
); // 过滤空行
|
|
); // 过滤空行
|
|
- console.log(
|
|
|
|
- this.productionIndicatorCsvHeader,
|
|
|
|
- result.data,
|
|
|
|
- "result.data"
|
|
|
|
- );
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
error: (error) => {
|
|
error: (error) => {
|
|
@@ -955,34 +946,6 @@ export default {
|
|
console.error("无法获取 CSV 文件:", error);
|
|
console.error("无法获取 CSV 文件:", error);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
- // getCsvData(url) {
|
|
|
|
- // // 使用 axios 获取 CSV 文件
|
|
|
|
- // axios
|
|
|
|
- // .get(url, { responseType: "blob" }) // 确保数据以 blob 格式返回
|
|
|
|
- // .then((response) => {
|
|
|
|
- // const reader = new FileReader();
|
|
|
|
- // reader.onload = (e) => {
|
|
|
|
- // const csvText = e.target.result;
|
|
|
|
- // Papa.parse(csvText, {
|
|
|
|
- // header: true, // 使用 CSV 第一行作为键
|
|
|
|
- // complete: (result) => {
|
|
|
|
- // this.csvHeaders = Object.keys(result.data[0]);
|
|
|
|
- // this.csvData = result.data.filter(
|
|
|
|
- // (row) => Object.keys(row).length
|
|
|
|
- // ); // 过滤空行
|
|
|
|
- // },
|
|
|
|
- // error: (error) => {
|
|
|
|
- // console.error("CSV 解析错误:", error);
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
- // };
|
|
|
|
- // reader.readAsText(response.data); // 读取 blob 数据
|
|
|
|
- // })
|
|
|
|
- // .catch((error) => {
|
|
|
|
- // console.error("无法获取 CSV 文件:", error);
|
|
|
|
- // });
|
|
|
|
- // },
|
|
|
|
downLoadCsv(tableDatas) {
|
|
downLoadCsv(tableDatas) {
|
|
const headers = ["风机名称", "风机机型", "风速", "合同功率", "实际功率"]; // CSV 文件的标题
|
|
const headers = ["风机名称", "风机机型", "风速", "合同功率", "实际功率"]; // CSV 文件的标题
|
|
const data = tableDatas.map((item) => {
|
|
const data = tableDatas.map((item) => {
|
|
@@ -1034,7 +997,6 @@ export default {
|
|
//修改赋值
|
|
//修改赋值
|
|
async getWindCodeList() {
|
|
async getWindCodeList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- console.log(this.form.configAnalysis, "this.form.configAnalysis");
|
|
|
|
try {
|
|
try {
|
|
const resAnalysisedType = await queryAnalysisedType({
|
|
const resAnalysisedType = await queryAnalysisedType({
|
|
batchCode: this.$route.query.batchCode,
|
|
batchCode: this.$route.query.batchCode,
|
|
@@ -1165,7 +1127,6 @@ export default {
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
.box-card {
|
|
.box-card {
|
|
margin: 10px 0;
|
|
margin: 10px 0;
|
|
- // box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
|
|
|
|
width: 100%;
|
|
width: 100%;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
.el-card__body {
|
|
.el-card__body {
|