diff --git a/src/components/setVideoDialog.vue b/src/components/setVideoDialog.vue
index b900e40..dae6261 100644
--- a/src/components/setVideoDialog.vue
+++ b/src/components/setVideoDialog.vue
@@ -46,13 +46,13 @@ 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 { configWeekVideoSaveApi,configWeekVideoListApi } from "@/api/modules/agjtCommandApi";
+import { configWeekVideoSaveApi, configWeekVideoListApi } from "@/api/modules/agjtCommandApi";
import { GlobalStore } from "@/stores";
import moment from "moment";
import { COMPANY } from "@/config/config";
const store = GlobalStore();
const BASEURL = import.meta.env.VITE_API_URL;
-const emits = defineEmits(["updateConfig"])
+const emits = defineEmits(["updateConfig"]);
const videoConfigData = ref();
const dialogInfo = reactive({
showDialog: false,
@@ -89,7 +89,7 @@ const dialogInfo = reactive({
]
});
// 获取一周的配置视频数据
-const configWeekVideoListFn = async (showLoading:boolean) => {
+const configWeekVideoListFn = async (showLoading: boolean) => {
const res: any = await configWeekVideoListApi(
{
projectSn: store.sn
@@ -97,35 +97,32 @@ const configWeekVideoListFn = async (showLoading:boolean) => {
showLoading
);
if (res.result) {
- videoConfigData.value = res.result
+ videoConfigData.value = res.result;
}
-}
+};
// 修改一周内某一天的视频
-const configWeekVideoEditFn = async (showLoading:boolean,url:any,weekIndex:number) => {
- console.log(url)
- let requestData:any = {
+const configWeekVideoEditFn = async (showLoading: boolean, url: any, weekIndex: number) => {
+ console.log(url);
+ let requestData: any = {
projectSn: store.sn
- }
+ };
// 星期参数
- const today = weekIndex == 6?0:weekIndex + 1
- const weekParamsKey = ["sun","mon","tues","wed","thur","fri","sat"]
+ const today = weekIndex == 6 ? 0 : weekIndex + 1;
+ const weekParamsKey = ["sun", "mon", "tues", "wed", "thur", "fri", "sat"];
requestData[weekParamsKey[+today]] = url;
// type参数
- if(COMPANY == "agjtProjectKanban"){
+ if (COMPANY == "agjtProjectKanban") {
requestData.type = 1;
- } else if(COMPANY == "agjtOverviewScreen"){
+ } else if (COMPANY == "agjtOverviewScreen") {
requestData.type = 2;
- } else if(COMPANY == "agjtLive"){
+ } else if (COMPANY == "agjtLive") {
requestData.type = 3;
}
// id参数
- if(videoConfigData.value && videoConfigData.value.length){
- requestData.id = videoConfigData.value[0].id
+ if (videoConfigData.value && videoConfigData.value.length) {
+ requestData.id = videoConfigData.value[0].id;
}
- const res: any = await configWeekVideoSaveApi(
- requestData,
- showLoading
- );
+ const res: any = await configWeekVideoSaveApi(requestData, showLoading);
if (res.success) {
console.log("修改成功", res);
ElMessage({
@@ -134,9 +131,9 @@ const configWeekVideoEditFn = async (showLoading:boolean,url:any,weekIndex:numbe
type: "success"
});
configWeekVideoListFn(true);
- emits("updateConfig")
+ emits("updateConfig");
}
-}
+};
// 视频文件上传 之前
function handleBeforeUploadVideo(file: any) {
console.log(file, "上传之前");
@@ -158,7 +155,7 @@ function handleSuccess(file: any, index: number) {
console.log(file, "上传成功");
let url = file.data[0].imageUrl;
// this.imgUrl = url;
- configWeekVideoEditFn(true,url,index);
+ configWeekVideoEditFn(true, url, index);
}
}
const closeDialog = () => {
diff --git a/src/config/config.ts b/src/config/config.ts
index 335f949..c1a2a08 100644
--- a/src/config/config.ts
+++ b/src/config/config.ts
@@ -30,8 +30,8 @@ export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL;
// export const COMPANY: string = "agjt"; //鞍钢集团
// export const COMPANY: string = "agjtLive"; //鞍钢集团现场大屏
// export const COMPANY: string = "agjtCommand"; //鞍钢集团指挥部大屏
-export const COMPANY: string = "agjtProjectKanban"; //鞍钢集团项目看板大屏
-// export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览
+// export const COMPANY: string = "agjtProjectKanban"; //鞍钢集团项目看板大屏
+export const COMPANY: string = "agjtOverviewScreen"; //鞍钢集团项目总览
// export const COMPANY: string = "slx"; //苏立信项目
// export const COMPANY: string = "hfqc"; //合肥启程项目
// export const COMPANY: string = "jsyc"; // 江苏盐城项目
diff --git a/src/routers/modules/staticRouter.ts b/src/routers/modules/staticRouter.ts
index 053cd1d..083d2fd 100644
--- a/src/routers/modules/staticRouter.ts
+++ b/src/routers/modules/staticRouter.ts
@@ -27,8 +27,8 @@ export const staticRouter: RouteRecordRaw[] = [
// // component: () => import("@/views/sevenLargeScreen/indexL.vue"), //七参数标准版
// component: () => import("@/views/commandScreen/indexCommand.vue"), //指挥部大屏
// component: () => import("@/views/agjtLiveScreen/indexLive.vue"), //鞍钢现场大屏
- // component: () => import("@/views/overviewScreen/indexCommand.vue"), //总览大屏
- component: () => import("@/views/agjtProjectKanban/indexL.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/centerTop.vue b/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/centerTop.vue
index 27ba00c..407ac48 100644
--- a/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/centerTop.vue
+++ b/src/views/agjtProjectKanban/comprehensiveManage/projectOverview/centerTop.vue
@@ -5,15 +5,15 @@
总览大屏
+总览大屏