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_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/
|
||||||
|
|
|
@ -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,9 +296,12 @@ const data = reactive({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const fnGetData = async () => {
|
const fnGetData = async () => {
|
||||||
const resData = await getHiddenDangerView({
|
const resData =
|
||||||
HIDDEN_ID: props.hiddenId,
|
props.listType === "2"
|
||||||
});
|
? await getCustomHiddenDangerView({ HIDDEN_ID: props.hiddenId })
|
||||||
|
: await getHiddenDangerView({
|
||||||
|
HIDDEN_ID: props.hiddenId,
|
||||||
|
});
|
||||||
data.info = resData.pd;
|
data.info = resData.pd;
|
||||||
data.hs = resData.hs;
|
data.hs = resData.hs;
|
||||||
data.checkList = resData.checkList;
|
data.checkList = resData.checkList;
|
||||||
|
|
Loading…
Reference in New Issue