|
@@ -19,9 +19,9 @@
|
|
|
></el-option>
|
|
|
<el-option
|
|
|
v-for="item in logOptions"
|
|
|
- :key="item.alarmCode"
|
|
|
- :label="item.alarmName"
|
|
|
- :value="item.alarmCode"
|
|
|
+ :key="item.logCode"
|
|
|
+ :label="item.logName"
|
|
|
+ :value="item.logCode"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -82,12 +82,13 @@
|
|
|
</el-table-column>
|
|
|
<af-table-column
|
|
|
v-for="log in logheader"
|
|
|
- :key="log.alarmCode"
|
|
|
- :label="log.alarmName"
|
|
|
+ :key="log.logCode"
|
|
|
+ :label="log.logName"
|
|
|
:render-header="labelHead"
|
|
|
+ width="200"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row[log.alarmId] }}
|
|
|
+ {{ scope.row[log.logCode] }}
|
|
|
</template>
|
|
|
</af-table-column>
|
|
|
</el-table>
|
|
@@ -207,7 +208,7 @@ export default {
|
|
|
if (this.robotValue.length < this.logOptions.length) {
|
|
|
this.robotValue = [];
|
|
|
this.logOptions.map((item) => {
|
|
|
- this.robotValue.push(item.alarmCode);
|
|
|
+ this.robotValue.push(item.logCode);
|
|
|
});
|
|
|
} else {
|
|
|
this.robotValue = [];
|
|
@@ -239,7 +240,7 @@ export default {
|
|
|
this.total = res.data.total;
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.tblist.doLayout();
|
|
|
- this.loading = false;
|
|
|
+ setTimeout(()=>{this.loading = false;},1000)
|
|
|
});
|
|
|
});
|
|
|
},
|
|
@@ -256,7 +257,7 @@ export default {
|
|
|
let differenceSet = Array.from(
|
|
|
new Set(
|
|
|
[...this.logOptions].filter((x) =>
|
|
|
- this.$route.params.signals.includes(x.alarmCode)
|
|
|
+ this.$route.params.signals.includes(x.logCode)
|
|
|
)
|
|
|
)
|
|
|
);
|
|
@@ -299,7 +300,7 @@ export default {
|
|
|
let differenceSet = Array.from(
|
|
|
new Set(
|
|
|
[...this.logOptions].filter((x) =>
|
|
|
- this.robotValue.includes(x.alarmCode)
|
|
|
+ this.robotValue.includes(x.logCode)
|
|
|
)
|
|
|
)
|
|
|
);
|
|
@@ -378,9 +379,9 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
-::v-deep .el-table__fixed {
|
|
|
- height: calc(100% - 10px) !important;
|
|
|
-}
|
|
|
+/* ::v-deep .el-table__fixed {
|
|
|
+ height: calc(100%) !important;
|
|
|
+} */
|
|
|
::v-deep .el-table th.is-leaf {
|
|
|
font-size: 15px !important;
|
|
|
height: 36px !important;
|