系统名称
This commit is contained in:
parent
94bd55fc95
commit
abf7a67d07
|
|
@ -36,7 +36,6 @@
|
||||||
<a-menu :selectedKeys="[]" mode="horizontal" theme="dark">
|
<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>
|
</a-menu>
|
||||||
<el-button type="primary" @click="downloadExcel1" >支援保障仿真效果统计表</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
ref="scene-cesium-container"
|
ref="scene-cesium-container"
|
||||||
|
|
@ -57,45 +56,8 @@
|
||||||
</a-tree>
|
</a-tree>
|
||||||
</div>
|
</div>
|
||||||
</ModuleWrapper>
|
</ModuleWrapper>
|
||||||
<ModuleWrapper title="天气预设" height="25%">
|
<ModuleWrapper title="统计报表" height="10%"><div> <a-button type="primary" @click="downloadExcel1" >支援保障仿真效果统计表</a-button></div></ModuleWrapper>
|
||||||
<div>
|
<ModuleWrapper height="55%" title="保障需求清单">
|
||||||
<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="保障需求清单">
|
|
||||||
<div class="normal" style="padding: 5px; overflow-y: auto">
|
<div class="normal" style="padding: 5px; overflow-y: auto">
|
||||||
<a-table
|
<a-table
|
||||||
class="simulation-table-plain"
|
class="simulation-table-plain"
|
||||||
|
|
@ -183,18 +145,6 @@ export default {
|
||||||
return {
|
return {
|
||||||
initial: false,
|
initial: false,
|
||||||
ws: null,
|
ws: null,
|
||||||
data: [],
|
|
||||||
columns: [
|
|
||||||
{ dataIndex: 'serial' },
|
|
||||||
{ title: '天气类型', dataIndex: 'weatherType' },
|
|
||||||
{ title: '持续开始时间', dataIndex: 'lastBegTime' },
|
|
||||||
{ title: '持续结束时间', dataIndex: 'lastEndTime' },
|
|
||||||
{
|
|
||||||
title: '操作',
|
|
||||||
dataIndex: 'operation',
|
|
||||||
scopedSlots: { customRender: 'operation' }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
roomInfo: {
|
roomInfo: {
|
||||||
mag: '',
|
mag: '',
|
||||||
status: '',
|
status: '',
|
||||||
|
|
@ -312,8 +262,6 @@ export default {
|
||||||
this.scenarioId = this.$route.params.scenarioId
|
this.scenarioId = this.$route.params.scenarioId
|
||||||
this.scenarioName = this.$route.params.scenarioName
|
this.scenarioName = this.$route.params.scenarioName
|
||||||
this.getBlbzTreeData()
|
this.getBlbzTreeData()
|
||||||
this.getWeathers()
|
|
||||||
|
|
||||||
window.addEventListener('beforeunload', (e) => {
|
window.addEventListener('beforeunload', (e) => {
|
||||||
this.childWindow && this.childWindow.close()
|
this.childWindow && this.childWindow.close()
|
||||||
return true // 必须设置 returnValue 才能显示确认框
|
return true // 必须设置 returnValue 才能显示确认框
|
||||||
|
|
@ -330,9 +278,9 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
downloadExcel1() {
|
downloadExcel1() {
|
||||||
this.$axios({
|
this.$http({
|
||||||
method: 'get',
|
method: 'get',
|
||||||
url: '/scenario/battleConsume/statistic/downloadExcel1',
|
url: '/scenario/battleConsume/downloadExcel1',
|
||||||
responseType: 'blob'
|
responseType: 'blob'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
const blob = new Blob([res.data], {
|
const blob = new Blob([res.data], {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user