From 2fe776a3f62271f5dd417d81b362452edb32a2e5 Mon Sep 17 00:00:00 2001 From: z Date: Fri, 12 Jan 2024 18:21:07 +0800 Subject: [PATCH] init --- src/assets/images/map/50.png | Bin 0 -> 3265 bytes src/assets/images/map/h.png | Bin 0 -> 1491 bytes src/assets/js/asyncRouter.js | 73 +++++ src/assets/js/usePrint.js | 1 - src/components/ali-player/index.vue | 8 +- src/components/print_table_package/index.vue | 1 - src/components/video/index.vue | 1 + src/request/hazard_investigation.js | 19 ++ src/views/archives/corp/catalogue.vue | 1 - .../archives/corp/components/capital.vue | 1 - .../archives/corp/components/edumanager.vue | 1 - .../archives/corp/components/eduplan.vue | 1 - .../archives/corp/components/postman.vue | 1 - .../archives/corp/components/teacher.vue | 1 - .../archives/semester/components/result.vue | 1 - .../archives/semester/components/sign.vue | 1 - .../semester/components/training_schedule.vue | 1 - src/views/archives/semester/index.vue | 2 - src/views/archives/user/task_list.vue | 2 - src/views/confined_space/ledger/index.vue | 2 - .../industry_qualifications/add.vue | 1 - .../industry_qualifications/view.vue | 1 - .../information/components/map.vue | 111 +++++++ .../information/edit.vue | 84 +----- .../components/map.vue | 129 +++++++++ .../components/qualified.vue | 42 +++ .../hidden_danger_view.vue | 11 + .../hidden_view.vue | 270 ++++++++++++++++++ .../checklist_inspection_status/index.vue | 262 +++++++++++++++++ .../inspection_record.vue | 182 ++++++++++++ .../inspection_record_view.vue | 260 +++++++++++++++++ .../supplementary_recording.vue | 9 + .../inspection_record/index.vue | 185 ++++++++++++ .../inventory_troubleshooting/index.vue | 11 +- .../inventory_troubleshooting/inspect.vue | 88 ++++-- .../courseware/data/index.vue | 2 - .../courseware/question/question_list.vue | 2 - .../courseware/video/index.vue | 2 - .../courseware/data.vue | 6 - .../courseware/video.vue | 2 - .../courseware/view.vue | 2 - .../curriculum/list.vue | 2 - .../curriculum/view.vue | 1 - .../platform_resource_library/paper/list.vue | 2 - 44 files changed, 1638 insertions(+), 147 deletions(-) create mode 100644 src/assets/images/map/50.png create mode 100644 src/assets/images/map/h.png create mode 100644 src/views/enterprise_management/information/components/map.vue create mode 100644 src/views/hazard_investigation/checklist_inspection_status/components/map.vue create mode 100644 src/views/hazard_investigation/checklist_inspection_status/components/qualified.vue create mode 100644 src/views/hazard_investigation/checklist_inspection_status/hidden_danger_view.vue create mode 100644 src/views/hazard_investigation/checklist_inspection_status/hidden_view.vue create mode 100644 src/views/hazard_investigation/checklist_inspection_status/index.vue create mode 100644 src/views/hazard_investigation/checklist_inspection_status/inspection_record.vue create mode 100644 src/views/hazard_investigation/checklist_inspection_status/inspection_record_view.vue create mode 100644 src/views/hazard_investigation/checklist_inspection_status/supplementary_recording.vue create mode 100644 src/views/hazard_investigation/inspection_record/index.vue diff --git a/src/assets/images/map/50.png b/src/assets/images/map/50.png new file mode 100644 index 0000000000000000000000000000000000000000..e67c5d0f1f3e8d92891a685be738a3fb0f6c137e GIT binary patch literal 3265 zcmbVPc{o)28&@e*lI5mI#wb~u#q2X#GRBx8OJkZ;ieb)VViq$;Gn6T1U($p&a^U2_j4x86Ra9*3Wg>P!5CB5_fjvBdEp()`0t(@AY@yq* zZb&zgBM``=g^K~NaCc@vcu)Y51GTq<*vLpq0zLq;Au@ijKtht)LcjBpl=Hc51Qhb! z1Pro;{uPwBn!4L==ASfgXi9q5J)<_r%MMC08STy9v z1yyXZ zY@y0Ga1M_{;&KTASS(s8CK`u>0RRRCBNFlcFeKNX%f=D#YyvmnC(l3O2^cgIi=;SW z9VlpPYbP?9>_Dbaut*0afk4F|u|KhNfdpg=0)U^sc}m|uu;hQmk{rbV8x)F}LSgXF zD)0;xfNCp$rN!S1JEfIX}0QX-If z`5#zkW*1vU*t>T#-~Z{+WL^LYTM#njclj*0`I!Mf%dVN>Ml!Ls8+GtpX|hT$m!|lv zax%0(NWi5oTIfkFK&z> z>JKSyo%psqKfG;C^pfU~TZZgTSWO`|?m6YHjnRwEHKj%r9d+Tm7`8ww@=#$~&6^ms zYI{aV#gn!2*3JYUgB>14SHU&Ob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H4Oa_Jy;Drz&%GT!t1n zGRaR^_%dRlD?H77QF$G)Z&RlXd8R$1cERu-kG^Wh;jyje5&Ch+Bk6td?!_ZZFB^lI zTSc9lxY?O))XmO*Ar1(=|&rOfoV}vM^0aN`aY!O~0eDi?fr7i?gYtvzwuz ztCORFv5}*po2#RVo0+4tvlC3OXI^nhVqS78%|UUo?>$}CGwaVyHtRR9OFRVEe(5a)S_ z{uFWpPao(geNak4N;xngU~&X8;rRf_f#;;uJYe=I0_GE)K(R&!2F7omE{-7;x0X!v z)o=+EIeuPNp0n3*iVn}jH99&QKtOS+hUerUF)^_)v1?*VH~qwNR3^`Qqrv@2kh@yd z?93iR;}hXCPky$)S8M9~{p{?@_gB_`ez*JipXYn3{g(^wS|=R6WMN~`8D_SF0x#Hm z5AaWVz&WRZxqzi^v#`6#+xyce-Kugt;eF+$Xw#~V8qBH+&LPKZ65jh>e}1ns??aVX z%<5IAw|W*x2`t(ydgyCJh)3dPskqO-&E6=l0mC za<$LZA&-2Y>K#q3b5PZb$(qe{irY6WrfWH`cyMQY-A<9|Kf|>?epo%n*w6Rbd(ET4 zE-QPwl`9p!4!m7`#IQR<`Q3)9ncLa+txY?fHAmxD table > tr"); const thead = document.querySelector("#printContent > table thead"); if (thead) A4_HEIGHT_PX = A4_HEIGHT_PX - thead.offsetHeight; - else A4_HEIGHT_PX = A4_HEIGHT_PX + thead.offsetHeight; fnIsPaging(); buttonRef.value.$el.click(); }; diff --git a/src/components/ali-player/index.vue b/src/components/ali-player/index.vue index 99d93ae..4e06b4a 100644 --- a/src/components/ali-player/index.vue +++ b/src/components/ali-player/index.vue @@ -35,6 +35,10 @@ const props = defineProps({ type: String, default: "600px", }, + visible: { + type: Boolean, + default: false, + }, }); const visibility = useDocumentVisibility(); onMounted(() => { @@ -51,9 +55,9 @@ onMounted(() => { () => visibility.value, () => { if (visibility.value === "hidden") { - pause(); + props.visible && pause(); } else { - play(); + props.visible && play(); } }, { diff --git a/src/components/print_table_package/index.vue b/src/components/print_table_package/index.vue index 4b0fb71..400edde 100644 --- a/src/components/print_table_package/index.vue +++ b/src/components/print_table_package/index.vue @@ -22,7 +22,6 @@ + + diff --git a/src/views/enterprise_management/information/edit.vue b/src/views/enterprise_management/information/edit.vue index f317506..bc4ca6a 100644 --- a/src/views/enterprise_management/information/edit.vue +++ b/src/views/enterprise_management/information/edit.vue @@ -106,7 +106,7 @@ 地图定位 @@ -427,38 +427,16 @@ 确 定 - - - - - - - - - - - - - - - -
-
-
- - +
diff --git a/src/views/hazard_investigation/checklist_inspection_status/components/map.vue b/src/views/hazard_investigation/checklist_inspection_status/components/map.vue new file mode 100644 index 0000000..efc194a --- /dev/null +++ b/src/views/hazard_investigation/checklist_inspection_status/components/map.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/src/views/hazard_investigation/checklist_inspection_status/components/qualified.vue b/src/views/hazard_investigation/checklist_inspection_status/components/qualified.vue new file mode 100644 index 0000000..80ce8e2 --- /dev/null +++ b/src/views/hazard_investigation/checklist_inspection_status/components/qualified.vue @@ -0,0 +1,42 @@ + + + + + diff --git a/src/views/hazard_investigation/checklist_inspection_status/hidden_danger_view.vue b/src/views/hazard_investigation/checklist_inspection_status/hidden_danger_view.vue new file mode 100644 index 0000000..c0a6fa5 --- /dev/null +++ b/src/views/hazard_investigation/checklist_inspection_status/hidden_danger_view.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/views/hazard_investigation/checklist_inspection_status/hidden_view.vue b/src/views/hazard_investigation/checklist_inspection_status/hidden_view.vue new file mode 100644 index 0000000..b0a9b0a --- /dev/null +++ b/src/views/hazard_investigation/checklist_inspection_status/hidden_view.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/src/views/hazard_investigation/checklist_inspection_status/index.vue b/src/views/hazard_investigation/checklist_inspection_status/index.vue new file mode 100644 index 0000000..d8ff747 --- /dev/null +++ b/src/views/hazard_investigation/checklist_inspection_status/index.vue @@ -0,0 +1,262 @@ + + + + + diff --git a/src/views/hazard_investigation/checklist_inspection_status/inspection_record.vue b/src/views/hazard_investigation/checklist_inspection_status/inspection_record.vue new file mode 100644 index 0000000..644c8dd --- /dev/null +++ b/src/views/hazard_investigation/checklist_inspection_status/inspection_record.vue @@ -0,0 +1,182 @@ + + + + + diff --git a/src/views/hazard_investigation/checklist_inspection_status/inspection_record_view.vue b/src/views/hazard_investigation/checklist_inspection_status/inspection_record_view.vue new file mode 100644 index 0000000..82061e0 --- /dev/null +++ b/src/views/hazard_investigation/checklist_inspection_status/inspection_record_view.vue @@ -0,0 +1,260 @@ + + + + + diff --git a/src/views/hazard_investigation/checklist_inspection_status/supplementary_recording.vue b/src/views/hazard_investigation/checklist_inspection_status/supplementary_recording.vue new file mode 100644 index 0000000..8fec285 --- /dev/null +++ b/src/views/hazard_investigation/checklist_inspection_status/supplementary_recording.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/hazard_investigation/inspection_record/index.vue b/src/views/hazard_investigation/inspection_record/index.vue new file mode 100644 index 0000000..d633546 --- /dev/null +++ b/src/views/hazard_investigation/inspection_record/index.vue @@ -0,0 +1,185 @@ + + + + + diff --git a/src/views/hazard_investigation/inventory_troubleshooting/index.vue b/src/views/hazard_investigation/inventory_troubleshooting/index.vue index d34b8bd..d2e4dc7 100644 --- a/src/views/hazard_investigation/inventory_troubleshooting/index.vue +++ b/src/views/hazard_investigation/inventory_troubleshooting/index.vue @@ -36,15 +36,8 @@ - + + diff --git a/src/views/hazard_investigation/inventory_troubleshooting/inspect.vue b/src/views/hazard_investigation/inventory_troubleshooting/inspect.vue index de945f5..021bb53 100644 --- a/src/views/hazard_investigation/inventory_troubleshooting/inspect.vue +++ b/src/views/hazard_investigation/inventory_troubleshooting/inspect.vue @@ -47,11 +47,26 @@ 合格 + + + - + 不合格 - + 不涉及 @@ -60,7 +75,11 @@ 其他隐患
- + 添加
@@ -103,6 +122,7 @@ value-format="YYYY-MM-DD HH:mm:ss" type="datetime" placeholder="这里输入检查时间" + :disabled-date="fnDisabledDate" /> @@ -175,6 +195,11 @@ + + + + + { - const geolocation = new window.BMapGL.Geolocation(); - geolocation.getCurrentPosition(async (r) => { - if (!r) { - await ElMessageBox.alert("获取位置信息失败,请刷新重试", { - type: "warning", - }); - window.location.reload(); - } - data.longitude = r.longitude; - data.latitude = r.latitude; - }); -}); const { list: inspectionList } = useListData(getInventoryManagementView, { otherParams: { LISTMANAGER_ID }, usePagination: false, @@ -312,6 +330,27 @@ const { list: otherHiddenList, fnGetData: fnGetOtherHidden } = useListData( key: "hiddenList", } ); +onMounted(() => { + const geolocation = new window.BMapGL.Geolocation(); + geolocation.getCurrentPosition(async (r) => { + if (!r) { + await ElMessageBox.alert("获取位置信息失败,请刷新重试", { + type: "warning", + }); + window.location.reload(); + } + data.longitude = r.longitude; + data.latitude = r.latitude; + }); +}); +const fnDisabledDate = (time) => { + if (DATEEND && DATESTART) + return ( + time.getTime() > new Date(DATEEND).getTime() || + time.getTime() < new Date(DATESTART).getTime() + ); + else return false; +}; const fnQualified = async (index, row) => { if (row.HASHIDDEN > 0) return; data.qualifiedDialog.visible = true; @@ -328,7 +367,7 @@ const fnQualified = async (index, row) => { inspectionList.value[index].ISNORMAL = 0; }; const fnNotInvolved = (index, row) => { - if (row.HASHIDDEN > 0) return; + if (row.HASHIDDEN > 0 || type === "supplementaryRecording") return; fnRemoveUnqualified(index); inspectionList.value[index].ISNORMAL = 2; }; @@ -336,7 +375,7 @@ const fnRemoveUnqualified = (index) => { inspectionList.value[index].HIDDEN_ID = ""; }; const fnUnqualified = async (index, row) => { - if (row.HASHIDDEN > 0) return; + if (row.HASHIDDEN > 0 || type === "supplementaryRecording") return; data.unQualifiedDialog.visible = true; await nextTick(); if ( @@ -432,7 +471,7 @@ const fnSubmit = debounce( } const inspectedList = cloneDeep(data.form.inspectedList); if (inspectedList.length > 0) inspectedList.splice(0, 1); - await setInventoryTroubleshootingSubmit({ + const params = { LISTMANAGER_ID, LIST_NAME: info.value.NAME, CHECK_TIME: data.form.CHECK_TIME, @@ -444,7 +483,14 @@ const fnSubmit = debounce( OTHER: JSON.stringify(inspectedList), LONGITUDE: data.longitude, LATITUDE: data.latitude, - }); + }; + if (type === "supplementaryRecording") { + params.REASON = data.form.REASON; + params.CHECKRECORD_ID = CHECKRECORD_ID; + await setChecklistInspectionStatusRecordSupplementaryRecordingSubmit( + params + ); + } else await setInventoryTroubleshootingSubmit(params); ElMessage.success("操作成功"); router.back(); }, diff --git a/src/views/online_learn_exam/courseware/data/index.vue b/src/views/online_learn_exam/courseware/data/index.vue index 709a987..43f0ab8 100644 --- a/src/views/online_learn_exam/courseware/data/index.vue +++ b/src/views/online_learn_exam/courseware/data/index.vue @@ -218,7 +218,6 @@