提交 fe5541a6 authored 作者: lidongxu's avatar lidongxu

refactor(index): 首页去掉各种图表_不应该在正式环境出现

同上
上级 e44508dc
...@@ -7,6 +7,7 @@ VITE_APP_PROMOTION = '/promotion-api' # 促销 ...@@ -7,6 +7,7 @@ VITE_APP_PROMOTION = '/promotion-api' # 促销
# VITE_APP_BASE_API = '/qllan' # VITE_APP_BASE_API = '/qllan'
# VITE_APP_BASE_API = '/bclan' # VITE_APP_BASE_API = '/bclan'
# VITE_APP_BASE_API = '/home' # VITE_APP_BASE_API = '/home'
# VITE_APP_PROMOTION = '/home-promotion-api' # 促销
# 开发环境配置 # 开发环境配置
VITE_APP_ENV = 'development' VITE_APP_ENV = 'development'
......
<template> <template>
<div> <div class="app-container">
<el-card class="container">
<template #header>
<div class="card-header">
<span>报表列表</span>
</div>
</template>
<div v-for="item in reportList"
class="item">
<el-link icon="Document"
:href="baseURL + item.previewUrl"
target="_blank">{{ item.name }}</el-link>
</div>
</el-card>
</div> </div>
</template> </template>
<script setup> <script setup>
import { getReportListAPI } from '@/api' import { getReportListAPI } from '@/api'
const getReportList = async () => { const baseURL = ref(import.meta.env.VITE_APP_REPORT_URL + '/report')
const res = await getReportListAPI() const reportList = ref([])
console.log(res) const getReportList = async () => {
} const { data } = await getReportListAPI()
getReportList() reportList.value = data
}
getReportList()
</script> </script>
<style scoped lang="scss"> <style scoped
lang="scss">
.item {
margin: 10px 0;
}
</style> </style>
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="container"> <div class="container">
<panel-group @handleSetLineChartData="handleSetLineChartData" /> <panel-group @handleSetLineChartData="handleSetLineChartData" />
<common-menu /> <common-menu />
<el-row :gutter="20" <!-- <el-row :gutter="20"
class="row"> class="row">
<el-col :xs="24" <el-col :xs="24"
:sm="24" :sm="24"
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<line-chart class="line-chart" <line-chart class="line-chart"
:chartData="lineChartData" /> :chartData="lineChartData" />
</el-col> </el-col>
</el-row> </el-row> -->
</div> </div>
</div> </div>
</template> </template>
......
...@@ -43,9 +43,14 @@ export default defineConfig(({ mode, command }) => { ...@@ -43,9 +43,14 @@ export default defineConfig(({ mode, command }) => {
rewrite: (p) => p.replace(/^\/bclan/, '') rewrite: (p) => p.replace(/^\/bclan/, '')
}, },
'/home': { '/home': {
target: 'http://111.198.15.68:86/api', target: 'http://111.198.15.68:85/api',
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/home/, '') rewrite: (p) => p.replace(/^\/home/, '')
},
'/home-promotion-api': {
target: 'http://sfa.test.wxl66.cn:85/promotion-api',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/home-promotion-api/, '')
} }
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论