隐患查看报错

pull/1/head
zhangyanli 2024-02-20 13:51:01 +08:00
parent a42da670f0
commit 847b82afbf
2 changed files with 18 additions and 7 deletions

2
.env
View File

@ -1,4 +1,4 @@
VITE_BASE_URL=http://192.168.0.79:8091/ VITE_BASE_URL=http://192.168.0.55:8088/
VITE_PROXY=/api/ VITE_PROXY=/api/
VITE_FILE_URL=https://file.zcloudchina.com/YTHFile VITE_FILE_URL=https://file.zcloudchina.com/YTHFile
VITE_TEMPLATE_URL=https://qaaq.qhdsafety.com/file/ VITE_TEMPLATE_URL=https://qaaq.qhdsafety.com/file/

View File

@ -9,7 +9,7 @@
<span v-else-if="data.info.SOURCE === '4'"> 安全环保检查 </span> <span v-else-if="data.info.SOURCE === '4'"> 安全环保检查 </span>
<span v-else-if="data.info.SOURCE === '5'"> 安全环保检查 </span> <span v-else-if="data.info.SOURCE === '5'"> 安全环保检查 </span>
</el-descriptions-item> </el-descriptions-item>
<template v-if="data.info.SOURCE === '2'"> <template v-if="data.info.SOURCE === '2' && listType === '1'">
<el-descriptions-item label="风险点(单元)"> <el-descriptions-item label="风险点(单元)">
{{ data.info.RISK_UNIT }} {{ data.info.RISK_UNIT }}
</el-descriptions-item> </el-descriptions-item>
@ -26,7 +26,7 @@
{{ data.info.CHECK_CONTENT }} {{ data.info.CHECK_CONTENT }}
</el-descriptions-item> </el-descriptions-item>
</template> </template>
<template v-if="data.info.SOURCE === '2'"> <template v-if="data.info.SOURCE === '2' && listType === '2'">
<el-descriptions-item label="检查类别"> <el-descriptions-item label="检查类别">
{{ data.info.CHECK_CATEGORY_NAME }} {{ data.info.CHECK_CATEGORY_NAME }}
</el-descriptions-item> </el-descriptions-item>
@ -260,7 +260,10 @@ import { reactive, watchEffect } from "vue";
import { getFileSuffix } from "@/assets/js/utils.js"; import { getFileSuffix } from "@/assets/js/utils.js";
import { VideoPlay } from "@element-plus/icons-vue"; import { VideoPlay } from "@element-plus/icons-vue";
import LayoutVideo from "@/components/video/index.vue"; import LayoutVideo from "@/components/video/index.vue";
import { getHiddenDangerView } from "@/request/hazard_investigation.js"; import {
getHiddenDangerView,
getCustomHiddenDangerView,
} from "@/request/hazard_investigation.js";
defineOptions({ defineOptions({
name: "LayoutHiddenView", name: "LayoutHiddenView",
@ -272,6 +275,11 @@ const props = defineProps({
required: true, required: true,
default: "", default: "",
}, },
listType: {
type: String,
required: true,
default: "",
},
}); });
const emits = defineEmits(["throw-data"]); const emits = defineEmits(["throw-data"]);
const data = reactive({ const data = reactive({
@ -288,7 +296,10 @@ const data = reactive({
}, },
}); });
const fnGetData = async () => { const fnGetData = async () => {
const resData = await getHiddenDangerView({ const resData =
props.listType === "2"
? await getCustomHiddenDangerView({ HIDDEN_ID: props.hiddenId })
: await getHiddenDangerView({
HIDDEN_ID: props.hiddenId, HIDDEN_ID: props.hiddenId,
}); });
data.info = resData.pd; data.info = resData.pd;