| | |
| | | </template> |
| | | <script setup> |
| | | |
| | | import {defineEmits, onMounted, reactive, ref} from "vue"; |
| | | import {defineEmits, defineProps, onMounted, reactive, ref} from "vue"; |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import {Search} from '@element-plus/icons-vue' |
| | | import {addRate, addRisk, editRate, editRisk, getRateDetail, getRiskDetail} from "@/api/projectManage/riskAnalysis" |
| | |
| | | import axios from "axios"; |
| | | import {delFile, getFiles} from "@/api/projectManage/siteCheckRcd"; |
| | | const emit = defineEmits(["getNextStatus"]); |
| | | |
| | | const prop = defineProps(['projectId']) |
| | | const state = reactive({ |
| | | formData: { |
| | | isReviseManual: 0, |
| | |
| | | if(userInfo.identity === 0){ |
| | | isAmin.value = true; |
| | | } |
| | | if(Cookies.get('projectId')){ |
| | | const val = Cookies.get('projectId'); |
| | | if(prop.projectId){ |
| | | const val = prop.projectId; |
| | | state.uploadData.projectId = val; |
| | | getProcessFiles(val); |
| | | // const res = getAccessoryFile({projectId: val,moduleType: 7}); |
| | | // if(res.code == 200){ |
| | | // if(res.data){ |
| | | // state.fileList = res.data.accessoryFiles.map(item => { |
| | | // return { |
| | | // ...item, |
| | | // name: item.originName, |
| | | // } |
| | | // }) |
| | | // }else { |
| | | // ElMessage.warning(res.message) |
| | | // } |
| | | // } |
| | | } |
| | | }) |
| | | |
| | |
| | | }) |
| | | } |
| | | const getProcessFiles = async (id)=>{ |
| | | const res = await getFiles({projectId: id ? id : state.uploadData.projectId ,moduleType: 7}) |
| | | const res = await getFiles({projectId: id ? id : prop.projectId ,moduleType: 7}) |
| | | if(res.code == 200){ |
| | | if(res.data && res.data.length>0){ |
| | | state.fileList = res.data.map(i=>{ |