From c69465bda51821cdadbc0e1fefa885fbe071ac28 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Tue, 20 Feb 2024 09:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E6=A0=87=E6=96=B0=E5=A2=9E=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/option/supervise/supervise.js | 1 + src/views/supervise/IndicatorList.vue | 54 +++++++++++--------- src/views/supervise/management.vue | 73 ++++++++++++++------------- 3 files changed, 67 insertions(+), 61 deletions(-) diff --git a/src/option/supervise/supervise.js b/src/option/supervise/supervise.js index 9b509ee1..742bf24f 100644 --- a/src/option/supervise/supervise.js +++ b/src/option/supervise/supervise.js @@ -217,6 +217,7 @@ export const IndicatorColumnList = [ fixed: false, sortable: true, head: false, + isshowSummary: true, }, { prop: 'createDeptName', diff --git a/src/views/supervise/IndicatorList.vue b/src/views/supervise/IndicatorList.vue index 37dd5092..b4433635 100644 --- a/src/views/supervise/IndicatorList.vue +++ b/src/views/supervise/IndicatorList.vue @@ -81,6 +81,7 @@ - -
-
- - -
-
+
+
+ + +
@@ -369,6 +368,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'; import { ref, reactive, computed, onMounted } from 'vue'; import { IndicatorColumnList } from '@/option/supervise/supervise.js'; import functions from '@/utils/functions.js'; +import { setNodeHeight } from '@/utils/util'; import { $_Getclassify, $_newlyadded, @@ -431,6 +431,8 @@ const fuj = val => { .catch(() => {}); }; const srcList = ref([]); +/** 表格实例 */ +const tableNode = ref(); const onLoad = () => { let data = { current: current.value, @@ -585,13 +587,13 @@ const handleNodeClick = (data, node, component) => { // 根据你的需求处理点击事件 }; -const assessDeptChange=()=>{ - if(!searchFrom.value.assessDept){ - query.value.assessDept=null +const assessDeptChange = () => { + if (!searchFrom.value.assessDept) { + query.value.assessDept = null; onLoad(); } - console.log(searchFrom.value.assessDept,'当前点击的考核部门'); -} + console.log(searchFrom.value.assessDept, '当前点击的考核部门'); +}; // 考核部门搜索 const searcheNodeClick = (data, node, component) => { @@ -743,6 +745,8 @@ const selectionChange = list => { const searchHide = () => { search.value = !search.value; + + setNodeHeight(tableNode.value.$el, '', true); }; // 指标分类选择 const ClassificationChange = val => { @@ -1045,9 +1049,9 @@ const timeChange = val => { } } } -.maboxhi { - height: 700px !important; -} +// .maboxhi { +// height: 700px !important; +// } .el_fotnr { :deep(.el-upload) { display: none; diff --git a/src/views/supervise/management.vue b/src/views/supervise/management.vue index 1fd17cdf..d0bc87b3 100644 --- a/src/views/supervise/management.vue +++ b/src/views/supervise/management.vue @@ -67,30 +67,29 @@
- - - -