|
|
@@ -16,7 +16,7 @@
|
|
|
<span class="action-text">详情</span>
|
|
|
</button> -->
|
|
|
<!-- 已解决按钮 -->
|
|
|
- <button @click="openModal(record, 'resolved')" class="resolved-btn" title="解决">
|
|
|
+ <button @click="openModal(record)" class="resolved-btn" title="解决">
|
|
|
<SvgIcon name="details" />
|
|
|
</button>
|
|
|
</template>
|
|
|
@@ -40,7 +40,7 @@
|
|
|
</TabPane>
|
|
|
</Tabs>
|
|
|
<!-- 弹窗组件 -->
|
|
|
- <BasicModal @register="registerModal" :width="600" :minHeight="100" centered title="处理情况">
|
|
|
+ <BasicModal @register="registerModal" :width="600" :minHeight="100" centered title="处理情况" @ok="handleResolve">
|
|
|
<a-textarea class="ml-10px" :style="{ width: `calc(100% - 20px)` }" v-model:value="resolveValue" placeholder="请输入解决情况" :rows="4" />
|
|
|
</BasicModal>
|
|
|
</template>
|
|
|
@@ -55,15 +55,12 @@
|
|
|
import { columns } from './airLeakStatus.data';
|
|
|
import { getProvinceAlarm, getProvinceAlarmHistory, getProvinceAlarmNum } from './airLeak.api';
|
|
|
import { useInitForm } from '../../common/analysis';
|
|
|
- import { BasicModal, useModal } from '/@/components/Modal/index';
|
|
|
+ import { BasicModal } from '/@/components/Modal/index';
|
|
|
import { historicalFormSchema } from '/@/views/monitor/sealedMonitor/monitor.data';
|
|
|
import { useIntervalFn } from '@vueuse/core';
|
|
|
|
|
|
// 激活的Tab页签
|
|
|
const activeTab = ref('realtime');
|
|
|
- const resolveValue = ref('');
|
|
|
-
|
|
|
- const { goafOptions, goafId, hiscode, initGoafOptions } = useInitForm();
|
|
|
|
|
|
const boardData = ref([
|
|
|
{ label: '存在风险情况数量', value: '-' },
|
|
|
@@ -72,7 +69,7 @@
|
|
|
]);
|
|
|
|
|
|
// 注册实时数据表格
|
|
|
- const [registerTable, { reload }] = useTable({
|
|
|
+ const [registerTable, tableCtx] = useTable({
|
|
|
title: '密闭漏风状态判定',
|
|
|
api: getProvinceAlarm,
|
|
|
columns,
|
|
|
@@ -102,6 +99,8 @@
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+ const { goafOptions, goafId, hiscode, resolveValue, registerModal, openModal, initGoafOptions, handleResolve } = useInitForm(tableCtx);
|
|
|
+
|
|
|
// 注册历史数据表格
|
|
|
const [registerHistoryTable, historyTable] = useTable({
|
|
|
columns,
|
|
|
@@ -174,9 +173,6 @@
|
|
|
// },
|
|
|
});
|
|
|
|
|
|
- // 弹窗引用
|
|
|
- const [registerModal, { openModal }] = useModal();
|
|
|
-
|
|
|
async function getAlarmTotalData() {
|
|
|
const params = {
|
|
|
alarmType: 'leakageAlarm',
|
|
|
@@ -187,7 +183,7 @@
|
|
|
boardData.value[0].value = result.alarmLevel1 + result.alarmLevel2;
|
|
|
}
|
|
|
|
|
|
- useIntervalFn(() => reload({ silence: true }), 10000);
|
|
|
+ useIntervalFn(() => tableCtx.reload({ silence: true }), 10000);
|
|
|
|
|
|
onMounted(() => {
|
|
|
// 页面挂载时的逻辑
|