-
+
@@ -120,73 +120,14 @@
- 下载波形
- 导出
+ 下载波形
+ 导出
-
-
- 值类型选择:
-
-
-
-
-
-
- 返回
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -195,24 +136,23 @@ import { ref, onMounted, provide } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
-import { ElMessage, ElMessageBox } from 'element-plus'
import { mainHeight } from '@/utils/layout'
import { useDictData } from '@/stores/dictData'
-import shushiboxi from '@/components/echarts/shushiboxi.vue'
-import rmsboxi from '@/components/echarts/rmsboxi.vue'
-import { getMonitorEventAnalyseWave } from '@/api/event-boot/transient.ts'
+import { ElMessageBox, ElMessage } from 'element-plus'
+import { getTransientValue } from '@/api/event-boot/report'
+import waveForm from '@/components/echarts/waveForm.vue'
+import { getMonitorEventAnalyseWave ,downloadWaveFile} from '@/api/event-boot/transient'
defineOptions({
name: 'Region/transientlist'
})
const dictData = useDictData()
const pageHeight = mainHeight(20)
-const bxecharts = mainHeight(95).height as any
const view = ref(true)
const view2 = ref(false)
-const showBoxi = ref(true)
-const flag = ref(true)
+
const typeoptions = dictData.getBasicData('Event_Type')
+const tableRef = ref()
const reasonoptions = dictData.getBasicData('Event_Reason')
const triggeroptions = dictData.getBasicData('Event_Statis')
const wareaoptions = ref([
@@ -229,6 +169,7 @@ const tableStore = new TableStore({
url: '/event-boot/transient/getTransientValue',
method: 'POST',
column: [
+ { width: '60', type: 'checkbox' },
{
field: 'index',
title: '序号',
@@ -290,7 +231,6 @@ const tableStore = new TableStore({
if (res != undefined) {
wp.value = res.data
view.value = false
- flag.value = false
view2.value = true
}
})
@@ -316,20 +256,9 @@ const tableStore = new TableStore({
loadCallback: () => {}
})
-const bxactiveName = ref('ssbx')
const boxoList = ref({})
const wp = ref({})
-const value = ref(1)
-const options = ref([
- {
- value: 1,
- label: '一次值'
- },
- {
- value: 2,
- label: '二次值'
- }
-])
+
provide('tableStore', tableStore)
tableStore.table.params.deptIndex = dictData.state.area[0].id
@@ -352,24 +281,49 @@ tableStore.table.params.fileFlag = ''
onMounted(() => {
tableStore.index()
})
-
-const changeView = () => {
- showBoxi.value = false
- setTimeout(() => {
- showBoxi.value = true
- }, 0)
-}
-const bxhandleClick = (tab: any) => {
- if (tab.name == 'ssbx') {
- bxactiveName.value = 'ssbx'
- } else if (tab.name == 'rmsbx') {
- bxactiveName.value = 'rmsbx'
- }
- // console.log(tab, event);
-}
const backbxlb = () => {
view.value = true
- flag.value = true
view2.value = false
}
+// 导出列表
+const exportEvent = () => {
+ let form = JSON.parse(JSON.stringify(tableStore.table.params))
+ form.pageNum = 1
+ form.pageSize = tableStore.table.total
+ getTransientValue(form).then(res => {
+ tableRef.value.getRef().exportData({
+ filename: '区域暂态列表', // 文件名字
+ sheetName: 'Sheet1',
+ type: 'xlsx', //导出文件类型 xlsx 和 csv
+ useStyle: true,
+ data: res.data.records, // 数据源 // 过滤那个字段导出
+ columnFilterMethod: function (column, $columnIndex) {
+ return !(column.$columnIndex === 0)
+ }
+ })
+ })
+}
+const download = () => {
+ if (!tableStore.table.selection.length) {
+ ElMessage.warning('请选择数据')
+ return
+ }
+ downloadWaveFile({
+ lineId: tableStore.table.selection.map((item: any) => item.eventId)
+ }).then((res: any) => {
+ if (res.type == 'application/json') {
+ ElMessage.warning('暂无可下载的波形文件!')
+ return
+ }
+ ElMessage.success('下载中。。。!')
+ let blob = new Blob([res], { type: 'application/zip' }) // console.log(blob) // var href = window.URL.createObjectURL(blob); //创建下载的链接
+ const url = window.URL.createObjectURL(blob)
+ const link = document.createElement('a') // 创建a标签
+ link.href = url
+ link.download = '波形分析下载' // 设置下载的文件名
+ document.body.appendChild(link)
+ link.click() //执行下载
+ document.body.removeChild(link) //释放标签
+ })
+}
diff --git a/src/views/pqs/voltageSags/analyse/eventCorrelation/index.vue b/src/views/pqs/voltageSags/analyse/eventCorrelation/index.vue
index 1bcd0dcb..eb6e14db 100644
--- a/src/views/pqs/voltageSags/analyse/eventCorrelation/index.vue
+++ b/src/views/pqs/voltageSags/analyse/eventCorrelation/index.vue
@@ -1,6 +1,6 @@
-
+
-
-
- 值类型选择:
-
-
-
- 高级分析
-
-
-
- 返回
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 高级分析
- 返回
-
+
@@ -113,13 +46,11 @@ import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import { defaultAttribute } from '@/components/table/defaultAttribute'
import TableHeader from '@/components/table/header/index.vue'
-import { queryRelevantLogPage, delRelevantLog, processEvents, analysis } from '@/api/advance-boot/analyse.ts'
+import { queryRelevantLogPage, delRelevantLog, processEvents, analysis } from '@/api/advance-boot/analyse'
import { ElMessage, ElMessageBox } from 'element-plus'
import { mainHeight } from '@/utils/layout'
-import shushiboxi from '@/components/echarts/shushiboxi.vue'
-import rmsboxi from '@/components/echarts/rmsboxi.vue'
-import boxi from './boxi.vue'
-import { getMonitorEventAnalyseWave } from '@/api/event-boot/transient.ts'
+import waveForm from '@/components/echarts/waveForm.vue'
+import { getMonitorEventAnalyseWave } from '@/api/event-boot/transient'
defineOptions({
name: 'Advancedanalysis/eventcorrelation'
@@ -130,12 +61,7 @@ const pageHeight = mainHeight(20)
const bxecharts = mainHeight(95).height as any
const loading = ref(false)
const view = ref(true)
-
const view2 = ref(false)
-const view3 = ref(false)
-const showBoxi = ref(true)
-const flag = ref(true)
-const GJList = ref([])
const tableStore = new TableStore({
url: '/advance-boot/process/querySagEventsPage',
@@ -211,7 +137,6 @@ const tableStore = new TableStore({
if (res != undefined) {
wp.value = res.data
view.value = false
- flag.value = false
view2.value = true
}
})
@@ -236,21 +161,11 @@ const tableStore = new TableStore({
loadCallback: () => {}
})
-tableStore.table.params.searchValue=''
+tableStore.table.params.searchValue = ''
const bxactiveName = ref('ssbx')
const boxoList = ref({})
const wp = ref({})
-const value = ref(1)
-const options = ref([
- {
- value: 1,
- label: '一次值'
- },
- {
- value: 2,
- label: '二次值'
- }
-])
+
provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()
@@ -287,39 +202,11 @@ const details = (row: any) => {
})
})
}
-// 高级分析
-const AdvancedAnalytics = () => {
- analysis({
- eventIndex: boxoList.value.eventId
- }).then(res => {
- GJList.value = res.data
- flag.value = false
- view3.value = true
- view2.value = false
- })
-}
-const changeView = () => {
- showBoxi.value = false
- setTimeout(() => {
- showBoxi.value = true
- }, 0)
-}
-const bxhandleClick = (tab: any) => {
- if (tab.name == 'ssbx') {
- bxactiveName.value = 'ssbx'
- } else if (tab.name == 'rmsbx') {
- bxactiveName.value = 'rmsbx'
- }
- // console.log(tab, event);
-}
+
+
const backbxlb = () => {
view.value = true
- flag.value = true
view2.value = false
}
-const gaoBack = () => {
- view2.value = true
- view3.value = false
-}