|
@@ -61,7 +61,7 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
import { BasicTable } from '/@/components/Table';
|
|
import { BasicTable } from '/@/components/Table';
|
|
|
- import { Tabs, TabPane, message } from 'ant-design-vue';
|
|
|
|
|
|
|
+ import { Tabs, TabPane } 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';
|
|
|
// 引入模拟数据
|
|
// 引入模拟数据
|
|
@@ -72,7 +72,8 @@
|
|
|
import { historicalFormSchema } from '/@/views/monitor/sealedMonitor/monitor.data';
|
|
import { historicalFormSchema } from '/@/views/monitor/sealedMonitor/monitor.data';
|
|
|
// import { useIntervalFn } from '@vueuse/core';
|
|
// import { useIntervalFn } from '@vueuse/core';
|
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
|
- import { useRoute, useRouter } from 'vue-router';
|
|
|
|
|
|
|
+ import { useRoute } from 'vue-router';
|
|
|
|
|
+ import { advancedRoutePush } from '/@/utils';
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
// 激活的Tab页签
|
|
// 激活的Tab页签
|
|
@@ -147,16 +148,15 @@
|
|
|
tableProps: {
|
|
tableProps: {
|
|
|
columns,
|
|
columns,
|
|
|
// columns: historyColumns,
|
|
// columns: historyColumns,
|
|
|
- api: (params) => {
|
|
|
|
|
|
|
+ api: async (params) => {
|
|
|
if (!goafId.value) {
|
|
if (!goafId.value) {
|
|
|
- message.info('请先选择煤矿及老空区');
|
|
|
|
|
- return Promise.reject();
|
|
|
|
|
|
|
+ await initGoafOptions(params.deptId);
|
|
|
}
|
|
}
|
|
|
params.goafId = goafId.value;
|
|
params.goafId = goafId.value;
|
|
|
return getProvinceAlarmHistory(params);
|
|
return getProvinceAlarmHistory(params);
|
|
|
},
|
|
},
|
|
|
formConfig: {
|
|
formConfig: {
|
|
|
- model: { customField: hiscode },
|
|
|
|
|
|
|
+ model: { deptId: hiscode },
|
|
|
labelWidth: 120,
|
|
labelWidth: 120,
|
|
|
schemas: [
|
|
schemas: [
|
|
|
// {
|
|
// {
|
|
@@ -187,10 +187,10 @@
|
|
|
// },
|
|
// },
|
|
|
{
|
|
{
|
|
|
label: '煤矿名称',
|
|
label: '煤矿名称',
|
|
|
- field: 'customField',
|
|
|
|
|
|
|
+ field: 'deptId',
|
|
|
component: 'MineCascader', // 自定义组件名
|
|
component: 'MineCascader', // 自定义组件名
|
|
|
componentProps: {
|
|
componentProps: {
|
|
|
- initFromStore: false,
|
|
|
|
|
|
|
+ initFromStore: true,
|
|
|
syncToStore: false,
|
|
syncToStore: false,
|
|
|
changeOnSelect: false,
|
|
changeOnSelect: false,
|
|
|
onChange: (e) => {
|
|
onChange: (e) => {
|
|
@@ -240,14 +240,13 @@
|
|
|
boardData.value[0].value = result.alarmLevel1 + result.alarmLevel2 + result.alarmLevel3 + result.alarmLevel4;
|
|
boardData.value[0].value = result.alarmLevel1 + result.alarmLevel2 + result.alarmLevel3 + result.alarmLevel4;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const router = useRouter();
|
|
|
|
|
/**
|
|
/**
|
|
|
* 通用页面跳转方法
|
|
* 通用页面跳转方法
|
|
|
* @param record 当前行数据
|
|
* @param record 当前行数据
|
|
|
* @param path 目标路径
|
|
* @param path 目标路径
|
|
|
*/
|
|
*/
|
|
|
function handleGoToPageQuery(record: any, path: string) {
|
|
function handleGoToPageQuery(record: any, path: string) {
|
|
|
- router.push({
|
|
|
|
|
|
|
+ advancedRoutePush({
|
|
|
path,
|
|
path,
|
|
|
query: { deptId: record.deptId, goafId: record.goafId, filter: 'coVal,co2Val,ch4Val,c2h2Val,c2h4Val,o2Val,temperature' },
|
|
query: { deptId: record.deptId, goafId: record.goafId, filter: 'coVal,co2Val,ch4Val,c2h2Val,c2h4Val,o2Val,temperature' },
|
|
|
});
|
|
});
|