| | |
| | | <span>{{scope.row.siteList.map(i=>i.siteName).join(',')}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="experimentType" label="实验类别"> |
| | | <template #default="scope"> |
| | | <span>{{projectState.experimentTypeList.find(i=>i.id == scope.row.experimentType)?.name}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="experimentTypeName" label="实验类别" width="130"> |
| | | <!-- <template #default="scope">--> |
| | | <!-- <span>{{developState.experimentTypeList.find(i=>i.id == scope.row.experimentType)?.name}}</span>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="评估申请"> |
| | | <template #default="scope"> |
| | | <span>{{scope.row.status == 1?'未申请':scope.row.status == 2?'已申请':'--'}}</span> |
| | |
| | | <!-- <el-table-column prop="updateByUserName" label="最后修改人" show-overflow-tooltip></el-table-column>--> |
| | | <el-table-column label="操作" width="250" fixed="right"> |
| | | <template #default="scope"> |
| | | <div v-if="scope.row.stagingTag === 1"> |
| | | <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" text type="primary" :icon="Edit" @click="applyStart('申请开展', scope.row)">转为已开展</el-button> |
| | | <el-button size="small" :disabled="scope.row.stage == 2 ? true : false" text type="primary" :icon="Edit" @click="applyAccess( 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> |
| | | <el-button size="small" text type="danger" :icon="Delete" :disabled="scope.row.stage !== 1" @click="onDelProject(scope.row)">删除</el-button> |
| | | <el-button size="small" text type="primary" :icon="Edit" @click="openProjectDialog('编辑', scope.row)">编辑</el-button> |
| | | </div> |
| | | <div v-else> |
| | | <el-button size="small" text type="primary" :icon="Edit" @click="openProjectDialog('编辑', scope.row)">编辑</el-button> |
| | | <el-button size="small" text type="primary" :icon="Finished" @click="saveDevelop(scope.row)">提交</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import {defineAsyncComponent, onMounted, reactive, ref} from "vue"; |
| | | import {projectApi} from "/@/api/experiment/project"; |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import { View,Edit, Plus, Delete } from '@element-plus/icons-vue'; |
| | | import { View,Edit, Plus, Delete,Finished } from '@element-plus/icons-vue'; |
| | | import {roomApi} from "/@/api/basic/room"; |
| | | const ReportDialog = defineAsyncComponent(() => import('../../analyse/assessApply/components/reportDialog.vue')); |
| | | const ProjectDialog = defineAsyncComponent(() => import('./components/projectDialog.vue')); |
| | |
| | | .catch((error) => { |
| | | }); |
| | | } |
| | | const saveDevelop = async (data: any) => { |
| | | ElMessageBox.confirm(`此操作将提交该实验:“${data.experimentName}”,是否继续?`, '提示', { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | let res = await projectApi().addProject(data); |
| | | if(res.data.code === 100){ |
| | | ElMessage({ |
| | | type: 'success', |
| | | message: '提交成功' |
| | | }) |
| | | await getProjectData(); |
| | | }else{ |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: res.data.msg, |
| | | }); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | }); |
| | | |
| | | } |
| | | |
| | | const onDelProject = (val: ProjectType) => { |
| | | ElMessageBox.confirm(`此操作将永久删除该实验:“${val.experimentName}”,是否继续?`, '提示', { |