From 3761fc833d54de1c76424f22cd05173443beb91a Mon Sep 17 00:00:00 2001 From: haha Date: Sun, 8 Jun 2025 17:18:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=88=9D=E5=A7=8B=E5=8C=96=E6=9F=A5=E8=AF=A2=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/bim/bimSetting/ModelFloorTree.vue | 34 +- .../views/manage/attendanceUbiData/index.vue | 3 +- .../manage/attendanceUbiData/statistics.vue | 3 +- .../src/views/manage/attendance_cfg/index.vue | 1 + .../manage/attendance_ubi_device/index.vue | 583 +++++++++--------- .../src/views/manage/milestone/index.vue | 1 + .../src/views/manage/photography/index.vue | 548 +++++++--------- .../src/views/manage/plan/index.vue | 1 + .../manage/proProjectInfoDepts/index.vue | 5 +- .../manage/proProjectInfoSubdepts/index.vue | 4 +- .../src/views/manage/schedule/index.vue | 1 + .../src/views/manage/schedule/indexViews.vue | 1 + 12 files changed, 561 insertions(+), 624 deletions(-) diff --git a/yanzhu-ui-vue3/src/views/bim/bimSetting/ModelFloorTree.vue b/yanzhu-ui-vue3/src/views/bim/bimSetting/ModelFloorTree.vue index 6ef18bcf..80e1684b 100644 --- a/yanzhu-ui-vue3/src/views/bim/bimSetting/ModelFloorTree.vue +++ b/yanzhu-ui-vue3/src/views/bim/bimSetting/ModelFloorTree.vue @@ -64,6 +64,7 @@ export default { } }, mounted() { + window.mtree = this this.modelTrees = [ { title: '项目模型', @@ -140,14 +141,23 @@ export default { onCheckTree(heckedKeys, e) { const checkNode = e.node.dataRef const checked = e.checked + const halfChecked = e.node.halfChecked if (checkNode.type == 'root') { if (checked) { checkNode.children.forEach((m) => { - if (api.m_model.has(m.modelId)) { - api.Model.setVisible(m.modelId, true) + if (halfChecked) { + if (api.m_model.has(m.modelId)) { + api.Model.remove(m.modelId) + } + this.addModel(m.modelId) this.$emit('change') } else { - this.addModel(m.modelId) + if (api.m_model.has(m.modelId)) { + api.Model.setVisible(m.modelId, true) + this.$emit('change') + } else { + this.addModel(m.modelId) + } } }) } else { @@ -156,7 +166,7 @@ export default { } checkNode.children.forEach((m) => { if (api.m_model.has(m.modelId)) { - api.Model.setVisible(m.modelId, false) + api.Model.remove(m.modelId) this.$emit('change') } }) @@ -165,15 +175,23 @@ export default { } if (checkNode.type == 'model') { if (checked) { - if (api.m_model.has(checkNode.modelId)) { - api.Model.setVisible(checkNode.modelId, true) + if (halfChecked) { + if (api.m_model.has(checkNode.modelId)) { + api.Model.remove(checkNode.modelId) + } + this.addModel(checkNode.modelId) this.$emit('change') } else { - this.addModel(checkNode.modelId) + if (api.m_model.has(checkNode.modelId)) { + api.Model.setVisible(checkNode.modelId, true) + this.$emit('change') + } else { + this.addModel(checkNode.modelId) + } } } else { if (api.m_model.has(checkNode.modelId)) { - api.Model.setVisible(checkNode.modelId, false) + api.Model.remove(checkNode.modelId) this.$emit('change') } } diff --git a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue index b95699e7..8fa40ccf 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/index.vue @@ -11,7 +11,7 @@ - + @@ -229,6 +229,7 @@ function getProjectList() { /** 查询考勤管理列表 */ function getList() { loading.value = true; + queryParams.value.projectId = userStore.currentPrjId; listAttendanceUbiData(queryParams.value).then(response => { attendanceUbiDataList.value = response.rows; total.value = response.total; diff --git a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue index 2562bd72..77ffbb09 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendanceUbiData/statistics.vue @@ -11,7 +11,7 @@ - + @@ -131,6 +131,7 @@ function handleExport(){ } function getList() { + queryParams.value.projectId=userStore.currentPrjId; let queryData={ pageNum:queryParams.value.pageNum, pageSize:queryParams.value.pageSize, diff --git a/yanzhu-ui-vue3/src/views/manage/attendance_cfg/index.vue b/yanzhu-ui-vue3/src/views/manage/attendance_cfg/index.vue index d7b9bbce..5c3660e2 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendance_cfg/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendance_cfg/index.vue @@ -262,6 +262,7 @@ function getProjectList() { /** 查询考勤配置列表 */ function getList() { loading.value = true + queryParams.value.projectId = userStore.currentPrjId listAttendance_cfg(queryParams.value).then((response) => { attendance_cfgList.value = (response.rows || []).map((it) => { it.info = proxy.$tryToJson(it.vendorsParameter) diff --git a/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue b/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue index 516d2297..adbf85cd 100644 --- a/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/attendance_ubi_device/index.vue @@ -1,357 +1,358 @@ diff --git a/yanzhu-ui-vue3/src/views/manage/milestone/index.vue b/yanzhu-ui-vue3/src/views/manage/milestone/index.vue index c553b080..267efe01 100644 --- a/yanzhu-ui-vue3/src/views/manage/milestone/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/milestone/index.vue @@ -108,6 +108,7 @@ const { queryParams, form, rules } = toRefs(data); /** 查询项目里程碑列表 */ function getList() { loading.value = true; + queryParams.value.projectId = userStore.currentPrjId; listMilestone(queryParams.value).then(response => { data.milestoneList = response.rows; total.value = response.total; diff --git a/yanzhu-ui-vue3/src/views/manage/photography/index.vue b/yanzhu-ui-vue3/src/views/manage/photography/index.vue index 7a7d4b75..2050fc4c 100644 --- a/yanzhu-ui-vue3/src/views/manage/photography/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/photography/index.vue @@ -1,385 +1,293 @@ diff --git a/yanzhu-ui-vue3/src/views/manage/plan/index.vue b/yanzhu-ui-vue3/src/views/manage/plan/index.vue index 28a20e85..c87c9427 100644 --- a/yanzhu-ui-vue3/src/views/manage/plan/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/plan/index.vue @@ -145,6 +145,7 @@ function buildTree(all,id){ /** 查询计划管理列表 */ function getList() { + queryParams.value.projectId=userStore.currentPrjId; if(!queryParams.value.projectId){ planList.value=[]; loading.value = false; diff --git a/yanzhu-ui-vue3/src/views/manage/proProjectInfoDepts/index.vue b/yanzhu-ui-vue3/src/views/manage/proProjectInfoDepts/index.vue index 28151fc4..a093d2b1 100644 --- a/yanzhu-ui-vue3/src/views/manage/proProjectInfoDepts/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/proProjectInfoDepts/index.vue @@ -141,10 +141,10 @@