刷新饼图
This commit is contained in:
@@ -91,9 +91,9 @@
|
||||
>报告下载</el-button
|
||||
>
|
||||
<!-- :disabled='!scope.isSelected' -->
|
||||
<el-button type="primary" :icon="Postcard" @click="handleTest('批量生成')" v-if="form.activeTabs === 3"
|
||||
<!-- <el-button type="primary" :icon="Postcard" @click="handleTest('批量生成')" v-if="form.activeTabs === 3"
|
||||
>报告生成</el-button
|
||||
>
|
||||
> -->
|
||||
|
||||
<!-- :disabled="!scope.isSelected || scope.selectedList.filter((item) => item.check_State === '检测完成').length === 0" -->
|
||||
<el-button type="primary" :icon="Notebook" @click="handleTest('批量归档')" v-if="form.activeTabs === 4"
|
||||
@@ -210,7 +210,7 @@
|
||||
:dialogTitle="dialogTitle"
|
||||
@update:visible="dialogFormVisible = $event"
|
||||
/> -->
|
||||
<TestPopup ref="testPopup"></TestPopup>
|
||||
<TestPopup ref="testPopup" @quitClicked="handleQuitClicked" ></TestPopup>
|
||||
|
||||
<reportPopup
|
||||
:visible="reportDialogVisible"
|
||||
@@ -251,7 +251,7 @@ import reportPopup from "./reportPopup.vue";
|
||||
import dataCheckPopup from "./dataCheckSingleChannelSingleTestPopup.vue";
|
||||
import dataCheckChangeErrSysPopup from "./dataCheckChangeErrSysPopup.vue";
|
||||
import { getBoundPqDevList } from '@/api/plan/plan.ts'
|
||||
import { onMounted, reactive, ref, watch } from "vue";
|
||||
import { onBeforeMount, onMounted, reactive, ref, watch } from "vue";
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import ChannelsTest from './channelsTest.vue'
|
||||
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
||||
@@ -331,6 +331,9 @@ isTimeCheck: {
|
||||
}
|
||||
})
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'batchGenerateClicked'): void;
|
||||
}>();
|
||||
|
||||
// 存储设备类型选项
|
||||
const devTypeOptions = ref<{
|
||||
@@ -437,19 +440,18 @@ const getTableList = async (params: any) => {
|
||||
}
|
||||
if(props.id){
|
||||
const checkStateList = ref<any>()
|
||||
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 });
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user