zhouwenxuan
2024-03-15 68cd58de3a45d79ea241fa4d79e550217072e494
src/views/safetyReview/projectManage/components/rateConclusion.vue
@@ -27,7 +27,7 @@
                v-if="state.formData.isReviseManual === 1"
                accept="image/*,.pdf,.doc,.docx,.xlsx,.xls"
                 :action="state.uploadUrl"
                 :disabled="state.disabled"
                :disabled="projectType === 'view' || isEnd"
                 :headers="state.header"
                 method="post"
                 :on-success="handleAvatarSuccess"
@@ -61,6 +61,8 @@
import {delAccessoryFile, getAccessoryFile} from "@/api/projectManage/project";
import axios from "axios";
import {delFile, getFiles} from "@/api/projectManage/siteCheckRcd";
import { useRoute } from 'vue-router'
const route = useRoute()
const emit = defineEmits(["getNextStatus"]);
const prop = defineProps(['projectId'])
const state = reactive({
@@ -100,8 +102,12 @@
  }
})
const projectType = ref('');
const isEnd = ref('')
const riskOpen = async (type,val) => {
  state.uploadData.projectId = val;
  projectType.value = route.query.type;
  isEnd.value = Cookies.get('end')
  if(type === 'detail' || type === 'edit' ){
    if(type === 'detail'){
      state.disabled = true