| | |
| | | <el-table-column label="操作" width="250" fixed="right"> |
| | | <template #default="scope"> |
| | | <el-button size="small" text type="primary" :icon="View" @click="openProjectDialog('查看', scope.row)">查看</el-button> |
| | | <el-button size="small" text type="primary" :icon="View" v-if="scope.row.stage == 4" @click="openReportDialog('查看',scope.row)">查看评估报告</el-button> |
| | | <el-button size="small" :disabled="scope.row.status == 2 ? true : false" text type="primary" :icon="Edit" @click="applyAccess( scope.row)">申请评估</el-button> |
| | | <el-button size="small" :disabled="(scope.row.status == 2 && scope.row.stage == 1) ? false : true" text type="warning" :icon="RefreshLeft" @click="cancelAccess( scope.row)">撤销评估</el-button> |
| | | <el-button size="small" type="warning" v-if="scope.row.rectifyStatus == 1" text :icon="Edit" @click="openProjectDialog('整改', scope.row)">整改</el-button> |
| | |
| | | <develop-dialog ref="DevelopDialogRef" @refresh="getdevelopData"></develop-dialog> |
| | | <!-- <apply-start ref="ApplyStartRef"></apply-start>--> |
| | | <test ref="ApplyStartRef" @refresh="getdevelopData"></test> |
| | | <report-dialog ref="ReportDialogRef"></report-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import { View,Edit, Plus, RefreshLeft } from '@element-plus/icons-vue'; |
| | | import {roomApi} from "/@/api/basic/room"; |
| | | |
| | | const ReportDialog = defineAsyncComponent(() => import('../../analyse/assessApply/components/reportDialog.vue')); |
| | | const DevelopDialog = defineAsyncComponent(() => import('./components/developDialog.vue')); |
| | | const Test = defineAsyncComponent(() => import('./components/applyDialog.vue')) |
| | | |
| | | const DevelopDialogRef = ref(); |
| | | const ApplyStartRef = ref(); |
| | | |
| | | const DevelopDialogRef = ref() |
| | | const ApplyStartRef = ref() |
| | | const ReportDialogRef = ref() |
| | | const developState = reactive<ProjectStateType>({ |
| | | developData: [], |
| | | searchQuery: { |
| | |
| | | DevelopDialogRef.value.showDevelopDialog(title, value, developState.allRoomList); |
| | | }; |
| | | |
| | | const openReportDialog = (title: string,value: ProjectType) =>{ |
| | | ReportDialogRef.value.showReportDialog(title, value, developState.allRoomList); |
| | | } |
| | | |
| | | const applyAccess = (val: ProjectType) => { |
| | | ElMessageBox.confirm(`此操作将申请评估该实验:“${val.experimentName}”,是否继续?`, '提示', { |
| | | confirmButtonText: '确认', |