From 4dadffa872d9a16b8467bbfbbd69781115978171 Mon Sep 17 00:00:00 2001 From: lbw Date: Sat, 1 Apr 2023 09:32:14 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20Refactoring=20code.=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=87=8D=E6=96=B0=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 24 +-- src/api/admin/dept.ts | 2 +- .../{iconSelector => IconSelector}/index.ts | 0 .../{iconSelector => IconSelector}/index.vue | 2 +- .../{iconSelector => IconSelector}/list.vue | 0 .../{noticeBar => NoticeBar}/index.vue | 0 src/components/QueryTree/index.vue | 8 +- .../{wechart => Wechat}/fileUpload/index.vue | 0 .../wx-material-select/main.vue | 0 .../{wechart => Wechat}/wx-msg/card.scss | 0 .../{wechart => Wechat}/wx-msg/comment.scss | 0 .../{wechart => Wechat}/wx-msg/index.vue | 0 .../{wechart => Wechat}/wx-news/index.vue | 0 .../{wechart => Wechat}/wx-reply/index.vue | 9 +- src/components/cropper/index.vue | 143 ------------------ src/components/verifition/Verify.vue | 4 +- .../verifition/Verify/VerifyPoints.vue | 6 +- .../verifition/Verify/VerifySlide.vue | 6 +- src/main.ts | 2 +- src/utils/other.ts | 2 +- src/views/admin/dept/form.vue | 4 +- src/views/admin/dept/index.vue | 4 +- src/views/admin/dict/index.vue | 4 +- src/views/admin/menu/form.vue | 2 +- src/views/admin/role/form.vue | 4 +- src/views/admin/role/permession.vue | 2 +- src/views/admin/user/form.vue | 4 +- src/views/admin/user/index.vue | 4 +- src/views/home/schedule/calendar.vue | 30 +++- src/views/mp/wx-auto-reply/index.vue | 2 +- src/views/mp/wx-fans-msg/index.vue | 2 +- .../mp/wx-material/components/news-form.vue | 4 +- src/views/mp/wx-material/index.vue | 4 +- src/views/mp/wx-menu/index.vue | 6 +- vite.config.ts | 2 +- 35 files changed, 82 insertions(+), 204 deletions(-) rename src/components/{iconSelector => IconSelector}/index.ts (100%) rename src/components/{iconSelector => IconSelector}/index.vue (99%) rename src/components/{iconSelector => IconSelector}/list.vue (100%) rename src/components/{noticeBar => NoticeBar}/index.vue (100%) rename src/components/{wechart => Wechat}/fileUpload/index.vue (100%) rename src/components/{wechart => Wechat}/wx-material-select/main.vue (100%) rename src/components/{wechart => Wechat}/wx-msg/card.scss (100%) rename src/components/{wechart => Wechat}/wx-msg/comment.scss (100%) rename src/components/{wechart => Wechat}/wx-msg/index.vue (100%) rename src/components/{wechart => Wechat}/wx-news/index.vue (100%) rename src/components/{wechart => Wechat}/wx-reply/index.vue (97%) delete mode 100644 src/components/cropper/index.vue diff --git a/package-lock.json b/package-lock.json index d6c9e985..a9b6049e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@wangeditor/editor-for-vue": "5.1.12", "axios": "^1.3.3", "crypto-js": "^3.1.9-1", + "driver.js": "^0.9.8", "echarts": "^5.4.1", "element-plus": "2.3.1", "form-designer": "^0.0.2", @@ -24,7 +25,6 @@ "mitt": "^3.0.0", "nprogress": "^0.2.0", "pinia": "^2.0.32", - "print-js": "^1.6.0", "qrcode": "1.5.1", "qs": "^6.11.0", "screenfull": "^6.0.2", @@ -1726,6 +1726,12 @@ "tslib": "^2.0.3" } }, + "node_modules/driver.js": { + "version": "0.9.8", + "resolved": "https://registry.npmmirror.com/driver.js/-/driver.js-0.9.8.tgz", + "integrity": "sha512-bczjyKdX6XmFyCDkwtRmlaORDwfBk1xXmRO0CAe5VwNQTM98aWaG2LAIiIdTe53iV/B7W5lXlIy2xYtf0JRb7Q==", + "license": "MIT" + }, "node_modules/echarts": { "version": "5.4.1", "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.4.1.tgz", @@ -3333,12 +3339,6 @@ "node": ">=10.13.0" } }, - "node_modules/print-js": { - "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/print-js/-/print-js-1.6.0.tgz", - "integrity": "sha512-BfnOIzSKbqGRtO4o0rnj/K3681BSd2QUrsIZy/+WdCIugjIswjmx3lDEZpXB2ruGf9d4b3YNINri81+J0FsBWg==", - "license": "MIT" - }, "node_modules/prismjs": { "version": "1.29.0", "resolved": "https://registry.npmmirror.com/prismjs/-/prismjs-1.29.0.tgz", @@ -5720,6 +5720,11 @@ "tslib": "^2.0.3" } }, + "driver.js": { + "version": "0.9.8", + "resolved": "https://registry.npmmirror.com/driver.js/-/driver.js-0.9.8.tgz", + "integrity": "sha512-bczjyKdX6XmFyCDkwtRmlaORDwfBk1xXmRO0CAe5VwNQTM98aWaG2LAIiIdTe53iV/B7W5lXlIy2xYtf0JRb7Q==" + }, "echarts": { "version": "5.4.1", "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.4.1.tgz", @@ -6935,11 +6940,6 @@ "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", "dev": true }, - "print-js": { - "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/print-js/-/print-js-1.6.0.tgz", - "integrity": "sha512-BfnOIzSKbqGRtO4o0rnj/K3681BSd2QUrsIZy/+WdCIugjIswjmx3lDEZpXB2ruGf9d4b3YNINri81+J0FsBWg==" - }, "prismjs": { "version": "1.29.0", "resolved": "https://registry.npmmirror.com/prismjs/-/prismjs-1.29.0.tgz", diff --git a/src/api/admin/dept.ts b/src/api/admin/dept.ts index bbbbcdc6..60439843 100644 --- a/src/api/admin/dept.ts +++ b/src/api/admin/dept.ts @@ -1,6 +1,6 @@ import request from '/@/utils/request'; -export const depttree = (params?: Object) => { +export const deptTree = (params?: Object) => { return request({ url: '/admin/dept/tree', method: 'get', diff --git a/src/components/iconSelector/index.ts b/src/components/IconSelector/index.ts similarity index 100% rename from src/components/iconSelector/index.ts rename to src/components/IconSelector/index.ts diff --git a/src/components/iconSelector/index.vue b/src/components/IconSelector/index.vue similarity index 99% rename from src/components/iconSelector/index.vue rename to src/components/IconSelector/index.vue index 00df68a6..69afd713 100644 --- a/src/components/iconSelector/index.vue +++ b/src/components/IconSelector/index.vue @@ -100,7 +100,7 @@ const props = defineProps({ const emit = defineEmits(['update:modelValue', 'get', 'clear']); // 引入组件 -const IconList = defineAsyncComponent(() => import('/@/components/iconSelector/list.vue')); +const IconList = defineAsyncComponent(() => import('/@/components/IconSelector/list.vue')); // 定义变量内容 const inputWidthRef = ref(); diff --git a/src/components/iconSelector/list.vue b/src/components/IconSelector/list.vue similarity index 100% rename from src/components/iconSelector/list.vue rename to src/components/IconSelector/list.vue diff --git a/src/components/noticeBar/index.vue b/src/components/NoticeBar/index.vue similarity index 100% rename from src/components/noticeBar/index.vue rename to src/components/NoticeBar/index.vue diff --git a/src/components/QueryTree/index.vue b/src/components/QueryTree/index.vue index 088db42c..5ef9232a 100644 --- a/src/components/QueryTree/index.vue +++ b/src/components/QueryTree/index.vue @@ -1,7 +1,7 @@