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 @@