# Conflicts:
#	src/views/subsystem/scene/index.vue
This commit is contained in:
wangwenhua 2025-10-22 10:03:29 +08:00
commit 9eb44403b5

View File

@ -21,9 +21,7 @@
</div>
</template>
<a-button type="text-primary" icon="exclamation-circle"></a-button>
</a-popover>
</div>
<div class="page-scene-title">
<span v-if="roomInfo.mag">{{ roomInfo.mag }}倍速</span>&nbsp;
@ -34,13 +32,12 @@
</div>
</Flex>
<Grid class="page-scene-main flex-1 oh" :columns="['320px', 1, '320px']" :rows="['30px', 1]" gap="0px">
<!-- <div class="tool-wrapper" style="grid-area: 1 / 1 / 2 / 4">
<div class="tool-wrapper" style="grid-area: 1 / 1 / 2 / 4">
<a-menu :selectedKeys="[]" mode="horizontal" theme="dark">
<a-menu-item @click="handleOpenStatisticPage()"> 统计分析 </a-menu-item>
<a-menu-item @click="handleOpenStatisticPage()"> 统计分析 </a-menu-item>
</a-menu>
</div>-->
<el-button type="primary" @click="downloadExcel1" >支援保障仿真效果统计表</el-button>
</div>
<div
ref="scene-cesium-container"
class="scene-cesium-container"
@ -60,46 +57,8 @@
</a-tree>
</div>
</ModuleWrapper>
<ModuleWrapper title="统计报表" height="25%"><div> <a-button type="primary" @click="downloadExcel1" >支援保障仿真效果统计表</a-button></div></ModuleWrapper>
<ModuleWrapper title="天气预设" height="25%">
<div>
<a-button type="primary" @click="handleAdd" icon="plus">新增</a-button>
<a-table
:columns="columns"
:dataSource="data"
:pagination="false"
bordered
rowKey="key"
>
<template v-for="col in ['name', 'age', 'address']" :slot="col" slot-scope="text, record">
<div :key="col">
<a-input
v-if="record.editable"
:value="text"
@change="e => handleChange(e.target.value, record.key, col)"
/>
<template v-else>{{ text }}</template>
</div>
</template>
<template slot="operation" slot-scope="text, record">
<template v-if="record.editable">
<a @click="save(record.key)">保存</a>
<a-divider type="vertical" />
<a @click="cancel(record.key)">取消</a>
</template>
<template v-else>
<a @click="edit(record.key)">编辑</a>
<a-divider type="vertical" />
<a-popconfirm title="确认删除?" @confirm="() => handleDelete(record.key)">
<a>删除</a>
</a-popconfirm>
</template>
</template>
</a-table>
</div>
</ModuleWrapper>
<ModuleWrapper height="30%" title="保障需求清单">
<ModuleWrapper title="统计报表" height="10%"><div> <a-button type="primary" @click="downloadExcel1" >支援保障仿真效果统计表</a-button></div></ModuleWrapper>
<ModuleWrapper height="55%" title="保障需求清单">
<div class="normal" style="padding: 5px; overflow-y: auto">
<a-table
class="simulation-table-plain"
@ -187,18 +146,6 @@ export default {
return {
initial: false,
ws: null,
data: [],
columns: [
{ dataIndex: 'serial' },
{ title: '天气类型', dataIndex: 'weatherType' },
{ title: '持续开始时间', dataIndex: 'lastBegTime' },
{ title: '持续结束时间', dataIndex: 'lastEndTime' },
{
title: '操作',
dataIndex: 'operation',
scopedSlots: { customRender: 'operation' }
}
],
roomInfo: {
mag: '',
status: '',
@ -316,8 +263,6 @@ export default {
this.scenarioId = this.$route.params.scenarioId
this.scenarioName = this.$route.params.scenarioName
this.getBlbzTreeData()
this.getWeathers()
window.addEventListener('beforeunload', (e) => {
this.childWindow && this.childWindow.close()
return true // returnValue
@ -334,12 +279,12 @@ export default {
},
methods: {
downloadExcel1() {
this.$http({
this.axios({
method: 'get',
url: '/scenario/battleConsume/statistic/downloadExcel1',
url: '/downloadExcel1',
responseType: 'blob'
}).then(res => {
const blob = new Blob([res.data], {
const blob = new Blob([res], {
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
})
const link = document.createElement('a')