|
@@ -202,7 +202,7 @@ export default {
|
|
|
column.label,
|
|
|
]);
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
selectAll() {
|
|
|
if (this.robotValue.length < this.logOptions.length) {
|
|
|
this.robotValue = [];
|
|
@@ -342,11 +342,22 @@ export default {
|
|
|
if (valid) {
|
|
|
let addParams = {
|
|
|
exportName: this.ruleForm.exportName,
|
|
|
- signals: this.robotValue,
|
|
|
+ signals: [],
|
|
|
startTime: this.queryParams.startTime,
|
|
|
endTime: this.queryParams.endTime,
|
|
|
exportLogType: 1,
|
|
|
};
|
|
|
+ let differenceABSet = Array.from(
|
|
|
+ new Set(
|
|
|
+ [...this.logOptions].filter((x) =>
|
|
|
+ this.robotValue.includes(x.alarmCode)
|
|
|
+ )
|
|
|
+ )
|
|
|
+ );
|
|
|
+ const curArray=[...differenceABSet]
|
|
|
+ curArray.map(item=>{
|
|
|
+ addParams.signals.push(item.alarmCode)
|
|
|
+ })
|
|
|
exportFile(addParams).then((res) => {
|
|
|
if (res.code === 0) {
|
|
|
this.dialogExportVisible = false;
|
|
@@ -392,12 +403,12 @@ export default {
|
|
|
width: 5px !important;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
::v-deep .el-table__header colgroup col[name="gutter"] {
|
|
|
display: table-cell !important;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
::v-deep .el-table__body{
|
|
|
width: 100% !important;
|
|
|
}
|
|
@@ -406,7 +417,7 @@ export default {
|
|
|
}
|
|
|
/* .serch{
|
|
|
min-width: 70px;
|
|
|
- width: 70px;
|
|
|
- height: 40px;
|
|
|
+ width: 70px;
|
|
|
+ height: 40px;
|
|
|
} */
|
|
|
</style>
|