From 566eee266e2cae6ff5d562eaf80e9b31f22aa661 Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Wed, 13 Mar 2024 13:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E8=82=B2=E5=9F=B9=E8=AE=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/data_dictionary.js | 239 +-- src/components/inspection_type/index.vue | 46 - src/components/learning_train_type/index.vue | 1291 ++++++++++++++++- src/components/map_tools/alarm_view.vue | 84 -- src/components/map_tools/index.vue | 152 -- src/components/map_tools/loadglb.js | 167 --- src/components/map_tools/map.js | 404 ------ src/components/table/index.vue | 4 + .../training_section_cascader/index.vue | 33 - src/request/axios.js | 4 +- src/request/data_dictionary.js | 28 +- src/request/training_process_management.js | 4 + src/request/training_resource_management.js | 28 + .../exam_paper_management/add.vue | 7 + .../exam_paper_management/index.vue | 199 +++ .../exam_paper_management/view.vue | 9 + .../course_management/add.vue | 628 ++++++++ .../components/add_courseware.vue | 754 ++++++++++ .../course_management/index.vue | 201 +++ .../course_management/view.vue | 137 ++ .../exam_paper_management/index.vue | 118 ++ .../exam_paper_management/view.vue | 109 ++ .../video_courseware/exercises.vue | 51 + .../video_courseware/index.vue | 158 ++ .../video_courseware/view.vue | 76 + 25 files changed, 3809 insertions(+), 1122 deletions(-) delete mode 100644 src/components/inspection_type/index.vue delete mode 100644 src/components/map_tools/alarm_view.vue delete mode 100644 src/components/map_tools/index.vue delete mode 100644 src/components/map_tools/loadglb.js delete mode 100644 src/components/map_tools/map.js delete mode 100644 src/components/training_section_cascader/index.vue create mode 100644 src/request/training_process_management.js create mode 100644 src/request/training_resource_management.js create mode 100644 src/views/training_process_management/exam_paper_management/add.vue create mode 100644 src/views/training_process_management/exam_paper_management/index.vue create mode 100644 src/views/training_process_management/exam_paper_management/view.vue create mode 100644 src/views/training_resource_management/course_management/add.vue create mode 100644 src/views/training_resource_management/course_management/components/add_courseware.vue create mode 100644 src/views/training_resource_management/course_management/index.vue create mode 100644 src/views/training_resource_management/course_management/view.vue create mode 100644 src/views/training_resource_management/exam_paper_management/index.vue create mode 100644 src/views/training_resource_management/exam_paper_management/view.vue create mode 100644 src/views/training_resource_management/video_courseware/exercises.vue create mode 100644 src/views/training_resource_management/video_courseware/index.vue create mode 100644 src/views/training_resource_management/video_courseware/view.vue diff --git a/src/assets/js/data_dictionary.js b/src/assets/js/data_dictionary.js index 542ceff..dc19f53 100644 --- a/src/assets/js/data_dictionary.js +++ b/src/assets/js/data_dictionary.js @@ -6,8 +6,11 @@ import { getDepartmentTree, getLevelsCorp, getElectronicFenceTree, - getListSelectTree, getDepartmentzTree, + getTrainingType, + getIndustryType, + getPostType, + getTrainingLevel, } from "@/request/data_dictionary.js"; import { ref } from "vue"; @@ -37,34 +40,6 @@ export const layoutFnGetEnterpriseScale = async () => { }); return ref(resData.list); }; -// 培训行业类型 -export const layoutFnGetTrainingIndustryType = async () => { - const resData = await getLevelsByParentId({ - parentId: "052369aa22d242118236cde52d0c67ea", - }); - return ref(JSON.parse(resData.zTreeNodes)); -}; -// 培训岗位类型 -export const layoutFnGetTrainingPostType = async () => { - const resData = await getLevelsByParentId({ - parentId: "f6a7c4f5602f46e291d06b1390a3f820", - }); - return ref(JSON.parse(resData.zTreeNodes)); -}; -// 培训板块类型 -export const layoutFnGetTrainingPlateType = async () => { - const resData = await getLevelsByParentId({ - parentId: "d538d11e4eec409ab428f5d2f3c67c24", - }); - return ref(JSON.parse(resData.zTreeNodes)); -}; -// 大纲类型 -export const layoutFnGetOutlineType = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "3c0d9b5e74834adfacb76139e5d731e5", - }); - return ref(resData.list); -}; // 管控措施分类1 export const layoutFnGetControlMeasures1 = async () => { const resData = await getLevelsByParentId({ @@ -79,27 +54,6 @@ export const layoutFnGetControlMeasures2 = async () => { }); return ref(JSON.parse(resData.zTreeNodes)); }; -// 受限空间类型 -export const layoutFnGetTypeOfConfinedSpace = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "dad23a464729485ba364994942db83cc", - }); - return ref(resData.list); -}; -// 风险等级 -export const layoutFnGetRiskLevel = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "a178357ce6ce4d6a9ac95def6aca3a14", - }); - return ref(resData.list); -}; -// 风险成因 -export const layoutFnGetRiskCauses = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "1bacbc4c1f6544718519c0d470dfeb62", - }); - return ref(resData.list); -}; // 民族 export const layoutFnGetNation = async () => { const resData = await getLevels({ @@ -220,13 +174,6 @@ export const layoutFnGetAccidentType = async () => { }); return ref(resData.list); }; -// 事故级别 -export const layoutFnGetAccidentLevel = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "9a77f67eff4c49b19454bf3e40e2ae57", - }); - return ref(resData.list); -}; // 风险分级 export const layoutFnGetRiskClassification = async () => { const resData = await getLevels({ @@ -234,146 +181,6 @@ export const layoutFnGetRiskClassification = async () => { }); return ref(resData.list); }; -// 承诺书级别 -export const layoutFnGetCommitmentLevel = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "8c5064693fba4dbca1cbfea631cd097a", - }); - return ref(resData.list); -}; -// 申报等级 -export const layoutFnGetDeclarationGrade = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "246a2fe3af964eb18f0e005339e334dd", - }); - return ref(resData.list); -}; -// 重大危险源类型 -export const layoutFnGetMajorHazardSourceType = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "6f7469fadb75401e9928edb0ab19b17e", - }); - return ref(resData.list); -}; -// 监测数据类型 -export const layoutFnGetEquipmentType = async () => { - const resData = await getLevelsCorp({ - DICTIONARIES_ID: "6a724d36c3ad416fad22049d932c1987", - }); - return ref(resData.list); -}; -// 学习园地类型 -export const layoutFnGetLearningGardenType = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "5aa989ad8fd54bef862c1b096a3b07d8", - }); - return ref(resData.list); -}; -// 学习园地学习类型 -export const layoutFnGetLearningGardenLearningType = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "c4f00e7ed9334789ba2fb4795f54bae2", - }); - return ref(resData.list); -}; -// 培训类型 -export const layoutFnGetTrainingType = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "10ffcf646d354ff0a94630c7435e73fe", - }); - return ref(resData.list); -}; -// 适用领域 -export const layoutFnGetApplicableFields = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "ab52643da4714042be2ebfb880097330", - }); - return ref(resData.list); -}; -// 预案类别 -export const layoutFnGetPlanCategory = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "b2759070db524cc4ae2d60ee4b263dc3", - }); - return ref(resData.list); -}; -// 预案备案状态 -export const layoutFnGetPlanFilingStatus = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "8d07af03be10473ca17e1516a8e860d2", - }); - return ref(resData.list); -}; -// 预案级别 -export const layoutFnGetPlanLevel = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "ab54d50f12ef4f578bc29c3b980b83e5", - }); - return ref(resData.list); -}; -// 装备类别 -export const layoutFnGetEquipmentCategory = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "716f792cfc354fcf81bf3c0e904fb4f8", - }); - return ref(resData.list); -}; -// 救援专业 -export const layoutFnGetRescueSpecialty = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "6a724d36c3ad416fad22049d932c329e", - }); - return ref(resData.list); -}; -// 队伍属性 -export const layoutFnGetTeamAttribute = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "afde28dd39c841d984fb331116781ff3", - }); - return ref(resData.list); -}; -// 队伍类别 -export const layoutFnGetTeamCategory = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "ef2f9a53723b4531968279fe4816be3d", - }); - return ref(resData.list); -}; -// 队伍等级 -export const layoutFnGetTeamGrade = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "4dca6d39490d4845ba7b02df2ab68aa4", - }); - return ref(resData.list); -}; -// 队伍级别 -export const layoutFnGetTeamLevel = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "bfd057e59c124b42ac93e13c6a30b85e", - }); - return ref(resData.list); -}; -// 特种设备类型 -export const layoutFnGetSpecialEquipmentType = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "cffb3d28d48548328ddd78976610b05d", - }); - return ref(resData.list); -}; -// 特种设备状态 -export const layoutFnGetSpecialEquipmentState = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "0feb448f975e422fafbf5db20c0b85c9", - }); - return ref(resData.list); -}; -// 巡检周期 -export const layoutFnGetInspectionCycle = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "3017f7f6f6794f23bf15d026a1e55426", - }); - return ref(resData.list); -}; // 部门树 export const layoutFnGetDepartmentTree = async (params) => { const resData = await getDepartmentTree(params); @@ -389,13 +196,6 @@ export const layoutFnGetElectronicFenceTree = async (params) => { const resData = await getElectronicFenceTree(params); return ref(JSON.parse(resData.zTreeNodes)); }; -// 检查类型树 -export const layoutFnGetInspectionTypeTree = async () => { - const resData = await getListSelectTree({ - DICTIONARIES_ID: "60e6481d96e44a5390ff5c347c4d1ffe", - }); - return ref(JSON.parse(resData.zTreeNodes)); -}; // 无法确定DICTIONARIES_ID的数据字典 export const layoutFnGetLevels = async (DICTIONARIES_ID) => { const resData = await getLevels({ DICTIONARIES_ID }); @@ -406,15 +206,6 @@ export const layoutFnGetLevelsAndChildrenNumber = async (DICTIONARIES_ID) => { const resData = await getLevelsAndChildrenNumber({ DICTIONARIES_ID }); return ref(resData.list); }; - -// 相关方作业类别 -export const layoutFnGetPersonnelManagementJobType = async () => { - const resData = await getLevels({ - DICTIONARIES_ID: "a8bfd4554af54ee2b816f3007d8baea6", - }); - return ref(resData.list); -}; - // 年检周期 export const layoutFnGetAnnualInspectionCycle = async () => { const resData = await getLevels({ @@ -422,7 +213,6 @@ export const layoutFnGetAnnualInspectionCycle = async () => { }); return ref(resData.list); }; - // 保险公司 export const layoutFnGetInsuranceCompany = async () => { const resData = await getLevels({ @@ -430,3 +220,24 @@ export const layoutFnGetInsuranceCompany = async () => { }); return ref(resData.list); }; + +// 培训类型 +export const layoutFnGetTrainingType = async (params) => { + const resData = await getTrainingType(params); + return ref(resData.trainingtypelist); +}; +// 行业类型 +export const layoutFnGetIndustryType = async (params) => { + const resData = await getIndustryType(params); + return ref(JSON.parse(resData.zTreeNodes)); +}; +// 岗位类型 +export const layoutFnGetPostType = async (params) => { + const resData = await getPostType(params); + return ref(resData.varList); +}; +// 培训级别 +export const layoutFnGetTrainingLevel = async (params) => { + const resData = await getTrainingLevel(params); + return ref(resData.varList); +}; diff --git a/src/components/inspection_type/index.vue b/src/components/inspection_type/index.vue deleted file mode 100644 index 0710553..0000000 --- a/src/components/inspection_type/index.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/components/learning_train_type/index.vue b/src/components/learning_train_type/index.vue index 74dc6b9..c05f606 100644 --- a/src/components/learning_train_type/index.vue +++ b/src/components/learning_train_type/index.vue @@ -1,14 +1,23 @@