+
diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue
index 17d20ea..7ee8d42 100644
--- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue
+++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue
@@ -66,7 +66,7 @@ const deviceName = ref('被检设备1');
const errorSysName = ref('Q/GDW 10650.2-2021');
const dataRule = ref('所有值');
const scriptSwitch = ref(true);
- const currentScriptDsc = ref('频率准确度检测:频率:42.5Hz Ua=46.192V 0° Ub=46.192V -120° Uc=46.192V 120° Ia=1A 0° Ib=1A -120° Ic=1A 120°');
+ const currentScriptDsc = ref('电压准确度检测:频率:42.5Hz Ua=46.192V 0° Ub=46.192V -120° Uc=46.192V 120° Ia=1A 0° Ib=1A -120° Ic=1A 120°');
const defaultProps = {
children: "children",
label: "name",
diff --git a/frontend/src/views/home/components/reportPopup.vue b/frontend/src/views/home/components/reportPopup.vue
index dce9071..a69c6d5 100644
--- a/frontend/src/views/home/components/reportPopup.vue
+++ b/frontend/src/views/home/components/reportPopup.vue
@@ -47,7 +47,7 @@
- 查看
+ 下载
@@ -69,7 +69,7 @@ import { ElMessage, type FormItemRule } from 'element-plus'
import { addPqDev, updatePqDev } from '@/api/device/device'
import { computed, reactive, type Ref, ref } from 'vue'
import { useDictStore } from '@/stores/modules/dict'
-import { CirclePlus, Delete, EditPen,View } from '@element-plus/icons-vue'
+import { CirclePlus, Delete, Download,View } from '@element-plus/icons-vue'
@@ -78,7 +78,7 @@ import { CirclePlus, Delete, EditPen,View } from '@element-plus/icons-vue'
const errorSysName = ref('Q/GDW 10650.2-2021');
const dataRule = ref('所有值');
const scriptSwitch = ref(true);
- const currentScriptDsc = ref('频率准确度检测:频率:42.5Hz Ua=46.192V 0° Ub=46.192V -120° Uc=46.192V 120° Ia=1A 0° Ib=1A -120° Ic=1A 120°');
+ const currentScriptDsc = ref('电压准确度检测:频率:42.5Hz Ua=46.192V 0° Ub=46.192V -120° Uc=46.192V 120° Ia=1A 0° Ib=1A -120° Ic=1A 120°');
const reportData = ref([
{ id: '1', deviceName: '被检设备1', processValue: '100' , action:'查看' },
diff --git a/frontend/src/views/home/components/timeTest.vue b/frontend/src/views/home/components/timeTest.vue
index e33c43a..709ce3e 100644
--- a/frontend/src/views/home/components/timeTest.vue
+++ b/frontend/src/views/home/components/timeTest.vue
@@ -2,7 +2,14 @@
-
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/home/tabs/dashboard.vue b/frontend/src/views/home/tabs/dashboard.vue
index ea62d0c..500230d 100644
--- a/frontend/src/views/home/tabs/dashboard.vue
+++ b/frontend/src/views/home/tabs/dashboard.vue
@@ -33,7 +33,7 @@
-
+
(null);
+const chartsWidth = ref(0);
const deviceData = deviceDataList.plan_devicedata
const treeRef = ref();
const form: any = ref({
@@ -278,9 +280,9 @@ const getPieData = () => {
pieRef1.value.init();
pieRef2.value.init();
pieRef3.value.init();
- pieRef1.value.reSize(470,145,true);
- pieRef2.value.reSize(470,145,true);
- pieRef3.value.reSize(470,145,true);
+ // pieRef1.value.reSize(470,145,true);
+ // pieRef2.value.reSize(470,145,true);
+ // pieRef3.value.reSize(470,145,true);
};
const getTree = () => {
treeRef.value.getTreeData(data);
@@ -342,11 +344,33 @@ const handleCheckFunction = (val: any) => {
form.value.activeTabs = val;
};
+
+const resizeObserver = new ResizeObserver(entries => {
+ for (let entry of entries) {
+ chartsWidth.value = entry.contentRect.width;
+ console.log('Charts Info Width:', chartsWidth.value);
+
+ pieRef1.value.reSize(chartsWidth.value * 0.95,145,true);
+ pieRef2.value.reSize(chartsWidth.value * 0.95,145,true);
+ pieRef3.value.reSize(chartsWidth.value * 0.95,145,true);
+ }
+});
+
onMounted(() => {
// console.log();
+ if (chartsInfoRef.value) {
+ resizeObserver.observe(chartsInfoRef.value);
+ }
getTree();
getPieData();
});
+
+
+onUnmounted(() => {
+ if (chartsInfoRef.value) {
+ resizeObserver.unobserve(chartsInfoRef.value);
+ }
+});