diff --git a/frontend/.env.development b/frontend/.env.development
index f2c6db3..8f13788 100644
--- a/frontend/.env.development
+++ b/frontend/.env.development
@@ -19,6 +19,6 @@ VITE_API_URL=/api
# 开发环境跨域代理,支持配置多个
-VITE_PROXY=[["/api","http://192.168.1.125:18092/"]]
+VITE_PROXY=[["/api","http://192.168.1.124:18092/"]]
#VITE_PROXY=[["/api","http://192.168.1.125:18092/"]]
# VITE_PROXY=[["/api","http://192.168.1.138:8080/"]]张文
diff --git a/frontend/src/api/device/interface/device.ts b/frontend/src/api/device/interface/device.ts
index 9f5d335..b2e029a 100644
--- a/frontend/src/api/device/interface/device.ts
+++ b/frontend/src/api/device/interface/device.ts
@@ -60,6 +60,19 @@ export namespace Device {
power: string;
}
+
+ export interface ResDev{
+ id: string;
+ name: string ,
+ icd:string ,
+ power:string,
+ devVolt:number,
+ devCurr:number,
+ devChns:number,
+ }
+
+
+
/**
* 被检设备表格查询分页返回的对象;
*/
diff --git a/frontend/src/stores/modules/mode.ts b/frontend/src/stores/modules/mode.ts
index fa741fa..99caac0 100644
--- a/frontend/src/stores/modules/mode.ts
+++ b/frontend/src/stores/modules/mode.ts
@@ -35,4 +35,5 @@ export const useModeStore = defineStore('mode', {
localStorage.setItem('currentScene', sceneName); // 保存到 localStorage
},
},
- });
\ No newline at end of file
+ });
+
diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue
index b5592bf..af98f98 100644
--- a/frontend/src/views/home/components/table.vue
+++ b/frontend/src/views/home/components/table.vue
@@ -91,9 +91,9 @@
>报告下载
- 报告生成
+ > -->
-->
-
+
();
// 存储设备类型选项
const devTypeOptions = ref<{
@@ -437,19 +440,18 @@ const getTableList = async (params: any) => {
}
if(props.id){
const checkStateList = ref()
- if(form.value.checkStatus != null){
- checkStateList.value = [form.value.checkStatus]
- }else{
- checkStateList.value = checkStateTable.value
- }
- return getBoundPqDevList({'planId': props.id,
- 'checkStateList': checkStateList.value,
- 'checkResult': form.value.checkResult,
- 'reportState': form.value.checkReportStatus,
- 'name':form.value.search
- });
- }
-
+ if(form.value.checkStatus != null){
+ checkStateList.value = [form.value.checkStatus]
+ }else{
+ checkStateList.value = checkStateTable.value
+ }
+ return getBoundPqDevList({'planId': props.id,
+ 'checkStateList': checkStateList.value,
+ 'checkResult': form.value.checkResult,
+ 'reportState': form.value.checkReportStatus,
+ 'name':form.value.search
+ });
+ }
};
// 表格配置项
@@ -985,9 +987,10 @@ const handleTest = async (val:string) => {
)
return
}
- if(val==='批量生成')
+ if(val==='批量下载')
{
reportDialogVisible.value = true;
+
return
}
@@ -1025,6 +1028,7 @@ const openDrawer = (title: string, row: any) => {
if(title === '生成')
{
//reportDialogVisible.value = true;
+ emit('batchGenerateClicked'); // 触发事件
useDownload(downloadDevData,'调试报告'+formatDate(new Date()), {planId:checkStore.planId,devId:row.id}, false,'.docx')
}
@@ -1040,6 +1044,7 @@ const openDrawer = (title: string, row: any) => {
if (title === '归档')
{
+ emit('batchGenerateClicked'); // 触发事件
documentedPqDev([row.id])
// const loading = ElLoading.service({
// lock: true,
@@ -1087,6 +1092,14 @@ onBeforeMount(async () => {
devChns: item.devChns
}))
})
+
+
+
+
+const handleQuitClicked = () => {
+ emit('batchGenerateClicked'); // 触发事件
+};
+
defineExpose({ changeActiveTabs });