diff --git a/docs/frontend-page-resource-manifest.json b/docs/frontend-page-resource-manifest.json index 53a0f5d..85ee791 100644 --- a/docs/frontend-page-resource-manifest.json +++ b/docs/frontend-page-resource-manifest.json @@ -1,5 +1,5 @@ { - "generatedAt": "2026-06-01T01:55:51.875Z", + "generatedAt": "2026-06-05T03:08:01.803Z", "description": "Frontend visible page resource whitelist for backend route/menu configuration.", "rules": { "directoryComponent": "layout.base", @@ -437,39 +437,6 @@ "pageType": "leaf", "source": "generated" }, - { - "name": "personal-center_pending-approval", - "path": "/personal-center/pending-approval", - "component": "view.personal-center_pending-approval", - "title": "待我审批", - "routeTitle": "personal-center_pending-approval", - "i18nKey": "route.personal-center_pending-approval", - "icon": "mdi:check-decagram-outline", - "localIcon": null, - "order": 5, - "hideInMenu": false, - "keepAlive": true, - "activeMenu": null, - "multiTab": false, - "fixedIndexInTab": null, - "redirect": null, - "props": null, - "meta": { - "title": "待我审批", - "i18nKey": "route.personal-center_pending-approval", - "icon": "mdi:check-decagram-outline", - "localIcon": null, - "order": 5, - "keepAlive": true, - "hideInMenu": false, - "activeMenu": null, - "multiTab": false, - "fixedIndexInTab": null - }, - "parentName": "personal-center", - "pageType": "leaf", - "source": "generated" - }, { "name": "personal-center_overtime-application", "path": "/personal-center/overtime-application", @@ -503,6 +470,39 @@ "pageType": "leaf", "source": "generated" }, + { + "name": "personal-center_pending-approval", + "path": "/personal-center/pending-approval", + "component": "view.personal-center_pending-approval", + "title": "待我审批", + "routeTitle": "personal-center_pending-approval", + "i18nKey": "route.personal-center_pending-approval", + "icon": "mdi:check-decagram-outline", + "localIcon": null, + "order": 7, + "hideInMenu": false, + "keepAlive": true, + "activeMenu": null, + "multiTab": false, + "fixedIndexInTab": null, + "redirect": null, + "props": null, + "meta": { + "title": "待我审批", + "i18nKey": "route.personal-center_pending-approval", + "icon": "mdi:check-decagram-outline", + "localIcon": null, + "order": 7, + "keepAlive": true, + "hideInMenu": false, + "activeMenu": null, + "multiTab": false, + "fixedIndexInTab": null + }, + "parentName": "personal-center", + "pageType": "leaf", + "source": "generated" + }, { "name": "system_user", "path": "/system/user", diff --git a/package.json b/package.json index dd30ffa..4d0dfe7 100644 --- a/package.json +++ b/package.json @@ -37,61 +37,39 @@ "update-pkg": "sa update-pkg" }, "dependencies": { - "@antv/data-set": "0.11.8", - "@antv/g2": "5.4.0", - "@antv/g6": "5.0.49", "@better-scroll/core": "2.5.1", - "@iconify-vue/mingcute": "^1.0.5", "@iconify/vue": "5.0.0", "@sa/axios": "workspace:*", "@sa/color": "workspace:*", "@sa/hooks": "workspace:*", "@sa/materials": "workspace:*", "@sa/utils": "workspace:*", - "@visactor/vchart": "2.0.4", - "@visactor/vchart-theme": "1.12.2", - "@visactor/vtable-editors": "1.19.8", - "@visactor/vtable-gantt": "1.19.8", - "@visactor/vue-vtable": "1.19.8", - "@vueuse/components": "13.9.0", "@vueuse/core": "13.9.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.12", "clipboard": "2.0.11", "dayjs": "1.11.18", "defu": "^6.1.4", - "dhtmlx-gantt": "9.0.14", "dompurify": "3.2.6", "echarts": "6.0.0", "element-plus": "^2.11.1", "grid-layout-plus": "^1.1.1", - "jsbarcode": "3.12.1", "jsencrypt": "^3.5.4", "json5": "2.2.3", "nprogress": "0.2.0", "pinia": "3.0.3", - "pinyin-pro": "3.27.0", - "print-js": "1.6.0", - "swiper": "11.2.10", "tailwind-merge": "3.3.1", - "typeit": "8.8.7", - "vditor": "3.11.2", "vue": "3.5.20", "vue-draggable-plus": "0.6.0", "vue-i18n": "11.1.11", - "vue-pdf-embed": "2.1.3", - "vue-router": "4.5.1", - "xgplayer": "3.0.23", - "xlsx": "0.18.5" + "vue-router": "4.5.1" }, "devDependencies": { - "@amap/amap-jsapi-types": "0.0.15", "@elegant-router/vue": "0.3.8", "@iconify/json": "2.2.380", "@sa/scripts": "workspace:*", "@sa/uno-preset": "workspace:*", "@soybeanjs/eslint-config": "1.7.1", - "@types/bmapgl": "0.0.7", "@types/node": "24.3.0", "@types/nprogress": "0.2.3", "@unocss/eslint-config": "66.5.0", diff --git a/src/components/custom/wave-bg.vue.bak b/src/components/custom/wave-bg.vue.bak deleted file mode 100644 index 1d63f2e..0000000 --- a/src/components/custom/wave-bg.vue.bak +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/src/constants/map-sdk.ts b/src/constants/map-sdk.ts deleted file mode 100644 index eea25d2..0000000 --- a/src/constants/map-sdk.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** baidu map sdk url */ -export const BAIDU_MAP_SDK_URL = `https://api.map.baidu.com/getscript?v=3.0&ak=KSezYymXPth1DIGILRX3oYN9PxbOQQmU&services=&t=20210201100830&s=1`; - -/** Amap sdk url */ -export const AMAP_SDK_URL = 'https://webapi.amap.com/maps?v=2.0&key=e7bd02bd504062087e6563daf4d6721d'; - -/** tencent sdk url */ -export const TENCENT_MAP_SDK_URL = 'https://map.qq.com/api/gljs?v=1.exp&key=A6DBZ-KXPLW-JKSRY-ONZF4-CPHY3-K6BL7'; diff --git a/src/hooks/common/vchart.ts b/src/hooks/common/vchart.ts deleted file mode 100644 index 5f3ff46..0000000 --- a/src/hooks/common/vchart.ts +++ /dev/null @@ -1,158 +0,0 @@ -import { computed, effectScope, onScopeDispose, ref, watch } from 'vue'; -import { useElementSize } from '@vueuse/core'; -import VChart, { registerLiquidChart } from '@visactor/vchart'; -import type { ISpec, ITheme } from '@visactor/vchart'; -import light from '@visactor/vchart-theme/public/light.json'; -import dark from '@visactor/vchart-theme/public/dark.json'; -import { useThemeStore } from '@/store/modules/theme'; - -registerLiquidChart(); - -// register the theme -VChart.ThemeManager.registerTheme('light', light as ITheme); -VChart.ThemeManager.registerTheme('dark', dark as ITheme); - -interface ChartHooks { - onRender?: (chart: VChart) => void | Promise; - onUpdated?: (chart: VChart) => void | Promise; - onDestroy?: (chart: VChart) => void | Promise; -} - -export function useVChart(specFactory: () => T, hooks: ChartHooks = {}) { - const scope = effectScope(); - const themeStore = useThemeStore(); - const darkMode = computed(() => themeStore.darkMode); - - const domRef = ref(null); - const initialSize = { width: 0, height: 0 }; - const { width, height } = useElementSize(domRef, initialSize); - - let chart: VChart | null = null; - const spec: T = specFactory(); - - const { onRender, onUpdated, onDestroy } = hooks; - - /** - * whether can render chart - * - * when domRef is ready and initialSize is valid - */ - function canRender() { - return domRef.value && initialSize.width > 0 && initialSize.height > 0; - } - - /** is chart rendered */ - function isRendered() { - return Boolean(domRef.value && chart); - } - - /** - * update chart spec - * - * @param callback callback function - */ - async function updateSpec(callback: (opts: T, optsFactory: () => T) => ISpec = () => spec) { - if (!isRendered()) return; - - const updatedOpts = callback(spec, specFactory); - - Object.assign(spec, updatedOpts); - - // if (isRendered()) { - // chart?.release(); - // } - - chart?.updateSpec({ ...updatedOpts }, true); - - await onUpdated?.(chart!); - } - - function setSpec(newSpec: T) { - chart?.updateSpec(newSpec); - } - - /** render chart */ - async function render() { - if (!isRendered()) { - // apply the theme - if (darkMode.value) { - VChart.ThemeManager.setCurrentTheme('dark'); - } else { - VChart.ThemeManager.setCurrentTheme('light'); - } - - chart = new VChart(spec, { dom: domRef.value as HTMLElement }); - chart.renderSync(); - - await onRender?.(chart); - } - } - - /** resize chart */ - function resize() { - // chart?.resize(); - } - - /** destroy chart */ - async function destroy() { - if (!chart) return; - - await onDestroy?.(chart); - chart?.release(); - chart = null; - } - - /** change chart theme */ - async function changeTheme() { - await destroy(); - await render(); - await onUpdated?.(chart!); - } - - /** - * render chart by size - * - * @param w width - * @param h height - */ - async function renderChartBySize(w: number, h: number) { - initialSize.width = w; - initialSize.height = h; - - // size is abnormal, destroy chart - if (!canRender()) { - await destroy(); - - return; - } - - // resize chart - if (isRendered()) { - resize(); - } - - // render chart - await render(); - } - - scope.run(() => { - watch([width, height], ([newWidth, newHeight]) => { - renderChartBySize(newWidth, newHeight); - }); - - watch(darkMode, () => { - changeTheme(); - }); - }); - - onScopeDispose(() => { - destroy(); - scope.stop(); - }); - - return { - domRef, - updateSpec, - setSpec - }; -} diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 112cdc1..ec4cba1 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -178,16 +178,6 @@ const local: App.I18n.Schema = { infra: 'Infra', 'infra_state-machine': 'State Machine', 'infra_rd-code': 'R&D Code', - function: 'System Function', - function_tab: 'Tab', - 'function_multi-tab': 'Multi Tab', - 'function_hide-child': 'Hide Child', - 'function_hide-child_one': 'Hide Child', - 'function_hide-child_two': 'Two', - 'function_hide-child_three': 'Three', - function_request: 'Request', - 'function_toggle-auth': 'Toggle Auth', - 'function_super-page': 'Super Admin Visible', product: 'Product', product_list: 'Product List', product_dashboard: 'Dashboard', @@ -211,28 +201,7 @@ const local: App.I18n.Schema = { exception: 'Exception', exception_403: '403', exception_404: '404', - exception_500: '500', - plugin: 'Plugin', - plugin_copy: 'Copy', - plugin_charts: 'Charts', - plugin_charts_echarts: 'ECharts', - plugin_charts_antv: 'AntV', - plugin_charts_vchart: 'VChart', - plugin_icon: 'Icon', - plugin_map: 'Map', - plugin_print: 'Print', - plugin_swiper: 'Swiper', - plugin_video: 'Video', - plugin_barcode: 'Barcode', - plugin_pinyin: 'pinyin', - plugin_excel: 'Excel', - plugin_pdf: 'PDF preview', - plugin_gantt: 'Gantt Chart', - plugin_gantt_dhtmlx: 'dhtmlxGantt', - plugin_gantt_vtable: 'VTableGantt', - plugin_typeit: 'Typeit', - plugin_tables: 'Tables', - plugin_tables_vtable: 'VTable' + exception_500: '500' }, page: { login: { @@ -328,45 +297,6 @@ const local: App.I18n.Schema = { }, creativity: 'Creativity' }, - function: { - tab: { - tabOperate: { - title: 'Tab Operation', - addTab: 'Add Tab', - addTabDesc: 'To user management page', - closeTab: 'Close Tab', - closeCurrentTab: 'Close Current Tab', - closeAboutTab: 'Close "User Management" Tab', - addMultiTab: 'Add Multi Tab', - addMultiTabDesc1: 'To MultiTab page', - addMultiTabDesc2: 'To MultiTab page(with query params)' - }, - tabTitle: { - title: 'Tab Title', - changeTitle: 'Change Title', - change: 'Change', - resetTitle: 'Reset Title', - reset: 'Reset' - } - }, - multiTab: { - routeParam: 'Route Param', - backTab: 'Back function_tab' - }, - toggleAuth: { - toggleAccount: 'Toggle Account', - authHook: 'Auth Hook Function `hasAuth`', - superAdminVisible: 'Super Admin Visible', - adminVisible: 'Admin Visible', - adminOrUserVisible: 'Admin and User Visible' - }, - request: { - repeatedErrorOccurOnce: 'Repeated Request Error Occurs Once', - repeatedError: 'Repeated Request Error', - repeatedErrorMsg1: 'Custom Request Error 1', - repeatedErrorMsg2: 'Custom Request Error 2' - } - }, system: { common: { status: { diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index 960272e..a1eb0a5 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -178,16 +178,6 @@ const local: App.I18n.Schema = { infra: '基础设施', 'infra_state-machine': '状态机管理', 'infra_rd-code': '研发令号', - function: '系统功能', - function_tab: '标签页', - 'function_multi-tab': '多标签页', - 'function_hide-child': '隐藏子菜单', - 'function_hide-child_one': '隐藏子菜单', - 'function_hide-child_two': '菜单二', - 'function_hide-child_three': '菜单三', - function_request: '请求', - 'function_toggle-auth': '切换权限', - 'function_super-page': '超级管理员可见', product: '产品管理', product_list: '产品列表', product_dashboard: '产品仪表盘', @@ -211,28 +201,7 @@ const local: App.I18n.Schema = { exception: '异常页', exception_403: '403', exception_404: '404', - exception_500: '500', - plugin: '插件示例', - plugin_copy: '剪贴板', - plugin_charts: '图表', - plugin_charts_echarts: 'ECharts', - plugin_charts_antv: 'AntV', - plugin_charts_vchart: 'VChart', - plugin_icon: '图标', - plugin_map: '地图', - plugin_print: '打印', - plugin_swiper: 'Swiper', - plugin_video: '视频', - plugin_barcode: '条形码', - plugin_pinyin: '拼音', - plugin_excel: 'Excel', - plugin_pdf: 'PDF 预览', - plugin_gantt: '甘特图', - plugin_gantt_dhtmlx: 'dhtmlxGantt', - plugin_gantt_vtable: 'VTableGantt', - plugin_typeit: '打字机', - plugin_tables: '表格', - plugin_tables_vtable: 'VTable' + exception_500: '500' }, page: { login: { @@ -327,45 +296,6 @@ const local: App.I18n.Schema = { }, creativity: '创意' }, - function: { - tab: { - tabOperate: { - title: '标签页操作', - addTab: '添加标签页', - addTabDesc: '跳转到用户管理页面', - closeTab: '关闭标签页', - closeCurrentTab: '关闭当前标签页', - closeAboutTab: '关闭"用户管理"标签页', - addMultiTab: '添加多标签页', - addMultiTabDesc1: '跳转到多标签页页面', - addMultiTabDesc2: '跳转到多标签页页面(带有查询参数)' - }, - tabTitle: { - title: '标签页标题', - changeTitle: '修改标题', - change: '修改', - resetTitle: '重置标题', - reset: '重置' - } - }, - multiTab: { - routeParam: '路由参数', - backTab: '返回 function_tab' - }, - toggleAuth: { - toggleAccount: '切换账号', - authHook: '权限钩子函数 `hasAuth`', - superAdminVisible: '超级管理员可见', - adminVisible: '管理员可见', - adminOrUserVisible: '管理员和用户可见' - }, - request: { - repeatedErrorOccurOnce: '重复请求错误只出现一次', - repeatedError: '重复请求错误', - repeatedErrorMsg1: '自定义请求错误 1', - repeatedErrorMsg2: '自定义请求错误 2' - } - }, system: { common: { status: { diff --git a/src/plugins/assets.ts b/src/plugins/assets.ts index eee0cb1..8fd3ec4 100644 --- a/src/plugins/assets.ts +++ b/src/plugins/assets.ts @@ -3,6 +3,3 @@ import 'element-plus/dist/index.css'; import 'element-plus/theme-chalk/dark/css-vars.css'; import 'uno.css'; import '../styles/css/global.css'; -import 'swiper/css'; -import 'swiper/css/navigation'; -import 'swiper/css/pagination'; diff --git a/src/router/elegant/imports.ts b/src/router/elegant/imports.ts index 7f9e623..2fde25f 100644 --- a/src/router/elegant/imports.ts +++ b/src/router/elegant/imports.ts @@ -20,14 +20,6 @@ export const views: Record Promise import("@/views/_builtin/500/index.vue"), "iframe-page": () => import("@/views/_builtin/iframe-page/[url].vue"), login: () => import("@/views/_builtin/login/index.vue"), - "function_hide-child_one": () => import("@/views/function/hide-child/one/index.vue"), - "function_hide-child_three": () => import("@/views/function/hide-child/three/index.vue"), - "function_hide-child_two": () => import("@/views/function/hide-child/two/index.vue"), - "function_multi-tab": () => import("@/views/function/multi-tab/index.vue"), - function_request: () => import("@/views/function/request/index.vue"), - "function_super-page": () => import("@/views/function/super-page/index.vue"), - function_tab: () => import("@/views/function/tab/index.vue"), - "function_toggle-auth": () => import("@/views/function/toggle-auth/index.vue"), "infra_rd-code": () => import("@/views/infra/rd-code/index.vue"), "infra_state-machine": () => import("@/views/infra/state-machine/index.vue"), "metrics_member-efficiency": () => import("@/views/metrics/member-efficiency/index.vue"), @@ -41,23 +33,6 @@ export const views: Record Promise import("@/views/personal-center/my-weekly/index.vue"), "personal-center_overtime-application": () => import("@/views/personal-center/overtime-application/index.vue"), "personal-center_pending-approval": () => import("@/views/personal-center/pending-approval/index.vue"), - plugin_barcode: () => import("@/views/plugin/barcode/index.vue"), - plugin_charts_antv: () => import("@/views/plugin/charts/antv/index.vue"), - plugin_charts_echarts: () => import("@/views/plugin/charts/echarts/index.vue"), - plugin_charts_vchart: () => import("@/views/plugin/charts/vchart/index.vue"), - plugin_copy: () => import("@/views/plugin/copy/index.vue"), - plugin_excel: () => import("@/views/plugin/excel/index.vue"), - plugin_gantt_dhtmlx: () => import("@/views/plugin/gantt/dhtmlx/index.vue"), - plugin_gantt_vtable: () => import("@/views/plugin/gantt/vtable/index.vue"), - plugin_icon: () => import("@/views/plugin/icon/index.vue"), - plugin_map: () => import("@/views/plugin/map/index.vue"), - plugin_pdf: () => import("@/views/plugin/pdf/index.vue"), - plugin_pinyin: () => import("@/views/plugin/pinyin/index.vue"), - plugin_print: () => import("@/views/plugin/print/index.vue"), - plugin_swiper: () => import("@/views/plugin/swiper/index.vue"), - plugin_tables_vtable: () => import("@/views/plugin/tables/vtable/index.vue"), - plugin_typeit: () => import("@/views/plugin/typeit/index.vue"), - plugin_video: () => import("@/views/plugin/video/index.vue"), product_dashboard: () => import("@/views/product/dashboard/index.vue"), product_list: () => import("@/views/product/list/index.vue"), product_requirement: () => import("@/views/product/requirement/index.vue"), diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index 8a032ea..ed62104 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -39,124 +39,6 @@ export const generatedRoutes: GeneratedRoute[] = [ hideInMenu: true } }, - { - name: 'function', - path: '/function', - component: 'layout.base', - meta: { - title: 'function', - i18nKey: 'route.function', - icon: 'icon-park-outline:all-application', - order: 6 - }, - children: [ - { - name: 'function_hide-child', - path: '/function/hide-child', - meta: { - title: 'function_hide-child', - i18nKey: 'route.function_hide-child', - icon: 'material-symbols:filter-list-off', - order: 2 - }, - redirect: '/function/hide-child/one', - children: [ - { - name: 'function_hide-child_one', - path: '/function/hide-child/one', - component: 'view.function_hide-child_one', - meta: { - title: 'function_hide-child_one', - i18nKey: 'route.function_hide-child_one', - icon: 'material-symbols:filter-list-off', - hideInMenu: true, - activeMenu: 'function_hide-child' - } - }, - { - name: 'function_hide-child_three', - path: '/function/hide-child/three', - component: 'view.function_hide-child_three', - meta: { - title: 'function_hide-child_three', - i18nKey: 'route.function_hide-child_three', - hideInMenu: true, - activeMenu: 'function_hide-child' - } - }, - { - name: 'function_hide-child_two', - path: '/function/hide-child/two', - component: 'view.function_hide-child_two', - meta: { - title: 'function_hide-child_two', - i18nKey: 'route.function_hide-child_two', - hideInMenu: true, - activeMenu: 'function_hide-child' - } - } - ] - }, - { - name: 'function_multi-tab', - path: '/function/multi-tab', - component: 'view.function_multi-tab', - meta: { - title: 'function_multi-tab', - i18nKey: 'route.function_multi-tab', - icon: 'ic:round-tab', - multiTab: true, - hideInMenu: true, - activeMenu: 'function_tab' - } - }, - { - name: 'function_request', - path: '/function/request', - component: 'view.function_request', - meta: { - title: 'function_request', - i18nKey: 'route.function_request', - icon: 'carbon:network-overlay', - order: 3 - } - }, - { - name: 'function_super-page', - path: '/function/super-page', - component: 'view.function_super-page', - meta: { - title: 'function_super-page', - i18nKey: 'route.function_super-page', - icon: 'ic:round-supervisor-account', - order: 5, - roles: ['R_SUPER'] - } - }, - { - name: 'function_tab', - path: '/function/tab', - component: 'view.function_tab', - meta: { - title: 'function_tab', - i18nKey: 'route.function_tab', - icon: 'ic:round-tab', - order: 1 - } - }, - { - name: 'function_toggle-auth', - path: '/function/toggle-auth', - component: 'view.function_toggle-auth', - meta: { - title: 'function_toggle-auth', - i18nKey: 'route.function_toggle-auth', - icon: 'ic:round-construction', - order: 4 - } - } - ] - }, { name: 'iframe-page', path: '/iframe-page/:url', @@ -377,223 +259,6 @@ export const generatedRoutes: GeneratedRoute[] = [ } ] }, - { - name: 'plugin', - path: '/plugin', - component: 'layout.base', - meta: { - title: '插件示例', - i18nKey: 'route.plugin', - order: 7, - icon: 'clarity:plugin-line' - }, - children: [ - { - name: 'plugin_barcode', - path: '/plugin/barcode', - component: 'view.plugin_barcode', - meta: { - title: 'plugin_barcode', - i18nKey: 'route.plugin_barcode', - icon: 'ic:round-barcode' - } - }, - { - name: 'plugin_charts', - path: '/plugin/charts', - meta: { - title: 'plugin_charts', - i18nKey: 'route.plugin_charts', - icon: 'mdi:chart-areaspline' - }, - children: [ - { - name: 'plugin_charts_antv', - path: '/plugin/charts/antv', - component: 'view.plugin_charts_antv', - meta: { - title: 'plugin_charts_antv', - i18nKey: 'route.plugin_charts_antv', - icon: 'hugeicons:flow-square' - } - }, - { - name: 'plugin_charts_echarts', - path: '/plugin/charts/echarts', - component: 'view.plugin_charts_echarts', - meta: { - title: 'plugin_charts_echarts', - i18nKey: 'route.plugin_charts_echarts', - icon: 'simple-icons:apacheecharts' - } - }, - { - name: 'plugin_charts_vchart', - path: '/plugin/charts/vchart', - component: 'view.plugin_charts_vchart', - meta: { - title: 'plugin_charts_vchart', - i18nKey: 'route.plugin_charts_vchart', - localIcon: 'visactor' - } - } - ] - }, - { - name: 'plugin_copy', - path: '/plugin/copy', - component: 'view.plugin_copy', - meta: { - title: 'plugin_copy', - i18nKey: 'route.plugin_copy', - icon: 'mdi:clipboard-outline' - } - }, - { - name: 'plugin_excel', - path: '/plugin/excel', - component: 'view.plugin_excel', - meta: { - title: 'plugin_excel', - i18nKey: 'route.plugin_excel', - icon: 'ri:file-excel-2-line', - keepAlive: true - } - }, - { - name: 'plugin_gantt', - path: '/plugin/gantt', - meta: { - title: 'plugin_gantt', - i18nKey: 'route.plugin_gantt', - icon: 'ant-design:bar-chart-outlined' - }, - children: [ - { - name: 'plugin_gantt_dhtmlx', - path: '/plugin/gantt/dhtmlx', - component: 'view.plugin_gantt_dhtmlx', - meta: { - title: 'plugin_gantt_dhtmlx', - i18nKey: 'route.plugin_gantt_dhtmlx', - icon: 'gridicons:posts' - } - }, - { - name: 'plugin_gantt_vtable', - path: '/plugin/gantt/vtable', - component: 'view.plugin_gantt_vtable', - meta: { - title: 'plugin_gantt_vtable', - i18nKey: 'route.plugin_gantt_vtable', - localIcon: 'visactor' - } - } - ] - }, - { - name: 'plugin_icon', - path: '/plugin/icon', - component: 'view.plugin_icon', - meta: { - title: 'plugin_icon', - i18nKey: 'route.plugin_icon', - localIcon: 'custom-icon' - } - }, - { - name: 'plugin_map', - path: '/plugin/map', - component: 'view.plugin_map', - meta: { - title: 'plugin_map', - i18nKey: 'route.plugin_map', - icon: 'mdi:map' - } - }, - { - name: 'plugin_pdf', - path: '/plugin/pdf', - component: 'view.plugin_pdf', - meta: { - title: 'plugin_pdf', - i18nKey: 'route.plugin_pdf', - icon: 'uiw:file-pdf' - } - }, - { - name: 'plugin_pinyin', - path: '/plugin/pinyin', - component: 'view.plugin_pinyin', - meta: { - title: 'plugin_pinyin', - i18nKey: 'route.plugin_pinyin', - icon: 'entypo-social:google-hangouts' - } - }, - { - name: 'plugin_print', - path: '/plugin/print', - component: 'view.plugin_print', - meta: { - title: 'plugin_print', - i18nKey: 'route.plugin_print', - icon: 'mdi:printer' - } - }, - { - name: 'plugin_swiper', - path: '/plugin/swiper', - component: 'view.plugin_swiper', - meta: { - title: 'plugin_swiper', - i18nKey: 'route.plugin_swiper', - icon: 'simple-icons:swiper' - } - }, - { - name: 'plugin_tables', - path: '/plugin/tables', - meta: { - title: 'plugin_tables', - i18nKey: 'route.plugin_tables', - icon: 'icon-park-outline:table' - }, - children: [ - { - name: 'plugin_tables_vtable', - path: '/plugin/tables/vtable', - component: 'view.plugin_tables_vtable', - meta: { - title: 'plugin_tables_vtable', - i18nKey: 'route.plugin_tables_vtable', - localIcon: 'visactor' - } - } - ] - }, - { - name: 'plugin_typeit', - path: '/plugin/typeit', - component: 'view.plugin_typeit', - meta: { - title: 'plugin_typeit', - i18nKey: 'route.plugin_typeit', - icon: 'mdi:typewriter' - } - }, - { - name: 'plugin_video', - path: '/plugin/video', - component: 'view.plugin_video', - meta: { - title: 'plugin_video', - i18nKey: 'route.plugin_video', - icon: 'mdi:video' - } - } - ] - }, { name: 'product', path: '/product', diff --git a/src/router/elegant/transform.ts b/src/router/elegant/transform.ts index 67f20c4..6c554bf 100644 --- a/src/router/elegant/transform.ts +++ b/src/router/elegant/transform.ts @@ -170,16 +170,6 @@ const routeMap: RouteMap = { "403": "/403", "404": "/404", "500": "/500", - "function": "/function", - "function_hide-child": "/function/hide-child", - "function_hide-child_one": "/function/hide-child/one", - "function_hide-child_three": "/function/hide-child/three", - "function_hide-child_two": "/function/hide-child/two", - "function_multi-tab": "/function/multi-tab", - "function_request": "/function/request", - "function_super-page": "/function/super-page", - "function_tab": "/function/tab", - "function_toggle-auth": "/function/toggle-auth", "iframe-page": "/iframe-page/:url", "infra": "/infra", "infra_rd-code": "/infra/rd-code", @@ -198,27 +188,6 @@ const routeMap: RouteMap = { "personal-center_my-weekly": "/personal-center/my-weekly", "personal-center_overtime-application": "/personal-center/overtime-application", "personal-center_pending-approval": "/personal-center/pending-approval", - "plugin": "/plugin", - "plugin_barcode": "/plugin/barcode", - "plugin_charts": "/plugin/charts", - "plugin_charts_antv": "/plugin/charts/antv", - "plugin_charts_echarts": "/plugin/charts/echarts", - "plugin_charts_vchart": "/plugin/charts/vchart", - "plugin_copy": "/plugin/copy", - "plugin_excel": "/plugin/excel", - "plugin_gantt": "/plugin/gantt", - "plugin_gantt_dhtmlx": "/plugin/gantt/dhtmlx", - "plugin_gantt_vtable": "/plugin/gantt/vtable", - "plugin_icon": "/plugin/icon", - "plugin_map": "/plugin/map", - "plugin_pdf": "/plugin/pdf", - "plugin_pinyin": "/plugin/pinyin", - "plugin_print": "/plugin/print", - "plugin_swiper": "/plugin/swiper", - "plugin_tables": "/plugin/tables", - "plugin_tables_vtable": "/plugin/tables/vtable", - "plugin_typeit": "/plugin/typeit", - "plugin_video": "/plugin/video", "product": "/product", "product_dashboard": "/product/dashboard", "product_list": "/product/list", diff --git a/src/typings/app.d.ts b/src/typings/app.d.ts index 6d85782..dc01d00 100644 --- a/src/typings/app.d.ts +++ b/src/typings/app.d.ts @@ -504,45 +504,6 @@ declare namespace App { }; creativity: string; }; - function: { - tab: { - tabOperate: { - title: string; - addTab: string; - addTabDesc: string; - closeTab: string; - closeCurrentTab: string; - closeAboutTab: string; - addMultiTab: string; - addMultiTabDesc1: string; - addMultiTabDesc2: string; - }; - tabTitle: { - title: string; - changeTitle: string; - change: string; - resetTitle: string; - reset: string; - }; - }; - multiTab: { - routeParam: string; - backTab: string; - }; - toggleAuth: { - toggleAccount: string; - authHook: string; - superAdminVisible: string; - adminVisible: string; - adminOrUserVisible: string; - }; - request: { - repeatedErrorOccurOnce: string; - repeatedError: string; - repeatedErrorMsg1: string; - repeatedErrorMsg2: string; - }; - }; system: { common: { status: { diff --git a/src/typings/elegant-router.d.ts b/src/typings/elegant-router.d.ts index 1f6db65..094386a 100644 --- a/src/typings/elegant-router.d.ts +++ b/src/typings/elegant-router.d.ts @@ -24,16 +24,6 @@ declare module "@elegant-router/types" { "403": "/403"; "404": "/404"; "500": "/500"; - "function": "/function"; - "function_hide-child": "/function/hide-child"; - "function_hide-child_one": "/function/hide-child/one"; - "function_hide-child_three": "/function/hide-child/three"; - "function_hide-child_two": "/function/hide-child/two"; - "function_multi-tab": "/function/multi-tab"; - "function_request": "/function/request"; - "function_super-page": "/function/super-page"; - "function_tab": "/function/tab"; - "function_toggle-auth": "/function/toggle-auth"; "iframe-page": "/iframe-page/:url"; "infra": "/infra"; "infra_rd-code": "/infra/rd-code"; @@ -52,27 +42,6 @@ declare module "@elegant-router/types" { "personal-center_my-weekly": "/personal-center/my-weekly"; "personal-center_overtime-application": "/personal-center/overtime-application"; "personal-center_pending-approval": "/personal-center/pending-approval"; - "plugin": "/plugin"; - "plugin_barcode": "/plugin/barcode"; - "plugin_charts": "/plugin/charts"; - "plugin_charts_antv": "/plugin/charts/antv"; - "plugin_charts_echarts": "/plugin/charts/echarts"; - "plugin_charts_vchart": "/plugin/charts/vchart"; - "plugin_copy": "/plugin/copy"; - "plugin_excel": "/plugin/excel"; - "plugin_gantt": "/plugin/gantt"; - "plugin_gantt_dhtmlx": "/plugin/gantt/dhtmlx"; - "plugin_gantt_vtable": "/plugin/gantt/vtable"; - "plugin_icon": "/plugin/icon"; - "plugin_map": "/plugin/map"; - "plugin_pdf": "/plugin/pdf"; - "plugin_pinyin": "/plugin/pinyin"; - "plugin_print": "/plugin/print"; - "plugin_swiper": "/plugin/swiper"; - "plugin_tables": "/plugin/tables"; - "plugin_tables_vtable": "/plugin/tables/vtable"; - "plugin_typeit": "/plugin/typeit"; - "plugin_video": "/plugin/video"; "product": "/product"; "product_dashboard": "/product/dashboard"; "product_list": "/product/list"; @@ -135,13 +104,11 @@ declare module "@elegant-router/types" { | "403" | "404" | "500" - | "function" | "iframe-page" | "infra" | "login" | "metrics" | "personal-center" - | "plugin" | "product" | "project" | "system" @@ -169,14 +136,6 @@ declare module "@elegant-router/types" { | "500" | "iframe-page" | "login" - | "function_hide-child_one" - | "function_hide-child_three" - | "function_hide-child_two" - | "function_multi-tab" - | "function_request" - | "function_super-page" - | "function_tab" - | "function_toggle-auth" | "infra_rd-code" | "infra_state-machine" | "metrics_member-efficiency" @@ -190,23 +149,6 @@ declare module "@elegant-router/types" { | "personal-center_my-weekly" | "personal-center_overtime-application" | "personal-center_pending-approval" - | "plugin_barcode" - | "plugin_charts_antv" - | "plugin_charts_echarts" - | "plugin_charts_vchart" - | "plugin_copy" - | "plugin_excel" - | "plugin_gantt_dhtmlx" - | "plugin_gantt_vtable" - | "plugin_icon" - | "plugin_map" - | "plugin_pdf" - | "plugin_pinyin" - | "plugin_print" - | "plugin_swiper" - | "plugin_tables_vtable" - | "plugin_typeit" - | "plugin_video" | "product_dashboard" | "product_list" | "product_requirement" diff --git a/src/typings/package.d.ts b/src/typings/package.d.ts deleted file mode 100644 index 814d793..0000000 --- a/src/typings/package.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/// -/// - -declare namespace BMap { - class Map extends BMapGL.Map {} - class Point extends BMapGL.Point {} -} - -declare const TMap: any; - -interface Window { - /** - * make baidu map request under https protocol - * - * - 0: http - * - 1: https - * - 2: https - */ - HOST_TYPE: '0' | '1' | '2'; -} diff --git a/src/views/_builtin/login/index.vue.bak b/src/views/_builtin/login/index.vue.bak deleted file mode 100644 index 50c699b..0000000 --- a/src/views/_builtin/login/index.vue.bak +++ /dev/null @@ -1,85 +0,0 @@ - - - - - diff --git a/src/views/function/hide-child/one/index.vue b/src/views/function/hide-child/one/index.vue deleted file mode 100644 index 2a654c5..0000000 --- a/src/views/function/hide-child/one/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/function/hide-child/three/index.vue b/src/views/function/hide-child/three/index.vue deleted file mode 100644 index 2a654c5..0000000 --- a/src/views/function/hide-child/three/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/function/hide-child/two/index.vue b/src/views/function/hide-child/two/index.vue deleted file mode 100644 index 2a654c5..0000000 --- a/src/views/function/hide-child/two/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/function/multi-tab/index.vue b/src/views/function/multi-tab/index.vue deleted file mode 100644 index 99a9aed..0000000 --- a/src/views/function/multi-tab/index.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/views/function/request/index.vue b/src/views/function/request/index.vue deleted file mode 100644 index a08b352..0000000 --- a/src/views/function/request/index.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - diff --git a/src/views/function/super-page/index.vue b/src/views/function/super-page/index.vue deleted file mode 100644 index 2a654c5..0000000 --- a/src/views/function/super-page/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/function/tab/index.vue b/src/views/function/tab/index.vue deleted file mode 100644 index 8c32571..0000000 --- a/src/views/function/tab/index.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - - diff --git a/src/views/function/toggle-auth/index.vue b/src/views/function/toggle-auth/index.vue deleted file mode 100644 index c21c028..0000000 --- a/src/views/function/toggle-auth/index.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - - - diff --git a/src/views/plugin/barcode/index.vue b/src/views/plugin/barcode/index.vue deleted file mode 100644 index 51629dd..0000000 --- a/src/views/plugin/barcode/index.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - - diff --git a/src/views/plugin/charts/antv/data.ts b/src/views/plugin/charts/antv/data.ts deleted file mode 100644 index 2ae0525..0000000 --- a/src/views/plugin/charts/antv/data.ts +++ /dev/null @@ -1,60 +0,0 @@ -import type { CustomGraphData } from './modules/types'; - -// 日期可以自己随便设置,就是字符串展示,也可以修改为业务需要的字段 -export function getFlowData(): CustomGraphData { - return { - nodes: [ - { - id: 'NS', - name: 'Start', - status: 'COMPLETED', - startDate: '2024-10-01', - endDate: '2024-10-07', - actualStartDate: '2024-10-01', - actualEndDate: '2024-10-07' - }, - { - id: 'N1', - name: 'Node1', - status: 'COMPLETED_EARLY', - startDate: '2024-10-08', - endDate: '2024-10-10', - actualStartDate: '2024-10-08', - actualEndDate: '2024-10-09', - milestone: true - }, - { - id: 'N2', - name: 'Node2', - status: 'COMPLETED_EARLY', - startDate: '2024-10-11', - endDate: '2024-10-13', - actualStartDate: '2024-10-11', - actualEndDate: '2024-10-12' - }, - { id: 'N3', name: 'Node3', status: 'IN_PROGRESS', isDeleted: true }, - { id: 'N4', name: 'Node4', status: 'COMPLETED_LATE' }, - { id: 'N5', name: 'Node5', status: 'DELAYED', isDelayed: true, milestone: true }, - { id: 'N6', name: 'Node6', status: 'PAUSED' }, - { id: 'N7', name: 'Node7', status: 'NOT_STARTED' }, - { id: 'N8', name: 'Node8', status: 'NOT_STARTED' }, - { id: 'N9', name: 'End', status: 'NOT_STARTED' }, - { id: 'NX', name: 'NodeX', status: 'NOT_STARTED', isDeleted: true } - ], - edges: [ - { id: 'E1', source: 'NS', target: 'N1' }, - { id: 'E2', source: 'N1', target: 'N2' }, - { id: 'E3', source: 'N1', target: 'N3', isDeleted: true }, - { id: 'E4', source: 'N1', target: 'N4' }, - { id: 'E5', source: 'N2', target: 'N5' }, - { id: 'E6', source: 'N3', target: 'N5', isDeleted: true }, - { id: 'E7', source: 'N4', target: 'N5' }, - { id: 'E8', source: 'N5', target: 'N6' }, - { id: 'E9', source: 'N6', target: 'N7' }, - { id: 'E10', source: 'N6', target: 'N8' }, - { id: 'E11', source: 'N7', target: 'N9' }, - { id: 'EX', source: 'N8', target: 'N9' }, - { id: 'EO', source: 'N5', target: 'NX', isDeleted: true } - ] - }; -} diff --git a/src/views/plugin/charts/antv/index.vue b/src/views/plugin/charts/antv/index.vue deleted file mode 100644 index 3985193..0000000 --- a/src/views/plugin/charts/antv/index.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - diff --git a/src/views/plugin/charts/antv/modules/antv-flow.vue b/src/views/plugin/charts/antv/modules/antv-flow.vue deleted file mode 100644 index 7c95507..0000000 --- a/src/views/plugin/charts/antv/modules/antv-flow.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - diff --git a/src/views/plugin/charts/antv/modules/antv-g6-flow.ts b/src/views/plugin/charts/antv/modules/antv-g6-flow.ts deleted file mode 100644 index 15300b2..0000000 --- a/src/views/plugin/charts/antv/modules/antv-g6-flow.ts +++ /dev/null @@ -1,170 +0,0 @@ -import { Graph } from '@antv/g6'; -import type { CustomBehaviorOption, IPointerEvent } from '@antv/g6'; -import type { Canvas } from '@antv/g6/lib/runtime/canvas'; -import { useThemeStore } from '@/store/modules/theme'; -import { getNodeIcon, nodeStatus } from './status'; -import type { CustomEdgeData, CustomGraphData, CustomNodeData } from './types'; - -interface AntFlowConfig { - container: string | HTMLElement | Canvas; - data: CustomGraphData; - behaviors?: CustomBehaviorOption[]; - autoFit?: 'view' | 'center'; -} - -export function useAntFlow(config: AntFlowConfig) { - const themeStore = useThemeStore(); - - const baseColor = 'rgb(158 163 171)'; - - const { container, autoFit = 'center', data, behaviors = [] } = config; - - const graph = new Graph({ - container, - animation: false, - padding: 16, - theme: 'light', - autoFit, - data, - node: { - type: 'rect', - - style: (node: CustomNodeData) => { - const iconS = getNodeIcon(node); - let labelFill = '#000000'; - if (node.taskState === 'NOT_STARTED') { - labelFill = '#787878'; - } - - return { - labelText: node.name as string, - size: [120, 26], - radius: 99, - fill: '#FFFFFF', - stroke: node.isDeleted ? themeStore.otherColor.error : baseColor, - lineDash: node.isDeleted ? 4 : 0, - lineWidth: 1, - labelFill, - labelX: 2, - labelY: 2, - labelTextBaseline: 'middle', - labelTextAlign: 'center', - labelLineHeight: 13, - labelWordWrap: true, - labelMaxWidth: 72, - iconSrc: iconS, - iconWidth: 16, - iconHeight: 16, - iconX: -45, - labelFontSize: 12, - labelPlacement: 'center', - badgeLineWidth: 6, - badgeFontSize: 8, - badges: [ - { text: '延期', placement: 'top', offsetY: -11, visibility: node.isDelayed ? 'visible' : 'hidden' }, - { text: '已删除', placement: 'bottom', offsetY: 11, visibility: node.isDeleted ? 'visible' : 'hidden' } - ], - badgePalette: [themeStore.otherColor.error, themeStore.otherColor.error], - ports: [{ placement: 'left' }, { placement: 'right' }] - }; - }, - state: { - selected: { - lineWidth: 2, - stroke: themeStore.themeColor, - labelFill: themeStore.themeColor, - halo: true, - haloStroke: themeStore.themeColor, - haloLineWidth: 6 - }, - active: (node: CustomNodeData) => ({ - halo: true, - haloStroke: node.isDeleted ? themeStore.otherColor.error : themeStore.themeColor, - haloLineWidth: 6, - zIndex: 2 - }) - } - }, - edge: { - type: 'cubic-horizontal', - style: (node: CustomEdgeData) => ({ - curveOffset: 10, - curvePosition: 0.5, - stroke: node.isDeleted ? themeStore.otherColor.error : baseColor, - lineDash: node.isDeleted ? 4 : 0 - }), - state: { - active: (node: CustomEdgeData) => ({ - lineWidth: 2, - stroke: node.isDeleted ? themeStore.otherColor.error : themeStore.themeColor, - halo: true, - haloStroke: node.isDeleted ? themeStore.otherColor.error : themeStore.themeColor, - haloLineWidth: 6, - zIndex: 2 - }) - } - }, - layout: { - type: 'antv-dagre', - rankdir: 'LR', - ranksep: 20, - nodesep: -20, - controlPoints: true - }, - behaviors: [ - { - key: 'hover-activate', - type: 'hover-activate', - degree: 1, - direction: 'both' - }, - 'drag-canvas', - ...behaviors - ], - plugins: [ - { - type: 'tooltip', - enable: (event: IPointerEvent) => event.targetType === 'node', - getContent: (_event: IPointerEvent, items?: CustomNodeData[]) => { - let result = '
'; - - // 弹出提示可以自定义各种内容,但是这里很奇怪,有的class不跟随unocss的样式 - items?.forEach(item => { - result += ` -

${item.name}

-
- 状态: -
- - ${nodeStatus[item.status as keyof typeof nodeStatus].type} -
-
-
-
预计开始
-
${item.startDate || '-'}
-
-
-
预计结束
-
${item.endDate || '-'}
-
-
-
实际开始
-
${item.actualStartDate || '-'}
-
-
-
实际结束
-
${item.actualEndDate || '-'}
-
- `; - }); - - result += '
'; - return result; - } - } - ] - }); - graph.render(); - - return { graph }; -} diff --git a/src/views/plugin/charts/antv/modules/status.ts b/src/views/plugin/charts/antv/modules/status.ts deleted file mode 100644 index 5d14448..0000000 --- a/src/views/plugin/charts/antv/modules/status.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { h } from 'vue'; -import { ElTag } from 'element-plus'; -import type { TagProps } from 'element-plus'; -import type { CustomNodeData, NodeStatus } from './types'; - -interface NodeStatusConfig { - type: string; - color: string; - textColor: string; - base64: string; - flag64: string; -} - -export const nodeStatus: Record = { - MILESTONE: { - type: '里程碑', - color: '#5b5b5b', - textColor: '', - base64: '', - flag64: '' - }, - NOT_STARTED: { - type: '未开始', - color: '#CCCDD0', - textColor: '#5b5b5b', - base64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNDQ0NERDAiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjgyOCAyMy45MDYtMjMuOTA2YzAtMTMuMDU1LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45NDUgNC4wOTUgMjhjMCAxMy4wNzggMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2Ii8+PC9zdmc+`, - flag64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNDQ0NERDAiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjg1MSAyMy45MDYtMjMuOTA2YzAtMTMuMDc4LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45MjIgNC4wOTUgMjhjMCAxMy4wNTUgMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2bS05LjA3LTExLjExYy0uNTg2IDAtMS4xMDItLjUxNS0xLjEwMi0xLjA3N1YxOS44MmMwLTEuMDA4LjQ5Mi0xLjc1OCAxLjQ1My0yLjE4Yy44NDQtLjM3NCAxLjU3LS41ODUgMy4zNzUtLjU4NWM0LjI0MiAwIDYuODkgMi4wODYgMTAuODc1IDIuMDg2YzEuOTIyIDAgMi45My0uNDkzIDMuNTQtLjQ5M2MuNzk2IDAgMS40MDYuNDkzIDEuNDA2IDEuMTcydjExLjU1NWMwIDEuMDU1LS40NDYgMS43MzQtMS40NTQgMi4xOGMtLjg2Ny4zOTgtMS42MTcuNjA5LTMuMzc1LjYwOWMtNC4wNzggMC02LjY4LTIuMDYyLTEwLjg3NS0yLjA2MmMtMS40MyAwLTIuMzY3LjI4LTIuNzg5LjQ2OHY3LjE0OWMwIC41ODYtLjQ0NSAxLjA3OC0xLjA1NCAxLjA3OCIvPjwvc3ZnPg==` - }, - DELAYED: { - type: '已延期', - color: '#B81111', - textColor: '#dccbcb', - base64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNCODExMTEiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjgyOCAyMy45MDYtMjMuOTA2YzAtMTMuMDU1LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45NDUgNC4wOTUgMjhjMCAxMy4wNzggMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2Ii8+PC9zdmc+`, - flag64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNCODExMTEiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjg1MSAyMy45MDYtMjMuOTA2YzAtMTMuMDc4LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45MjIgNC4wOTUgMjhjMCAxMy4wNTUgMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2bS05LjA3LTExLjExYy0uNTg2IDAtMS4xMDItLjUxNS0xLjEwMi0xLjA3N1YxOS44MmMwLTEuMDA4LjQ5Mi0xLjc1OCAxLjQ1My0yLjE4Yy44NDQtLjM3NCAxLjU3LS41ODUgMy4zNzUtLjU4NWM0LjI0MiAwIDYuODkgMi4wODYgMTAuODc1IDIuMDg2YzEuOTIyIDAgMi45My0uNDkzIDMuNTQtLjQ5M2MuNzk2IDAgMS40MDYuNDkzIDEuNDA2IDEuMTcydjExLjU1NWMwIDEuMDU1LS40NDYgMS43MzQtMS40NTQgMi4xOGMtLjg2Ny4zOTgtMS42MTcuNjA5LTMuMzc1LjYwOWMtNC4wNzggMC02LjY4LTIuMDYyLTEwLjg3NS0yLjA2MmMtMS40MyAwLTIuMzY3LjI4LTIuNzg5LjQ2OHY3LjE0OWMwIC41ODYtLjQ0NSAxLjA3OC0xLjA1NCAxLjA3OCIvPjwvc3ZnPg==` - }, - PAUSED: { - type: '已暂停', - color: '#0E42D2', - textColor: '#dae0f0', - base64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiMwRTQyRDIiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjgyOCAyMy45MDYtMjMuOTA2YzAtMTMuMDU1LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45NDUgNC4wOTUgMjhjMCAxMy4wNzggMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2Ii8+PC9zdmc+`, - flag64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiMwRTQyRDIiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjg1MSAyMy45MDYtMjMuOTA2YzAtMTMuMDc4LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45MjIgNC4wOTUgMjhjMCAxMy4wNTUgMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2bS05LjA3LTExLjExYy0uNTg2IDAtMS4xMDItLjUxNS0xLjEwMi0xLjA3N1YxOS44MmMwLTEuMDA4LjQ5Mi0xLjc1OCAxLjQ1My0yLjE4Yy44NDQtLjM3NCAxLjU3LS41ODUgMy4zNzUtLjU4NWM0LjI0MiAwIDYuODkgMi4wODYgMTAuODc1IDIuMDg2YzEuOTIyIDAgMi45My0uNDkzIDMuNTQtLjQ5M2MuNzk2IDAgMS40MDYuNDkzIDEuNDA2IDEuMTcydjExLjU1NWMwIDEuMDU1LS40NDYgMS43MzQtMS40NTQgMi4xOGMtLjg2Ny4zOTgtMS42MTcuNjA5LTMuMzc1LjYwOWMtNC4wNzggMC02LjY4LTIuMDYyLTEwLjg3NS0yLjA2MmMtMS40MyAwLTIuMzY3LjI4LTIuNzg5LjQ2OHY3LjE0OWMwIC41ODYtLjQ0NSAxLjA3OC0xLjA1NCAxLjA3OCIvPjwvc3ZnPg==` - }, - IN_PROGRESS: { - type: '进行中', - color: '#E1BE0D', - textColor: '#4f4304', - base64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNFMUJFMEQiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjgyOCAyMy45MDYtMjMuOTA2YzAtMTMuMDU1LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45NDUgNC4wOTUgMjhjMCAxMy4wNzggMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2Ii8+PC9zdmc+`, - flag64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNFMUJFMEQiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjg1MSAyMy45MDYtMjMuOTA2YzAtMTMuMDc4LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45MjIgNC4wOTUgMjhjMCAxMy4wNTUgMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2bS05LjA3LTExLjExYy0uNTg2IDAtMS4xMDItLjUxNS0xLjEwMi0xLjA3N1YxOS44MmMwLTEuMDA4LjQ5Mi0xLjc1OCAxLjQ1My0yLjE4Yy44NDQtLjM3NCAxLjU3LS41ODUgMy4zNzUtLjU4NWM0LjI0MiAwIDYuODkgMi4wODYgMTAuODc1IDIuMDg2YzEuOTIyIDAgMi45My0uNDkzIDMuNTQtLjQ5M2MuNzk2IDAgMS40MDYuNDkzIDEuNDA2IDEuMTcydjExLjU1NWMwIDEuMDU1LS40NDYgMS43MzQtMS40NTQgMi4xOGMtLjg2Ny4zOTgtMS42MTcuNjA5LTMuMzc1LjYwOWMtNC4wNzggMC02LjY4LTIuMDYyLTEwLjg3NS0yLjA2MmMtMS40MyAwLTIuMzY3LjI4LTIuNzg5LjQ2OHY3LjE0OWMwIC41ODYtLjQ0NSAxLjA3OC0xLjA1NCAxLjA3OCIvPjwvc3ZnPg==` - }, - COMPLETED: { - type: '已完成', - color: '#33C73D', - textColor: '#084e0c', - base64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiMzM0M3M0QiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjgyOCAyMy45MDYtMjMuOTA2YzAtMTMuMDU1LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45NDUgNC4wOTUgMjhjMCAxMy4wNzggMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2Ii8+PC9zdmc+`, - flag64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiMzM0M3M0QiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjg1MSAyMy45MDYtMjMuOTA2YzAtMTMuMDc4LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45MjIgNC4wOTUgMjhjMCAxMy4wNTUgMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2bS05LjA3LTExLjExYy0uNTg2IDAtMS4xMDItLjUxNS0xLjEwMi0xLjA3N1YxOS44MmMwLTEuMDA4LjQ5Mi0xLjc1OCAxLjQ1My0yLjE4Yy44NDQtLjM3NCAxLjU3LS41ODUgMy4zNzUtLjU4NWM0LjI0MiAwIDYuODkgMi4wODYgMTAuODc1IDIuMDg2YzEuOTIyIDAgMi45My0uNDkzIDMuNTQtLjQ5M2MuNzk2IDAgMS40MDYuNDkzIDEuNDA2IDEuMTcydjExLjU1NWMwIDEuMDU1LS40NDYgMS43MzQtMS40NTQgMi4xOGMtLjg2Ny4zOTgtMS42MTcuNjA5LTMuMzc1LjYwOWMtNC4wNzggMC02LjY4LTIuMDYyLTEwLjg3NS0yLjA2MmMtMS40MyAwLTIuMzY3LjI4LTIuNzg5LjQ2OHY3LjE0OWMwIC41ODYtLjQ0NSAxLjA3OC0xLjA1NCAxLjA3OCIvPjwvc3ZnPg==` - }, - COMPLETED_EARLY: { - type: '提前完成', - color: '#CCFF99', - textColor: '#42681d', - base64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNDQ0ZGOTkiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjgyOCAyMy45MDYtMjMuOTA2YzAtMTMuMDU1LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45NDUgNC4wOTUgMjhjMCAxMy4wNzggMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2Ii8+PC9zdmc+`, - flag64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNDQ0ZGOTkiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjg1MSAyMy45MDYtMjMuOTA2YzAtMTMuMDc4LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45MjIgNC4wOTUgMjhjMCAxMy4wNTUgMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2bS05LjA3LTExLjExYy0uNTg2IDAtMS4xMDItLjUxNS0xLjEwMi0xLjA3N1YxOS44MmMwLTEuMDA4LjQ5Mi0xLjc1OCAxLjQ1My0yLjE4Yy44NDQtLjM3NCAxLjU3LS41ODUgMy4zNzUtLjU4NWM0LjI0MiAwIDYuODkgMi4wODYgMTAuODc1IDIuMDg2YzEuOTIyIDAgMi45My0uNDkzIDMuNTQtLjQ5M2MuNzk2IDAgMS40MDYuNDkzIDEuNDA2IDEuMTcydjExLjU1NWMwIDEuMDU1LS40NDYgMS43MzQtMS40NTQgMi4xOGMtLjg2Ny4zOTgtMS42MTcuNjA5LTMuMzc1LjYwOWMtNC4wNzggMC02LjY4LTIuMDYyLTEwLjg3NS0yLjA2MmMtMS40MyAwLTIuMzY3LjI4LTIuNzg5LjQ2OHY3LjE0OWMwIC41ODYtLjQ0NSAxLjA3OC0xLjA1NCAxLjA3OCIvPjwvc3ZnPg==` - }, - COMPLETED_LATE: { - type: '延期完成', - color: '#CC6699', - textColor: '#4b092a', - base64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNDQzY2OTkiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjgyOCAyMy45MDYtMjMuOTA2YzAtMTMuMDU1LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45NDUgNC4wOTUgMjhjMCAxMy4wNzggMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2Ii8+PC9zdmc+`, - flag64: `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPjxwYXRoIGZpbGw9IiNDQzY2OTkiIGQ9Ik0yOCA1MS45MDZjMTMuMDU1IDAgMjMuOTA2LTEwLjg1MSAyMy45MDYtMjMuOTA2YzAtMTMuMDc4LTEwLjg3NS0yMy45MDYtMjMuOTMtMjMuOTA2QzE0Ljg5OSA0LjA5NCA0LjA5NSAxNC45MjIgNC4wOTUgMjhjMCAxMy4wNTUgMTAuODI4IDIzLjkwNiAyMy45MDYgMjMuOTA2bS05LjA3LTExLjExYy0uNTg2IDAtMS4xMDItLjUxNS0xLjEwMi0xLjA3N1YxOS44MmMwLTEuMDA4LjQ5Mi0xLjc1OCAxLjQ1My0yLjE4Yy44NDQtLjM3NCAxLjU3LS41ODUgMy4zNzUtLjU4NWM0LjI0MiAwIDYuODkgMi4wODYgMTAuODc1IDIuMDg2YzEuOTIyIDAgMi45My0uNDkzIDMuNTQtLjQ5M2MuNzk2IDAgMS40MDYuNDkzIDEuNDA2IDEuMTcydjExLjU1NWMwIDEuMDU1LS40NDYgMS43MzQtMS40NTQgMi4xOGMtLjg2Ny4zOTgtMS42MTcuNjA5LTMuMzc1LjYwOWMtNC4wNzggMC02LjY4LTIuMDYyLTEwLjg3NS0yLjA2MmMtMS40MyAwLTIuMzY3LjI4LTIuNzg5LjQ2OHY3LjE0OWMwIC41ODYtLjQ0NSAxLjA3OC0xLjA1NCAxLjA3OCIvPjwvc3ZnPg==` - } -}; - -export function getNodeIcon(node: CustomNodeData) { - if (!node.status) return ''; - - const type = node.milestone ? 'flag64' : 'base64'; - - return nodeStatus[node.status][type]; -} - -export function getNodeStatusTag(state: NodeStatus, tagProperty?: TagProps) { - const { color, type } = nodeStatus[state] || {}; - - return h( - ElTag, - { - color, - size: 'small', - ...tagProperty - }, - { - default: () => type - } - ); -} diff --git a/src/views/plugin/charts/antv/modules/types.ts b/src/views/plugin/charts/antv/modules/types.ts deleted file mode 100644 index 4ca037c..0000000 --- a/src/views/plugin/charts/antv/modules/types.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { EdgeData, GraphData, NodeData } from '@antv/g6'; - -export type NodeStatus = - | 'MILESTONE' - | 'NOT_STARTED' - | 'DELAYED' - | 'PAUSED' - | 'IN_PROGRESS' - | 'COMPLETED' - | 'COMPLETED_EARLY' - | 'COMPLETED_LATE'; - -export interface CustomNodeData extends NodeData { - isDelayed?: boolean; - isDeleted?: boolean; - milestone?: boolean; - status?: NodeStatus; -} - -export interface CustomEdgeData extends EdgeData { - isDelayed?: boolean; - isDeleted?: boolean; -} - -export interface CustomGraphData extends GraphData { - nodes: CustomNodeData[]; - edges: CustomEdgeData[]; -} diff --git a/src/views/plugin/charts/echarts/data.ts b/src/views/plugin/charts/echarts/data.ts deleted file mode 100644 index 4f9b2a3..0000000 --- a/src/views/plugin/charts/echarts/data.ts +++ /dev/null @@ -1,706 +0,0 @@ -import { graphic } from 'echarts'; -import type { ScatterSeriesOption } from 'echarts/charts'; -import type { SingleAxisComponentOption, TitleComponentOption } from 'echarts/components'; -import type { ECOption } from '@/hooks/common/echarts'; - -export const pieOptions: ECOption = { - legend: {}, - toolbox: { - show: true, - feature: { - mark: { show: true }, - dataView: { show: true, readOnly: false }, - restore: { show: true }, - saveAsImage: { show: true } - } - }, - series: [ - { - name: 'Nightingale Chart', - type: 'pie', - radius: [50, 150], - center: ['50%', '50%'], - roseType: 'area', - itemStyle: { - borderRadius: 8 - }, - data: [ - { value: 40, name: 'rose 1' }, - { value: 38, name: 'rose 2' }, - { value: 32, name: 'rose 3' }, - { value: 30, name: 'rose 4' }, - { value: 28, name: 'rose 5' }, - { value: 26, name: 'rose 6' }, - { value: 22, name: 'rose 7' }, - { value: 18, name: 'rose 8' } - ] - } - ] -}; - -export const lineOptions: ECOption = { - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'cross', - label: { - backgroundColor: '#6a7985' - } - } - }, - title: { - text: 'Stacked Line' - }, - legend: { - data: ['Email', 'Union Ads', 'Video Ads', 'Direct', 'Search Engine'] - }, - grid: { - left: '3%', - right: '4%', - bottom: '3%', - containLabel: true - }, - toolbox: { - feature: { - saveAsImage: {} - } - }, - xAxis: { - type: 'category', - boundaryGap: false, - data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] - }, - yAxis: { - type: 'value' - }, - series: [ - { - color: '#37a2da', - name: 'Email', - type: 'line', - smooth: true, - stack: 'Total', - areaStyle: { - color: { - type: 'linear', - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0.25, - color: '#37a2da' - }, - { - offset: 1, - color: '#fff' - } - ] - } - }, - emphasis: { - focus: 'series' - }, - data: [120, 132, 101, 134, 90, 230, 210] - }, - { - color: '#9fe6b8', - name: 'Union Ads', - type: 'line', - smooth: true, - stack: 'Total', - areaStyle: { - color: { - type: 'linear', - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0.25, - color: '#9fe6b8' - }, - { - offset: 1, - color: '#fff' - } - ] - } - }, - emphasis: { - focus: 'series' - }, - data: [220, 182, 191, 234, 290, 330, 310] - }, - { - color: '#fedb5c', - name: 'Video Ads', - type: 'line', - smooth: true, - stack: 'Total', - areaStyle: { - color: { - type: 'linear', - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0.25, - color: '#fedb5c' - }, - { - offset: 1, - color: '#fff' - } - ] - } - }, - emphasis: { - focus: 'series' - }, - data: [150, 232, 201, 154, 190, 330, 410] - }, - { - color: '#fb7293', - name: 'Direct', - type: 'line', - smooth: true, - stack: 'Total', - areaStyle: { - color: { - type: 'linear', - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0.25, - color: '#fb7293' - }, - { - offset: 1, - color: '#fff' - } - ] - } - }, - emphasis: { - focus: 'series' - }, - data: [320, 332, 301, 334, 390, 330, 320] - }, - { - color: '#e7bcf3', - name: 'Search Engine', - type: 'line', - smooth: true, - stack: 'Total', - areaStyle: { - color: { - type: 'linear', - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0.25, - color: '#e7bcf3' - }, - { - offset: 1, - color: '#fff' - } - ] - } - }, - emphasis: { - focus: 'series' - }, - data: [820, 932, 901, 934, 1290, 1330, 1320] - } - ] -}; - -export const barOptions: ECOption = { - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'cross', - label: { - backgroundColor: '#6a7985' - } - } - }, - xAxis: { - type: 'category', - data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] - }, - yAxis: { - type: 'value' - }, - series: [ - { - data: [120, 200, 150, 80, 70, 110, 130], - type: 'bar', - color: '#8378ea', - showBackground: true, - barGap: 100, - itemStyle: { - borderRadius: [40, 40, 0, 0] - }, - backgroundStyle: { - color: 'rgba(180, 180, 180, 0.2)' - } - } - ] -}; - -export function getPictorialBarOption(): ECOption { - const category: string[] = []; - let dottedBase = Number(new Date()); - const lineData: number[] = []; - const barData: number[] = []; - - for (let i = 0; i < 20; i += 1) { - const date = new Date((dottedBase += 3600 * 24 * 1000)); - category.push([date.getFullYear(), date.getMonth() + 1, date.getDate()].join('-')); - const b = Math.random() * 200; - const d = Math.random() * 200; - barData.push(b); - lineData.push(d + b); - } - - const options: ECOption = { - backgroundColor: '#0f375f', - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow' - } - }, - legend: { - data: ['line', 'bar'], - textStyle: { - color: '#ccc' - } - }, - xAxis: { - data: category, - axisLine: { - lineStyle: { - color: '#ccc' - } - } - }, - yAxis: { - splitLine: { show: false }, - axisLine: { - lineStyle: { - color: '#ccc' - } - } - }, - series: [ - { - name: 'line', - type: 'line', - smooth: true, - showAllSymbol: true, - symbol: 'emptyCircle', - symbolSize: 15, - data: lineData - }, - { - name: 'bar', - type: 'bar', - barWidth: 10, - itemStyle: { - borderRadius: 5, - color: new graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: '#14c8d4' }, - { offset: 1, color: '#43eec6' } - ]) - }, - data: barData - }, - { - name: 'line', - type: 'bar', - barGap: '-100%', - barWidth: 10, - itemStyle: { - color: new graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: 'rgba(20,200,212,0.5)' }, - { offset: 0.2, color: 'rgba(20,200,212,0.2)' }, - { offset: 1, color: 'rgba(20,200,212,0)' } - ]) - }, - z: -12, - data: lineData - }, - { - name: 'dotted', - type: 'pictorialBar', - symbol: 'rect', - itemStyle: { - color: '#0f375f' - }, - symbolRepeat: true, - symbolSize: [12, 4], - symbolMargin: 1, - z: -10, - data: lineData - } - ] - }; - - return options; -} - -export function getScatterOption() { - // prettier-ignore - const hours = ['12a', '1a', '2a', '3a', '4a', '5a', '6a', '7a', '8a', '9a','10a','11a', '12p', '1p', '2p', '3p', '4p', '5p', '6p', '7p', '8p', '9p', '10p', '11p']; - - // prettier-ignore - const days = ['Saturday', 'Friday', 'Thursday', 'Wednesday', 'Tuesday', 'Monday', 'Sunday']; - - // prettier-ignore - const data: [number, number, number][] = [[0,0,5],[0,1,1],[0,2,0],[0,3,0],[0,4,0],[0,5,0],[0,6,0],[0,7,0],[0,8,0],[0,9,0],[0,10,0],[0,11,2],[0,12,4],[0,13,1],[0,14,1],[0,15,3],[0,16,4],[0,17,6],[0,18,4],[0,19,4],[0,20,3],[0,21,3],[0,22,2],[0,23,5],[1,0,7],[1,1,0],[1,2,0],[1,3,0],[1,4,0],[1,5,0],[1,6,0],[1,7,0],[1,8,0],[1,9,0],[1,10,5],[1,11,2],[1,12,2],[1,13,6],[1,14,9],[1,15,11],[1,16,6],[1,17,7],[1,18,8],[1,19,12],[1,20,5],[1,21,5],[1,22,7],[1,23,2],[2,0,1],[2,1,1],[2,2,0],[2,3,0],[2,4,0],[2,5,0],[2,6,0],[2,7,0],[2,8,0],[2,9,0],[2,10,3],[2,11,2],[2,12,1],[2,13,9],[2,14,8],[2,15,10],[2,16,6],[2,17,5],[2,18,5],[2,19,5],[2,20,7],[2,21,4],[2,22,2],[2,23,4],[3,0,7],[3,1,3],[3,2,0],[3,3,0],[3,4,0],[3,5,0],[3,6,0],[3,7,0],[3,8,1],[3,9,0],[3,10,5],[3,11,4],[3,12,7],[3,13,14],[3,14,13],[3,15,12],[3,16,9],[3,17,5],[3,18,5],[3,19,10],[3,20,6],[3,21,4],[3,22,4],[3,23,1],[4,0,1],[4,1,3],[4,2,0],[4,3,0],[4,4,0],[4,5,1],[4,6,0],[4,7,0],[4,8,0],[4,9,2],[4,10,4],[4,11,4],[4,12,2],[4,13,4],[4,14,4],[4,15,14],[4,16,12],[4,17,1],[4,18,8],[4,19,5],[4,20,3],[4,21,7],[4,22,3],[4,23,0],[5,0,2],[5,1,1],[5,2,0],[5,3,3],[5,4,0],[5,5,0],[5,6,0],[5,7,0],[5,8,2],[5,9,0],[5,10,4],[5,11,1],[5,12,5],[5,13,10],[5,14,5],[5,15,7],[5,16,11],[5,17,6],[5,18,0],[5,19,5],[5,20,3],[5,21,4],[5,22,2],[5,23,0],[6,0,1],[6,1,0],[6,2,0],[6,3,0],[6,4,0],[6,5,0],[6,6,0],[6,7,0],[6,8,0],[6,9,0],[6,10,1],[6,11,0],[6,12,2],[6,13,1],[6,14,3],[6,15,4],[6,16,0],[6,17,0],[6,18,0],[6,19,0],[6,20,1],[6,21,2],[6,22,2],[6,23,6]]; - - const title: TitleComponentOption[] = []; - const singleAxis: SingleAxisComponentOption[] = []; - const series: ScatterSeriesOption[] = []; - - days.forEach((day, idx) => { - title.push({ - textBaseline: 'middle', - top: `${((idx + 0.5) * 100) / 7}%`, - text: day - }); - singleAxis.push({ - left: 150, - type: 'category', - boundaryGap: false, - data: hours, - top: `${(idx * 100) / 7 + 5}%`, - height: `${100 / 7 - 10}%`, - axisLabel: { - interval: 2 - } - }); - series.push({ - singleAxisIndex: idx, - coordinateSystem: 'singleAxis', - type: 'scatter', - data: [], - symbolSize(dataItem) { - return dataItem[1] * 4; - } - }); - }); - - data.forEach(dataItem => { - (series as any)[dataItem[0]].data.push([dataItem[1], dataItem[2]]); - }); - - const option: ECOption = { - tooltip: { - position: 'top' - }, - title, - singleAxis, - series: series as any - }; - - return option; -} - -export const radarOptions: ECOption = { - title: { - text: 'Multiple Radar' - }, - tooltip: { - trigger: 'axis' - }, - legend: { - left: 'center', - data: ['A Software', 'A Phone', 'Another Phone', 'Precipitation', 'Evaporation'] - }, - radar: [ - { - indicator: [ - { name: 'Brand', max: 100 }, - { name: 'Content', max: 100 }, - { name: 'Usability', max: 100 }, - { name: 'Function', max: 100 } - ], - center: ['25%', '40%'], - radius: 80 - }, - { - indicator: [ - { name: 'Look', max: 100 }, - { name: 'Photo', max: 100 }, - { name: 'System', max: 100 }, - { name: 'Performance', max: 100 }, - { name: 'Screen', max: 100 } - ], - radius: 80, - center: ['50%', '60%'] - }, - { - indicator: (() => { - const res = []; - for (let i = 1; i <= 12; i += 1) { - res.push({ name: `${i}月`, max: 100 }); - } - return res; - })(), - center: ['75%', '40%'], - radius: 80 - } - ], - series: [ - { - type: 'radar', - tooltip: { - trigger: 'item' - }, - areaStyle: {}, - data: [ - { - value: [60, 73, 85, 40], - name: 'A Software' - } - ] - }, - { - type: 'radar', - radarIndex: 1, - areaStyle: {}, - data: [ - { - value: [85, 90, 90, 95, 95], - name: 'A Phone' - }, - { - value: [95, 80, 95, 90, 93], - name: 'Another Phone' - } - ] - }, - { - type: 'radar', - radarIndex: 2, - areaStyle: {}, - data: [ - { - name: 'Precipitation', - value: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 75.6, 82.2, 48.7, 18.8, 6.0, 2.3] - }, - { - name: 'Evaporation', - value: [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 35.6, 62.2, 32.6, 20.0, 6.4, 3.3] - } - ] - } - ] -}; - -export const gaugeOptions: ECOption = { - series: [ - { - name: 'hour', - type: 'gauge', - startAngle: 90, - endAngle: -270, - min: 0, - max: 12, - splitNumber: 12, - clockwise: true, - axisLine: { - lineStyle: { - width: 15, - color: [[1, 'rgba(0,0,0,0.7)']], - shadowColor: 'rgba(0, 0, 0, 0.5)', - shadowBlur: 15 - } - }, - splitLine: { - lineStyle: { - shadowColor: 'rgba(0, 0, 0, 0.3)', - shadowBlur: 3, - shadowOffsetX: 1, - shadowOffsetY: 2 - } - }, - axisLabel: { - fontSize: 50, - distance: 25, - formatter(value) { - if (value === 0) { - return ''; - } - return `${value}`; - } - }, - anchor: { - show: true, - icon: 'path://M532.8,70.8C532.8,70.8,532.8,70.8,532.8,70.8L532.8,70.8C532.7,70.8,532.8,70.8,532.8,70.8z M456.1,49.6c-2.2-6.2-8.1-10.6-15-10.6h-37.5v10.6h37.5l0,0c2.9,0,5.3,2.4,5.3,5.3c0,2.9-2.4,5.3-5.3,5.3v0h-22.5c-1.5,0.1-3,0.4-4.3,0.9c-4.5,1.6-8.1,5.2-9.7,9.8c-0.6,1.7-0.9,3.4-0.9,5.3v16h10.6v-16l0,0l0,0c0-2.7,2.1-5,4.7-5.3h10.3l10.4,21.2h11.8l-10.4-21.2h0c6.9,0,12.8-4.4,15-10.6c0.6-1.7,0.9-3.5,0.9-5.3C457,53,456.7,51.2,456.1,49.6z M388.9,92.1h11.3L381,39h-3.6h-11.3L346.8,92v0h11.3l3.9-10.7h7.3h7.7l3.9-10.6h-7.7h-7.3l7.7-21.2v0L388.9,92.1z M301,38.9h-10.6v53.1H301V70.8h28.4l3.7-10.6H301V38.9zM333.2,38.9v10.6v10.7v31.9h10.6V38.9H333.2z M249.5,81.4L249.5,81.4L249.5,81.4c-2.9,0-5.3-2.4-5.3-5.3h0V54.9h0l0,0c0-2.9,2.4-5.3,5.3-5.3l0,0l0,0h33.6l3.9-10.6h-37.5c-1.9,0-3.6,0.3-5.3,0.9c-4.5,1.6-8.1,5.2-9.7,9.7c-0.6,1.7-0.9,3.5-0.9,5.3l0,0v21.3c0,1.9,0.3,3.6,0.9,5.3c1.6,4.5,5.2,8.1,9.7,9.7c1.7,0.6,3.5,0.9,5.3,0.9h33.6l3.9-10.6H249.5z M176.8,38.9v10.6h49.6l3.9-10.6H176.8z M192.7,81.4L192.7,81.4L192.7,81.4c-2.9,0-5.3-2.4-5.3-5.3l0,0v-5.3h38.9l3.9-10.6h-53.4v10.6v5.3l0,0c0,1.9,0.3,3.6,0.9,5.3c1.6,4.5,5.2,8.1,9.7,9.7c1.7,0.6,3.4,0.9,5.3,0.9h23.4h10.2l3.9-10.6l0,0H192.7z M460.1,38.9v10.6h21.4v42.5h10.6V49.6h17.5l3.8-10.6H460.1z M541.6,68.2c-0.2,0.1-0.4,0.3-0.7,0.4C541.1,68.4,541.4,68.3,541.6,68.2L541.6,68.2z M554.3,60.2h-21.6v0l0,0c-2.9,0-5.3-2.4-5.3-5.3c0-2.9,2.4-5.3,5.3-5.3l0,0l0,0h33.6l3.8-10.6h-37.5l0,0c-6.9,0-12.8,4.4-15,10.6c-0.6,1.7-0.9,3.5-0.9,5.3c0,1.9,0.3,3.7,0.9,5.3c2.2,6.2,8.1,10.6,15,10.6h21.6l0,0c2.9,0,5.3,2.4,5.3,5.3c0,2.9-2.4,5.3-5.3,5.3l0,0h-37.5v10.6h37.5c6.9,0,12.8-4.4,15-10.6c0.6-1.7,0.9-3.5,0.9-5.3c0-1.9-0.3-3.7-0.9-5.3C567.2,64.6,561.3,60.2,554.3,60.2z', - showAbove: false, - offsetCenter: [0, '-35%'], - size: 120, - keepAspect: true, - itemStyle: { - color: '#707177' - } - }, - pointer: { - icon: 'path://M2.9,0.7L2.9,0.7c1.4,0,2.6,1.2,2.6,2.6v115c0,1.4-1.2,2.6-2.6,2.6l0,0c-1.4,0-2.6-1.2-2.6-2.6V3.3C0.3,1.9,1.4,0.7,2.9,0.7z', - width: 12, - length: '55%', - offsetCenter: [0, '8%'], - itemStyle: { - color: '#C0911F', - shadowColor: 'rgba(0, 0, 0, 0.3)', - shadowBlur: 8, - shadowOffsetX: 2, - shadowOffsetY: 4 - } - }, - detail: { - show: false - }, - title: { - offsetCenter: [0, '30%'] - }, - data: [ - { - value: 0 - } - ] - }, - { - name: 'minute', - type: 'gauge', - startAngle: 90, - endAngle: -270, - min: 0, - max: 60, - clockwise: true, - axisLine: { - show: false - }, - splitLine: { - show: false - }, - axisTick: { - show: false - }, - axisLabel: { - show: false - }, - pointer: { - icon: 'path://M2.9,0.7L2.9,0.7c1.4,0,2.6,1.2,2.6,2.6v115c0,1.4-1.2,2.6-2.6,2.6l0,0c-1.4,0-2.6-1.2-2.6-2.6V3.3C0.3,1.9,1.4,0.7,2.9,0.7z', - width: 8, - length: '70%', - offsetCenter: [0, '8%'], - itemStyle: { - color: '#C0911F', - shadowColor: 'rgba(0, 0, 0, 0.3)', - shadowBlur: 8, - shadowOffsetX: 2, - shadowOffsetY: 4 - } - }, - anchor: { - show: true, - size: 20, - showAbove: false, - itemStyle: { - borderWidth: 15, - borderColor: '#C0911F', - shadowColor: 'rgba(0, 0, 0, 0.3)', - shadowBlur: 8, - shadowOffsetX: 2, - shadowOffsetY: 4 - } - }, - detail: { - show: false - }, - title: { - offsetCenter: ['0%', '-40%'] - }, - data: [ - { - value: 0 - } - ] - }, - { - name: 'second', - type: 'gauge', - startAngle: 90, - endAngle: -270, - min: 0, - max: 60, - animationEasingUpdate: 'bounceOut', - clockwise: true, - axisLine: { - show: false - }, - splitLine: { - show: false - }, - axisTick: { - show: false - }, - axisLabel: { - show: false - }, - pointer: { - icon: 'path://M2.9,0.7L2.9,0.7c1.4,0,2.6,1.2,2.6,2.6v115c0,1.4-1.2,2.6-2.6,2.6l0,0c-1.4,0-2.6-1.2-2.6-2.6V3.3C0.3,1.9,1.4,0.7,2.9,0.7z', - width: 4, - length: '85%', - offsetCenter: [0, '8%'], - itemStyle: { - color: '#C0911F', - shadowColor: 'rgba(0, 0, 0, 0.3)', - shadowBlur: 8, - shadowOffsetX: 2, - shadowOffsetY: 4 - } - }, - anchor: { - show: true, - size: 15, - showAbove: true, - itemStyle: { - color: '#C0911F', - shadowColor: 'rgba(0, 0, 0, 0.3)', - shadowBlur: 8, - shadowOffsetX: 2, - shadowOffsetY: 4 - } - }, - detail: { - show: false - }, - title: { - offsetCenter: ['0%', '-40%'] - }, - data: [ - { - value: 0 - } - ] - } - ] -}; diff --git a/src/views/plugin/charts/echarts/index.vue b/src/views/plugin/charts/echarts/index.vue deleted file mode 100644 index 4a46f58..0000000 --- a/src/views/plugin/charts/echarts/index.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/src/views/plugin/charts/vchart/data.ts b/src/views/plugin/charts/vchart/data.ts deleted file mode 100644 index c92b66a..0000000 --- a/src/views/plugin/charts/vchart/data.ts +++ /dev/null @@ -1,872 +0,0 @@ -import type { - IAnimationConfig, - IAreaChartSpec, - IBarChartSpec, - ICircularProgressChartSpec, - IHistogramChartSpec, - IIndicatorSpec, - ILiquidChartSpec, - IWordCloudChartSpec -} from '@visactor/vchart'; - -export const shapeWordCloudSpec: IWordCloudChartSpec = { - type: 'wordCloud', - maskShape: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/log.jpeg', - nameField: 'challenge_name', - valueField: 'sum_count', - seriesField: 'challenge_name', - data: [ - { - name: 'data', - values: [ - { - challenge_name: '刘浩存', - sum_count: 957 - }, - { - challenge_name: '刘昊然', - sum_count: 942 - }, - { - challenge_name: '喜欢', - sum_count: 842 - }, - { - challenge_name: '真的', - sum_count: 828 - }, - { - challenge_name: '四海', - sum_count: 665 - }, - { - challenge_name: '好看', - sum_count: 627 - }, - { - challenge_name: '评论', - sum_count: 574 - }, - { - challenge_name: '好像', - sum_count: 564 - }, - { - challenge_name: '沈腾', - sum_count: 554 - }, - { - challenge_name: '不像', - sum_count: 540 - }, - { - challenge_name: '多少钱', - sum_count: 513 - }, - { - challenge_name: '韩寒', - sum_count: 513 - }, - { - challenge_name: '不知道', - sum_count: 499 - }, - { - challenge_name: '感觉', - sum_count: 499 - }, - { - challenge_name: '尹正', - sum_count: 495 - }, - { - challenge_name: '不看', - sum_count: 487 - }, - { - challenge_name: '奥特之父', - sum_count: 484 - }, - { - challenge_name: '阿姨', - sum_count: 482 - }, - { - challenge_name: '支持', - sum_count: 482 - }, - { - challenge_name: '父母', - sum_count: 479 - }, - { - challenge_name: '一条', - sum_count: 462 - }, - { - challenge_name: '女主', - sum_count: 456 - }, - { - challenge_name: '确实', - sum_count: 456 - }, - { - challenge_name: '票房', - sum_count: 456 - }, - { - challenge_name: '无语', - sum_count: 443 - }, - { - challenge_name: '干干净净', - sum_count: 443 - }, - { - challenge_name: '为啥', - sum_count: 426 - }, - { - challenge_name: '爱情', - sum_count: 425 - }, - { - challenge_name: '喜剧', - sum_count: 422 - }, - { - challenge_name: '春节', - sum_count: 414 - }, - { - challenge_name: '剧情', - sum_count: 414 - }, - { - challenge_name: '人生', - sum_count: 409 - }, - { - challenge_name: '风格', - sum_count: 408 - }, - { - challenge_name: '演员', - sum_count: 403 - }, - { - challenge_name: '成长', - sum_count: 403 - }, - { - challenge_name: '玩意', - sum_count: 402 - }, - { - challenge_name: '文学', - sum_count: 397 - } - ] - } - ] -}; - -export const circularProgressTickSpec: ICircularProgressChartSpec & { indicator: IIndicatorSpec } = { - type: 'circularProgress', - data: [ - { - id: 'id0', - values: [ - { - type: 'Tradition Industries', - value: 0.795, - text: '79.5%' - }, - { - type: 'Business Companies', - value: 0.5, - text: '50%' - }, - { - type: 'Customer-facing Companies', - value: 0.25, - text: '25%' - } - ] - } - ], - color: ['rgb(255, 222, 0)', 'rgb(171, 205, 5)', 'rgb(0, 154, 68)'], - valueField: 'value', - categoryField: 'type', - seriesField: 'type', - radius: 0.8, - innerRadius: 0.4, - tickMask: { - visible: true, - angle: 10, - offsetAngle: 0, - forceAlign: true, - style: { - cornerRadius: 15 - } - }, - axes: [ - { - visible: false, - type: 'linear', - orient: 'angle' - }, - { - visible: false, - type: 'band', - orient: 'radius' - } - ], - indicator: { - visible: true, - trigger: 'hover', - title: { - visible: true, - field: 'type', - autoLimit: true, - style: { - fontSize: 20, - fill: 'black' - } - }, - content: [ - { - visible: true, - field: 'text', - style: { - fontSize: 16, - fill: 'gray' - } - } - ] - }, - legends: { - visible: true, - orient: 'bottom', - title: { - visible: false - } - } -}; - -export const liquidChartSmartInvertSpec: ILiquidChartSpec & { indicator: IIndicatorSpec } = { - type: 'liquid', - valueField: 'value', - data: { - id: 'data', - values: [ - { - value: 0.8 - } - ] - }, - maskShape: 'drop', // 水滴 - // maskShape: 'circle', - // maskShape: 'star', - indicatorSmartInvert: true, - indicator: { - visible: true, - title: { - visible: true, - style: { - text: '进度' - } - }, - content: [ - { - visible: true, - style: { - fill: 'black', - text: '80%' - } - } - ] - }, - liquidBackground: { - style: { - fill: 'blue' - } - } -}; - -const goldenMedals: Record = { - 2000: [ - { country: 'USA', value: 37 }, - { country: 'Russia', value: 32 }, - { country: 'China', value: 28 }, - { country: 'Australia', value: 16 }, - { country: 'Germany', value: 13 }, - { country: 'France', value: 13 }, - { country: 'Italy', value: 13 }, - { country: 'Netherlands', value: 12 }, - { country: 'Cuba', value: 11 }, - { country: 'U.K.', value: 11 } - ], - 2004: [ - { country: 'USA', value: 36 }, - { country: 'China', value: 32 }, - { country: 'Russia', value: 28 }, - { country: 'Australia', value: 17 }, - { country: 'Japan', value: 16 }, - { country: 'Germany', value: 13 }, - { country: 'France', value: 11 }, - { country: 'Italy', value: 10 }, - { country: 'South Korea', value: 9 }, - { country: 'U.K.', value: 9 } - ], - 2008: [ - { country: 'China', value: 48 }, - { country: 'USA', value: 36 }, - { country: 'Russia', value: 24 }, - { country: 'U.K.', value: 19 }, - { country: 'Germany', value: 16 }, - { country: 'Australia', value: 14 }, - { country: 'South Korea', value: 13 }, - { country: 'Japan', value: 9 }, - { country: 'Italy', value: 8 }, - { country: 'France', value: 7 } - ], - 2012: [ - { country: 'USA', value: 46 }, - { country: 'China', value: 39 }, - { country: 'U.K.', value: 29 }, - { country: 'Russia', value: 19 }, - { country: 'South Korea', value: 13 }, - { country: 'Germany', value: 11 }, - { country: 'France', value: 11 }, - { country: 'Australia', value: 8 }, - { country: 'Italy', value: 8 }, - { country: 'Hungary', value: 8 } - ], - 2016: [ - { country: 'USA', value: 46 }, - { country: 'U.K.', value: 27 }, - { country: 'China', value: 26 }, - { country: 'Russia', value: 19 }, - { country: 'Germany', value: 17 }, - { country: 'Japan', value: 12 }, - { country: 'France', value: 10 }, - { country: 'South Korea', value: 9 }, - { country: 'Italy', value: 8 }, - { country: 'Australia', value: 8 } - ], - 2020: [ - { country: 'USA', value: 39 }, - { country: 'China', value: 38 }, - { country: 'Japan', value: 27 }, - { country: 'U.K.', value: 22 }, - { country: 'Russian Olympic Committee', value: 20 }, - { country: 'Australia', value: 17 }, - { country: 'Netherlands', value: 10 }, - { country: 'France', value: 10 }, - { country: 'Germany', value: 10 }, - { country: 'Italy', value: 10 } - ] -}; - -const colors = { - China: '#d62728', - USA: '#1664FF', - Russia: '#B2CFFF', - 'U.K.': '#1AC6FF', - Australia: '#94EFFF', - Japan: '#FF8A00', - Cuba: '#FFCE7A', - Germany: '#3CC780', - France: '#B9EDCD', - Italy: '#7442D4', - 'South Korea': '#DDC5FA', - 'Russian Olympic Committee': '#B2CFFF', - Netherlands: '#FFC400', - Hungary: '#FAE878' -}; - -const dataSpecs = Object.keys(goldenMedals).map(year => { - return { - data: [ - { - id: 'id', - values: (goldenMedals[year as unknown as number] as any) - .sort((a: any, b: any) => b.value - a.value) - .map((v: any) => { - return { ...v, fill: (colors as any)[v.country] }; - }) - }, - { - id: 'year', - values: [{ year }] - } - ] - }; -}); -const duration = 1000; -const exchangeDuration = 600; - -export const rankingBarSpec: IBarChartSpec = { - type: 'bar', - padding: { - top: 12, - right: 100, - bottom: 12 - }, - data: dataSpecs[0].data, - direction: 'horizontal', - yField: 'country', - xField: 'value', - seriesField: 'country', - bar: { - style: { - fill: (datum: any) => datum.fill - } - }, - axes: [ - { - animation: true, - orient: 'bottom', - type: 'linear', - visible: true, - max: 50, - grid: { - visible: true - } - }, - { - animation: true, - id: 'axis-left', - orient: 'left', - width: 130, - tick: { visible: false }, - label: { visible: true }, - type: 'band' - } - ], - title: { - visible: true, - text: 'Top 10 Olympic Gold Medals by Country Since 2000' - }, - animationUpdate: { - bar: [ - { - type: 'update', - options: { excludeChannels: ['y'] }, - easing: 'linear', - duration - }, - { - channel: ['y'], - easing: 'circInOut', - duration: exchangeDuration - } - ], - axis: { - duration: exchangeDuration, - easing: 'circInOut' - } - } as Record, - animationEnter: { - bar: [ - { - type: 'moveIn', - duration: exchangeDuration, - easing: 'circInOut', - options: { - direction: 'y', - orient: 'negative' - } - } - ] - }, - animationExit: { - bar: [ - { - type: 'fadeOut', - duration: exchangeDuration - } - ] - }, - customMark: [ - { - type: 'text', - dataId: 'year', - style: { - textBaseline: 'bottom', - fontSize: 200, - textAlign: 'right', - fontFamily: 'PingFang SC', - fontWeight: 600, - text: (datum: any) => datum.year, - x: (_datum: any, ctx: any) => { - return ctx.vchart.getChart().getCanvasRect()?.width - 50; - }, - y: (_datum: any, ctx: any) => { - return ctx.vchart.getChart().getCanvasRect()?.height - 50; - }, - fill: 'grey', - fillOpacity: 0.5 - } - } - ], - player: { - type: 'continuous', - orient: 'bottom', - auto: true, - loop: true, - dx: 80, - position: 'middle', - interval: duration, - specs: dataSpecs, - slider: { - railStyle: { - height: 6 - } - }, - controller: { - backward: { - style: { - size: 12 - } - }, - forward: { - style: { - size: 12 - } - }, - start: { - order: 1, - position: 'end' - } - } - } -}; - -export const stackedDashAreaSpec: IAreaChartSpec = { - type: 'area', - data: { - values: [ - { month: 'Jan', country: 'Africa', value: 4229 }, - { month: 'Jan', country: 'EU', value: 4376 }, - { month: 'Jan', country: 'China', value: 3054 }, - { month: 'Jan', country: 'USA', value: 12814 }, - { month: 'Feb', country: 'Africa', value: 3932 }, - { month: 'Feb', country: 'EU', value: 3987 }, - { month: 'Feb', country: 'China', value: 5067 }, - { month: 'Feb', country: 'USA', value: 13012 }, - { month: 'Mar', country: 'Africa', value: 5221 }, - { month: 'Mar', country: 'EU', value: 3574 }, - { month: 'Mar', country: 'China', value: 7004 }, - { month: 'Mar', country: 'USA', value: 11624 }, - { month: 'Apr', country: 'Africa', value: 9256 }, - { month: 'Apr', country: 'EU', value: 4376 }, - { month: 'Apr', country: 'China', value: 9054 }, - { month: 'Apr', country: 'USA', value: 8814 }, - { month: 'May', country: 'Africa', value: 3308 }, - { month: 'May', country: 'EU', value: 4572 }, - { month: 'May', country: 'China', value: 12043 }, - { month: 'May', country: 'USA', value: 12998 }, - { month: 'Jun', country: 'Africa', value: 5432 }, - { month: 'Jun', country: 'EU', value: 3417 }, - { month: 'Jun', country: 'China', value: 15067 }, - { month: 'Jun', country: 'USA', value: 12321 }, - { month: 'Jul', country: 'Africa', value: 13701 }, - { month: 'Jul', country: 'EU', value: 5231 }, - { month: 'Jul', country: 'China', value: 10119 }, - { month: 'Jul', country: 'USA', value: 10342 }, - { month: 'Aug', country: 'Africa', value: 4008, forecast: true }, - { month: 'Aug', country: 'EU', value: 4572, forecast: true }, - { month: 'Aug', country: 'China', value: 12043, forecast: true }, - { month: 'Aug', country: 'USA', value: 22998, forecast: true }, - { month: 'Sept', country: 'Africa', value: 18712, forecast: true }, - { month: 'Sept', country: 'EU', value: 6134, forecast: true }, - { month: 'Sept', country: 'China', value: 10419, forecast: true }, - { month: 'Sept', country: 'USA', value: 11261, forecast: true } - ] - }, - stack: true, - xField: 'month', - yField: 'value', - seriesField: 'country', - point: { - style: { - size: 0 - }, - state: { - dimension_hover: { - size: 10, - outerBorder: { - distance: 0, - lineWidth: 6, - strokeOpacity: 0.2 - } - } - } - }, - line: { - style: { - // Configure the lineDash attribute based on the forecast field value of the data - lineDash: (data: any) => { - if (data.forecast) { - return [5, 5]; - } - return [0]; - } - } - }, - area: { - style: { - fillOpacity: 0.5, - textureColor: '#fff', - textureSize: 14, - // Configure the texture attribute based on the forecast field value of the data - texture: (data: any) => { - if (data.forecast) { - return 'bias-rl'; - } - return ''; - } - } - }, - legends: [{ visible: true, position: 'middle', orient: 'bottom' }], - crosshair: { - xField: { - visible: true, - line: { - type: 'line' - } - } - } -}; - -export const barMarkPointSpec: IBarChartSpec = { - type: 'bar', - height: 300, - data: [ - { - id: 'barData', - values: [ - { time: '10:20', cost: 2 }, - { time: '10:30', cost: 1 }, - { time: '10:40', cost: 1 }, - { time: '10:50', cost: 2 }, - { time: '11:00', cost: 2 }, - { time: '11:10', cost: 2 }, - { time: '11:20', cost: 1 }, - { time: '11:30', cost: 1 }, - { time: '11:40', cost: 2 }, - { time: '11:50', cost: 1 } - ] - } - ], - xField: 'time', - yField: 'cost', - crosshair: { - xField: { - visible: true, - line: { - type: 'rect', - style: { - fill: 'rgb(85,208,93)', - fillOpacity: 0.1 - } - }, - bindingAxesIndex: [1], - defaultSelect: { - axisIndex: 1, - datum: '10:20' - } - } - }, - label: { - visible: true, - animation: false, - formatMethod: (datum: any) => `${datum}分钟`, - style: { - fill: 'rgb(155,155,155)' - } - }, - bar: { - style: { - fill: 'rgb(85,208,93)', - cornerRadius: [4, 4, 0, 0], - width: 30 - } - }, - markPoint: [ - { - coordinate: { - time: '10:20', - cost: 2 - }, - itemContent: { - type: 'text', - // autoRotate: false, - offsetY: -10, - text: { - dy: 14, - text: '2分钟', - style: { - fill: 'white', - fontSize: 14 - }, - labelBackground: { - padding: [5, 10, 5, 10], - style: { - fill: '#000', - cornerRadius: 5 - } - } - } - }, - itemLine: { - endSymbol: { - visible: true, - style: { - angle: Math.PI, - scaleY: 0.4, - fill: '#000', - dy: 4, - stroke: '#000' - } - }, - startSymbol: { visible: false }, - line: { - style: { - visible: false - } - } - } - } - ], - animationUpdate: false, - axes: [ - { - orient: 'left', - max: 10, - label: { visible: false }, - grid: { - style: { lineDash: [4, 4] } - } - }, - { - orient: 'bottom', - label: { - formatMethod: (datum: any) => { - return datum === '10:20' ? '当前' : datum; - }, - style: (datum: any) => { - return { - fontSize: datum === '10:20' ? 14 : 12, - fill: datum === '10:20' ? 'black' : 'grey' - }; - } - }, - paddingOuter: 0.5, - paddingInner: 0, - grid: { - visible: true, - alignWithLabel: false, - style: { lineDash: [4, 4] } - } - } - ] -}; - -export const histogramDifferentBinSpec: IHistogramChartSpec = { - type: 'histogram', - xField: 'from', - x2Field: 'to', - yField: 'profit', - seriesField: 'type', - bar: { - style: { - stroke: 'white', - lineWidth: 1 - } - }, - title: { - text: 'Profit', - textStyle: { - align: 'center', - height: 50, - lineWidth: 3, - fill: '#333', - fontSize: 25, - fontFamily: 'Times New Roman' - } - }, - tooltip: { - visible: true, - mark: { - title: { - key: 'title', - value: 'profit' - }, - content: [ - { - key: (datum?: Record) => `${datum?.from}~${datum?.to}`, - value: (datum?: Record) => datum?.profit - } - ] - } - }, - axes: [ - { - orient: 'bottom', - nice: false - } - ], - data: [ - { - name: 'data1', - values: [ - { - from: 0, - to: 10, - profit: 2, - type: 'A' - }, - { - from: 10, - to: 16, - profit: 3, - type: 'B' - }, - { - from: 16, - to: 18, - profit: 15, - type: 'C' - }, - { - from: 18, - to: 26, - profit: 12, - type: 'D' - }, - { - from: 26, - to: 32, - profit: 22, - type: 'E' - }, - { - from: 32, - to: 56, - profit: 7, - type: 'F' - }, - { - from: 56, - to: 62, - profit: 17, - type: 'G' - } - ] - } - ] -}; diff --git a/src/views/plugin/charts/vchart/index.vue b/src/views/plugin/charts/vchart/index.vue deleted file mode 100644 index 8860e26..0000000 --- a/src/views/plugin/charts/vchart/index.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff --git a/src/views/plugin/copy/index.vue b/src/views/plugin/copy/index.vue deleted file mode 100644 index 4ea3af9..0000000 --- a/src/views/plugin/copy/index.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/src/views/plugin/excel/index.vue b/src/views/plugin/excel/index.vue deleted file mode 100644 index 7d10f11..0000000 --- a/src/views/plugin/excel/index.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - - - diff --git a/src/views/plugin/gantt/dhtmlx/data.ts b/src/views/plugin/gantt/dhtmlx/data.ts deleted file mode 100644 index 0cfa3b0..0000000 --- a/src/views/plugin/gantt/dhtmlx/data.ts +++ /dev/null @@ -1,173 +0,0 @@ -import type { Task } from 'dhtmlx-gantt'; - -export const ganttTasks: Task[] = [ - { - id: 11, - text: 'CN-RDMS 架构设计', - type: 'project', - progress: 0, - open: true, - start_date: new Date('2024-01-10 00:00'), - duration: 12, - parent: 0 - }, - { - id: 12, - text: '测试版本', - start_date: new Date('2024-03-20 00:00'), - type: 'project', - duration: 5, - render: 'split', - parent: '11', - progress: 0, - open: true - }, - { - id: 99, - text: '测试版本1 发布', - start_date: new Date('2024-03-20 00:00'), - end_date: new Date('2024-03-25 00:00'), - parent: '12', - progress: 0, - open: true - }, - { - id: 98, - text: '测试版本2 发布', - start_date: new Date('2024-03-26 00:00'), - duration: 4, - parent: '12', - progress: 0, - open: true - }, - { - id: 97, - text: '测试版本3 发布', - start_date: new Date('2024-03-31 00:00'), - duration: 10, - parent: '12', - progress: 0, - open: true - }, - { - id: 13, - text: '1.0 版本', - start_date: new Date('2024-03-31 00:00'), - type: 'project', - render: 'split', - parent: '11', - progress: 0.5, - open: false, - duration: 11 - }, - { - id: 17, - text: '1.0正式发布', - start_date: new Date('2024-03-31 00:00'), - end_date: new Date('2024-04-03 00:00'), - parent: '13', - progress: 0, - open: true - }, - { - id: 18, - text: '1.0.1 版本', - start_date: new Date('2024-04-03 00:00'), - duration: 5, - parent: '13', - progress: 0, - open: true - }, - { - id: 19, - text: '1.0.2 版本', - start_date: new Date('2024-04-08 00:00'), - duration: 6, - parent: '13', - progress: 0, - open: true - }, - { - id: 20, - text: '1.0.3 版本', - start_date: new Date('2024-04-16 00:00'), - duration: 8, - parent: '13', - progress: 0, - open: true - }, - { - id: 31, - text: '1.0.4 版本', - start_date: new Date('2024-04-17 00:00'), - duration: 8, - parent: '13', - progress: 0, - open: true - }, - { - id: 32, - text: '1.0.5 版本', - start_date: new Date('2024-04-26 00:00'), - duration: 9, - parent: '13', - progress: 0, - open: true - }, - { - id: 33, - text: '1.0.9 版本', - start_date: new Date('2024-05-05 00:00'), - duration: 2, - parent: '13', - progress: 0, - open: true - }, - { - id: 14, - text: '1.1 版本', - start_date: new Date('2024-05-07 00:00'), - duration: 30, - parent: '11', - progress: 0, - open: true - }, - { - id: 15, - text: '1.2 版本', - start_date: new Date('2024-06-06 00:00'), - duration: 46, - parent: '11', - progress: 0, - open: true - }, - { - id: 16, - text: '1.3版本', - type: 'project', - render: 'split', - parent: '11', - progress: 0, - open: true, - start_date: new Date('2024-07-22 00:00'), - duration: 11 - }, - { - id: 21, - text: '1.3.1版本', - start_date: new Date('2024-07-22 00:00'), - duration: 7, - parent: '16', - progress: 0, - open: true - }, - { - id: 22, - text: '1.3.2版本', - start_date: new Date('2024-07-29 00:00'), - duration: 7, - parent: '16', - progress: 0, - open: true - } -]; diff --git a/src/views/plugin/gantt/dhtmlx/index.vue b/src/views/plugin/gantt/dhtmlx/index.vue deleted file mode 100644 index 560b321..0000000 --- a/src/views/plugin/gantt/dhtmlx/index.vue +++ /dev/null @@ -1,169 +0,0 @@ - - - - - diff --git a/src/views/plugin/gantt/vtable/data.ts b/src/views/plugin/gantt/vtable/data.ts deleted file mode 100644 index cb80dc6..0000000 --- a/src/views/plugin/gantt/vtable/data.ts +++ /dev/null @@ -1,721 +0,0 @@ -export const basicGanttRecords = [ - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-15', - progress: 31, - priority: 'P0', - children: [ - { - id: 2, - title: 'Project Feature Review', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-07-24', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-25', - end: '2024-07-26', - progress: 100, - priority: 'P1' - }, - { - id: 3, - title: 'Project Create', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-27', - end: '2024-07-26', - progress: 100, - priority: 'P1' - }, - { - id: 3, - title: 'Develop feature 1', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-08-01', - end: '2024-08-15', - progress: 0, - priority: 'P1' - } - ] - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-01', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 100, - priority: 'P1', - children: [ - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-08-01', - end: '2024-08-01', - progress: 90, - priority: 'P0' - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-30', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024.07.26', - end: '2024.07.08', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1' - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '07.24.2024', - end: '08.04.2024', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-16', - end: '2024-07-18', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-08-09', - end: '2024-09-11', - progress: 100, - priority: 'P1' - } - ] - }, - - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-26', - end: '2024-07-28', - progress: 60, - priority: 'P0', - children: [ - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1', - children: [ - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-26', - end: '2024-07-28', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1' - } - ] - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0', - children: [ - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-06', - end: '2024-07-08', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1' - } - ] - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-26', - end: '2024-07-28', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1', - children: [ - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-06', - end: '2024-07-08', - progress: 60, - priority: 'P0' - } - ] - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-26', - end: '2024-07-28', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1' - } - ] - }, - - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1', - children: [ - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-23', - end: '2024-07-28', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1' - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-30', - end: '2024-08-14', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 60, - priority: 'P0' - } - ] - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0', - children: [ - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 100, - priority: 'P1' - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-08-04', - end: '2024-08-04', - progress: 90, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '07/24/2024', - end: '08/04/2024', - progress: 60, - priority: 'P0' - } - ] - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-27', - end: '2024-07-28', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1', - children: [ - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '07.24.2024', - end: '08.04.2024', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-26', - end: '2024-07-28', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-08-09', - end: '2024-09-11', - progress: 100, - priority: 'P1' - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-26', - end: '2024-07-28', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1' - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-26', - end: '2024-07-28', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1' - } - ] - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0', - children: [ - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 100, - priority: 'P1' - }, - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024.07.06', - end: '2024.07.08', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-29', - end: '2024-07-31', - progress: 100, - priority: 'P1' - } - ] - } -]; - -export const linkGanttRecords = [ - { - id: 1, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-15', - end: '2024-07-16', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-16', - end: '2024-07-17', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-18', - end: '2024-07-19', - progress: 90, - priority: 'P0' - }, - { - id: 4, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024/07/17', - end: '2024/07/18', - progress: 100, - priority: 'P1' - }, - { - id: 5, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '07/19/2024', - end: '07/20/2024', - progress: 60, - priority: 'P0' - }, - { - id: 6, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 100, - priority: 'P1' - }, - { - id: 7, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 8, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024.07.06', - end: '2024.07.08', - progress: 60, - priority: 'P0' - }, - { - id: 9, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024/07/09', - end: '2024/07/11', - progress: 100, - priority: 'P1' - }, - { - id: 10, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '07.24.2024', - end: '08.04.2024', - progress: 31, - priority: 'P0' - }, - - { - id: 11, - title: 'Software Development', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-24', - end: '2024-08-04', - progress: 31, - priority: 'P0' - }, - { - id: 12, - title: 'Scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-06', - end: '2024-07-08', - progress: 60, - priority: 'P0' - }, - { - id: 13, - title: 'Determine project scope', - developer: 'liufangfang.jane@bytedance.com', - start: '2024-07-09', - end: '2024-07-11', - progress: 100, - priority: 'P1' - } -]; - -export const customGanttRecords = [ - { - id: 1, - title: 'Project Task 1', - developer: 'bear.xiong', - avatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/bear.jpg', - start: '2024-07-24', - end: '2024-07-26', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Project Task 2', - developer: 'wolf.lang', - avatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/wolf.jpg', - start: '07/25/2024', - end: '07/28/2024', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Project Task 3', - developer: 'rabbit.tu', - avatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/rabbit.jpg', - start: '2024-07-28', - end: '2024-08-01', - progress: 100, - priority: 'P1' - }, - { - id: 1, - title: 'Project Task 4', - developer: 'cat.mao', - avatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/cat.jpg', - start: '2024-07-31', - end: '2024-08-03', - progress: 31, - priority: 'P0' - }, - { - id: 2, - title: 'Project Task 5', - developer: 'bird.niao', - avatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/bird.jpeg', - start: '2024-08-02', - end: '2024-08-04', - progress: 60, - priority: 'P0' - }, - { - id: 3, - title: 'Project Task 6', - developer: 'flower.hua', - avatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/flower.jpg', - start: '2024-08-03', - end: '2024-08-10', - progress: 100, - priority: 'P1' - } -]; diff --git a/src/views/plugin/gantt/vtable/index.vue b/src/views/plugin/gantt/vtable/index.vue deleted file mode 100644 index a0555fb..0000000 --- a/src/views/plugin/gantt/vtable/index.vue +++ /dev/null @@ -1,792 +0,0 @@ - - - diff --git a/src/views/plugin/icon/icons.ts b/src/views/plugin/icon/icons.ts deleted file mode 100644 index 1af7574..0000000 --- a/src/views/plugin/icon/icons.ts +++ /dev/null @@ -1,32 +0,0 @@ -export const icons = [ - 'mdi:emoticon', - 'mdi:ab-testing', - 'ph:alarm', - 'ph:android-logo', - 'ph:align-bottom', - 'ph:archive-box-light', - 'uil:basketball', - 'uil:brightness-plus', - 'uil:capture', - 'mdi:apps-box', - 'mdi:alert', - 'mdi:airballoon', - 'mdi:airplane-edit', - 'mdi:alpha-f-box-outline', - 'mdi:arm-flex-outline', - 'ic:baseline-10mp', - 'ic:baseline-access-time', - 'ic:baseline-brightness-4', - 'ic:baseline-brightness-5', - 'ic:baseline-credit-card', - 'ic:baseline-filter-1', - 'ic:baseline-filter-2', - 'ic:baseline-filter-3', - 'ic:baseline-filter-4', - 'ic:baseline-filter-5', - 'ic:baseline-filter-6', - 'ic:baseline-filter-7', - 'ic:baseline-filter-8', - 'ic:baseline-filter-9', - 'ic:baseline-filter-9-plus' -]; diff --git a/src/views/plugin/icon/index.vue b/src/views/plugin/icon/index.vue deleted file mode 100644 index 3e13cdb..0000000 --- a/src/views/plugin/icon/index.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/components/baidu-map.vue b/src/views/plugin/map/components/baidu-map.vue deleted file mode 100644 index e467887..0000000 --- a/src/views/plugin/map/components/baidu-map.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/components/gaode-map.vue b/src/views/plugin/map/components/gaode-map.vue deleted file mode 100644 index 37ca75c..0000000 --- a/src/views/plugin/map/components/gaode-map.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/components/index.ts b/src/views/plugin/map/components/index.ts deleted file mode 100644 index b4a518f..0000000 --- a/src/views/plugin/map/components/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import BaiduMap from './baidu-map.vue'; -import GaodeMap from './gaode-map.vue'; -import TencentMap from './tencent-map.vue'; - -export { BaiduMap, GaodeMap, TencentMap }; diff --git a/src/views/plugin/map/components/tencent-map.vue b/src/views/plugin/map/components/tencent-map.vue deleted file mode 100644 index e958f27..0000000 --- a/src/views/plugin/map/components/tencent-map.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/index.vue b/src/views/plugin/map/index.vue deleted file mode 100644 index 4c93432..0000000 --- a/src/views/plugin/map/index.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - - - diff --git a/src/views/plugin/pdf/index.vue b/src/views/plugin/pdf/index.vue deleted file mode 100644 index 383da90..0000000 --- a/src/views/plugin/pdf/index.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - - - diff --git a/src/views/plugin/pinyin/index.vue b/src/views/plugin/pinyin/index.vue deleted file mode 100644 index 96aeb23..0000000 --- a/src/views/plugin/pinyin/index.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - - - diff --git a/src/views/plugin/print/index.vue b/src/views/plugin/print/index.vue deleted file mode 100644 index 4640d51..0000000 --- a/src/views/plugin/print/index.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/src/views/plugin/swiper/index.vue b/src/views/plugin/swiper/index.vue deleted file mode 100644 index a219313..0000000 --- a/src/views/plugin/swiper/index.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - - - diff --git a/src/views/plugin/tables/vtable/data.ts b/src/views/plugin/tables/vtable/data.ts deleted file mode 100644 index 8a455d1..0000000 --- a/src/views/plugin/tables/vtable/data.ts +++ /dev/null @@ -1,1044 +0,0 @@ -export const listTableRecords = [ - { - 'Row ID': '7981', - 'Order ID': 'CA-2015-103800', - 'Order Date': '2015/1/3', - 'Ship Date': '2015/1/7', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'DP-13000', - 'Customer Name': 'Darren Powers', - Segment: 'Consumer', - Country: 'United States', - City: 'Houston', - State: 'Texas', - 'Postal Code': '77095', - Region: 'Central', - 'Product ID': 'OFF-PA-10000174', - Category: 'Office Supplies', - 'Sub-Category': 'Paper', - 'Product Name': 'Message Book, Wirebound, Four 5 1/2" X 4" Forms/Pg., 200 Dupl. Sets/Book', - Sales: '16.448', - Quantity: '2', - Discount: '0.2', - Profit: '5.5512' - }, - { - 'Row ID': '740', - 'Order ID': 'CA-2015-112326', - 'Order Date': '2015/1/4', - 'Ship Date': '2015/1/8', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'PO-19195', - 'Customer Name': 'Phillina Ober', - Segment: 'Home Office', - Country: 'United States', - City: 'Naperville', - State: 'Illinois', - 'Postal Code': '60540', - Region: 'Central', - 'Product ID': 'OFF-LA-10003223', - Category: 'Office Supplies', - 'Sub-Category': 'Labels', - 'Product Name': 'Avery 508', - Sales: '11.784', - Quantity: '3', - Discount: '0.2', - Profit: '4.2717' - }, - { - 'Row ID': '741', - 'Order ID': 'CA-2015-112326', - 'Order Date': '2015/1/4', - 'Ship Date': '2015/1/8', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'PO-19195', - 'Customer Name': 'Phillina Ober', - Segment: 'Home Office', - Country: 'United States', - City: 'Naperville', - State: 'Illinois', - 'Postal Code': '60540', - Region: 'Central', - 'Product ID': 'OFF-ST-10002743', - Category: 'Office Supplies', - 'Sub-Category': 'Storage', - 'Product Name': 'SAFCO Boltless Steel Shelving', - Sales: '272.736', - Quantity: '3', - Discount: '0.2', - Profit: '-64.7748' - }, - { - 'Row ID': '742', - 'Order ID': 'CA-2015-112326', - 'Order Date': '2015/1/4', - 'Ship Date': '2015/1/8', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'PO-19195', - 'Customer Name': 'Phillina Ober', - Segment: 'Home Office', - Country: 'United States', - City: 'Naperville', - State: 'Illinois', - 'Postal Code': '60540', - Region: 'Central', - 'Product ID': 'OFF-BI-10004094', - Category: 'Office Supplies', - 'Sub-Category': 'Binders', - 'Product Name': 'GBC Standard Plastic Binding Systems Combs', - Sales: '3.54', - Quantity: '2', - Discount: '0.8', - Profit: '-5.487' - }, - { - 'Row ID': '1760', - 'Order ID': 'CA-2015-141817', - 'Order Date': '2015/1/5', - 'Ship Date': '2015/1/12', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'MB-18085', - 'Customer Name': 'Mick Brown', - Segment: 'Consumer', - Country: 'United States', - City: 'Philadelphia', - State: 'Pennsylvania', - 'Postal Code': '19143', - Region: 'East', - 'Product ID': 'OFF-AR-10003478', - Category: 'Office Supplies', - 'Sub-Category': 'Art', - 'Product Name': 'Avery Hi-Liter EverBold Pen Style Fluorescent Highlighters, 4/Pack', - Sales: '19.536', - Quantity: '3', - Discount: '0.2', - Profit: '4.884' - }, - { - 'Row ID': '5328', - 'Order ID': 'CA-2015-130813', - 'Order Date': '2015/1/6', - 'Ship Date': '2015/1/8', - 'Ship Mode': 'Second Class', - 'Customer ID': 'LS-17230', - 'Customer Name': 'Lycoris Saunders', - Segment: 'Consumer', - Country: 'United States', - City: 'Los Angeles', - State: 'California', - 'Postal Code': '90049', - Region: 'West', - 'Product ID': 'OFF-PA-10002005', - Category: 'Office Supplies', - 'Sub-Category': 'Paper', - 'Product Name': 'Xerox 225', - Sales: '19.44', - Quantity: '3', - Discount: '0', - Profit: '9.3312' - }, - { - 'Row ID': '7181', - 'Order ID': 'CA-2015-106054', - 'Order Date': '2015/1/6', - 'Ship Date': '2015/1/7', - 'Ship Mode': 'First Class', - 'Customer ID': 'JO-15145', - 'Customer Name': "Jack O'Briant", - Segment: 'Corporate', - Country: 'United States', - City: 'Athens', - State: 'Georgia', - 'Postal Code': '30605', - Region: 'South', - 'Product ID': 'OFF-AR-10002399', - Category: 'Office Supplies', - 'Sub-Category': 'Art', - 'Product Name': 'Dixon Prang Watercolor Pencils, 10-Color Set with Brush', - Sales: '12.78', - Quantity: '3', - Discount: '0', - Profit: '5.2398' - }, - { - 'Row ID': '7475', - 'Order ID': 'CA-2015-167199', - 'Order Date': '2015/1/6', - 'Ship Date': '2015/1/10', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'ME-17320', - 'Customer Name': 'Maria Etezadi', - Segment: 'Home Office', - Country: 'United States', - City: 'Henderson', - State: 'Kentucky', - 'Postal Code': '42420', - Region: 'South', - 'Product ID': 'FUR-CH-10004063', - Category: 'Furniture', - 'Sub-Category': 'Chairs', - 'Product Name': "Global Deluxe High-Back Manager's Chair", - Sales: '2573.82', - Quantity: '9', - Discount: '0', - Profit: '746.4078' - }, - { - 'Row ID': '7476', - 'Order ID': 'CA-2015-167199', - 'Order Date': '2015/1/6', - 'Ship Date': '2015/1/10', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'ME-17320', - 'Customer Name': 'Maria Etezadi', - Segment: 'Home Office', - Country: 'United States', - City: 'Henderson', - State: 'Kentucky', - 'Postal Code': '42420', - Region: 'South', - 'Product ID': 'OFF-BI-10004632', - Category: 'Office Supplies', - 'Sub-Category': 'Binders', - 'Product Name': 'Ibico Hi-Tech Manual Binding System', - Sales: '609.98', - Quantity: '2', - Discount: '0', - Profit: '274.491' - }, - { - 'Row ID': '7477', - 'Order ID': 'CA-2015-167199', - 'Order Date': '2015/1/6', - 'Ship Date': '2015/1/10', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'ME-17320', - 'Customer Name': 'Maria Etezadi', - Segment: 'Home Office', - Country: 'United States', - City: 'Henderson', - State: 'Kentucky', - 'Postal Code': '42420', - Region: 'South', - 'Product ID': 'OFF-AR-10001662', - Category: 'Office Supplies', - 'Sub-Category': 'Art', - 'Product Name': 'Rogers Handheld Barrel Pencil Sharpener', - Sales: '5.48', - Quantity: '2', - Discount: '0', - Profit: '1.4796' - }, - { - 'Row ID': '7478', - 'Order ID': 'CA-2015-167199', - 'Order Date': '2015/1/6', - 'Ship Date': '2015/1/10', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'ME-17320', - 'Customer Name': 'Maria Etezadi', - Segment: 'Home Office', - Country: 'United States', - City: 'Henderson', - State: 'Kentucky', - 'Postal Code': '42420', - Region: 'South', - 'Product ID': 'TEC-PH-10004977', - Category: 'Technology', - 'Sub-Category': 'Phones', - 'Product Name': 'GE 30524EE4', - Sales: '391.98', - Quantity: '2', - Discount: '0', - Profit: '113.6742' - }, - { - 'Row ID': '7479', - 'Order ID': 'CA-2015-167199', - 'Order Date': '2015/1/6', - 'Ship Date': '2015/1/10', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'ME-17320', - 'Customer Name': 'Maria Etezadi', - Segment: 'Home Office', - Country: 'United States', - City: 'Henderson', - State: 'Kentucky', - 'Postal Code': '42420', - Region: 'South', - 'Product ID': 'TEC-PH-10004539', - Category: 'Technology', - 'Sub-Category': 'Phones', - 'Product Name': 'Wireless Extenders zBoost YX545 SOHO Signal Booster', - Sales: '755.96', - Quantity: '4', - Discount: '0', - Profit: '204.1092' - }, - { - 'Row ID': '7480', - 'Order ID': 'CA-2015-167199', - 'Order Date': '2015/1/6', - 'Ship Date': '2015/1/10', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'ME-17320', - 'Customer Name': 'Maria Etezadi', - Segment: 'Home Office', - Country: 'United States', - City: 'Henderson', - State: 'Kentucky', - 'Postal Code': '42420', - Region: 'South', - 'Product ID': 'OFF-FA-10001883', - Category: 'Office Supplies', - 'Sub-Category': 'Fasteners', - 'Product Name': 'Alliance Super-Size Bands, Assorted Sizes', - Sales: '31.12', - Quantity: '4', - Discount: '0', - Profit: '0.3112' - }, - { - 'Row ID': '7481', - 'Order ID': 'CA-2015-167199', - 'Order Date': '2015/1/6', - 'Ship Date': '2015/1/10', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'ME-17320', - 'Customer Name': 'Maria Etezadi', - Segment: 'Home Office', - Country: 'United States', - City: 'Henderson', - State: 'Kentucky', - 'Postal Code': '42420', - Region: 'South', - 'Product ID': 'OFF-PA-10000955', - Category: 'Office Supplies', - 'Sub-Category': 'Paper', - 'Product Name': 'Southworth 25% Cotton Granite Paper & Envelopes', - Sales: '6.54', - Quantity: '1', - Discount: '0', - Profit: '3.0084' - }, - { - 'Row ID': '7661', - 'Order ID': 'CA-2015-105417', - 'Order Date': '2015/1/7', - 'Ship Date': '2015/1/12', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'VS-21820', - 'Customer Name': 'Vivek Sundaresam', - Segment: 'Consumer', - Country: 'United States', - City: 'Huntsville', - State: 'Texas', - 'Postal Code': '77340', - Region: 'Central', - 'Product ID': 'FUR-FU-10004864', - Category: 'Furniture', - 'Sub-Category': 'Furnishings', - 'Product Name': 'Howard Miller 14-1/2" Diameter Chrome Round Wall Clock', - Sales: '76.728', - Quantity: '3', - Discount: '0.6', - Profit: '-53.7096' - }, - { - 'Row ID': '7662', - 'Order ID': 'CA-2015-105417', - 'Order Date': '2015/1/7', - 'Ship Date': '2015/1/12', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'VS-21820', - 'Customer Name': 'Vivek Sundaresam', - Segment: 'Consumer', - Country: 'United States', - City: 'Huntsville', - State: 'Texas', - 'Postal Code': '77340', - Region: 'Central', - 'Product ID': 'OFF-BI-10003708', - Category: 'Office Supplies', - 'Sub-Category': 'Binders', - 'Product Name': 'Acco Four Pocket Poly Ring Binder with Label Holder, Smoke, 1"', - Sales: '10.43', - Quantity: '7', - Discount: '0.8', - Profit: '-18.2525' - }, - { - 'Row ID': '593', - 'Order ID': 'CA-2015-135405', - 'Order Date': '2015/1/9', - 'Ship Date': '2015/1/13', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'MS-17830', - 'Customer Name': 'Melanie Seite', - Segment: 'Consumer', - Country: 'United States', - City: 'Laredo', - State: 'Texas', - 'Postal Code': '78041', - Region: 'Central', - 'Product ID': 'OFF-AR-10004078', - Category: 'Office Supplies', - 'Sub-Category': 'Art', - 'Product Name': 'Newell 312', - Sales: '9.344', - Quantity: '2', - Discount: '0.2', - Profit: '1.168' - }, - { - 'Row ID': '594', - 'Order ID': 'CA-2015-135405', - 'Order Date': '2015/1/9', - 'Ship Date': '2015/1/13', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'MS-17830', - 'Customer Name': 'Melanie Seite', - Segment: 'Consumer', - Country: 'United States', - City: 'Laredo', - State: 'Texas', - 'Postal Code': '78041', - Region: 'Central', - 'Product ID': 'TEC-AC-10001266', - Category: 'Technology', - 'Sub-Category': 'Accessories', - 'Product Name': 'Memorex Micro Travel Drive 8 GB', - Sales: '31.2', - Quantity: '3', - Discount: '0.2', - Profit: '9.75' - }, - { - 'Row ID': '866', - 'Order ID': 'CA-2015-149020', - 'Order Date': '2015/1/10', - 'Ship Date': '2015/1/15', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'AJ-10780', - 'Customer Name': 'Anthony Jacobs', - Segment: 'Corporate', - Country: 'United States', - City: 'Springfield', - State: 'Virginia', - 'Postal Code': '22153', - Region: 'South', - 'Product ID': 'OFF-LA-10004272', - Category: 'Office Supplies', - 'Sub-Category': 'Labels', - 'Product Name': 'Avery 482', - Sales: '2.89', - Quantity: '1', - Discount: '0', - Profit: '1.3583' - }, - { - 'Row ID': '867', - 'Order ID': 'CA-2015-149020', - 'Order Date': '2015/1/10', - 'Ship Date': '2015/1/15', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'AJ-10780', - 'Customer Name': 'Anthony Jacobs', - Segment: 'Corporate', - Country: 'United States', - City: 'Springfield', - State: 'Virginia', - 'Postal Code': '22153', - Region: 'South', - 'Product ID': 'FUR-FU-10000965', - Category: 'Furniture', - 'Sub-Category': 'Furnishings', - 'Product Name': 'Howard Miller 11-1/2" Diameter Ridgewood Wall Clock', - Sales: '51.94', - Quantity: '1', - Discount: '0', - Profit: '21.2954' - }, - { - 'Row ID': '717', - 'Order ID': 'CA-2015-130092', - 'Order Date': '2015/1/11', - 'Ship Date': '2015/1/14', - 'Ship Mode': 'First Class', - 'Customer ID': 'SV-20365', - 'Customer Name': 'Seth Vernon', - Segment: 'Consumer', - Country: 'United States', - City: 'Dover', - State: 'Delaware', - 'Postal Code': '19901', - Region: 'East', - 'Product ID': 'FUR-FU-10000010', - Category: 'Furniture', - 'Sub-Category': 'Furnishings', - 'Product Name': 'DAX Value U-Channel Document Frames, Easel Back', - Sales: '9.94', - Quantity: '2', - Discount: '0', - Profit: '3.0814' - }, - { - 'Row ID': '764', - 'Order ID': 'CA-2015-162775', - 'Order Date': '2015/1/13', - 'Ship Date': '2015/1/15', - 'Ship Mode': 'Second Class', - 'Customer ID': 'CS-12250', - 'Customer Name': 'Chris Selesnick', - Segment: 'Corporate', - Country: 'United States', - City: 'Bossier City', - State: 'Louisiana', - 'Postal Code': '71111', - Region: 'South', - 'Product ID': 'OFF-EN-10001990', - Category: 'Office Supplies', - 'Sub-Category': 'Envelopes', - 'Product Name': 'Staple envelope', - Sales: '11.36', - Quantity: '2', - Discount: '0', - Profit: '5.3392' - }, - { - 'Row ID': '765', - 'Order ID': 'CA-2015-162775', - 'Order Date': '2015/1/13', - 'Ship Date': '2015/1/15', - 'Ship Mode': 'Second Class', - 'Customer ID': 'CS-12250', - 'Customer Name': 'Chris Selesnick', - Segment: 'Corporate', - Country: 'United States', - City: 'Bossier City', - State: 'Louisiana', - 'Postal Code': '71111', - Region: 'South', - 'Product ID': 'OFF-EN-10001532', - Category: 'Office Supplies', - 'Sub-Category': 'Envelopes', - 'Product Name': 'Brown Kraft Recycled Envelopes', - Sales: '50.94', - Quantity: '3', - Discount: '0', - Profit: '25.47' - }, - { - 'Row ID': '766', - 'Order ID': 'CA-2015-162775', - 'Order Date': '2015/1/13', - 'Ship Date': '2015/1/15', - 'Ship Mode': 'Second Class', - 'Customer ID': 'CS-12250', - 'Customer Name': 'Chris Selesnick', - Segment: 'Corporate', - Country: 'United States', - City: 'Bossier City', - State: 'Louisiana', - 'Postal Code': '71111', - Region: 'South', - 'Product ID': 'TEC-AC-10003174', - Category: 'Technology', - 'Sub-Category': 'Accessories', - 'Product Name': 'Plantronics S12 Corded Telephone Headset System', - Sales: '646.74', - Quantity: '6', - Discount: '0', - Profit: '258.696' - }, - { - 'Row ID': '767', - 'Order ID': 'CA-2015-162775', - 'Order Date': '2015/1/13', - 'Ship Date': '2015/1/15', - 'Ship Mode': 'Second Class', - 'Customer ID': 'CS-12250', - 'Customer Name': 'Chris Selesnick', - Segment: 'Corporate', - Country: 'United States', - City: 'Bossier City', - State: 'Louisiana', - 'Postal Code': '71111', - Region: 'South', - 'Product ID': 'OFF-BI-10004187', - Category: 'Office Supplies', - 'Sub-Category': 'Binders', - 'Product Name': '3-ring staple pack', - Sales: '5.64', - Quantity: '3', - Discount: '0', - Profit: '2.7072' - }, - { - 'Row ID': '768', - 'Order ID': 'CA-2015-162775', - 'Order Date': '2015/1/13', - 'Ship Date': '2015/1/15', - 'Ship Mode': 'Second Class', - 'Customer ID': 'CS-12250', - 'Customer Name': 'Chris Selesnick', - Segment: 'Corporate', - Country: 'United States', - City: 'Bossier City', - State: 'Louisiana', - 'Postal Code': '71111', - Region: 'South', - 'Product ID': 'OFF-ST-10000025', - Category: 'Office Supplies', - 'Sub-Category': 'Storage', - 'Product Name': 'Fellowes Stor/Drawer Steel Plus Storage Drawers', - Sales: '572.58', - Quantity: '6', - Discount: '0', - Profit: '34.3548' - }, - { - 'Row ID': '2979', - 'Order ID': 'CA-2015-109232', - 'Order Date': '2015/1/13', - 'Ship Date': '2015/1/16', - 'Ship Mode': 'Second Class', - 'Customer ID': 'ND-18370', - 'Customer Name': 'Natalie DeCherney', - Segment: 'Consumer', - Country: 'United States', - City: 'Mount Pleasant', - State: 'South Carolina', - 'Postal Code': '29464', - Region: 'South', - 'Product ID': 'FUR-CH-10000422', - Category: 'Furniture', - 'Sub-Category': 'Chairs', - 'Product Name': 'Global Highback Leather Tilter in Burgundy', - Sales: '545.94', - Quantity: '6', - Discount: '0', - Profit: '87.3504' - }, - { - 'Row ID': '4938', - 'Order ID': 'CA-2015-157147', - 'Order Date': '2015/1/13', - 'Ship Date': '2015/1/18', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'BD-11605', - 'Customer Name': 'Brian Dahlen', - Segment: 'Consumer', - Country: 'United States', - City: 'San Francisco', - State: 'California', - 'Postal Code': '94109', - Region: 'West', - 'Product ID': 'OFF-ST-10000078', - Category: 'Office Supplies', - 'Sub-Category': 'Storage', - 'Product Name': 'Tennsco 6- and 18-Compartment Lockers', - Sales: '1325.85', - Quantity: '5', - Discount: '0', - Profit: '238.653' - }, - { - 'Row ID': '4939', - 'Order ID': 'CA-2015-157147', - 'Order Date': '2015/1/13', - 'Ship Date': '2015/1/18', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'BD-11605', - 'Customer Name': 'Brian Dahlen', - Segment: 'Consumer', - Country: 'United States', - City: 'San Francisco', - State: 'California', - 'Postal Code': '94109', - Region: 'West', - 'Product ID': 'FUR-BO-10003034', - Category: 'Furniture', - 'Sub-Category': 'Bookcases', - 'Product Name': "O'Sullivan Elevations Bookcase, Cherry Finish", - Sales: '333.999', - Quantity: '3', - Discount: '0.15', - Profit: '3.9294' - }, - { - 'Row ID': '4940', - 'Order ID': 'CA-2015-157147', - 'Order Date': '2015/1/13', - 'Ship Date': '2015/1/18', - 'Ship Mode': 'Standard Class', - 'Customer ID': 'BD-11605', - 'Customer Name': 'Brian Dahlen', - Segment: 'Consumer', - Country: 'United States', - City: 'San Francisco', - State: 'California', - 'Postal Code': '94109', - Region: 'West', - 'Product ID': 'OFF-AR-10003514', - Category: 'Office Supplies', - 'Sub-Category': 'Art', - 'Product Name': '4009 Highlighters by Sanford', - Sales: '19.9', - Quantity: '5', - Discount: '0', - Profit: '6.567' - } -]; - -export const customListRecords = [ - { - bloggerId: 1, - bloggerName: 'Virtual Anchor Xiaohua', - bloggerAvatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/flower.jpg', - introduction: - 'Hi everyone, I am Xiaohua, the virtual host. I am a little fairy who likes games, animation and food. I hope to share happy moments with you through live broadcast.', - fansCount: 400, - worksCount: 10, - viewCount: 5, - city: 'Dream City', - tags: ['game', 'anime', 'food'] - }, - { - bloggerId: 2, - bloggerName: 'Virtual anchor little wolf', - bloggerAvatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/wolf.jpg', - introduction: - 'Hello everyone, I am the virtual anchor Little Wolf. I like music, travel and photography, and I hope to explore the beauty of the world with you through live broadcast.', - fansCount: 800, - worksCount: 20, - viewCount: 15, - city: 'City of Music', - tags: ['music', 'travel', 'photography'] - }, - { - bloggerId: 3, - bloggerName: 'Virtual anchor bunny', - bloggerAvatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/rabbit.jpg', - introduction: - 'Hello everyone, I am the virtual anchor Xiaotu. I like painting, handicrafts and beauty makeup. I hope to share creativity and fashion with you through live broadcast.', - fansCount: 600, - worksCount: 15, - viewCount: 10, - city: 'City of Art', - tags: ['painting', 'handmade', 'beauty makeup'] - }, - { - bloggerId: 4, - bloggerName: 'Virtual anchor kitten', - bloggerAvatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/cat.jpg', - introduction: - 'Hello everyone, I am the virtual host Kitty. I am a lazy cat who likes dancing, fitness and cooking. I hope to live a healthy and happy life with everyone through the live broadcast.', - fansCount: 1000, - worksCount: 30, - viewCount: 20, - city: 'Health City', - tags: ['dance', 'fitness', 'cooking'] - }, - { - bloggerId: 5, - bloggerName: 'Virtual anchor Bear', - bloggerAvatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/bear.jpg', - introduction: - 'Hello everyone, I am the virtual host Xiaoxiong. A little wise man who likes movies, reading and philosophy, I hope to explore the meaning of life with you through live broadcast.', - fansCount: 1200, - worksCount: 25, - viewCount: 18, - city: 'City of Wisdom', - tags: ['Movie', 'Literature'] - }, - { - bloggerId: 6, - bloggerName: 'Virtual anchor bird', - bloggerAvatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/bird.jpeg', - introduction: - 'Hello everyone, I am the virtual anchor Xiaoniao. I like singing, acting and variety shows. I hope to be happy with everyone through the live broadcast.', - fansCount: 900, - worksCount: 12, - viewCount: 8, - city: 'Happy City', - tags: ['music', 'performance', 'variety'] - } -]; - -export const pivotChartColumns = [ - { - dimensionKey: 'Region', - title: 'Region', - headerStyle: { - textStick: true - } - }, - 'Category' -]; -export const pivotChartRows = [ - { - dimensionKey: 'Order Year', - title: 'Order Year', - headerStyle: { - textStick: true - } - }, - 'Ship Mode' -]; -export const pivotChartIndicators = [ - { - indicatorKey: 'Quantity', - title: 'Quantity', - width: 'auto', - cellType: 'chart', - chartModule: 'vchart', - chartSpec: { - stack: true, - type: 'bar', - data: { - id: 'data', - fields: { - 'Sub-Category': { - sortIndex: 0, - domain: [ - 'Chairs', - 'Tables', - 'Bookcases', - 'Furnishings', - 'Binders', - 'Art', - 'Storage', - 'Appliances', - 'Envelopes', - 'Fasteners', - 'Paper', - 'Labels', - 'Supplies', - 'Accessories', - 'Phones', - 'Copiers', - 'Machines' - ] - }, - 'Segment-Indicator': { - sortIndex: 1, - domain: [ - 'Consumer-Quantity', - 'Corporate-Quantity', - 'Home Office-Quantity', - 'Consumer-Sales', - 'Corporate-Sales', - 'Home Office-Sales', - 'Consumer-Profit', - 'Corporate-Profit', - 'Home Office-Profit' - ] - } - } - }, - xField: ['Sub-Category'], - yField: 'Quantity', - seriesField: 'Segment-Indicator', - axes: [ - { orient: 'left', visible: true, label: { visible: true } }, - { orient: 'bottom', visible: true } - ], - bar: { - state: { - selected: { fill: 'yellow' }, - selected_reverse: { opacity: 0.2 } - } - }, - scales: [ - { - id: 'color', - type: 'ordinal', - domain: [ - 'Consumer-Quantity', - 'Corporate-Quantity', - 'Home Office-Quantity', - 'Consumer-Sales', - 'Corporate-Sales', - 'Home Office-Sales', - 'Consumer-Profit', - 'Corporate-Profit', - 'Home Office-Profit' - ], - range: [ - '#2E62F1', - '#4DC36A', - '#FF8406', - '#FFCC00', - '#4F44CF', - '#5AC8FA', - '#003A8C', - '#B08AE2', - '#FF6341', - '#98DD62', - '#07A199', - '#87DBDD' - ] - } - ] - }, - style: { padding: 1 } - }, - { - indicatorKey: 'Sales', - title: 'Sales & Profit', - cellType: 'chart', - chartModule: 'vchart', - chartSpec: { - type: 'common', - series: [ - { - type: 'bar', - data: { - id: 'data1', - fields: { - 'Sub-Category': { - sortIndex: 0, - domain: [ - 'Chairs', - 'Tables', - 'Bookcases', - 'Furnishings', - 'Binders', - 'Art', - 'Storage', - 'Appliances', - 'Envelopes', - 'Fasteners', - 'Paper', - 'Labels', - 'Supplies', - 'Accessories', - 'Phones', - 'Copiers', - 'Machines' - ] - }, - 'Segment-Indicator': { - sortIndex: 1, - domain: [ - 'Consumer-Quantity', - 'Corporate-Quantity', - 'Home Office-Quantity', - 'Consumer-Sales', - 'Corporate-Sales', - 'Home Office-Sales', - 'Consumer-Profit', - 'Corporate-Profit', - 'Home Office-Profit' - ] - } - } - }, - stack: true, - xField: ['Sub-Category'], - yField: 'Sales', - seriesField: 'Segment-Indicator', - bar: { - state: { - selected: { fill: 'yellow' }, - selected_reverse: { opacity: 0.2 } - } - } - }, - { - type: 'line', - data: { - id: 'data2', - fields: { - 'Sub-Category': { - sortIndex: 0, - domain: [ - 'Chairs', - 'Tables', - 'Bookcases', - 'Furnishings', - 'Binders', - 'Art', - 'Storage', - 'Appliances', - 'Envelopes', - 'Fasteners', - 'Paper', - 'Labels', - 'Supplies', - 'Phones', - 'Accessories', - 'Machines', - 'Copiers' - ] - }, - 'Segment-Indicator': { - sortIndex: 1, - domain: [ - 'Consumer-Quantity', - 'Corporate-Quantity', - 'Home Office-Quantity', - 'Consumer-Sales', - 'Corporate-Sales', - 'Home Office-Sales', - 'Consumer-Profit', - 'Corporate-Profit', - 'Home Office-Profit' - ] - } - } - }, - stack: false, - xField: ['Sub-Category'], - yField: 'Profit', - seriesField: 'Segment-Indicator', - line: { - state: { - selected: { lineWidth: 3 }, - selected_reverse: { lineWidth: 1 } - } - }, - point: { - state: { - selected: { fill: 'yellow' }, - selected_reverse: { fill: '#ddd' } - } - } - } - ], - scales: [ - { - id: 'color', - type: 'ordinal', - domain: [ - 'Consumer-Quantity', - 'Corporate-Quantity', - 'Home Office-Quantity', - 'Consumer-Sales', - 'Corporate-Sales', - 'Home Office-Sales', - 'Consumer-Profit', - 'Corporate-Profit', - 'Home Office-Profit' - ], - range: [ - '#2E62F1', - '#4DC36A', - '#FF8406', - '#FFCC00', - '#4F44CF', - '#5AC8FA', - '#003A8C', - '#B08AE2', - '#FF6341', - '#98DD62', - '#07A199', - '#87DBDD' - ] - } - ] - }, - style: { padding: 1 } - } -]; diff --git a/src/views/plugin/tables/vtable/index.vue b/src/views/plugin/tables/vtable/index.vue deleted file mode 100644 index 85cf4e4..0000000 --- a/src/views/plugin/tables/vtable/index.vue +++ /dev/null @@ -1,408 +0,0 @@ - - - diff --git a/src/views/plugin/typeit/index.vue b/src/views/plugin/typeit/index.vue deleted file mode 100644 index 00bf4d7..0000000 --- a/src/views/plugin/typeit/index.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/src/views/plugin/video/index.vue b/src/views/plugin/video/index.vue deleted file mode 100644 index 1adf9e7..0000000 --- a/src/views/plugin/video/index.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - - - diff --git a/src/views/product/dashboard/index.vue.bak b/src/views/product/dashboard/index.vue.bak deleted file mode 100644 index cabdd8a..0000000 --- a/src/views/product/dashboard/index.vue.bak +++ /dev/null @@ -1,767 +0,0 @@ - - - - - diff --git a/src/views/project/project/overview/index.vue.bak b/src/views/project/project/overview/index.vue.bak deleted file mode 100644 index 27972d2..0000000 --- a/src/views/project/project/overview/index.vue.bak +++ /dev/null @@ -1,785 +0,0 @@ - - - - -