diff --git a/package-lock.json b/package-lock.json index bf3f319..85bd175 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,6 +28,7 @@ "crypto-js": "^4.2.0", "dayjs": "^1.11.4", "echarts": "^5.4.2", + "flv.js": "^1.6.2", "jsencrypt": "^3.3.2", "lint-staged": "^15.2.10", "lodash-es": "^4.17.21", @@ -6560,6 +6561,12 @@ "es6-symbol": "^3.1.1" } }, + "node_modules/es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmmirror.com/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "license": "MIT" + }, "node_modules/es6-symbol": { "version": "3.1.4", "resolved": "https://registry.npmmirror.com/es6-symbol/-/es6-symbol-3.1.4.tgz", @@ -8254,6 +8261,16 @@ "dev": true, "license": "ISC" }, + "node_modules/flv.js": { + "version": "1.6.2", + "resolved": "https://registry.npmmirror.com/flv.js/-/flv.js-1.6.2.tgz", + "integrity": "sha512-xre4gUbX1MPtgQRKj2pxJENp/RnaHaxYvy3YToVVCrSmAWUu85b9mug6pTXF6zakUjNP2lFWZ1rkSX7gxhB/2A==", + "license": "Apache-2.0", + "dependencies": { + "es6-promise": "^4.2.8", + "webworkify-webpack": "^2.1.5" + } + }, "node_modules/follow-redirects": { "version": "1.15.9", "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.9.tgz", @@ -16043,6 +16060,12 @@ "node": ">=4.0" } }, + "node_modules/webworkify-webpack": { + "version": "2.1.5", + "resolved": "https://registry.npmmirror.com/webworkify-webpack/-/webworkify-webpack-2.1.5.tgz", + "integrity": "sha512-2akF8FIyUvbiBBdD+RoHpoTbHMQF2HwjcxfDvgztAX5YwbZNyrtfUMgvfgFVsgDhDPVTlkbb5vyasqDHfIDPQw==", + "license": "MIT" + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", diff --git a/package.json b/package.json index 7d7bf93..6c37c97 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "crypto-js": "^4.2.0", "dayjs": "^1.11.4", "echarts": "^5.4.2", + "flv.js": "^1.6.2", "jsencrypt": "^3.3.2", "lint-staged": "^15.2.10", "lodash-es": "^4.17.21", diff --git a/src/apis/material/materialInfo.ts b/src/apis/material/materialInfo.ts index 21f5109..0ea2719 100644 --- a/src/apis/material/materialInfo.ts +++ b/src/apis/material/materialInfo.ts @@ -78,7 +78,12 @@ export function importMaterial(data: any) { return http.post(`${BASE_URL}/import`, data) } -/** @desc 解析物料信息导入数据 */ +/** @desc 物料照片批量导入数据 */ export function uploadMaterialPhotos(data: FormData) { return http.post(`${BASE_URL}/import/uploadMaterialPhotos`, data) } + +/** @desc 物料照片抓取数据 */ +export function catchPhoto(data: FormData) { + return http.post(`${BASE_URL}/import/catch`, data) +} diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 90198bb..d637ddf 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -18,7 +18,6 @@ declare module 'vue' { ACheckboxGroup: typeof import('@arco-design/web-vue')['CheckboxGroup'] ACol: typeof import('@arco-design/web-vue')['Col'] AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider'] - ADatePicker: typeof import('@arco-design/web-vue')['DatePicker'] ADescriptions: typeof import('@arco-design/web-vue')['Descriptions'] ADescriptionsItem: typeof import('@arco-design/web-vue')['DescriptionsItem'] ADivider: typeof import('@arco-design/web-vue')['Divider'] @@ -37,17 +36,13 @@ declare module 'vue' { AInputPassword: typeof import('@arco-design/web-vue')['InputPassword'] AInputSearch: typeof import('@arco-design/web-vue')['InputSearch'] ALayout: typeof import('@arco-design/web-vue')['Layout'] - ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent'] ALayoutHeader: typeof import('@arco-design/web-vue')['LayoutHeader'] ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'] ALink: typeof import('@arco-design/web-vue')['Link'] AMenu: typeof import('@arco-design/web-vue')['Menu'] AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'] AModal: typeof import('@arco-design/web-vue')['Modal'] - AOption: typeof import('@arco-design/web-vue')['Option'] AOverflowList: typeof import('@arco-design/web-vue')['OverflowList'] - APagination: typeof import('@arco-design/web-vue')['Pagination'] - APopconfirm: typeof import('@arco-design/web-vue')['Popconfirm'] APopover: typeof import('@arco-design/web-vue')['Popover'] AProgress: typeof import('@arco-design/web-vue')['Progress'] ARadio: typeof import('@arco-design/web-vue')['Radio'] @@ -57,6 +52,7 @@ declare module 'vue' { AScrollbar: typeof import('@arco-design/web-vue')['Scrollbar'] ASelect: typeof import('@arco-design/web-vue')['Select'] ASpace: typeof import('@arco-design/web-vue')['Space'] + ASpin: typeof import('@arco-design/web-vue')['Spin'] AStatistic: typeof import('@arco-design/web-vue')['Statistic'] ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'] ASwitch: typeof import('@arco-design/web-vue')['Switch'] @@ -70,7 +66,6 @@ declare module 'vue' { ATreeSelect: typeof import('@arco-design/web-vue')['TreeSelect'] ATrigger: typeof import('@arco-design/web-vue')['Trigger'] ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph'] - ATypographyTitle: typeof import('@arco-design/web-vue')['TypographyTitle'] AUpload: typeof import('@arco-design/web-vue')['Upload'] Avatar: typeof import('./../components/Avatar/index.vue')['default'] AWatermark: typeof import('@arco-design/web-vue')['Watermark'] diff --git a/src/views/material/index.vue b/src/views/material/index.vue index 28393ee..da71745 100644 --- a/src/views/material/index.vue +++ b/src/views/material/index.vue @@ -1,17 +1,18 @@ \ No newline at end of file +