From d51a2a62a2d60879da093e88d4f44bd0b0e2dcf3 Mon Sep 17 00:00:00 2001 From: Rain_ <904416525@qq.com> Date: Mon, 7 Apr 2025 13:55:08 +0800 Subject: [PATCH] =?UTF-8?q?flx:=E6=8F=90=E4=BA=A4=E8=BF=9B=E5=BA=A6?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=9B=BE=E8=BD=AE=E6=92=AD=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/stores/index.ts | 9 ++ src/stores/interface/index.ts | 4 +- .../guidancePartyBuilding/bottomCenter.vue | 13 ++- .../guidancePartyBuilding/bottomRight.vue | 11 ++- .../guidancePartyBuilding/dialog-article.vue | 71 +++++++++++-- .../guidancePartyBuilding/index.vue | 7 +- .../guidancePartyBuilding/leftCenter.vue | 8 +- .../party-build-dialog.vue | 15 ++- .../guidancePartyBuilding/rightCenter.vue | 33 ++++++- .../guidancePartyBuilding/rightTop.vue | 10 +- .../homeOverview/centerTop.vue | 12 ++- .../homeOverview/rightTop.vue | 6 +- .../projectOverview/centerBottom.vue | 4 +- src/views/sevenLargeScreen/indexL.vue | 21 +++- .../schedulePlan/ganttChart.vue | 99 ++++++++++++++++++- .../qualityControl/schedulePlan/index.vue | 8 +- .../schedulePlan/rightBottom.vue | 2 +- .../qualityControl/schedulePlan/rightTop.vue | 62 ++++++++++-- 19 files changed, 349 insertions(+), 50 deletions(-) diff --git a/.env.development b/.env.development index 6f5a84f..ebddd1e 100644 --- a/.env.development +++ b/.env.development @@ -4,7 +4,7 @@ NODE_ENV = 'development' # 本地环境接口地址(/api/index.ts文件中使用) # 后端本地 # VITE_API_URL = 'http://192.168.34.155:19111' -VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地 +# VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地 # VITE_API_URL = 'http://192.168.34.221:28890' #雄哥本地 # VITE_API_URL = 'http://182.90.224.237:51234' #雄哥远程 # VITE_API_URL = 'http://192.168.34.221:28889' @@ -47,7 +47,7 @@ VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地 # 包头化工 # VITE_API_URL = 'http://jxj.zhgdyun.com:18000' # 包头化工(正式) -# VITE_API_URL = 'http://219.147.96.219:9809' +VITE_API_URL = 'http://219.147.96.219:9809' # 大连金笔 # VITE_API_URL = 'http://101.43.164.214:11126' diff --git a/src/stores/index.ts b/src/stores/index.ts index f52451b..e88fc8a 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts @@ -133,12 +133,21 @@ export const GlobalStore = defineStore({ json: getAssetsFile('file/file_json.png'), exe: getAssetsFile('file/file_exe.png') }, + schedulePlanFlag: false, + schedulePlanTimeFlag: "", }), getters: {}, actions: { + setSchedulePlanTime(time: number|string) { + this.schedulePlanTimeFlag = time; + }, + setSchedulePlan(flag: boolean) { + this.schedulePlanFlag = flag; + }, setShowDown(flag: boolean){ console.log(flag); this.showDown = flag; + this.schedulePlanFlag = !flag; }, setShedulePlanImage(image: string, type: string|number){ if(type == 1) { diff --git a/src/stores/interface/index.ts b/src/stores/interface/index.ts index bbe6a1e..09a87ef 100644 --- a/src/stores/interface/index.ts +++ b/src/stores/interface/index.ts @@ -22,7 +22,9 @@ export interface GlobalState { schedulePlanImage2: string; showDown: boolean, fileImgTypeList: any[], - fileImgMap: any + fileImgMap: any, + schedulePlanFlag: boolean, + schedulePlanTimeFlag: string | number, } /* themeConfigProp */ diff --git a/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/bottomCenter.vue b/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/bottomCenter.vue index cc8f220..c65cbc6 100644 --- a/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/bottomCenter.vue +++ b/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/bottomCenter.vue @@ -4,10 +4,10 @@
-
+ +
{{ item.title || " " }}
{{ item.createDate || " " }}
@@ -48,6 +48,7 @@ const BASEURL = import.meta.env.VITE_API_URL; // const companyName = reactive(COMPANY); let textTitle = ref("党建共建"); + const memberCareList = ref({} as any); //获取党建共建 const getMemberCareList = async () => { @@ -73,7 +74,7 @@ const getMemberCareList = async () => { }); } }; -const particularDetail = (type: number) => { +const particularDetail = (type: any) => { emits("openDialog", type); }; onMounted(() => { @@ -177,8 +178,10 @@ onMounted(() => { } } .detail-text { - width: 85%; + // width: 85%; + width: 95%; margin-left: 2%; + cursor: pointer; .title { width: 94%; white-space: nowrap; //单行 diff --git a/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/bottomRight.vue b/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/bottomRight.vue index b7e6404..c60ea59 100644 --- a/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/bottomRight.vue +++ b/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/bottomRight.vue @@ -11,8 +11,8 @@ fit="cover" />
--> -
-
115533{{ item.title || " " }}
+
+
{{ item.title || " " }}
{{ item.createDate || " " }}
@@ -30,6 +30,7 @@ import Card from "@/components/card.vue"; import { onMounted, ref } from "vue"; import { GlobalStore } from "@/stores"; import { getPartyBuildingGuidancePage } from "@/api/modules/guidancePartyBuilding"; +const emits = defineEmits(["openDialog"]); const store = GlobalStore(); // const companyName = reactive(COMPANY); let textTitle = ref("学习园地"); @@ -60,6 +61,11 @@ const getMemberCareList = async () => { }); } }; +const particularDetail = (row: any) => { + emits("openDialog", { + ...row + }); +}; onMounted(() => { getMemberCareList(); @@ -109,6 +115,7 @@ onMounted(() => { .detail-text { width: 85%; margin-left: 2%; + cursor: pointer; .title { width: 94%; white-space: nowrap; //单行 diff --git a/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/dialog-article.vue b/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/dialog-article.vue index 9874c56..0a4e4d8 100644 --- a/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/dialog-article.vue +++ b/src/views/sevenLargeScreen/comprehensiveManage/guidancePartyBuilding/dialog-article.vue @@ -23,10 +23,12 @@
{{ detailData.title || detailData.articleTitle || "" }}
时间: {{ detailData.createDate || "" }}
- +
+
+ 预览
@@ -36,11 +38,16 @@