ソースを参照

[Fix 0000] 预警分析页面参数传递错误修复

houzekong 5 ヶ月 前
コミット
757ddb009a

+ 9 - 2
src/views/analysis/warningAnalysis/airLeakStatus/index.vue

@@ -51,7 +51,7 @@
 <script setup lang="ts">
   import { ref, onMounted } from 'vue';
   import { BasicTable, useTable } from '/@/components/Table';
-  import { Tabs, TabPane } from 'ant-design-vue';
+  import { Tabs, TabPane, message } from 'ant-design-vue';
   import MiniBoard from '/@/components/Configurable/detail/MiniBoard.vue';
   import { SvgIcon } from '/@/components/Icon';
   // 引入模拟数据
@@ -110,7 +110,14 @@
     tableProps: {
       columns,
       // columns: historyColumns,
-      api: getProvinceAlarmHistory,
+      api: (params) => {
+        if (!goafId.value) {
+          message.info('请先选择煤矿及老空区');
+          return Promise.reject();
+        }
+        params.goafId = goafId.value;
+        return getProvinceAlarmHistory(params);
+      },
       formConfig: {
         model: { mineCode: hiscode },
         labelWidth: 120,

+ 9 - 2
src/views/analysis/warningAnalysis/autoFireAnalysis/index.vue

@@ -57,7 +57,7 @@
 <script setup lang="ts">
   import { ref, onMounted } from 'vue';
   import { BasicTable, useTable } from '/@/components/Table';
-  import { Tabs, TabPane } from 'ant-design-vue';
+  import { Tabs, TabPane, message } from 'ant-design-vue';
   import MiniBoard from '/@/components/Configurable/detail/MiniBoard.vue';
   import { SvgIcon } from '/@/components/Icon';
   // 引入模拟数据
@@ -134,7 +134,14 @@
     tableProps: {
       columns,
       // columns: historyColumns,
-      api: getProvinceAlarmHistory,
+      api: (params) => {
+        if (!goafId.value) {
+          message.info('请先选择煤矿及老空区');
+          return Promise.reject();
+        }
+        params.goafId = goafId.value;
+        return getProvinceAlarmHistory(params);
+      },
       formConfig: {
         model: { mineCode: hiscode },
         labelWidth: 120,

+ 9 - 2
src/views/analysis/warningAnalysis/fireAreaJudgeAnalysis/index.vue

@@ -55,7 +55,7 @@
 <script setup lang="ts">
   import { ref, onMounted } from 'vue';
   import { BasicTable, useTable } from '/@/components/Table';
-  import { Tabs, TabPane } from 'ant-design-vue';
+  import { Tabs, TabPane, message } from 'ant-design-vue';
   import MiniBoard from '/@/components/Configurable/detail/MiniBoard.vue';
   import { SvgIcon } from '/@/components/Icon';
   // 引入模拟数据
@@ -124,7 +124,14 @@
     tableProps: {
       columns,
       // columns: historyColumns,
-      api: getProvinceAlarmHistory,
+      api: (params) => {
+        if (!goafId.value) {
+          message.info('请先选择煤矿及老空区');
+          return Promise.reject();
+        }
+        params.goafId = goafId.value;
+        return getProvinceAlarmHistory(params);
+      },
       formConfig: {
         model: { mineCode: hiscode },
         labelWidth: 120,

+ 9 - 2
src/views/analysis/warningAnalysis/overlimitAlarm/index.vue

@@ -55,7 +55,7 @@
 <script setup lang="ts">
   import { ref, onMounted } from 'vue';
   import { BasicTable, useTable } from '/@/components/Table';
-  import { Tabs, TabPane } from 'ant-design-vue';
+  import { Tabs, TabPane, message } from 'ant-design-vue';
   import MiniBoard from '/@/components/Configurable/detail/MiniBoard.vue';
   import { SvgIcon } from '/@/components/Icon';
   // 引入模拟数据
@@ -132,7 +132,14 @@
     tableProps: {
       columns,
       // columns: historyColumns,
-      api: getProvinceAlarmHistory,
+      api: (params) => {
+        if (!goafId.value) {
+          message.info('请先选择煤矿及老空区');
+          return Promise.reject();
+        }
+        params.goafId = goafId.value;
+        return getProvinceAlarmHistory(params);
+      },
       formConfig: {
         model: { mineCode: hiscode },
         labelWidth: 120,

+ 9 - 2
src/views/analysis/warningAnalysis/pressureDiffAnalysis/index.vue

@@ -70,7 +70,7 @@
 <script setup lang="ts">
   import { ref, onMounted } from 'vue';
   import { BasicTable, useTable } from '/@/components/Table';
-  import { Tabs, TabPane } from 'ant-design-vue';
+  import { Tabs, TabPane, message } from 'ant-design-vue';
   import MiniBoard from '/@/components/Configurable/detail/MiniBoard.vue';
   import { SvgIcon } from '/@/components/Icon';
   // 引入模拟数据
@@ -147,7 +147,14 @@
     tableProps: {
       columns,
       // columns: historyColumns,
-      api: getProvinceAlarmHistory,
+      api: (params) => {
+        if (!goafId.value) {
+          message.info('请先选择煤矿及老空区');
+          return Promise.reject();
+        }
+        params.goafId = goafId.value;
+        return getProvinceAlarmHistory(params);
+      },
       formConfig: {
         model: { mineCode: hiscode },
         labelWidth: 120,

+ 9 - 2
src/views/analysis/warningAnalysis/sealRiskJudgeAnalysis/index.vue

@@ -55,7 +55,7 @@
 <script setup lang="ts">
   import { ref, onMounted } from 'vue';
   import { BasicTable, useTable } from '/@/components/Table';
-  import { Tabs, TabPane } from 'ant-design-vue';
+  import { Tabs, TabPane, message } from 'ant-design-vue';
   import MiniBoard from '/@/components/Configurable/detail/MiniBoard.vue';
   import { SvgIcon } from '/@/components/Icon';
   // 引入模拟数据
@@ -133,7 +133,14 @@
     tableProps: {
       columns,
       // columns: historyColumns,
-      api: getProvinceAlarmHistory,
+      api: (params) => {
+        if (!goafId.value) {
+          message.info('请先选择煤矿及老空区');
+          return Promise.reject();
+        }
+        params.goafId = goafId.value;
+        return getProvinceAlarmHistory(params);
+      },
       formConfig: {
         model: { mineCode: hiscode },
         labelWidth: 120,