From a156f79fc04c78421e554752ad0bf57a2f865da1 Mon Sep 17 00:00:00 2001 From: witersen <1801168257@qq.com> Date: Fri, 20 May 2022 15:09:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=8F=8A=E4=BF=A1=E6=81=AF=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01.web/package-lock.json | 26 +- 01.web/src/router.js | 17 +- 01.web/src/views/index/index.vue | 319 ---------------------- 01.web/src/views/login/index.vue | 8 +- 01.web/src/views/repositoryInfo/index.vue | 1 + 02.php/app/controller/Statistics.php | 70 ----- 02.php/app/controller/base/Base.php | 4 +- 02.php/app/service/Statistics.php | 260 ------------------ README.md | 5 +- 9 files changed, 18 insertions(+), 692 deletions(-) delete mode 100644 01.web/src/views/index/index.vue delete mode 100644 02.php/app/controller/Statistics.php delete mode 100644 02.php/app/service/Statistics.php diff --git a/01.web/package-lock.json b/01.web/package-lock.json index eafaa01..423de8f 100644 --- a/01.web/package-lock.json +++ b/01.web/package-lock.json @@ -4,12 +4,6 @@ "lockfileVersion": 1, "requires": true, "dependencies": { - "@types/streamsaver": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/@types/streamsaver/-/streamsaver-2.0.1.tgz", - "integrity": "sha512-I49NtT8w6syBI3Zg3ixCyygTHoTVMY0z2TMRcTgccdIsVd2MwlKk7ITLHLsJtgchUHcOd7QEARG9h0ifcA6l2Q==", - "dev": true - }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -343,6 +337,14 @@ "es6-promise": "~2.3.0", "js-base64": "~2.1.8", "source-map": "~0.4.2" + }, + "dependencies": { + "es6-promise": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/es6-promise/-/es6-promise-2.3.0.tgz", + "integrity": "sha512-oyOjMhyKMLEjOOtvkwg0G4pAzLQ9WdbbeX7WdqKzvYXu+UFgD0Zo/Brq5Q49zNmnGPPzV5rmYvrr0jz1zWx8Iw==", + "dev": true + } } } } @@ -2524,12 +2526,6 @@ "is-symbol": "^1.0.1" } }, - "es6-promise": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-2.3.0.tgz", - "integrity": "sha1-lu258v2wGZWCKyY92KratnSBgbw=", - "dev": true - }, "es6-templates": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/es6-templates/-/es6-templates-0.2.3.tgz", @@ -8102,12 +8098,6 @@ } } }, - "streamsaver": { - "version": "2.0.6", - "resolved": "https://registry.npmmirror.com/streamsaver/-/streamsaver-2.0.6.tgz", - "integrity": "sha512-LK4e7TfCV8HzuM0PKXuVUfKyCB1FtT9L0EGxsFk5Up8njj0bXK8pJM9+Wq2Nya7/jslmCQwRK39LFm55h7NBTw==", - "dev": true - }, "strict-uri-encode": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", diff --git a/01.web/src/router.js b/01.web/src/router.js index 2ad960f..7a455a2 100644 --- a/01.web/src/router.js +++ b/01.web/src/router.js @@ -18,21 +18,6 @@ const routers = [ }, component: (resolve) => require(['./views/layout/basicLayout/index.vue'], resolve), children: [ - { - name: 'index', - path: '/index', - meta: { - title: '信息统计', - icon: "ios-stats", - requireAuth: true, - user_role_id: ['1'], - group: { - name: "仓库", - num: 1 - } - }, - component: (resolve) => require(['./views/index/index.vue'], resolve) - }, { name: 'repositoryInfo', path: '/repositoryInfo', @@ -42,7 +27,7 @@ const routers = [ requireAuth: true, user_role_id: ['1', '2'], group: { - name: "", + name: "仓库", num: 1 } }, diff --git a/01.web/src/views/index/index.vue b/01.web/src/views/index/index.vue deleted file mode 100644 index 69e217c..0000000 --- a/01.web/src/views/index/index.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - \ No newline at end of file diff --git a/01.web/src/views/login/index.vue b/01.web/src/views/login/index.vue index 582ad2f..1fef561 100644 --- a/01.web/src/views/login/index.vue +++ b/01.web/src/views/login/index.vue @@ -122,8 +122,8 @@ export default { that.$Message.success("已有登录信息 自动跳转中..."); setTimeout(function () { if (sessionStorage.user_role_id == 1) { - //管理员跳转到首页 - that.$router.push({ name: "index" }); + //管理员跳转到仓库页 + that.$router.push({ name: "repositoryInfo" }); } else if (sessionStorage.user_role_id == 2) { //用户跳转到仓库页 that.$router.push({ name: "repositoryInfo" }); @@ -197,8 +197,8 @@ export default { that.$Message.success(result.message); if (result.data.user_role_id == 1) { - //管理员跳转到首页 - that.$router.push({ name: "index" }); + //管理员跳转到仓库页 + that.$router.push({ name: "repositoryInfo" }); } else if (result.data.user_role_id == 2) { //用户跳转到仓库页 that.$router.push({ name: "repositoryInfo" }); diff --git a/01.web/src/views/repositoryInfo/index.vue b/01.web/src/views/repositoryInfo/index.vue index c082563..44c702c 100644 --- a/01.web/src/views/repositoryInfo/index.vue +++ b/01.web/src/views/repositoryInfo/index.vue @@ -890,6 +890,7 @@