zhouwenxuan
2024-03-15 d631c106b43e282a74d37988b7c8989916f0fcf6
src/views/safetyReview/projectManage/components/confirmEnd.vue
@@ -48,7 +48,7 @@
import Cookies from "js-cookie";
import { getToken } from "@/utils/auth";
import confirmEndDialog from './confirmEndDialog.vue'
import {delProject, getAccessoryFile} from "@/api/projectManage/project";
import {delProject, getAccessoryFile, getProjectStatus} from "@/api/projectManage/project";
import {delRecitification, doConfirm, getRecognitionList} from "@/api/projectManage/riskAnalysis";
import axios from "axios";
import { useRoute } from 'vue-router'
@@ -65,6 +65,7 @@
  recitificationList: [],
})
const isEnd = ref(false)
const total = ref(0);
const isAmin = ref(false)
const formRef = ref();
@@ -76,8 +77,20 @@
  if(props.projectId){
    state.formData.projectId = props.projectId;
    getList(state.formData.projectId);
    getStatus(state.formData.projectId);
  }
});
const getStatus = async (projectId) => {
  const res = await getProjectStatus(projectId);
  if(res.code == 200){
    if(res.data === 14){
      isEnd.value = true
    }
  }
}
const getList = async (val) => {
@@ -91,7 +104,7 @@
}
const projectType = ref('')
const isEnd = ref(false)
const riskOpen = async (type,val) => {
  // await  getList(val);
  projectType.value = route.query.type;