This commit is contained in:
‘937886381’
2026-01-06 13:48:11 +08:00
parent 20ef2b9763
commit 5605eeab06
287 changed files with 1890 additions and 1381 deletions

View File

@@ -2,8 +2,8 @@
<div id="dayReport" class="dayReport" :style="styles">
<div v-if="device === 'mobile' && sidebar.opened" class="drawer-bg" @click="handleClickOutside" />
<sidebar v-if="!sidebar.hide" class="sidebar-container" />
<ReportHeader top-title="利润总额" :is-full-screen="isFullScreen" @screenfullChange="screenfullChange"
@timeRangeChange="handleTimeChange" />
<ReportHeader :dateData="dateData" top-title="利润总额" :is-full-screen="isFullScreen"
@screenfullChange="screenfullChange" @timeRangeChange="handleTimeChange" />
<div class="main-body" style="
flex: 1;
display: flex;
@@ -16,7 +16,7 @@
gap: 12px;
grid-template-columns:1624px;
">
<operatingLineChart :monData="monData" />
<operatingLineChart :dateData="dateData" :monData="monData" />
</div>
</div>
<div class="top" style="display: flex; gap: 16px;margin-top: 6px;">
@@ -25,7 +25,7 @@
gap: 12px;
grid-template-columns: 1624px;
">
<operatingLineChartCumulative :totalData="totalData" />
<operatingLineChartCumulative :dateData="dateData" :totalData="totalData" />
<!-- <keyWork /> -->
</div>
</div>
@@ -68,7 +68,7 @@ export default {
timer: null,
beilv: 1,
value: 100,
selectDate: {},
dateData: {},
monData: [],
totalData: [],
};
@@ -136,17 +136,18 @@ export default {
this.beilv = _this.clientWidth / 1920;
})();
};
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {
getData() {
getProfitAnalysisTotalList({
startTime: this.selectDate.startTime,
endTime: this.selectDate.endTime,
startTime: this.dateData.startTime,
endTime: this.dateData.endTime,
analysisObject: [
"利润总额"
],
levelId: 1,
// timeDim: this.selectDate.mode
// timeDim: this.dateData.mode
}).then((res) => {
console.log(res);
this.monData = res.data.currentMonthData
@@ -161,7 +162,7 @@ export default {
},
handleTimeChange(obj) {
// console.log(obj, 'obj');
this.selectDate = obj
this.dateData= obj
this.getData()
},
handleClickOutside() {

View File

@@ -2,8 +2,8 @@
<div id="dayReport" class="dayReport" :style="styles">
<div v-if="device === 'mobile' && sidebar.opened" class="drawer-bg" @click="handleClickOutside" />
<sidebar v-if="!sidebar.hide" class="sidebar-container" />
<ReportHeader size="psi" @timeRangeChange="handleTimeChange" top-title="基地利润总额" :is-full-screen="isFullScreen"
@screenfullChange="screenfullChange" />
<ReportHeader :dateData="dateData" size="psi" @timeRangeChange="handleTimeChange" top-title="基地利润总额"
:is-full-screen="isFullScreen" @screenfullChange="screenfullChange" />
<div class="main-body" style="
margin-top: -20px;
flex: 1;
@@ -37,7 +37,8 @@
gap: 12px;
grid-template-columns: 1624px;
">
<relatedIndicatorsAnalysis :factory="factory" :relatedData="relatedData" :title="'相关指标分析·单位/万元'" />
<relatedIndicatorsAnalysis :dateData="dateData" :factory="factory" :relatedData="relatedData"
:title="'相关指标分析'" />
</div>
</div>
@@ -174,7 +175,8 @@ export default {
this.beilv = _this.clientWidth / 1920;
})();
};
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
this.dateData = this.$route.query.dateData ? this.$route.query.dateData : undefined
},
methods: {
handleChange(value) {