diff --git a/README.md b/README.md index fbd9826..edfe5f4 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,6 @@ [x] i18n注入 语言全局化实现 [x] 状态管理工具Pinia实现 [x] ElementPlus 组件引入 并且实现i18n -[] 引入unocss 样式 -[] 路由由后端控制实现动态路由 +[x] 路由由后端控制实现动态路由 diff --git a/components.d.ts b/components.d.ts index d3c2e95..ea7172c 100644 --- a/components.d.ts +++ b/components.d.ts @@ -27,6 +27,7 @@ declare module 'vue' { ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDivider: typeof import('element-plus/es')['ElDivider'] ElDrawer: typeof import('element-plus/es')['ElDrawer'] ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] @@ -49,6 +50,8 @@ declare module 'vue' { ElRow: typeof import('element-plus/es')['ElRow'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSelect: typeof import('element-plus/es')['ElSelect'] + ElSkeleton: typeof import('element-plus/es')['ElSkeleton'] + ElSkeletonItem: typeof import('element-plus/es')['ElSkeletonItem'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] @@ -59,8 +62,10 @@ declare module 'vue' { ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElTree: typeof import('element-plus/es')['ElTree'] + EmojiPicker: typeof import('./src/components/comment/emojiPicker.vue')['default'] GlobaIcon: typeof import('./src/components/globaIcon/index.vue')['default'] GlobalIcon: typeof import('./src/components/GlobalIcon/index.vue')['default'] + NameAvatar: typeof import('./src/components/nameAvatar/index.vue')['default'] OverflowTabs: typeof import('./src/components/overflowTabs/index.vue')['default'] PageForm: typeof import('./src/components/pageForm/index.vue')['default'] ProTable: typeof import('./src/components/proTable/index.vue')['default'] @@ -69,6 +74,7 @@ declare module 'vue' { StageBreadcrumbs: typeof import('./src/components/stageBreadcrumbs/index.vue')['default'] StandardMenu: typeof import('./src/components/standardMenu/index.vue')['default'] StandMenu: typeof import('./src/components/standMenu/index.vue')['default'] + Xxx: typeof import('./src/components/comment/xxx.vue')['default'] } export interface GlobalDirectives { vLoading: typeof import('element-plus/es')['ElLoadingDirective'] diff --git a/package.json b/package.json index 8142e89..c948ce4 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "dayjs": "^1.11.19", "sass": "^1.97.1", "typescript": "~5.9.3", + "unicode-emoji-json": "^0.8.0", "unplugin-auto-import": "^20.3.0", "unplugin-vue-components": "^30.0.0", "vite": "^7.2.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c7b74f6..1d3e39e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,6 +51,9 @@ importers: typescript: specifier: ~5.9.3 version: 5.9.3 + unicode-emoji-json: + specifier: ^0.8.0 + version: 0.8.0 unplugin-auto-import: specifier: ^20.3.0 version: 20.3.0(@vueuse/core@10.11.1(vue@3.5.26(typescript@5.9.3))) @@ -317,42 +320,36 @@ packages: engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] - libc: [glibc] '@parcel/watcher-linux-arm-musl@2.5.1': resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==} engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] - libc: [musl] '@parcel/watcher-linux-arm64-glibc@2.5.1': resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] - libc: [glibc] '@parcel/watcher-linux-arm64-musl@2.5.1': resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] - libc: [musl] '@parcel/watcher-linux-x64-glibc@2.5.1': resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] - libc: [glibc] '@parcel/watcher-linux-x64-musl@2.5.1': resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] - libc: [musl] '@parcel/watcher-win32-arm64@2.5.1': resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==} @@ -413,67 +410,56 @@ packages: resolution: {integrity: sha512-EHMUcDwhtdRGlXZsGSIuXSYwD5kOT9NVnx9sqzYiwAc91wfYOE1g1djOEDseZJKKqtHAHGwnGPQu3kytmfaXLQ==} cpu: [arm] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.54.0': resolution: {integrity: sha512-+pBrqEjaakN2ySv5RVrj/qLytYhPKEUwk+e3SFU5jTLHIcAtqh2rLrd/OkbNuHJpsBgxsD8ccJt5ga/SeG0JmA==} cpu: [arm] os: [linux] - libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.54.0': resolution: {integrity: sha512-NSqc7rE9wuUaRBsBp5ckQ5CVz5aIRKCwsoa6WMF7G01sX3/qHUw/z4pv+D+ahL1EIKy6Enpcnz1RY8pf7bjwng==} cpu: [arm64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.54.0': resolution: {integrity: sha512-gr5vDbg3Bakga5kbdpqx81m2n9IX8M6gIMlQQIXiLTNeQW6CucvuInJ91EuCJ/JYvc+rcLLsDFcfAD1K7fMofg==} cpu: [arm64] os: [linux] - libc: [musl] '@rollup/rollup-linux-loong64-gnu@4.54.0': resolution: {integrity: sha512-gsrtB1NA3ZYj2vq0Rzkylo9ylCtW/PhpLEivlgWe0bpgtX5+9j9EZa0wtZiCjgu6zmSeZWyI/e2YRX1URozpIw==} cpu: [loong64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-ppc64-gnu@4.54.0': resolution: {integrity: sha512-y3qNOfTBStmFNq+t4s7Tmc9hW2ENtPg8FeUD/VShI7rKxNW7O4fFeaYbMsd3tpFlIg1Q8IapFgy7Q9i2BqeBvA==} cpu: [ppc64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.54.0': resolution: {integrity: sha512-89sepv7h2lIVPsFma8iwmccN7Yjjtgz0Rj/Ou6fEqg3HDhpCa+Et+YSufy27i6b0Wav69Qv4WBNl3Rs6pwhebQ==} cpu: [riscv64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-riscv64-musl@4.54.0': resolution: {integrity: sha512-ZcU77ieh0M2Q8Ur7D5X7KvK+UxbXeDHwiOt/CPSBTI1fBmeDMivW0dPkdqkT4rOgDjrDDBUed9x4EgraIKoR2A==} cpu: [riscv64] os: [linux] - libc: [musl] '@rollup/rollup-linux-s390x-gnu@4.54.0': resolution: {integrity: sha512-2AdWy5RdDF5+4YfG/YesGDDtbyJlC9LHmL6rZw6FurBJ5n4vFGupsOBGfwMRjBYH7qRQowT8D/U4LoSvVwOhSQ==} cpu: [s390x] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.54.0': resolution: {integrity: sha512-WGt5J8Ij/rvyqpFexxk3ffKqqbLf9AqrTBbWDk7ApGUzaIs6V+s2s84kAxklFwmMF/vBNGrVdYgbblCOFFezMQ==} cpu: [x64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-musl@4.54.0': resolution: {integrity: sha512-JzQmb38ATzHjxlPHuTH6tE7ojnMKM2kYNzt44LO/jJi8BpceEC8QuXYA908n8r3CNuG/B3BV8VR3Hi1rYtmPiw==} cpu: [x64] os: [linux] - libc: [musl] '@rollup/rollup-openharmony-arm64@4.54.0': resolution: {integrity: sha512-huT3fd0iC7jigGh7n3q/+lfPcXxBi+om/Rs3yiFxjvSxbSB6aohDFXbWvlspaqjeOh+hx7DDHS+5Es5qRkWkZg==} @@ -959,6 +945,9 @@ packages: undici-types@7.16.0: resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} + unicode-emoji-json@0.8.0: + resolution: {integrity: sha512-3wDXXvp6YGoKGhS2O2H7+V+bYduOBydN1lnI0uVfr1cIdY02uFFiEH1i3kE5CCE4l6UqbLKVmEFW9USxTAMD1g==} + unimport@5.6.0: resolution: {integrity: sha512-8rqAmtJV8o60x46kBAJKtHpJDJWkA2xcBqWKPI14MgUb05o1pnpnCnXSxedUXyeq7p8fR5g3pTo2BaswZ9lD9A==} engines: {node: '>=18.12.0'} @@ -1872,6 +1861,8 @@ snapshots: undici-types@7.16.0: {} + unicode-emoji-json@0.8.0: {} + unimport@5.6.0: dependencies: acorn: 8.15.0 diff --git a/src/api/stage/dict/index.ts b/src/api/stage/dict/index.ts index 702d96a..d8793f9 100644 --- a/src/api/stage/dict/index.ts +++ b/src/api/stage/dict/index.ts @@ -66,26 +66,26 @@ export const saveDictTypeValue = (id:string,data: addDataProps) => { // 删除字典类型值 export const deleteDictTypeValue = (typeId:string,id: string) => { - return request.delete(`/auth/v1/backend/dict/${typeId}/${id}`); + return request.delete(`/auth/v1/backend/dict/type/${typeId}/${id}`); }; // 更新字典类型值 export const updateDictTypeValue = (typeId:string,id: string,data: addDataProps) => { - return request.put(`/auth/v1/backend/dict/${typeId}/${id}`, data); + return request.put(`/auth/v1/backend/dict/type/${typeId}/${id}`, data); }; // 获取下级菜单数据 -export const getNextDictMenu = (id:string,parentId:string) => { - return request.get(`/auth/v1/backend/dict/type/${id}/data/${parentId}`); +export const getNextDictMenu = (id:string,parentId:string,params: paramsProps) => { + return request.get(`/auth/v1/backend/dict/type/${id}/data/${parentId}`,params); }; // 启用接口 -export const enableTypeDict = (id:string)=>{ +export const enableTypeDict = (typeId:string,id:string)=>{ return request.post(`/auth/v1/backend/dict/type/${typeId}/${id}/enable`); } // 禁用接口 -export const disableTypeDict = (id:string)=>{ +export const disableTypeDict = (typeId:string,id:string)=>{ return request.post(`/auth/v1/backend/dict/type/${typeId}/${id}/disable`) } \ No newline at end of file diff --git a/src/components/comment/index.vue b/src/components/comment/index.vue deleted file mode 100644 index 6f8cbe1..0000000 --- a/src/components/comment/index.vue +++ /dev/null @@ -1,329 +0,0 @@ - - - - - diff --git a/src/components/nameAvatar/index.vue b/src/components/nameAvatar/index.vue new file mode 100644 index 0000000..dbdc516 --- /dev/null +++ b/src/components/nameAvatar/index.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file diff --git a/src/components/proTable/index.vue b/src/components/proTable/index.vue index 2747d2e..ac362b3 100644 --- a/src/components/proTable/index.vue +++ b/src/components/proTable/index.vue @@ -1,12 +1,20 @@