| | |
| | | <el-form ref="formRef" :model="state.formData" :rules="state.rules" class="register-form" label-position="top"> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="6"> |
| | | <el-button type="primary" @click="addRectify('add',{})" :disabled="projectType.value ==='detail'">新增整改</el-button> |
| | | <el-button type="primary" @click="addRectify('add',{})" :disabled="projectType ==='view' || isEnd ">新增整改</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-table :data="state.recitificationList" :border="true" style="margin: 20px 0"> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="addRectify('edit',scope.row)" :disabled="projectType.value ==='detail'">编辑</el-button> |
| | | <el-button link type="danger" @click="del(scope.row)" :disabled="projectType.value ==='detail'">删除</el-button> |
| | | <el-button link type="primary" @click="addRectify('edit',scope.row)" :disabled="projectType ==='view' || isEnd ">编辑</el-button> |
| | | <el-button link type="danger" @click="del(scope.row)" :disabled="projectType ==='view' || isEnd ">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import {delProject, getAccessoryFile} from "@/api/projectManage/project"; |
| | | import {delRecitification, doConfirm, getRecognitionList} from "@/api/projectManage/riskAnalysis"; |
| | | import axios from "axios"; |
| | | |
| | | import { useRoute } from 'vue-router' |
| | | const route = useRoute() |
| | | const confirmRef = ref(null); |
| | | const emit = defineEmits(["getNextStatus"]); |
| | | const props = defineProps(['projectId']) |
| | |
| | | } |
| | | |
| | | const projectType = ref('') |
| | | const isEnd = ref(false) |
| | | const riskOpen = async (type,val) => { |
| | | // await getList(val); |
| | | projectType.value = type; |
| | | projectType.value = route.query.type; |
| | | state.formData.projectId = val; |
| | | |
| | | if(type === 'confirm') { |
| | | const res = await doConfirm({projectId: val}); |
| | | if (res.code == 200) { |
| | | ElMessage.success('保存成功') |
| | | Cookies.set('end',true) |
| | | isEnd.value = true; |
| | | formRef.value.clearValidate(); |
| | | emit('getNextStatus', state.formData.projectId); |
| | | } else { |