This commit is contained in:
sjl
2025-01-13 22:42:14 +08:00
parent b584142f5e
commit 5199ee2db0
8 changed files with 31 additions and 32 deletions

View File

@@ -17,8 +17,8 @@
<!-- 表格 header 按钮 -->
<template #tableHeader="">
<el-form :model="form" :inline="true">
<el-form-item label="关键字">
<el-input v-model="form.search" placeholder="请输入设备名称" clearable></el-input>
<el-form-item label="关键字" >
<el-input v-model="form.search" placeholder="请输入设备名称" clearable style="width: 150px;"></el-input>
</el-form-item>
<el-form-item label="检测状态" v-if="form.activeTabs != 3 && form.activeTabs != 4 && form.activeTabs != 5">
<el-select v-model="form.checkStatus" clearable>
@@ -59,9 +59,9 @@
<el-button type="primary" :icon="Search" @click="handleSearch"
>查询</el-button
>
<el-button :icon="Delete" @click="handleRefresh"
<!-- <el-button :icon="Delete" @click="handleRefresh"
>重置</el-button
>
> -->
<!-- :disabled='!scope.isSelected' -->
<el-button
type="primary"
@@ -160,7 +160,7 @@
:icon="Notebook"
@click="openDrawer('归档', scope.row)"
v-if="form.activeTabs === 4"
:disabled = "scope.row.checkState != 2"
:disabled = "scope.row.reportState != 1"
>归档</el-button>
<el-button
@@ -471,7 +471,6 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
render: (scope) => {
// 查找设备类型名称
const name = devTypeOptions.value.find(option => option.id === scope.row.devType);
console.log('表格')
return <span>{name?.name}</span>
},
},
@@ -1028,7 +1027,6 @@ const openDrawer = async (title: string, row: any) => {
if(title === '生成')
{
await useDownload(downloadDevData,'调试报告'+formatDate(new Date()), {planId:checkStore.planId,devId:row.id}, false,'.docx')
emit('batchGenerateClicked'); // 触发事件
}
@@ -1045,7 +1043,6 @@ const openDrawer = async (title: string, row: any) => {
if (title === '归档')
{
await documentedPqDev([row.id])
emit('batchGenerateClicked'); // 触发事件
// const loading = ElLoading.service({