zmc
2023-08-31 013ed9283200da41902835f9fd679df13299d436
src/sfc/DustExceptionText.vue
@@ -10,7 +10,8 @@
    siteName: String,
    exceptionType: String,
    beginTime: String,
    endTime: String
    endTime: String,
  },
  emits: ['submitExceptionData'],
  data() {
@@ -24,15 +25,17 @@
    requestExceptionData() {
      // 不分页
      exceptionApi
        .exceptiondata1(
          this.siteName,
          this.exceptionType,
          this.beginTime,
          this.endTime
        .exceptiondata1({
          siteName:  this.siteName,
          exceptionType:this.exceptionType,
          beginTime:this.beginTime,
          endTime:this.endTime
        }
        )
        .then((result) => {
          //将返回的结果传递给父组件
          this.$emit('submitExceptionData', result.data.data);
          // this.$emit('subloading',false)
        });
    }
  }
@@ -47,4 +50,7 @@
.text {
  color: #000000;
}
// .text:hover{
//   color: #2876aa;
// }
</style>