From 5aa6676248df7779e10a8bd7a00c6fab5da5d5ae Mon Sep 17 00:00:00 2001 From: shanao Date: Fri, 6 Sep 2024 19:38:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E6=95=85=E8=B0=83=E6=9F=A5=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 104 ++++++++-- package.json | 2 +- src/router/index.js | 6 + .../accident/records/components/list.vue | 188 +++++++++++++----- .../accident/records/components/list_demo.vue | 4 +- 5 files changed, 238 insertions(+), 66 deletions(-) diff --git a/package-lock.json b/package-lock.json index 84ed7ae..af6e93e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,11 +11,12 @@ "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "^0.4.0", "axios": "^0.21.1", - "dayjs": "^1.11.8", + "dayjs": "^1.11.10", "echarts": "^5.3.1", "element-ui": "^2.15.8", "ezuikit-js": "^0.6.3", "js-cookie": "^2.2.1", + "jspdf": "^2.5.1", "moment": "^2.29.3", "normalize.css": "^8.0.1", "nprogress": "^0.2.0", @@ -383,6 +384,12 @@ "integrity": "sha1-FZJUFOCtLNdlv+9YhC9+JqesyyQ=", "dev": true }, + "node_modules/@types/raf": { + "version": "3.4.3", + "resolved": "https://registry.npmmirror.com/@types/raf/-/raf-3.4.3.tgz", + "integrity": "sha512-c4YAvMedbPZ5tEyxzQdMoOhhJ4RD3rngZIdwC2/qDN3d7JpEhB6fiBRKVY1lg5B7Wk+uPBjn5f39j1/2MY1oOw==", + "optional": true + }, "node_modules/@types/strip-bom": { "version": "3.0.0", "resolved": "https://registry.npm.taobao.org/@types/strip-bom/download/@types/strip-bom-3.0.0.tgz", @@ -19841,7 +19848,7 @@ }, "node_modules/v-viewer": { "version": "1.6.3", - "resolved": "https://registry.nlark.com/v-viewer/download/v-viewer-1.6.3.tgz?cache=0&sync_timestamp=1622640158813&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fv-viewer%2Fdownload%2Fv-viewer-1.6.3.tgz", + "resolved": "https://registry.npmmirror.com/v-viewer/download/v-viewer-1.6.3.tgz?cache=0&sync_timestamp=1622640158813&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fv-viewer%2Fdownload%2Fv-viewer-1.6.3.tgz", "integrity": "sha1-bjUOKjQvptfb/mmhKhpNZuOjzG4=", "dev": true, "dependencies": { @@ -20133,7 +20140,7 @@ }, "node_modules/viewerjs": { "version": "1.9.2", - "resolved": "https://registry.nlark.com/viewerjs/download/viewerjs-1.9.2.tgz?cache=0&sync_timestamp=1622261114218&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fviewerjs%2Fdownload%2Fviewerjs-1.9.2.tgz", + "resolved": "https://registry.npmmirror.com/viewerjs/download/viewerjs-1.9.2.tgz?cache=0&sync_timestamp=1622261114218&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fviewerjs%2Fdownload%2Fviewerjs-1.9.2.tgz", "integrity": "sha1-Qrnl9MTT8TZHjVPn1WTosrqbXH4=", "dev": true }, @@ -20706,7 +20713,7 @@ }, "node_modules/vue-print-nb": { "version": "1.7.4", - "resolved": "https://registry.nlark.com/vue-print-nb/download/vue-print-nb-1.7.4.tgz", + "resolved": "https://registry.npmmirror.com/vue-print-nb/download/vue-print-nb-1.7.4.tgz", "integrity": "sha1-WpFisNlpcrQBNH5gc4WStaTkIQk=", "dependencies": { "vue": "^2.6.11" @@ -22870,6 +22877,12 @@ "integrity": "sha1-FZJUFOCtLNdlv+9YhC9+JqesyyQ=", "dev": true }, + "@types/raf": { + "version": "3.4.3", + "resolved": "https://registry.npmmirror.com/@types/raf/-/raf-3.4.3.tgz", + "integrity": "sha512-c4YAvMedbPZ5tEyxzQdMoOhhJ4RD3rngZIdwC2/qDN3d7JpEhB6fiBRKVY1lg5B7Wk+uPBjn5f39j1/2MY1oOw==", + "optional": true + }, "@types/strip-bom": { "version": "3.0.0", "resolved": "https://registry.npm.taobao.org/@types/strip-bom/download/@types/strip-bom-3.0.0.tgz", @@ -23762,8 +23775,7 @@ "atob": { "version": "2.1.2", "resolved": "https://registry.npm.taobao.org/atob/download/atob-2.1.2.tgz", - "integrity": "sha1-bZUX654DDSQ2ZmZR6GvZ9vE1M8k=", - "devOptional": true + "integrity": "sha1-bZUX654DDSQ2ZmZR6GvZ9vE1M8k=" }, "autoprefixer": { "version": "7.2.6", @@ -25148,6 +25160,11 @@ "node-int64": "^0.4.0" } }, + "btoa": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/btoa/-/btoa-1.2.1.tgz", + "integrity": "sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==" + }, "buffer": { "version": "4.9.2", "resolved": "https://registry.npm.taobao.org/buffer/download/buffer-4.9.2.tgz?cache=0&sync_timestamp=1606098175437&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbuffer%2Fdownload%2Fbuffer-4.9.2.tgz", @@ -25331,6 +25348,36 @@ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001317.tgz", "integrity": "sha512-xIZLh8gBm4dqNX0gkzrBeyI86J2eCjWzYAs40q88smG844YIrN4tVQl/RhquHvKEKImWWFIVh1Lxe5n1G/N+GQ==" }, + "canvg": { + "version": "3.0.10", + "resolved": "https://registry.npmmirror.com/canvg/-/canvg-3.0.10.tgz", + "integrity": "sha512-qwR2FRNO9NlzTeKIPIKpnTY6fqwuYSequ8Ru8c0YkYU7U0oW+hLUvWadLvAu1Rl72OMNiFhoLu4f8eUjQ7l/+Q==", + "optional": true, + "requires": { + "@babel/runtime": "^7.12.5", + "@types/raf": "^3.4.0", + "core-js": "^3.8.3", + "raf": "^3.4.1", + "regenerator-runtime": "^0.13.7", + "rgbcolor": "^1.0.1", + "stackblur-canvas": "^2.0.0", + "svg-pathdata": "^6.0.3" + }, + "dependencies": { + "core-js": { + "version": "3.33.0", + "resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.33.0.tgz", + "integrity": "sha512-HoZr92+ZjFEKar5HS6MC776gYslNOKHt75mEBKWKnPeFDpZ6nH5OeF3S6HFT1mUAUZKrzkez05VboaX8myjSuw==", + "optional": true + }, + "regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "optional": true + } + } + }, "capture-exit": { "version": "1.2.0", "resolved": "https://registry.npm.taobao.org/capture-exit/download/capture-exit-1.2.0.tgz", @@ -27001,9 +27048,9 @@ } }, "dayjs": { - "version": "1.11.8", - "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.8.tgz", - "integrity": "sha512-LcgxzFoWMEPO7ggRv1Y2N31hUf2R0Vj7fuy/m+Bg1K8rr+KAs1AEy4y9jd5DXe8pbHgX+srkHNS7TH6Q6ZhYeQ==" + "version": "1.11.10", + "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.10.tgz", + "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==" }, "de-indent": { "version": "1.0.2", @@ -27344,6 +27391,12 @@ "domelementtype": "1" } }, + "dompurify": { + "version": "2.4.7", + "resolved": "https://registry.npmmirror.com/dompurify/-/dompurify-2.4.7.tgz", + "integrity": "sha512-kxxKlPEDa6Nc5WJi+qRgPbOAbgTpSULL+vI3NUXsZMlkJxTqYI9wg5ZTay2sFrdZRWHPWNi+EdAhcJf81WtoMQ==", + "optional": true + }, "domready": { "version": "1.0.8", "resolved": "https://registry.npm.taobao.org/domready/download/domready-1.0.8.tgz", @@ -35964,6 +36017,15 @@ "fast-diff": "1.1.2" } }, + "raf": { + "version": "3.4.1", + "resolved": "https://registry.npmmirror.com/raf/-/raf-3.4.1.tgz", + "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", + "optional": true, + "requires": { + "performance-now": "^2.1.0" + } + }, "randomatic": { "version": "3.1.1", "resolved": "https://registry.npm.taobao.org/randomatic/download/randomatic-3.1.1.tgz", @@ -36510,6 +36572,12 @@ "integrity": "sha1-QzdOLiyglosO8VI0YLfXMP8i7rM=", "dev": true }, + "rgbcolor": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/rgbcolor/-/rgbcolor-1.0.1.tgz", + "integrity": "sha512-9aZLIrhRaD97sgVhtJOW6ckOEh6/GnvQtdVNfdZ6s67+3/XwLS9lBcQYzEEhYVeUowN7pRzMLsyGhK2i/xvWbw==", + "optional": true + }, "right-align": { "version": "0.1.3", "resolved": "https://registry.npm.taobao.org/right-align/download/right-align-0.1.3.tgz", @@ -37552,6 +37620,12 @@ } } }, + "stackblur-canvas": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/stackblur-canvas/-/stackblur-canvas-2.6.0.tgz", + "integrity": "sha512-8S1aIA+UoF6erJYnglGPug6MaHYGo1Ot7h5fuXx4fUPvcvQfcdw2o/ppCse63+eZf8PPidSu4v1JnmEVtEDnpg==", + "optional": true + }, "stackframe": { "version": "1.2.0", "resolved": "https://registry.npm.taobao.org/stackframe/download/stackframe-1.2.0.tgz", @@ -38141,6 +38215,12 @@ } } }, + "svg-pathdata": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/svg-pathdata/-/svg-pathdata-6.0.3.tgz", + "integrity": "sha512-qsjeeq5YjBZ5eMdFuUa4ZosMLxgr5RZ+F+Y1OrDhuOCEInRMA3x74XdBtggJcj9kOeInz0WE+LgCPDkZFlBYJw==", + "optional": true + }, "svg-sprite-loader": { "version": "4.3.0", "resolved": "https://registry.npm.taobao.org/svg-sprite-loader/download/svg-sprite-loader-4.3.0.tgz?cache=0&sync_timestamp=1608019568614&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsvg-sprite-loader%2Fdownload%2Fsvg-sprite-loader-4.3.0.tgz", @@ -39192,7 +39272,7 @@ }, "v-viewer": { "version": "1.6.3", - "resolved": "https://registry.nlark.com/v-viewer/download/v-viewer-1.6.3.tgz?cache=0&sync_timestamp=1622640158813&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fv-viewer%2Fdownload%2Fv-viewer-1.6.3.tgz", + "resolved": "https://registry.npmmirror.com/v-viewer/download/v-viewer-1.6.3.tgz?cache=0&sync_timestamp=1622640158813&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fv-viewer%2Fdownload%2Fv-viewer-1.6.3.tgz", "integrity": "sha1-bjUOKjQvptfb/mmhKhpNZuOjzG4=", "dev": true, "requires": { @@ -39457,7 +39537,7 @@ }, "viewerjs": { "version": "1.9.2", - "resolved": "https://registry.nlark.com/viewerjs/download/viewerjs-1.9.2.tgz?cache=0&sync_timestamp=1622261114218&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fviewerjs%2Fdownload%2Fviewerjs-1.9.2.tgz", + "resolved": "https://registry.npmmirror.com/viewerjs/download/viewerjs-1.9.2.tgz?cache=0&sync_timestamp=1622261114218&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fviewerjs%2Fdownload%2Fviewerjs-1.9.2.tgz", "integrity": "sha1-Qrnl9MTT8TZHjVPn1WTosrqbXH4=", "dev": true }, @@ -39880,7 +39960,7 @@ }, "vue-print-nb": { "version": "1.7.4", - "resolved": "https://registry.nlark.com/vue-print-nb/download/vue-print-nb-1.7.4.tgz", + "resolved": "https://registry.npmmirror.com/vue-print-nb/download/vue-print-nb-1.7.4.tgz", "integrity": "sha1-WpFisNlpcrQBNH5gc4WStaTkIQk=", "requires": { "vue": "^2.6.11" diff --git a/package.json b/package.json index 1e8818a..b674980 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "", "private": true, "scripts": { - "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", + "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.0.125", "start": "npm run dev", "unit": "jest --config test/unit/jest.conf.js --coverage", "e2e": "node test/e2e/runner.js", diff --git a/src/router/index.js b/src/router/index.js index 7017723..f74a2b6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -94,6 +94,12 @@ export const constantRoutes = [ // meta: { name: 'tiao重大危险源' }, component: () => import('../views/bi_onecom/majorHazardSources/apiMajorHazardSources.vue') } + // { + // path: '/accident/records', + // name: 'apiAccidentRecords', + // meta: { name: '事故调查' }, + // component: () => import('@/views/accident/records/index.vue') + // } ] const createRouter = () => new Router({ // mode: 'history', // require service support diff --git a/src/views/accident/records/components/list.vue b/src/views/accident/records/components/list.vue index dcc6e09..0ef47bc 100644 --- a/src/views/accident/records/components/list.vue +++ b/src/views/accident/records/components/list.vue @@ -1,14 +1,13 @@ @@ -99,6 +93,7 @@ diff --git a/src/views/accident/records/components/list_demo.vue b/src/views/accident/records/components/list_demo.vue index b6e23c9..f93c79d 100644 --- a/src/views/accident/records/components/list_demo.vue +++ b/src/views/accident/records/components/list_demo.vue @@ -1,4 +1,4 @@ - +