From 71b1532d5a3609f3125e15fbe65e4b34bb6c4e8b Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 29 八月 2023 15:36:41 +0800 Subject: [PATCH] 数据风险模型模块修改 --- src/sfc/DustExceptionText.vue | 30 +++++++++++++----------------- 1 files changed, 13 insertions(+), 17 deletions(-) diff --git a/src/sfc/DustExceptionText.vue b/src/sfc/DustExceptionText.vue index a1e66ca..67cd5f8 100644 --- a/src/sfc/DustExceptionText.vue +++ b/src/sfc/DustExceptionText.vue @@ -4,12 +4,13 @@ 灏嗚绔欑偣鏌愭椂娈电殑寮傚父鏁版嵁杩斿洖缁欑埗缁勪欢锛岀埗缁勪欢鍐嶈繑鍥炵粰绁栧厛缁勪欢 --> <script> +import exceptionApi from '@/api/exceptionApi.js'; export default { props: { - siteName:String, - exceptionType:String, - beginTime:String, - endTime:String, + siteName: String, + exceptionType: String, + beginTime: String, + endTime: String }, emits: ['submitExceptionData'], data() { @@ -22,21 +23,16 @@ methods: { requestExceptionData() { // 涓嶅垎椤� - this.$http - .get('/dust/exceptiondata1', { - params: { - siteName: this.siteName, - exceptionType: this.exceptionType, - beginTime: this.beginTime, - endTime: this.endTime - } - }) + exceptionApi + .exceptiondata1( + this.siteName, + this.exceptionType, + this.beginTime, + this.endTime + ) .then((result) => { //灏嗚繑鍥炵殑缁撴灉浼犻�掔粰鐖剁粍浠� - this.$emit( - 'submitExceptionData', - result.data.data - ); + this.$emit('submitExceptionData', result.data.data); }); } } -- Gitblit v1.9.3