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