|
@@ -56,6 +56,17 @@
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
openTopWs();
|
|
openTopWs();
|
|
|
console.log('workshopList', workshopList.value);
|
|
console.log('workshopList', workshopList.value);
|
|
|
|
|
+
|
|
|
|
|
+ const contentDom = document.querySelector('.content') as HTMLDivElement;
|
|
|
|
|
+ if (contentDom) {
|
|
|
|
|
+ updateChartHeight.value = contentDom.offsetHeight - 454 + 'px';
|
|
|
|
|
+ updateLineHeight.value = contentDom.offsetHeight - 404 + 'px';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ console.error('@@@@');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const useHomeScore = useScore();
|
|
const useHomeScore = useScore();
|
|
@@ -78,8 +89,10 @@
|
|
|
const timeSelect = ref<TimeEnum>(TimeEnum.DAY);
|
|
const timeSelect = ref<TimeEnum>(TimeEnum.DAY);
|
|
|
//const workspaceList = ['车间1', '车间2', '车间3'];
|
|
//const workspaceList = ['车间1', '车间2', '车间3'];
|
|
|
|
|
|
|
|
- const updateChartHeight = computed(() => window.innerHeight - 670 + 'px');
|
|
|
|
|
- const updateLineHeight = computed(() => window.innerHeight - 618 + 'px');
|
|
|
|
|
|
|
+ // const updateChartHeight = computed(() => window.innerHeight - 670 + 'px');
|
|
|
|
|
+ // const updateLineHeight = computed(() => window.innerHeight - 618 + 'px');
|
|
|
|
|
+ const updateChartHeight = ref('');
|
|
|
|
|
+ const updateLineHeight = ref('');
|
|
|
|
|
|
|
|
const dataZoomConfig = computed(() => [
|
|
const dataZoomConfig = computed(() => [
|
|
|
{
|
|
{
|
|
@@ -210,6 +223,7 @@
|
|
|
.score-show {
|
|
.score-show {
|
|
|
flex-grow: 1;
|
|
flex-grow: 1;
|
|
|
width: calc(100% - 660px);
|
|
width: calc(100% - 660px);
|
|
|
|
|
+ min-width: 500px;
|
|
|
overflow-x: auto;
|
|
overflow-x: auto;
|
|
|
}
|
|
}
|
|
|
|
|
|