【修改】 1、前端配置项;2、PPT出题页面加载优化

This commit is contained in:
dlaren
2025-09-10 15:41:32 +08:00
parent 502b4aa154
commit f64eb03ccd
6 changed files with 22 additions and 58 deletions

View File

@@ -4,7 +4,7 @@ NODE_ENV=production
VITE_DEV=false VITE_DEV=false
# 请求路径 # 请求路径
VITE_BASE_URL='http://localhost:48080' VITE_BASE_URL='http://8.153.195.62:48080'
# 文件上传类型server - 后端上传, client - 前端直连上传仅支持S3服务 # 文件上传类型server - 后端上传, client - 前端直连上传仅支持S3服务
VITE_UPLOAD_TYPE=server VITE_UPLOAD_TYPE=server

View File

@@ -1,5 +1,5 @@
{ {
"name": "yudao-ui-admin-vue3", "name": "pengchen-ui-vue3-ts",
"version": "2.4.2-snapshot", "version": "2.4.2-snapshot",
"description": "基于vue3、vite4、element-plus、typesScript", "description": "基于vue3、vite4、element-plus、typesScript",
"author": "xingyu", "author": "xingyu",
@@ -145,12 +145,12 @@
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://gitee.com/yudaocode/yudao-ui-admin-vue3" "url": "git+http://47.101.60.131:10082/"
}, },
"bugs": { "bugs": {
"url": "https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues" "url": "http://47.101.60.131:10082/"
}, },
"homepage": "https://gitee.com/yudaocode/yudao-ui-admin-vue3", "homepage": "http://47.101.60.131:10082/",
"web-types": "./web-types.json", "web-types": "./web-types.json",
"engines": { "engines": {
"node": ">= 16.0.0", "node": ">= 16.0.0",

View File

@@ -209,50 +209,7 @@ const getCount = async () => {
// 获取项目数 // 获取项目数
let projects = reactive<Project[]>([]) let projects = reactive<Project[]>([])
const getProject = async () => { const getProject = async () => {
const data = [ const data = []
{
name: 'ruoyi-vue-pro',
icon: 'akar-icons:github-fill',
message: 'https://github.com/YunaiV/ruoyi-vue-pro',
personal: 'Spring Boot 单体架构',
time: new Date()
},
{
name: 'yudao-ui-admin-vue3',
icon: 'logos:vue',
message: 'https://github.com/yudaocode/yudao-ui-admin-vue3',
personal: 'Vue3 + element-plus',
time: new Date()
},
{
name: 'yudao-ui-admin-vben',
icon: 'logos:vue',
message: 'https://github.com/yudaocode/yudao-ui-admin-vben',
personal: 'Vue3 + vben(antd)',
time: new Date()
},
{
name: 'yudao-cloud',
icon: 'akar-icons:github',
message: 'https://github.com/YunaiV/yudao-cloud',
personal: 'Spring Cloud 微服务架构',
time: new Date()
},
{
name: 'yudao-ui-mall-uniapp',
icon: 'logos:vue',
message: 'https://github.com/yudaocode/yudao-ui-admin-uniapp',
personal: 'Vue3 + uniapp',
time: new Date()
},
{
name: 'yudao-ui-admin-vue2',
icon: 'logos:vue',
message: 'https://github.com/yudaocode/yudao-ui-admin-vue2',
personal: 'Vue2 + element-ui',
time: new Date()
}
]
projects = Object.assign(projects, data) projects = Object.assign(projects, data)
} }

View File

@@ -166,12 +166,10 @@ import {
} from '@/api/iot/statistics' } from '@/api/iot/statistics'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
// TODO @super参考下 /Users/yunai/Java/yudao-ui-admin-vue3/src/views/mall/home/index.vue拆一拆组件
/** IoT 首页 */ /** IoT 首页 */
defineOptions({ name: 'IoTHome' }) defineOptions({ name: 'IoTHome' })
// TODO @super使用下 Echart 组件,参考 yudao-ui-admin-vue3/src/views/mall/home/components/TradeTrendCard.vue 等
echarts.use([ echarts.use([
TooltipComponent, TooltipComponent,
LegendComponent, LegendComponent,

View File

@@ -142,7 +142,7 @@
style="width: 100%" style="width: 100%"
> >
<!-- <el-table-column type="selection" width="55" /> --> <!-- <el-table-column type="selection" width="55" /> -->
<el-table-column label="考点" align="center" prop="contentIn"/> <el-table-column label="考点" align="center" prop="contentIn" />
<el-table-column label="权值" align="center" prop="scoreRate" width="100px" /> <el-table-column label="权值" align="center" prop="scoreRate" width="100px" />
<el-table-column label="操作" align="center" width="100px"> <el-table-column label="操作" align="center" width="100px">
<template #default="scope"> <template #default="scope">
@@ -298,7 +298,7 @@
/> />
</div> </div>
<div style="flex: 1.5; overflow: auto; border: 1px solid #eee; padding: 8px; width: 90%;"> <div style="flex: 1.5; overflow: auto; border: 1px solid #eee; padding: 8px; width: 90%">
<h3>考点详情</h3> <h3>考点详情</h3>
<el-table :data="list" style="width: 100%"> <el-table :data="list" style="width: 100%">
<el-table-column prop="contentIn" label="值" /> <el-table-column prop="contentIn" label="值" />
@@ -529,10 +529,19 @@ const handleNodelClick = async (row: any) => {
// 获取名称 // 获取名称
chineseName.value = '【' + row.belongTo + '】【' + row.name + '】' chineseName.value = '【' + row.belongTo + '】【' + row.name + '】'
textIndex.value = row.index textIndex.value = row.index
const loading = ElLoading.service({
target: '.dialog-scroll-content', // 只遮罩左侧树区域
text: '正在读取详细考点…',
background: 'rgba(255,255,255,0.6)'
})
try {
const res = await PptxApi.getSlideByNameList(row.type) const res = await PptxApi.getSlideByNameList(row.type)
pptxPointsInfoList.value = [] pptxPointsInfoList.value = []
pptxPointsInfoList.value.push(...handleTree(res)) pptxPointsInfoList.value.push(...handleTree(res))
dialogFormVisiblePptxInfos.value = true dialogFormVisiblePptxInfos.value = true
} finally {
loading.close()
}
} }
const handleDelete = (row) => { const handleDelete = (row) => {
console.log(row) console.log(row)

View File

@@ -76,7 +76,7 @@ export default ({command, mode}: ConfigEnv): UserConfig => {
rollupOptions: { rollupOptions: {
output: { output: {
manualChunks: { manualChunks: {
echarts: ['echarts'] // 将 echarts 单独打包,参考 https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues/IAB1SX 讨论 echarts: ['echarts']
} }
}, },
}, },