fix:光子统计分析/库存统计、工序合格数统计调整
This commit is contained in:
parent
719a2f899b
commit
1693b9d3da
|
|
@ -274,8 +274,22 @@ export default {
|
|||
that.xAxisData = xAxisData;
|
||||
that.option.xAxis.data = that.xAxisData;
|
||||
that.option.series = seriesData;
|
||||
that.$nextTick(() => {
|
||||
that.resizeChart(xAxisData.length, nameData.length);
|
||||
});
|
||||
});
|
||||
},
|
||||
resizeChart(xCount, materialCount) {
|
||||
let chartDiv = document.getElementById("bachart1");
|
||||
if (!chartDiv) return;
|
||||
let wrapper = chartDiv.parentElement;
|
||||
let parentWidth = wrapper.clientWidth;
|
||||
let groupWidth = Math.max(60, materialCount * 25 + 30);
|
||||
let neededWidth = xCount * groupWidth + 80;
|
||||
chartDiv.style.width = Math.max(parentWidth, neededWidth) + "px";
|
||||
let inst = this.$refs.echarts1 && this.$refs.echarts1.myChart;
|
||||
if (inst) inst.resize();
|
||||
},
|
||||
handleQuery() {
|
||||
if (this.queryDate !== "" && this.queryDate !== null) {
|
||||
if (this.queryType == "月") {
|
||||
|
|
@ -357,4 +371,12 @@ export default {
|
|||
left: 4px;
|
||||
z-index: 10;
|
||||
}
|
||||
.echarts-scroll {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
.echarts-scroll > :deep(#bachart1) {
|
||||
min-width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
:filter-method="filterModel1" filter-placement="bottom-end" />
|
||||
<el-table-column label="规格" prop="material_specification" :filters="specsFilters1"
|
||||
:filter-method="filterSpecs1" filter-placement="bottom-end" />
|
||||
<el-table-column prop="dept_name" label="完成车间" :filters="deptFilters1"
|
||||
<el-table-column prop="dept_name" label="所在车间/仓库" :filters="deptFilters1"
|
||||
:filter-method="filterDept1" filter-placement="bottom-end" />
|
||||
<el-table-column label="库存合格品数" prop="count" />
|
||||
</scTable>
|
||||
|
|
|
|||
Loading…
Reference in New Issue