From 46e8db8f3fdb1c6f583afd4f0f27c9d3514fb550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Mon, 5 Feb 2024 17:04:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/Index copy.vue | 381 --------------- src/views/Home/Index.vue | 14 - src/views/Home/Index2.vue | 319 ------------ src/views/Home/components/material.vue | 336 ------------- src/views/Home/components/produce.vue | 286 ----------- src/views/Home/components/product.vue | 313 ------------ src/views/Home/components/supplierIndex.vue | 452 ------------------ src/views/Home/echarts-data.ts | 286 ----------- src/views/Home/types.ts | 55 --- src/views/Login/Login.vue | 104 ---- src/views/Login/components/LoginForm.vue | 284 ----------- src/views/Login/components/LoginFormTitle.vue | 26 - src/views/Login/components/MobileForm.vue | 225 --------- src/views/Login/components/QrCodeForm.vue | 30 -- src/views/Login/components/RegisterForm.vue | 142 ------ src/views/Login/components/SSOLogin.vue | 199 -------- src/views/Login/components/index.ts | 8 - src/views/Login/components/useLogin.ts | 42 -- src/views/Profile/Index.vue | 64 --- src/views/Profile/components/BasicInfo.vue | 92 ---- src/views/Profile/components/ProfileUser.vue | 99 ---- src/views/Profile/components/ResetPwd.vue | 73 --- src/views/Profile/components/UserAvatar.vue | 39 -- src/views/Profile/components/UserSocial.vue | 94 ---- src/views/Profile/components/index.ts | 7 - src/views/Redirect/Redirect.vue | 28 -- src/views/report/goview/index.vue | 10 - src/views/report/jmreport/index.vue | 13 - 28 files changed, 4021 deletions(-) delete mode 100644 src/views/Home/Index copy.vue delete mode 100644 src/views/Home/Index.vue delete mode 100644 src/views/Home/Index2.vue delete mode 100644 src/views/Home/components/material.vue delete mode 100644 src/views/Home/components/produce.vue delete mode 100644 src/views/Home/components/product.vue delete mode 100644 src/views/Home/components/supplierIndex.vue delete mode 100644 src/views/Home/echarts-data.ts delete mode 100644 src/views/Home/types.ts delete mode 100644 src/views/Login/Login.vue delete mode 100644 src/views/Login/components/LoginForm.vue delete mode 100644 src/views/Login/components/LoginFormTitle.vue delete mode 100644 src/views/Login/components/MobileForm.vue delete mode 100644 src/views/Login/components/QrCodeForm.vue delete mode 100644 src/views/Login/components/RegisterForm.vue delete mode 100644 src/views/Login/components/SSOLogin.vue delete mode 100644 src/views/Login/components/index.ts delete mode 100644 src/views/Login/components/useLogin.ts delete mode 100644 src/views/Profile/Index.vue delete mode 100644 src/views/Profile/components/BasicInfo.vue delete mode 100644 src/views/Profile/components/ProfileUser.vue delete mode 100644 src/views/Profile/components/ResetPwd.vue delete mode 100644 src/views/Profile/components/UserAvatar.vue delete mode 100644 src/views/Profile/components/UserSocial.vue delete mode 100644 src/views/Profile/components/index.ts delete mode 100644 src/views/Redirect/Redirect.vue delete mode 100644 src/views/report/goview/index.vue delete mode 100644 src/views/report/jmreport/index.vue diff --git a/src/views/Home/Index copy.vue b/src/views/Home/Index copy.vue deleted file mode 100644 index 121ec6a8b..000000000 --- a/src/views/Home/Index copy.vue +++ /dev/null @@ -1,381 +0,0 @@ - - diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue deleted file mode 100644 index 1cc81ac3a..000000000 --- a/src/views/Home/Index.vue +++ /dev/null @@ -1,14 +0,0 @@ - - diff --git a/src/views/Home/Index2.vue b/src/views/Home/Index2.vue deleted file mode 100644 index c9429ab10..000000000 --- a/src/views/Home/Index2.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - diff --git a/src/views/Home/components/material.vue b/src/views/Home/components/material.vue deleted file mode 100644 index 83aadaa35..000000000 --- a/src/views/Home/components/material.vue +++ /dev/null @@ -1,336 +0,0 @@ - - - - diff --git a/src/views/Home/components/produce.vue b/src/views/Home/components/produce.vue deleted file mode 100644 index 294bc28ef..000000000 --- a/src/views/Home/components/produce.vue +++ /dev/null @@ -1,286 +0,0 @@ - - - - diff --git a/src/views/Home/components/product.vue b/src/views/Home/components/product.vue deleted file mode 100644 index 5124d9c11..000000000 --- a/src/views/Home/components/product.vue +++ /dev/null @@ -1,313 +0,0 @@ - - - - diff --git a/src/views/Home/components/supplierIndex.vue b/src/views/Home/components/supplierIndex.vue deleted file mode 100644 index c665f9867..000000000 --- a/src/views/Home/components/supplierIndex.vue +++ /dev/null @@ -1,452 +0,0 @@ - - - - diff --git a/src/views/Home/echarts-data.ts b/src/views/Home/echarts-data.ts deleted file mode 100644 index 15c7b4afd..000000000 --- a/src/views/Home/echarts-data.ts +++ /dev/null @@ -1,286 +0,0 @@ -import { EChartsOption } from 'echarts' - -const { t } = useI18n() - -export const lineOptions: EChartsOption = { - - xAxis: { - data: [ 1, 2, 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 - ], - boundaryGap: false, - axisTick: { - show: false - } - }, - grid: { - left: 20, - right: 20, - bottom: 20, - top: 50, - containLabel: true - }, - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'cross' - }, - padding: [5, 10] - }, - yAxis: { - axisTick: { - show: false - } - }, - legend: { - data: ['销售','哈哈'], - top: 20 - }, - series: [ - { - name: '销售', - smooth: true, - type: 'line', - data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], - animationDuration: 2800, - animationEasing: 'cubicInOut' - }, - { - name: '哈哈', - smooth: true, - type: 'line', - itemStyle: {}, - data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], - animationDuration: 2800, - animationEasing: 'quadraticOut' - } - ] -} - -export const pieOptions: EChartsOption = { - // title: { - // text: t('analysis.userAccessSource'), - // left: 'center' - // }, - tooltip: { - trigger: 'item', - formatter: '{a}
{b} : {c} ({d}%)' - }, - legend: { - orient: 'vertical', - left: 'left', - top:20, - data: [ - t('analysis.directAccess'), - t('analysis.mailMarketing'), - t('analysis.allianceAdvertising'), - t('analysis.videoAdvertising'), - t('analysis.searchEngines') - ] - }, - series: [ - { - name: t('analysis.userAccessSource'), - type: 'pie', - radius: '55%', - center: ['50%', '60%'], - data: [ - { value: 335, name: t('analysis.directAccess') }, - { value: 310, name: t('analysis.mailMarketing') }, - { value: 234, name: t('analysis.allianceAdvertising') }, - { value: 135, name: t('analysis.videoAdvertising') }, - { value: 1548, name: t('analysis.searchEngines') } - ] - } - ] -} - -export const barOptions: EChartsOption = { - title: { - text: '', - left: 'center' - }, - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow' - } - }, - grid: { - left: 50, - right: 20, - bottom: 20 - }, - xAxis: { - type: 'category', - data: [], - axisTick: { - alignWithLabel: true - } - }, - yAxis: { - type: 'value' - }, - series: [ - { - name: t('analysis.activeQuantity'), - data: [], - type: 'bar' - } - ] -} - -export const radarOption: EChartsOption = { - legend: { - data: [t('workplace.personal'), t('workplace.team')] - }, - radar: { - // shape: 'circle', - indicator: [ - { name: t('workplace.quote'), max: 65 }, - { name: t('workplace.contribution'), max: 160 }, - { name: t('workplace.hot'), max: 300 }, - { name: t('workplace.yield'), max: 130 }, - { name: t('workplace.follow'), max: 100 } - ] - }, - series: [ - { - name: `xxx${t('workplace.index')}`, - type: 'radar', - data: [ - { - value: [42, 30, 20, 35, 80], - name: t('workplace.personal') - }, - { - value: [50, 140, 290, 100, 90], - name: t('workplace.team') - } - ] - } - ] -} - -export const wordOptions = { - series: [ - { - type: 'wordCloud', - gridSize: 2, - sizeRange: [12, 50], - rotationRange: [-90, 90], - shape: 'pentagon', - width: 600, - height: 400, - drawOutOfBound: true, - textStyle: { - color: function () { - return ( - 'rgb(' + - [ - Math.round(Math.random() * 160), - Math.round(Math.random() * 160), - Math.round(Math.random() * 160) - ].join(',') + - ')' - ) - } - }, - emphasis: { - textStyle: { - shadowBlur: 10, - shadowColor: '#333' - } - }, - data: [ - { - name: 'Sam S Club', - value: 10000, - textStyle: { - color: 'black' - }, - emphasis: { - textStyle: { - color: 'red' - } - } - }, - { - name: 'Macys', - value: 6181 - }, - { - name: 'Amy Schumer', - value: 4386 - }, - { - name: 'Jurassic World', - value: 4055 - }, - { - name: 'Charter Communications', - value: 2467 - }, - { - name: 'Chick Fil A', - value: 2244 - }, - { - name: 'Planet Fitness', - value: 1898 - }, - { - name: 'Pitch Perfect', - value: 1484 - }, - { - name: 'Express', - value: 1112 - }, - { - name: 'Home', - value: 965 - }, - { - name: 'Johnny Depp', - value: 847 - }, - { - name: 'Lena Dunham', - value: 582 - }, - { - name: 'Lewis Hamilton', - value: 555 - }, - { - name: 'KXAN', - value: 550 - }, - { - name: 'Mary Ellen Mark', - value: 462 - }, - { - name: 'Farrah Abraham', - value: 366 - }, - { - name: 'Rita Ora', - value: 360 - }, - { - name: 'Serena Williams', - value: 282 - }, - { - name: 'NCAA baseball tournament', - value: 273 - }, - { - name: 'Point Break', - value: 265 - } - ] - } - ] -} diff --git a/src/views/Home/types.ts b/src/views/Home/types.ts deleted file mode 100644 index e6313d36c..000000000 --- a/src/views/Home/types.ts +++ /dev/null @@ -1,55 +0,0 @@ -export type WorkplaceTotal = { - project: number - access: number - todo: number -} - -export type Project = { - name: string - icon: string - message: string - personal: string - time: Date | number | string -} - -export type Notice = { - title: string - type: string - keys: string[] - date: Date | number | string -} - -export type Shortcut = { - name: string - icon: string - url: string -} - -export type RadarData = { - personal: number - team: number - max: number - name: string -} -export type AnalysisTotalTypes = { - users: number - messages: number - moneys: number - shoppings: number -} - -export type UserAccessSource = { - value: number - name: string -} - -export type WeeklyUserActivity = { - value: number - name: string -} - -export type MonthlySales = { - name: string - estimate: number - actual: number -} diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue deleted file mode 100644 index a0025ab66..000000000 --- a/src/views/Login/Login.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - - diff --git a/src/views/Login/components/LoginForm.vue b/src/views/Login/components/LoginForm.vue deleted file mode 100644 index 6c235f45a..000000000 --- a/src/views/Login/components/LoginForm.vue +++ /dev/null @@ -1,284 +0,0 @@ - - - - diff --git a/src/views/Login/components/LoginFormTitle.vue b/src/views/Login/components/LoginFormTitle.vue deleted file mode 100644 index cdf4facce..000000000 --- a/src/views/Login/components/LoginFormTitle.vue +++ /dev/null @@ -1,26 +0,0 @@ - - diff --git a/src/views/Login/components/MobileForm.vue b/src/views/Login/components/MobileForm.vue deleted file mode 100644 index ebb36b84e..000000000 --- a/src/views/Login/components/MobileForm.vue +++ /dev/null @@ -1,225 +0,0 @@ - - - - diff --git a/src/views/Login/components/QrCodeForm.vue b/src/views/Login/components/QrCodeForm.vue deleted file mode 100644 index 31d28453e..000000000 --- a/src/views/Login/components/QrCodeForm.vue +++ /dev/null @@ -1,30 +0,0 @@ - - diff --git a/src/views/Login/components/RegisterForm.vue b/src/views/Login/components/RegisterForm.vue deleted file mode 100644 index 23b3bd428..000000000 --- a/src/views/Login/components/RegisterForm.vue +++ /dev/null @@ -1,142 +0,0 @@ - - diff --git a/src/views/Login/components/SSOLogin.vue b/src/views/Login/components/SSOLogin.vue deleted file mode 100644 index f31ab0e5f..000000000 --- a/src/views/Login/components/SSOLogin.vue +++ /dev/null @@ -1,199 +0,0 @@ - - diff --git a/src/views/Login/components/index.ts b/src/views/Login/components/index.ts deleted file mode 100644 index 204ad73d0..000000000 --- a/src/views/Login/components/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -import LoginForm from './LoginForm.vue' -import MobileForm from './MobileForm.vue' -import LoginFormTitle from './LoginFormTitle.vue' -import RegisterForm from './RegisterForm.vue' -import QrCodeForm from './QrCodeForm.vue' -import SSOLoginVue from './SSOLogin.vue' - -export { LoginForm, MobileForm, LoginFormTitle, RegisterForm, QrCodeForm, SSOLoginVue } diff --git a/src/views/Login/components/useLogin.ts b/src/views/Login/components/useLogin.ts deleted file mode 100644 index b4a02f8f1..000000000 --- a/src/views/Login/components/useLogin.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Ref } from 'vue' - -export enum LoginStateEnum { - LOGIN, - REGISTER, - RESET_PASSWORD, - MOBILE, - QR_CODE, - SSO -} - -const currentState = ref(LoginStateEnum.LOGIN) - -export function useLoginState() { - function setLoginState(state: LoginStateEnum) { - currentState.value = state - } - const getLoginState = computed(() => currentState.value) - - function handleBackLogin() { - setLoginState(LoginStateEnum.LOGIN) - } - - return { - setLoginState, - getLoginState, - handleBackLogin - } -} - -export function useFormValid(formRef: Ref) { - async function validForm() { - const form = unref(formRef) - if (!form) return - const data = await form.validate() - return data as T - } - - return { - validForm - } -} diff --git a/src/views/Profile/Index.vue b/src/views/Profile/Index.vue deleted file mode 100644 index e813f0435..000000000 --- a/src/views/Profile/Index.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - diff --git a/src/views/Profile/components/BasicInfo.vue b/src/views/Profile/components/BasicInfo.vue deleted file mode 100644 index e2189b156..000000000 --- a/src/views/Profile/components/BasicInfo.vue +++ /dev/null @@ -1,92 +0,0 @@ - - diff --git a/src/views/Profile/components/ProfileUser.vue b/src/views/Profile/components/ProfileUser.vue deleted file mode 100644 index b493499f3..000000000 --- a/src/views/Profile/components/ProfileUser.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - - diff --git a/src/views/Profile/components/ResetPwd.vue b/src/views/Profile/components/ResetPwd.vue deleted file mode 100644 index 477be91f4..000000000 --- a/src/views/Profile/components/ResetPwd.vue +++ /dev/null @@ -1,73 +0,0 @@ - - diff --git a/src/views/Profile/components/UserAvatar.vue b/src/views/Profile/components/UserAvatar.vue deleted file mode 100644 index c20168fa7..000000000 --- a/src/views/Profile/components/UserAvatar.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - - diff --git a/src/views/Profile/components/UserSocial.vue b/src/views/Profile/components/UserSocial.vue deleted file mode 100644 index 2f021abfd..000000000 --- a/src/views/Profile/components/UserSocial.vue +++ /dev/null @@ -1,94 +0,0 @@ - - diff --git a/src/views/Profile/components/index.ts b/src/views/Profile/components/index.ts deleted file mode 100644 index 9e1883cf4..000000000 --- a/src/views/Profile/components/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import BasicInfo from './BasicInfo.vue' -import ProfileUser from './ProfileUser.vue' -import ResetPwd from './ResetPwd.vue' -import UserAvatarVue from './UserAvatar.vue' -import UserSocial from './UserSocial.vue' - -export { BasicInfo, ProfileUser, ResetPwd, UserAvatarVue, UserSocial } diff --git a/src/views/Redirect/Redirect.vue b/src/views/Redirect/Redirect.vue deleted file mode 100644 index f7717ce77..000000000 --- a/src/views/Redirect/Redirect.vue +++ /dev/null @@ -1,28 +0,0 @@ - - diff --git a/src/views/report/goview/index.vue b/src/views/report/goview/index.vue deleted file mode 100644 index 1bac28692..000000000 --- a/src/views/report/goview/index.vue +++ /dev/null @@ -1,10 +0,0 @@ -