修改
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
gap: 12px;
|
||||
grid-template-columns: 1624px;
|
||||
">
|
||||
<changeBase />
|
||||
<changeBase @selectChange="selectChange" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="top" style="display: flex; gap: 16px;margin-top: -20px;">
|
||||
@@ -35,7 +35,7 @@
|
||||
gap: 12px;
|
||||
grid-template-columns: 1624px;
|
||||
">
|
||||
<profitLineChart :yName="'元/㎡'" :dateData="dateData" />
|
||||
<profitLineChart :yName="'元/㎡'" :dateData="dateData" :trendData="trendData" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -152,8 +152,9 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
getData(obj) {
|
||||
this.dateData = obj
|
||||
getData() {
|
||||
// this.dateData = obj
|
||||
// console.log('obj', obj);
|
||||
getCostAnalysisXXCostList({
|
||||
startTime: "1762704000290",
|
||||
endTime: "1762790399290",
|
||||
@@ -172,7 +173,20 @@ export default {
|
||||
},
|
||||
handleTimeChange(obj) {
|
||||
console.log(obj, 'obj');
|
||||
this.getData(obj)
|
||||
this.dateData = {
|
||||
startTime: obj.startTime,
|
||||
endTime: obj.endTime,
|
||||
mode: obj.mode,
|
||||
}
|
||||
|
||||
this.getData()
|
||||
},
|
||||
selectChange(data) {
|
||||
console.log('选中的数据:', data);
|
||||
this.levelId = data
|
||||
if (this.dateData.startTime && this.dateData.endTime) {
|
||||
this.getData();
|
||||
}
|
||||
},
|
||||
handleClickOutside() {
|
||||
this.$store.dispatch("app/closeSideBar", { withoutAnimation: false });
|
||||
|
||||
Reference in New Issue
Block a user