diff --git a/src/views/hazard_investigation/inventory_troubleshooting/components/hidden_add.vue b/src/components/hidden_add/index.vue
similarity index 99%
rename from src/views/hazard_investigation/inventory_troubleshooting/components/hidden_add.vue
rename to src/components/hidden_add/index.vue
index f96446c..724ea93 100644
--- a/src/views/hazard_investigation/inventory_troubleshooting/components/hidden_add.vue
+++ b/src/components/hidden_add/index.vue
@@ -214,6 +214,9 @@ import {
import { getUserListAll } from "@/request/data_dictionary.js";
import useFormValidate from "@/assets/js/useFormValidate.js";
+defineOptions({
+ name: "LayoutHiddenAdd",
+});
const props = defineProps({
form: {
type: Object,
@@ -286,7 +289,7 @@ const fnVideoPreview = (event) => {
}
};
const fnGetHiddenDangerDatabaseList = async () => {
- if (props.hiddenType !== "unqualified" || props.hiddenType !== "otherHidden")
+ if (props.hiddenType !== "unqualified" && props.hiddenType !== "otherHidden")
return;
if (!form.value.HIDDENPART) return;
const resData = await getHiddenDangerDatabaseList({
diff --git a/src/views/hazard_investigation/checklist_inspection_status/components/hidden_view.vue b/src/components/hidden_view/index.vue
similarity index 99%
rename from src/views/hazard_investigation/checklist_inspection_status/components/hidden_view.vue
rename to src/components/hidden_view/index.vue
index 2931929..3a8c793 100644
--- a/src/views/hazard_investigation/checklist_inspection_status/components/hidden_view.vue
+++ b/src/components/hidden_view/index.vue
@@ -239,6 +239,9 @@ import { VideoPlay } from "@element-plus/icons-vue";
import LayoutVideo from "@/components/video/index.vue";
import { getHiddenDangerView } from "@/request/hazard_investigation.js";
+defineOptions({
+ name: "LayoutHiddenView",
+});
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
const props = defineProps({
hiddenId: {
diff --git a/src/components/risk_add/index.vue b/src/components/risk_add/index.vue
new file mode 100644
index 0000000..d3dba8c
--- /dev/null
+++ b/src/components/risk_add/index.vue
@@ -0,0 +1,387 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ form.LIKELIHOOD }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ form.EXPOSURE }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ form.CONSEQUENCE }}
+
+
+
+
+ {{ form.LEVEL_NAME }}
+
+
+
+
+ {{ form.DANGER }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/layout/breadcrumb/index.vue b/src/layout/breadcrumb/index.vue
similarity index 100%
rename from src/components/layout/breadcrumb/index.vue
rename to src/layout/breadcrumb/index.vue
diff --git a/src/components/layout/header/components/update_avatar.vue b/src/layout/header/components/update_avatar.vue
similarity index 100%
rename from src/components/layout/header/components/update_avatar.vue
rename to src/layout/header/components/update_avatar.vue
diff --git a/src/components/layout/header/components/update_info.vue b/src/layout/header/components/update_info.vue
similarity index 100%
rename from src/components/layout/header/components/update_info.vue
rename to src/layout/header/components/update_info.vue
diff --git a/src/components/layout/header/index.vue b/src/layout/header/index.vue
similarity index 99%
rename from src/components/layout/header/index.vue
rename to src/layout/header/index.vue
index 7d8e257..21a73a7 100644
--- a/src/components/layout/header/index.vue
+++ b/src/layout/header/index.vue
@@ -114,7 +114,7 @@ const fnGetInfo = async () => {
data.avatar = FILE_URL + resData.userPhoto;
} catch {
data.avatar = new URL(
- "../../../assets/images/public/tx.png",
+ "../../assets/images/public/tx.png",
import.meta.url
).href;
}
diff --git a/src/components/layout/index.vue b/src/layout/index.vue
similarity index 87%
rename from src/components/layout/index.vue
rename to src/layout/index.vue
index 8af1d0e..2053476 100644
--- a/src/components/layout/index.vue
+++ b/src/layout/index.vue
@@ -32,9 +32,9 @@
-
-
diff --git a/src/views/risk_control/identifying_parts/components/risk_add.vue b/src/views/risk_control/identifying_parts/components/risk_add.vue
new file mode 100644
index 0000000..122079b
--- /dev/null
+++ b/src/views/risk_control/identifying_parts/components/risk_add.vue
@@ -0,0 +1,91 @@
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
diff --git a/src/views/risk_control/identifying_parts/resources_risk.vue b/src/views/risk_control/identifying_parts/resources_risk.vue
index f5251f8..1407221 100644
--- a/src/views/risk_control/identifying_parts/resources_risk.vue
+++ b/src/views/risk_control/identifying_parts/resources_risk.vue
@@ -89,7 +89,7 @@
保存
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ form.LIKELIHOOD }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ form.EXPOSURE }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ form.CONSEQUENCE }}
-
-
-
-
- {{ form.LEVEL_NAME }}
-
-
-
-
- {{ form.DANGER }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
取消
确定
@@ -200,23 +13,15 @@