|
|
@@ -104,6 +104,7 @@ const currentYear = new Date().getFullYear()
|
|
104
|
104
|
|
|
105
|
105
|
// 查询表单数据
|
|
106
|
106
|
const queryForm = ref({
|
|
|
107
|
+ deptId: 100,
|
|
107
|
108
|
dateRangeQueryType: 'YEAR',
|
|
108
|
109
|
year: currentYear,
|
|
109
|
110
|
quarter: '',
|
|
|
@@ -112,6 +113,7 @@ const queryForm = ref({
|
|
112
|
113
|
|
|
113
|
114
|
// 当前查询参数(只有点击查询按钮时才更新)
|
|
114
|
115
|
const currentQueryParams = ref({
|
|
|
116
|
+ deptId: null,
|
|
115
|
117
|
dateRangeQueryType: 'YEAR',
|
|
116
|
118
|
year: currentYear,
|
|
117
|
119
|
quarter: '',
|
|
|
@@ -279,10 +281,10 @@ const handleExport = async () => {
|
|
279
|
281
|
for (let i = 0; i < sectionTitles.length; i++) {
|
|
280
|
282
|
const sectionTitle = sectionTitles[i];
|
|
281
|
283
|
const sectionName = sectionTitle.textContent;
|
|
282
|
|
-
|
|
|
284
|
+
|
|
283
|
285
|
// 检查组件是否显示(通过检查父组件的显示状态)
|
|
284
|
286
|
const componentContainer = sectionTitle.closest('.duty-organization, .quality-control, .risk-hazard, .qa-analysis');
|
|
285
|
|
- const isComponentVisible = componentContainer &&
|
|
|
287
|
+ const isComponentVisible = componentContainer &&
|
|
286
|
288
|
window.getComputedStyle(componentContainer).display !== 'none' &&
|
|
287
|
289
|
componentContainer.offsetHeight > 0 &&
|
|
288
|
290
|
componentContainer.offsetWidth > 0;
|
|
|
@@ -323,7 +325,7 @@ const handleExport = async () => {
|
|
323
|
325
|
const isPanelVisible = window.getComputedStyle(panelItem).display !== 'none' &&
|
|
324
|
326
|
panelItem.offsetHeight > 0 &&
|
|
325
|
327
|
panelItem.offsetWidth > 0;
|
|
326
|
|
-
|
|
|
328
|
+
|
|
327
|
329
|
if (isPanelVisible) {
|
|
328
|
330
|
componentPanelItems.push(panelItem);
|
|
329
|
331
|
}
|