From b30aaf9f34faf42138b64590766b41ef9057bcce Mon Sep 17 00:00:00 2001 From: z Date: Fri, 12 Jan 2024 09:51:58 +0800 Subject: [PATCH] init --- src/components/pdf/index.vue | 10 +- src/request/hazard_investigation.js | 10 +- .../archives/corp/components/archives_pdf.vue | 4 +- .../delete_inventory_management/view.vue | 4 +- .../insurance_coverage.vue | 4 +- .../inventory_management/part_qr_code.vue | 4 +- .../inventory_management/print.vue | 4 +- .../components/un_qualified.vue | 134 ++++++++++-------- .../inventory_troubleshooting/index.vue | 4 +- .../inventory_troubleshooting/inspect.vue | 105 +++++++++++--- .../courseware/video/index.vue | 2 +- .../courseware/video.vue | 2 +- .../curriculum/view.vue | 2 +- .../platform_resource_library/paper/view.vue | 5 +- 14 files changed, 189 insertions(+), 105 deletions(-) diff --git a/src/components/pdf/index.vue b/src/components/pdf/index.vue index 73ecff2..4fed0fe 100644 --- a/src/components/pdf/index.vue +++ b/src/components/pdf/index.vue @@ -4,9 +4,8 @@ :model-value="visible && model === 'dialog'" @update:model-value="visible = false" > -
+
-
+
{ - if (props.visible) { - console.log(1111); + if (props.visible || props.src) { const loadingTask = createLoadingTask(VITE_FILE_URL + props.src); loadingTask.promise .then((pdf) => { diff --git a/src/request/hazard_investigation.js b/src/request/hazard_investigation.js index 12cd4dc..28ec153 100644 --- a/src/request/hazard_investigation.js +++ b/src/request/hazard_investigation.js @@ -40,5 +40,13 @@ export const getHiddenDangerDatabaseList = (params) => post("/hiddenLibrary/list", params); // 隐患数据库列表 export const setInventoryTroubleshootingOtherHiddenDangerAdd = (params) => post("/hidden/add", params); // 清单排查其它隐患添加 -export const setInventoryTroubleshootingOtherHiddenDangerView = (params) => +export const getInventoryTroubleshootingOtherHiddenDangerView = (params) => post("/hidden/goEdit", params); // 清单排查其它隐患查看 +export const setInventoryTroubleshootingOtherHiddenDangerDelete = (params) => + post("/hidden/delete", params); // 清单排查其它隐患删除 +export const setInventoryTroubleshootingOtherHiddenDangerEdit = (params) => + post("/hidden/edit", params); // 清单排查其它隐患修改 +export const setInventoryTroubleshootingOtherHiddenDangerListAdd = (params) => + post("/hidden/listAdd", params); // 清单排查其它隐患添加 +export const setInventoryTroubleshootingSubmit = (params) => + post("/checkrecord/add", params); // 清单排查提交 diff --git a/src/views/archives/corp/components/archives_pdf.vue b/src/views/archives/corp/components/archives_pdf.vue index d086842..371295d 100644 --- a/src/views/archives/corp/components/archives_pdf.vue +++ b/src/views/archives/corp/components/archives_pdf.vue @@ -10,12 +10,12 @@ > diff --git a/src/views/hazard_investigation/delete_inventory_management/view.vue b/src/views/hazard_investigation/delete_inventory_management/view.vue index 51607c5..14a89f8 100644 --- a/src/views/hazard_investigation/delete_inventory_management/view.vue +++ b/src/views/hazard_investigation/delete_inventory_management/view.vue @@ -62,8 +62,8 @@ const info = ref({}); const { list } = useListData(getInventoryManagementView, { otherParams: { LISTMANAGER_ID }, usePagination: false, - callbackFn: (list, responseData) => { - info.value = responseData.pd; + callbackFn: (list, resData) => { + info.value = resData.pd; }, }); console.log(list); diff --git a/src/views/hazard_investigation/inventory_management/insurance_coverage.vue b/src/views/hazard_investigation/inventory_management/insurance_coverage.vue index d977e40..78bd8b0 100644 --- a/src/views/hazard_investigation/inventory_management/insurance_coverage.vue +++ b/src/views/hazard_investigation/inventory_management/insurance_coverage.vue @@ -84,8 +84,8 @@ const { list } = useListData(getInventoryManagementView, { LISTMANAGER_ID, }, usePagination: false, - callbackFn: (list, responseData) => { - info.value = responseData.pd; + callbackFn: (list, resData) => { + info.value = resData.pd; }, }); const fnSelect = (row, index) => { diff --git a/src/views/hazard_investigation/inventory_management/part_qr_code.vue b/src/views/hazard_investigation/inventory_management/part_qr_code.vue index 318182d..b51afbd 100644 --- a/src/views/hazard_investigation/inventory_management/part_qr_code.vue +++ b/src/views/hazard_investigation/inventory_management/part_qr_code.vue @@ -75,8 +75,8 @@ const { list } = useListData(getInventoryManagementView, { LISTMANAGER_ID, }, usePagination: false, - callbackFn: (list, responseData) => { - info.value = responseData.pd; + callbackFn: (list, resData) => { + info.value = resData.pd; }, }); const fnPartQrCode = (row) => { diff --git a/src/views/hazard_investigation/inventory_management/print.vue b/src/views/hazard_investigation/inventory_management/print.vue index be623a3..10e8d15 100644 --- a/src/views/hazard_investigation/inventory_management/print.vue +++ b/src/views/hazard_investigation/inventory_management/print.vue @@ -107,8 +107,8 @@ const { list } = useListData(getInventoryManagementView, { LISTMANAGER_ID, }, usePagination: false, - callbackFn: (list, responseData) => { - info.value = responseData.pd; + callbackFn: (list, resData) => { + info.value = resData.pd; }, }); diff --git a/src/views/hazard_investigation/inventory_troubleshooting/components/un_qualified.vue b/src/views/hazard_investigation/inventory_troubleshooting/components/un_qualified.vue index 67926da..1e39bff 100644 --- a/src/views/hazard_investigation/inventory_troubleshooting/components/un_qualified.vue +++ b/src/views/hazard_investigation/inventory_troubleshooting/components/un_qualified.vue @@ -1,7 +1,7 @@