系统名称

This commit is contained in:
wangwenhua 2025-10-20 20:51:44 +08:00
parent 94bd55fc95
commit 6cb58b2691
3 changed files with 16 additions and 9 deletions

View File

@ -21,7 +21,9 @@
</div> </div>
</template> </template>
<a-button type="text-primary" icon="exclamation-circle"></a-button> <a-button type="text-primary" icon="exclamation-circle"></a-button>
</a-popover> </a-popover>
</div> </div>
<div class="page-scene-title"> <div class="page-scene-title">
<span v-if="roomInfo.mag">{{ roomInfo.mag }}倍速</span>&nbsp; <span v-if="roomInfo.mag">{{ roomInfo.mag }}倍速</span>&nbsp;
@ -32,12 +34,13 @@
</div> </div>
</Flex> </Flex>
<Grid class="page-scene-main flex-1 oh" :columns="['320px', 1, '320px']" :rows="['30px', 1]" gap="0px"> <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 :selectedKeys="[]" mode="horizontal" theme="dark">
<a-menu-item @click="handleOpenStatisticPage()"> 统计分析 </a-menu-item> <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"
class="scene-cesium-container" class="scene-cesium-container"
@ -57,6 +60,7 @@
</a-tree> </a-tree>
</div> </div>
</ModuleWrapper> </ModuleWrapper>
<ModuleWrapper title="统计报表" height="25%"><div> <a-button type="primary" @click="downloadExcel1" >支援保障仿真效果统计表</a-button></div></ModuleWrapper>
<ModuleWrapper title="天气预设" height="25%"> <ModuleWrapper title="天气预设" height="25%">
<div> <div>
<a-button type="primary" @click="handleAdd" icon="plus">新增</a-button> <a-button type="primary" @click="handleAdd" icon="plus">新增</a-button>
@ -330,7 +334,7 @@ export default {
}, },
methods: { methods: {
downloadExcel1() { downloadExcel1() {
this.$axios({ this.$http({
method: 'get', method: 'get',
url: '/scenario/battleConsume/statistic/downloadExcel1', url: '/scenario/battleConsume/statistic/downloadExcel1',
responseType: 'blob' responseType: 'blob'

View File

@ -63,24 +63,26 @@ export default {
return this.isAdmin || this.isInstructor || this.isTrainer return this.isAdmin || this.isInstructor || this.isTrainer
}, },
}, },
async created() { created() {
const searchParams = new URLSearchParams(window.location.search) const searchParams = new URLSearchParams(window.location.search)
const searchCode = searchParams.get('code') const searchCode = searchParams.get('code')
const localCode = window.localStorage.getItem('code') const localCode = window.localStorage.getItem('code')
console.log('----------',searchCode,localCode)
if (searchCode) { if (searchCode) {
window.localStorage.setItem('code', searchCode) window.localStorage.setItem('code', searchCode)
window.location.href = window.location.origin + window.location.pathname window.location.href = window.location.origin + window.location.pathname
} else if (localCode) { } else if (localCode) {
try { try {
const tokenRes = await this.$http({ const tokenRes = this.$http({
url: '/oauth2/thirdLogin', url: '/oauth2/thirdLogin',
method: 'get', method: 'get',
params: { code: localCode }, params: { code: localCode },
}) })
this.$store.commit('SET_TOKEN', '123') console.log(tokenRes.data.token)
storage.set(ACCESS_TOKEN, tokenRes.data.token, 7 * 24 * 60 * 60 * 1000) storage.set(ACCESS_TOKEN, tokenRes.data.token, 7 * 24 * 60 * 60 * 1000)
console.log('--------')
this.$store.commit('SET_TOKEN', tokenRes.data.token) this.$store.commit('SET_TOKEN', tokenRes.data.token)
const res = await this.$http({ const res = this.$http({
url: '/auth/userInfo', url: '/auth/userInfo',
method: 'get', method: 'get',
}) })
@ -93,7 +95,7 @@ export default {
} }
} else { } else {
try { try {
const res = await this.$http({ const res = this.$http({
url: '/auth/userInfo', url: '/auth/userInfo',
method: 'get', method: 'get',
}) })

View File

@ -56,6 +56,7 @@ const vueConfig = {
CESIUM_BASE_URL: JSON.stringify('./'), CESIUM_BASE_URL: JSON.stringify('./'),
}), }),
], ],
// en_US: `if prod, add externals` // en_US: `if prod, add externals`
// zh_CN: `这里是用来控制编译忽略外部依赖的,与 config.plugin('html') 配合可以编译时引入外部CDN文件依赖` // zh_CN: `这里是用来控制编译忽略外部依赖的,与 config.plugin('html') 配合可以编译时引入外部CDN文件依赖`
// externals: isProd ? assetsCDN.externals : {} // externals: isProd ? assetsCDN.externals : {}