diff --git a/.env.development b/.env.development index d433bd50..7ed4e2e2 100644 --- a/.env.development +++ b/.env.development @@ -3,9 +3,9 @@ NODE_ENV = 'development' # 本地环境接口地址(/api/index.ts文件中使用) # 后端本地 -# VITE_API_URL = 'http://192.168.34.155:19111' +VITE_API_URL = 'http://192.168.34.155:19111' # VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地 -VITE_API_URL = 'http://182.90.224.237:51234' #雄哥远程 +# VITE_API_URL = 'http://182.90.224.237:51234' #雄哥远程 # VITE_API_URL = 'http://192.168.34.221:28889' # VITE_API_URL = 'http://121.196.214.246/api' # VITE_API_URL = 'http://jxj.zhgdyun.com:100' diff --git a/.env.production b/.env.production index 9c89c0fb..eb5d9625 100644 --- a/.env.production +++ b/.env.production @@ -22,13 +22,13 @@ NODE_ENV = "production" # VITE_API_URL = 'http://182.90.224.237:15551' # agjt # VITE_API_URL = 'http://42.180.188.17:9809' #生产环境 -# VITE_API_URL = 'http://42.180.188.17:11211' #测试环境 +VITE_API_URL = 'http://42.180.188.17:11211' #测试环境 # 苏立信/重庆市南岸区 # VITE_API_URL = 'http://101.43.164.214:11111' # 中科安信 # VITE_API_URL = 'http://8.136.222.164:8808' # 中科佳成 -VITE_API_URL = 'http://1.13.185.209:8089' +# VITE_API_URL = 'http://1.13.185.209:8089' # 打包 VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url=' diff --git a/src/components/setVideoDialog.vue b/src/components/setVideoDialog.vue index dae62611..c0598fab 100644 --- a/src/components/setVideoDialog.vue +++ b/src/components/setVideoDialog.vue @@ -20,8 +20,9 @@ ref="upload" class="upload-demo" :action="BASEURL + '/upload/image'" - :on-success="file => handleSuccess(file, index)" + :on-success="(file: any) => handleSuccess(file, index)" :beforeUpload="handleBeforeUploadVideo" + :on-error="handleError" name="files" :show-file-list="false" > @@ -46,6 +47,7 @@ import { onMounted, reactive, ref } from "vue"; import { UploadFilled } from "@element-plus/icons-vue"; import { ElMessage } from "element-plus"; import type { UploadInstance } from "element-plus"; +import { showFullScreenLoading, tryHideFullScreenLoading } from "@/config/serviceLoading"; import { configWeekVideoSaveApi, configWeekVideoListApi } from "@/api/modules/agjtCommandApi"; import { GlobalStore } from "@/stores"; import moment from "moment"; @@ -139,6 +141,7 @@ function handleBeforeUploadVideo(file: any) { console.log(file, "上传之前"); let fileType = file.type.split("/")[0]; if (fileType == "video") { + showFullScreenLoading(); return true; } else { ElMessage({ @@ -153,11 +156,17 @@ function handleBeforeUploadVideo(file: any) { function handleSuccess(file: any, index: number) { if (file.code == 200 || file.status == "SUCCESS") { console.log(file, "上传成功"); + tryHideFullScreenLoading(); let url = file.data[0].imageUrl; // this.imgUrl = url; configWeekVideoEditFn(true, url, index); } } +// 视频上传成功 +function handleError() { + tryHideFullScreenLoading(); +} + const closeDialog = () => { dialogInfo.showDialog = false; dialogInfo.postData = {}; diff --git a/src/config/config.ts b/src/config/config.ts index f4532ba8..06880ef7 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -28,10 +28,10 @@ export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL; // export const COMPANY: string = "zsbf"; //中水北方 // export const COMPANY: string = "as"; //鞍山项目 // export const COMPANY: string = "agjt"; //鞍钢集团 -export const COMPANY: string = "agjtLive"; //鞍钢集团现场大屏 现场大屏所有接口暂时写死projectSn,部署时需根据环境来切换相应的projectSn +// export const COMPANY: string = "agjtLive"; //鞍钢集团现场大屏 // export const COMPANY: string = "agjtCommand"; //鞍钢集团指挥部大屏 // export const COMPANY: string = "agjtProjectKanban"; //鞍钢集团项目看板大屏 -// export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览 +export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览 // export const COMPANY: string = "zkjc"; //中科佳成项目 // export const COMPANY: string = "cqna"; //重庆南岸项目 // export const COMPANY: string = "slx"; //苏立信项目 diff --git a/src/routers/modules/staticRouter.ts b/src/routers/modules/staticRouter.ts index 72868c2e..644f1805 100644 --- a/src/routers/modules/staticRouter.ts +++ b/src/routers/modules/staticRouter.ts @@ -26,8 +26,8 @@ export const staticRouter: RouteRecordRaw[] = [ name: "大屏", // component: () => import("@/views/sevenLargeScreen/indexL.vue"), //七参数标准版 // component: () => import("@/views/commandScreen/indexCommand.vue"), //指挥部大屏 - component: () => import("@/views/agjtLiveScreen/indexLive.vue"), //鞍钢现场大屏 现场大屏所有接口暂时写死projectSn,部署时需根据环境来切换相应的projectSn - // component: () => import("@/views/overviewScreen/indexCommand.vue"), //总览大屏 + // component: () => import("@/views/agjtLiveScreen/indexLive.vue"), //鞍钢现场大屏 + component: () => import("@/views/overviewScreen/indexCommand.vue"), //总览大屏 // component: () => import("@/views/agjtProjectKanban/indexL.vue"), //鞍钢集团项目看板大屏 // component: () => import("@/views/sevenLargeScreen/indexL_syhy.vue"), // 只有一级路由(盘锦、嘉兴、鄱湖美湾医疗项目需切换至该首页) children: [ diff --git a/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/leftCenter.vue b/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/leftCenter.vue index 046ccae6..8d196716 100644 --- a/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/leftCenter.vue +++ b/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/leftCenter.vue @@ -204,7 +204,7 @@ const drawTwoEchart = () => { title: { text: stateInfo.dataDetail.num, subtext: stateInfo.dataDetail.name, - x: "29%", + x: "24%", y: "40%", textAlign: "center", textStyle: { @@ -272,7 +272,8 @@ const drawTwoEchart = () => { if (data == "无") return; let value = dataList.value[i].value; let percentage = dataList.value[i].percentage + "%"; - return "{name| " + data + "} {gap| }" + `{value|${value}} {gap| } {value1|${percentage}}`; + const newData = data.length > 10 ? data.substr(0, 10) + "..." : data; + return "{name| " + newData + "} {gap| }" + `{value|${value}} {gap| } {value1|${percentage}}`; } } } @@ -285,7 +286,7 @@ const drawTwoEchart = () => { name: "", type: "pie", radius: [100, 95], - center: ["30%", "50%"], + center: ["25%", "50%"], hoverAnimation: false, tooltip: { trigger: "none" // 内层饼图也设置 tooltip.trigger 为 'none' @@ -426,7 +427,7 @@ const drawTwoEchart = () => { name: "", type: "pie", radius: [60, 80], - center: ["30%", "50%"], + center: ["25%", "50%"], hoverAnimation: true, itemStyle: { borderWidth: 3, @@ -449,7 +450,7 @@ const drawTwoEchart = () => { { type: "pie", radius: ["52", "55"], - center: ["30%", "50%"], + center: ["25%", "50%"], label: { show: false }, diff --git a/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/rightBottom.vue b/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/rightBottom.vue index 02cf7782..0f45312d 100644 --- a/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/rightBottom.vue +++ b/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/rightBottom.vue @@ -1,16 +1,22 @@