forked from integrated_whb/integrated_whb_vue
隐患查看报错
parent
a42da670f0
commit
847b82afbf
2
.env
2
.env
|
@ -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_FILE_URL=https://file.zcloudchina.com/YTHFile
|
||||
VITE_TEMPLATE_URL=https://qaaq.qhdsafety.com/file/
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<span v-else-if="data.info.SOURCE === '4'"> 安全环保检查 </span>
|
||||
<span v-else-if="data.info.SOURCE === '5'"> 安全环保检查 </span>
|
||||
</el-descriptions-item>
|
||||
<template v-if="data.info.SOURCE === '2'">
|
||||
<template v-if="data.info.SOURCE === '2' && listType === '1'">
|
||||
<el-descriptions-item label="风险点(单元)">
|
||||
{{ data.info.RISK_UNIT }}
|
||||
</el-descriptions-item>
|
||||
|
@ -26,7 +26,7 @@
|
|||
{{ data.info.CHECK_CONTENT }}
|
||||
</el-descriptions-item>
|
||||
</template>
|
||||
<template v-if="data.info.SOURCE === '2'">
|
||||
<template v-if="data.info.SOURCE === '2' && listType === '2'">
|
||||
<el-descriptions-item label="检查类别">
|
||||
{{ data.info.CHECK_CATEGORY_NAME }}
|
||||
</el-descriptions-item>
|
||||
|
@ -260,7 +260,10 @@ import { reactive, watchEffect } from "vue";
|
|||
import { getFileSuffix } from "@/assets/js/utils.js";
|
||||
import { VideoPlay } from "@element-plus/icons-vue";
|
||||
import LayoutVideo from "@/components/video/index.vue";
|
||||
import { getHiddenDangerView } from "@/request/hazard_investigation.js";
|
||||
import {
|
||||
getHiddenDangerView,
|
||||
getCustomHiddenDangerView,
|
||||
} from "@/request/hazard_investigation.js";
|
||||
|
||||
defineOptions({
|
||||
name: "LayoutHiddenView",
|
||||
|
@ -272,6 +275,11 @@ const props = defineProps({
|
|||
required: true,
|
||||
default: "",
|
||||
},
|
||||
listType: {
|
||||
type: String,
|
||||
required: true,
|
||||
default: "",
|
||||
},
|
||||
});
|
||||
const emits = defineEmits(["throw-data"]);
|
||||
const data = reactive({
|
||||
|
@ -288,7 +296,10 @@ const data = reactive({
|
|||
},
|
||||
});
|
||||
const fnGetData = async () => {
|
||||
const resData = await getHiddenDangerView({
|
||||
const resData =
|
||||
props.listType === "2"
|
||||
? await getCustomHiddenDangerView({ HIDDEN_ID: props.hiddenId })
|
||||
: await getHiddenDangerView({
|
||||
HIDDEN_ID: props.hiddenId,
|
||||
});
|
||||
data.info = resData.pd;
|
||||
|
|
Loading…
Reference in New Issue