This is an automated email from the ASF dual-hosted git repository. liubao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-fence.git
commit 50510437315ec0b697e41e0679a47a3c0a3b9ad7 Author: liubao <[email protected]> AuthorDate: Thu Aug 15 20:35:52 2024 +0800 remove unused pages --- admin-website/src/main/web/src/locale/en-US.ts | 8 - admin-website/src/main/web/src/locale/zh-CN.ts | 8 - .../main/web/src/router/routes/modules/kanban.ts | 12 -- .../main/web/src/router/routes/modules/profile.ts | 29 --- .../main/web/src/router/routes/modules/result.ts | 41 ---- .../views/board/work/components/learn-coach.vue | 217 -------------------- .../src/views/board/work/components/learn-plan.vue | 130 ------------ .../board/work/components/learn-practiced.vue | 212 -------------------- .../board/work/components/learn-probation.vue | 126 ------------ .../views/board/work/components/learn-traini.vue | 221 --------------------- .../src/main/web/src/views/board/work/index.vue | 206 ------------------- .../detail/components/evaluation-detail.vue | 71 ------- .../profile/detail/components/mentor-detail.vue | 34 ---- .../profile/detail/components/plan-detail.vue | 56 ------ .../profile/detail/components/record-detail.vue | 38 ---- .../profile/detail/components/target-detail.vue | 52 ----- .../profile/detail/components/whole-detail.vue | 43 ---- .../main/web/src/views/profile/detail/index.vue | 170 ---------------- .../web/src/views/profile/detail/locale/en-US.ts | 29 --- .../web/src/views/profile/detail/locale/zh-CN.ts | 28 --- .../src/main/web/src/views/profile/index.vue | 7 - .../src/main/web/src/views/result/error/index.vue | 160 --------------- .../web/src/views/result/error/locale/en-US.ts | 7 - .../web/src/views/result/error/locale/zh-CN.ts | 6 - .../src/main/web/src/views/result/index.vue | 7 - .../main/web/src/views/result/success/index.vue | 159 --------------- .../web/src/views/result/success/locale/en-US.ts | 11 - .../web/src/views/result/success/locale/zh-CN.ts | 9 - 28 files changed, 2097 deletions(-) diff --git a/admin-website/src/main/web/src/locale/en-US.ts b/admin-website/src/main/web/src/locale/en-US.ts index db75a69..e274461 100644 --- a/admin-website/src/main/web/src/locale/en-US.ts +++ b/admin-website/src/main/web/src/locale/en-US.ts @@ -1,11 +1,6 @@ import localeLogin from '@/views/login/locale/en-US'; import localeTheme from '@/components/theme/locale/en-US'; -import localeDetailForm from '@/views/profile/detail/locale/en-US'; - -import localeSuccess from '@/views/result/success/locale/en-US'; -import localeError from '@/views/result/error/locale/en-US'; - import localeUserInfo from '@/views/user/info/locale/en-US'; import localeUserSetting from '@/views/user/setting/locale/en-US'; @@ -39,11 +34,8 @@ export default { ...localeTheme, ...localeSettings, ...localeLogin, - ...localeSuccess, - ...localeError, ...localeUserInfo, ...localeUserSetting, - ...localeDetailForm, ...localekanban, ...localeProblems, ...localeHttpError, diff --git a/admin-website/src/main/web/src/locale/zh-CN.ts b/admin-website/src/main/web/src/locale/zh-CN.ts index c17fdeb..4d75e8c 100644 --- a/admin-website/src/main/web/src/locale/zh-CN.ts +++ b/admin-website/src/main/web/src/locale/zh-CN.ts @@ -1,11 +1,6 @@ import localeLogin from '@/views/login/locale/zh-CN'; import localeTheme from '@/components/theme/locale/zh-CN'; -import localeDetailForm from '@/views/profile/detail/locale/zh-CN'; - -import localeSuccess from '@/views/result/success/locale/zh-CN'; -import localeError from '@/views/result/error/locale/zh-CN'; - import localeUserInfo from '@/views/user/info/locale/zh-CN'; import localeUserSetting from '@/views/user/setting/locale/zh-CN'; @@ -39,11 +34,8 @@ export default { ...localeTheme, ...localeSettings, ...localeLogin, - ...localeSuccess, - ...localeError, ...localeUserInfo, ...localeUserSetting, - ...localeDetailForm, ...localekanban, ...localeProblems, ...localeHttpError, diff --git a/admin-website/src/main/web/src/router/routes/modules/kanban.ts b/admin-website/src/main/web/src/router/routes/modules/kanban.ts index 09040fd..b577eec 100644 --- a/admin-website/src/main/web/src/router/routes/modules/kanban.ts +++ b/admin-website/src/main/web/src/router/routes/modules/kanban.ts @@ -25,17 +25,5 @@ export default { roles: [RoleType.admin], }, }, - { - path: 'work', - name: 'Work', - id: 'Work', - label: 'Work', - component: () => import('@/views/board/work/index.vue'), - meta: { - locale: 'menu.board.work', - requiresAuth: true, - roles: [RoleType.admin], - }, - }, ], }; diff --git a/admin-website/src/main/web/src/router/routes/modules/profile.ts b/admin-website/src/main/web/src/router/routes/modules/profile.ts deleted file mode 100644 index 00d46cc..0000000 --- a/admin-website/src/main/web/src/router/routes/modules/profile.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { RoleType } from '@/types/roleType'; - -export default { - path: 'profile', - name: 'Profile', - id: 'Profile', - label: 'Profile', - component: () => import('@/views/profile/index.vue'), - meta: { - locale: 'menu.profile', - requiresAuth: true, - order: 4, - roles: [RoleType.admin], - }, - children: [ - { - path: 'detail', - name: 'Detail', - id: 'Detail', - label: 'Detail', - component: () => import('@/views/profile/detail/index.vue'), - meta: { - locale: 'menu.profile.detail', - requiresAuth: true, - roles: [RoleType.admin], - }, - }, - ], -}; diff --git a/admin-website/src/main/web/src/router/routes/modules/result.ts b/admin-website/src/main/web/src/router/routes/modules/result.ts deleted file mode 100644 index e8ec92e..0000000 --- a/admin-website/src/main/web/src/router/routes/modules/result.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { RoleType } from '@/types/roleType'; - -export default { - path: 'result', - name: 'Result', - id: 'Result', - label: 'Result', - component: () => import('@/views/result/index.vue'), - meta: { - locale: 'menu.result', - requiresAuth: true, - order: 5, - roles: [RoleType.admin, RoleType.user], - }, - children: [ - { - path: 'success', - name: 'Success', - id: 'Success', - label: 'Success', - component: () => import('@/views/result/success/index.vue'), - meta: { - locale: 'menu.result.success', - requiresAuth: true, - roles: [RoleType.admin], - }, - }, - { - path: 'error', - name: 'Error', - id: 'Error', - label: 'Error', - component: () => import('@/views/result/error/index.vue'), - meta: { - locale: 'menu.result.error', - requiresAuth: true, - roles: [RoleType.admin, RoleType.user], - }, - }, - ], -}; diff --git a/admin-website/src/main/web/src/views/board/work/components/learn-coach.vue b/admin-website/src/main/web/src/views/board/work/components/learn-coach.vue deleted file mode 100644 index 0b8b633..0000000 --- a/admin-website/src/main/web/src/views/board/work/components/learn-coach.vue +++ /dev/null @@ -1,217 +0,0 @@ -<template> - <div class="coach-select"> - <h3>{{ $t('work.index.coach') }}</h3> - <tiny-select - v-model="state.project" - :placeholder="$t('baseForm.form.label.placeholder')" - filterable - > - <tiny-option - v-for="item in state.options" - :key="item.value" - :label="$t(item.label)" - :value="item.value" - ></tiny-option> - </tiny-select> - </div> - <div> - <tiny-layout> - <tiny-row :flex="true" justify="center"> - <tiny-col :span="8"> - <div class="col"> - <div class="left"> - <div class="left-content"> - <span class="num">{{ number[0] }}</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <div class="left-title">{{ $t('work.index.trainees') }}</div> - </div> - <div class="divider"></div> - <div class="right"> - <img src="@/assets/images/coach-1.png" /> - </div> - </div> - </tiny-col> - <tiny-col :span="8"> - <div class="col"> - <div class="left"> - <div class="left-content"> - <span class="num">{{ number[1] }}</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <div class="left-title">{{ $t('work.index.coachNum') }}</div> - </div> - <div class="divider"></div> - <div class="right"> - <img src="@/assets/images/coach-2.png" /> - </div> - </div> - </tiny-col> - </tiny-row> - </tiny-layout> - </div> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - Select as TinySelect, - Option as TinyOption, - Loading, - } from '@opentiny/vue'; - import { reactive, onMounted, watch, ref } from 'vue'; - import { getUserData, getUserChange } from '@/api/board'; - - // 加载效果 - const state = reactive<{ - loading: any; - options: any; - project: string; - }>({ - loading: null, - options: [] as any, - project: '', - }); - - // 请求数据接口方法 - const fetchData = async () => { - state.loading = Loading.service({ - text: 'loading...', - target: document.getElementById('container'), - background: 'rgba(0, 0, 0, 0.7)', - }); - try { - const { data } = await getUserData(); - state.options = data.options; - } finally { - state.loading.close(); - } - }; - - // 初始化请求数据 - onMounted(() => { - fetchData(); - }); - - // 切换数据 - let number = ref([]); - const fetchSelect = async (param: string) => { - const { data } = await getUserChange(param); - number.value = data; - }; - - // 切换数据 - watch( - state, - (newValue, oldValue) => { - fetchSelect(newValue.project); - }, - { immediate: true } - ); -</script> - -<style scoped lang="less"> - .col { - display: flex; - justify-content: space-around; - min-height: 150px; - text-align: center; - background: #fff; - border-radius: 10px; - box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05); - } - - .col:hover { - box-shadow: 0 3px 10px 0 rgb(64 98 225 / 45%); - } - - .num { - color: #575d6c; - font-weight: 600; - font-size: 30px; - font-family: PingFang SC, PingFang SC-PingFang SC; - line-height: 36px; - text-align: left; - } - - .left { - width: 50%; - } - - .right { - width: 50%; - } - - .left, - .right { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - } - - .left-title { - display: flex; - align-items: center; - justify-content: center; - color: #4e5969; - font-weight: normal; - font-size: 18px; - line-height: 14px; - } - - .left-content { - display: flex; - align-items: flex-end; - justify-content: center; - padding-bottom: 15px; - } - - .divider { - width: 1px; - height: 41px; - margin: 0 20px; - margin-top: 8%; - background: #7b7e84; - opacity: 0.3; - } - - .coach-select { - display: flex; - align-items: center; - justify-content: space-between; - padding: 12px 8px; - - h3 { - width: 20%; - color: #575d6c; - font-size: 16px; - line-height: 14px; - text-align: left; - } - - div { - width: 323px; - } - - :deep(.tiny-input) { - background-color: #f5f6f7; - - input { - border-radius: 17px; - } - } - } - // responsive - @media (max-width: @screen-md) { - .num { - font-size: 24px; - } - - .left-title { - font-size: 10px; - } - } -</style> diff --git a/admin-website/src/main/web/src/views/board/work/components/learn-plan.vue b/admin-website/src/main/web/src/views/board/work/components/learn-plan.vue deleted file mode 100644 index 943f29e..0000000 --- a/admin-website/src/main/web/src/views/board/work/components/learn-plan.vue +++ /dev/null @@ -1,130 +0,0 @@ -<template> - <tiny-layout> - <tiny-row :flex="true" justify="center"> - <tiny-col> - <div class="col"> - <div class="title"> - <img src="@/assets/images/plan-1.png" /> - <span>{{ $t('work.index.plans') }}</span> - </div> - <div> - <span class="plan-pass">1890</span> - <span class="num"> / {{ $t('work.index.Numbers') }}</span> - </div> - </div> - </tiny-col> - <tiny-col> - <div class="col"> - <div class="title"> - <img src="@/assets/images/plan-2.png" /> - <span>{{ $t('work.index.Unfinished') }}</span> - </div> - <div> - <span class="plan-pass">23</span> - <span class="num"> / {{ $t('work.index.Numbers') }}</span> - </div> - </div> - </tiny-col> - <tiny-col> - <div class="col"> - <div class="title"> - <img src="@/assets/images/plan-3.png" /> - <span>{{ $t('work.index.beOverdue') }}</span> - </div> - <div> - <span class="plan-fail">113</span> - <span class="num"> / {{ $t('work.index.Numbers') }}</span> - </div> - </div> - </tiny-col> - <tiny-col> - <div class="col"> - <div class="title"> - <img src="@/assets/images/plan-4.png" /> - <span>{{ $t('work.index.Overdue') }}</span> - </div> - <div> - <span class="plan-pass">56</span> - <span class="num"> / {{ $t('work.index.Numbers') }}</span> - </div> - </div> - </tiny-col> - </tiny-row> - </tiny-layout> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - } from '@opentiny/vue'; -</script> - -<style scoped lang="less"> - .col { - height: 150px; - text-align: center; - background: #fff; - border-radius: 10px; - box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05); - } - - .col:hover { - box-shadow: 0 3px 10px 0 rgb(64 98 225 / 45%); - } - - .font { - font-weight: 600; - font-size: 48px; - line-height: 36px; - text-align: left; - } - - .col > div { - padding: 15px 0; - color: #252b3a; - font-weight: normal; - font-size: 18px; - line-height: 14px; - text-align: center; - - .plan-pass { - color: #f05d0a; - .font(); - } - - .plan-fail { - color: #252b3a; - .font(); - } - - .num { - color: #adb0b8; - font-size: 14px; - line-height: 14px; - } - } - - .title { - display: flex; - align-items: center; - justify-content: center; - - img { - padding-right: 10px; - } - } - - // responsive - @media (max-width: @screen-md) { - .col > div { - font-size: 10px; - - .plan-pass, - .plan-fail { - font-size: 24px; - } - } - } -</style> diff --git a/admin-website/src/main/web/src/views/board/work/components/learn-practiced.vue b/admin-website/src/main/web/src/views/board/work/components/learn-practiced.vue deleted file mode 100644 index f99ca13..0000000 --- a/admin-website/src/main/web/src/views/board/work/components/learn-practiced.vue +++ /dev/null @@ -1,212 +0,0 @@ -<template> - <div> - <div class="practiced-select"> - <h3>{{ $t('work.index.practiced') }}</h3> - <tiny-select - v-model="state.project" - :placeholder="$t('baseForm.form.label.placeholder')" - filterable - > - <tiny-option - v-for="item in state.options" - :key="item.value" - :label="$t(item.label)" - :value="item.value" - ></tiny-option> - </tiny-select> - </div> - <tiny-layout> - <tiny-row :flex="true" justify="center" class="margin-bottom"> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">{{ number[0] }}</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.allocated') }}</span> - </div> - </tiny-col> - <div class="divider"></div> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">{{ number[1] }}</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.start') }}</span> - </div> - </tiny-col> - <div class="divider"></div> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">{{ number[2] }}</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.practice') }}</span> - </div> - </tiny-col> - </tiny-row> - </tiny-layout> - </div> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - Select as TinySelect, - Option as TinyOption, - Loading, - } from '@opentiny/vue'; - import { reactive, onMounted, watch, ref } from 'vue'; - import { getUserPractic, getUserChange } from '@/api/board'; - - // 加载效果 - const state = reactive<{ - loading: any; - options: any; - project: string; - }>({ - loading: null, - options: [] as any, - project: '', - }); - - // 请求数据接口方法 - const fetchData = async () => { - state.loading = Loading.service({ - text: 'loading...', - target: document.getElementById('container'), - background: 'rgba(0, 0, 0, 0.7)', - }); - try { - const { data } = await getUserPractic(); - state.options = data.options; - } finally { - state.loading.close(); - } - }; - - // 初始化请求数据 - onMounted(() => { - fetchData(); - }); - - // 切换数据 - let number = ref([]); - const fetchSelect = async (param: string) => { - const { data } = await getUserChange(param); - number.value = data; - }; - - // 切换数据 - watch( - state, - (newValue, oldValue) => { - fetchSelect(newValue.project); - }, - { immediate: true } - ); -</script> - -<style scoped lang="less"> - .margin-bottom { - display: flex; - align-items: center; - justify-content: center; - width: 98.5%; - height: 150px; - margin: 0 auto; - background: #fff; - border-radius: 10px; - box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05); - } - - .margin-bottom:hover { - box-shadow: 0 3px 10px 0 rgb(64 98 225 / 45%); - } - - .col { - text-align: center; - } - - .col > span { - display: flex; - flex-direction: column; - padding: 10px 10px; - text-align: center; - } - - .col > span:last-child { - color: #4e5969; - font-weight: normal; - font-size: 18px; - line-height: 14px; - } - - .divider { - width: 1px; - height: 41px; - margin: 0 20px; - background: #7b7e84; - opacity: 0.3; - } - - .font { - color: #575d6c; - font-weight: 600; - font-size: 30px; - font-family: PingFang SC, PingFang SC-PingFang SC; - line-height: 36px; - text-align: left; - } - - .font-pass { - .font(); - } - - .font-fail { - .font(); - - color: #2f5bea; - } - - .practiced-select { - display: flex; - align-items: center; - justify-content: space-between; - padding: 12px 8px; - - h3 { - width: 20%; - color: #575d6c; - font-size: 16px; - line-height: 14px; - text-align: left; - } - - div { - width: 323px; - } - - :deep(.tiny-input) { - background-color: #f5f6f7; - - input { - border-radius: 17px; - } - } - } - - @media (max-width: @screen-md) { - .font-pass { - font-size: 24px; - } - - .col > span:last-child { - font-size: 10px; - } - } -</style> diff --git a/admin-website/src/main/web/src/views/board/work/components/learn-probation.vue b/admin-website/src/main/web/src/views/board/work/components/learn-probation.vue deleted file mode 100644 index 171932c..0000000 --- a/admin-website/src/main/web/src/views/board/work/components/learn-probation.vue +++ /dev/null @@ -1,126 +0,0 @@ -<template> - <tiny-layout> - <tiny-row :flex="true" justify="center" class="margin-bottom"> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">6</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.unpark') }}</span> - </div> - </tiny-col> - <div class="divider"></div> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">186</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.entered') }}</span> - </div> - </tiny-col> - <div class="divider"></div> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">324</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.approved') }}</span> - </div> - </tiny-col> - <div class="divider"></div> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">736</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.put') }}</span> - </div> - </tiny-col> - </tiny-row> - </tiny-layout> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - } from '@opentiny/vue'; -</script> - -<style scoped lang="less"> - .margin-bottom { - display: flex; - align-items: center; - justify-content: center; - width: 98.5%; - height: 150px; - margin: 0 auto; - background: #fff; - border-radius: 10px; - box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05); - } - - .margin-bottom:hover { - box-shadow: 0 3px 10px 0 rgb(64 98 225 / 45%); - } - - .col { - text-align: center; - } - - .col > span { - display: flex; - flex-direction: column; - padding: 10px 10px; - text-align: center; - } - - .col > span:last-child { - color: #4e5969; - font-weight: normal; - font-size: 18px; - line-height: 14px; - } - - .divider { - width: 1px; - height: 41px; - margin: 0 20px; - background: #7b7e84; - opacity: 0.3; - } - - .font { - color: #575d6c; - font-weight: 600; - font-size: 30px; - font-family: PingFang SC, PingFang SC-PingFang SC; - line-height: 36px; - text-align: left; - } - - .font-pass { - .font(); - } - - .font-fail { - .font(); - - color: #2f5bea; - } - - @media (max-width: @screen-md) { - .font-pass { - font-size: 24px; - } - - .col > span:last-child { - font-size: 10px; - } - } -</style> diff --git a/admin-website/src/main/web/src/views/board/work/components/learn-traini.vue b/admin-website/src/main/web/src/views/board/work/components/learn-traini.vue deleted file mode 100644 index f97a8cd..0000000 --- a/admin-website/src/main/web/src/views/board/work/components/learn-traini.vue +++ /dev/null @@ -1,221 +0,0 @@ -<template> - <div> - <div class="train-select"> - <h3>{{ $t('work.index.train') }}</h3> - <tiny-select - v-model="state.project" - :placeholder="$t('baseForm.form.label.placeholder')" - filterable - > - <tiny-option - v-for="item in state.options" - :key="item.value" - :label="$t(item.label)" - :value="item.value" - ></tiny-option> - </tiny-select> - </div> - - <tiny-layout> - <tiny-row :flex="true" justify="center" class="margin-bottom"> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">{{ number[0] }}</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.assign') }}</span> - </div> - </tiny-col> - <div class="divider"></div> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">{{ number[1] }}</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.prepare') }}</span> - </div> - </tiny-col> - <div class="divider"></div> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">{{ number[2] }}</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.open') }}</span> - </div> - </tiny-col> - <div class="divider"></div> - <tiny-col :span="3"> - <div class="col"> - <div> - <span class="font-pass">{{ number[3] }}</span> - <span> / {{ $t('work.index.Person') }}</span> - </div> - <span>{{ $t('work.index.classes') }}</span> - </div> - </tiny-col> - </tiny-row> - </tiny-layout> - </div> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - Select as TinySelect, - Option as TinyOption, - Loading, - } from '@opentiny/vue'; - import { reactive, onMounted, watch, ref } from 'vue'; - import { getUserTrain, getUserChange } from '@/api/board'; - - // 加载效果 - const state = reactive<{ - loading: any; - options: any; - project: string; - }>({ - loading: null, - options: [] as any, - project: '', - }); - - // 请求数据接口方法 - const fetchData = async () => { - state.loading = Loading.service({ - text: 'loading...', - target: document.getElementById('container'), - background: 'rgba(0, 0, 0, 0.7)', - }); - try { - const { data } = await getUserTrain(); - state.options = data.options; - } finally { - state.loading.close(); - } - }; - - // 初始化请求数据 - onMounted(() => { - fetchData(); - }); - - // 切换数据 - let number = ref([]); - const fetchSelect = async (param: string) => { - const { data } = await getUserChange(param); - number.value = data; - }; - - // 切换数据 - watch( - state, - (newValue, oldValue) => { - fetchSelect(newValue.project); - }, - { immediate: true } - ); -</script> - -<style scoped lang="less"> - .margin-bottom { - display: flex; - align-items: center; - justify-content: center; - width: 98.5%; - height: 150px; - margin: 0 auto; - background: #fff; - border-radius: 10px; - box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05); - } - - .margin-bottom:hover { - box-shadow: 0 3px 10px 0 rgb(64 98 225 / 45%); - } - - .col { - text-align: center; - } - - .col > span { - display: flex; - flex-direction: column; - padding: 10px 10px; - text-align: center; - } - - .col > span:last-child { - color: #4e5969; - font-weight: normal; - font-size: 18px; - line-height: 14px; - } - - .divider { - width: 1px; - height: 41px; - margin: 0 20px; - background: #7b7e84; - opacity: 0.3; - } - - .font { - color: #575d6c; - font-weight: 600; - font-size: 30px; - font-family: PingFang SC, PingFang SC-PingFang SC; - line-height: 36px; - text-align: left; - } - - .font-pass { - .font(); - } - - .font-fail { - .font(); - - color: #2f5bea; - } - - .train-select { - display: flex; - align-items: center; - justify-content: space-between; - padding: 15px 8px; - - h3 { - width: 20%; - color: #575d6c; - font-size: 16px; - line-height: 14px; - text-align: left; - } - - div { - width: 323px; - box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05); - } - - :deep(.tiny-input) { - input { - border-radius: 17px; - } - } - } - @media (max-width: @screen-md) { - .font-pass { - font-size: 24px; - } - - .col > span:last-child { - font-size: 10px; - } - } -</style> diff --git a/admin-website/src/main/web/src/views/board/work/index.vue b/admin-website/src/main/web/src/views/board/work/index.vue deleted file mode 100644 index 5e21729..0000000 --- a/admin-website/src/main/web/src/views/board/work/index.vue +++ /dev/null @@ -1,206 +0,0 @@ -<template> - <div class="container-work"> - <Breadcrumb :items="['menu.board', 'menu.work']" /> - <div class="work-image"> - <img src="@/assets/images/woker.png" alt="403" class="user-image" /> - </div> - <div class="content"> - <div class="left"> - <div class="card"> - <h3>{{ $t('work.index.learn') }}</h3> - <div> - <learnplan></learnplan> - </div> - </div> - <div class="card"> - <div> - <learncoach></learncoach> - </div> - </div> - <div class="card"> - <h3>{{ $t('work.index.formalization') }}</h3> - <div> - <learnprobation></learnprobation> - </div> - </div> - <div class="card"> - <div> - <learnpracticed></learnpracticed> - </div> - </div> - <div class="card"> - <div> - <learntrain></learntrain> - </div> - </div> - </div> - <div class="right"> - <h3>{{ $t('work.index.Inquiry') }}</h3> - <div class="card more"> - <dl v-for="item in Inquiry" :key="(item as any)"> - <dt>{{ $t(item.label) }}</dt> - <dd> - <a href="javascript:;">{{ $t(item.value) }}</a> - </dd> - </dl> - </div> - <h3>{{ $t('work.index.Home') }}</h3> - <div class="card more"> - <dl v-for="item in Home" :key="(item as any)"> - <dt>{{ $t(item.label) }}</dt> - <dd> - <a href="javascript:;">{{ $t(item.value) }}</a> - </dd> - </dl> - </div> - <h3>{{ $t('work.index.Guide') }}</h3> - <div class="card less"> - <dl> - <dt>{{ $t('work.index.Operation') }}</dt> - </dl> - </div> - </div> - </div> - </div> -</template> - -<script lang="ts" setup> - import learnplan from './components/learn-plan.vue'; - import learncoach from './components/learn-coach.vue'; - import learnprobation from './components/learn-probation.vue'; - import learnpracticed from './components/learn-practiced.vue'; - import learntrain from './components/learn-traini.vue'; - - const Inquiry = [ - { label: 'work.index.policy', value: 'work.index.Period' }, - { label: 'work.index.Hotline', value: 'work.index.service' }, - { label: 'work.index.Attendance', value: 'work.index.FAQs' }, - { label: 'work.index.Payroll', value: 'work.index.Tax' }, - { label: 'work.index.net', value: 'work.index.netonline' }, - ]; - - const Home = [ - { label: 'work.index.Brave', value: 'work.index.Growth' }, - { label: 'work.index.Termbase', value: 'work.index.lingo' }, - { label: 'work.index.Library', value: 'work.index.domain' }, - { label: 'work.index.learning', value: 'work.index.platform' }, - { label: 'work.index.net', value: 'work.index.netonline' }, - ]; -</script> - -<style scoped lang="less"> - .container-work { - width: 98%; - height: inherit; - margin: 0 auto; - overflow: auto; - background: #f6f8f9; - - .work-image { - width: 99%; - margin: 0 auto; - - img { - width: 100%; - min-height: 50px; - } - } - } - - .content { - display: flex; - justify-content: space-between; - padding-bottom: 10px; - - .font { - padding: 12px 8px; - color: #575d6c; - font-size: 16px; - line-height: 14px; - } - - .left { - width: 80%; - - .card { - display: flex; - flex-direction: column; - min-height: 150px; - - h3 { - .font(); - } - } - } - - .right { - width: 19%; - padding-right: 10px; - - h3 { - .font(); - } - - .more { - min-height: 369px; - } - - .less { - min-height: 156px; - } - - .card { - display: flex; - flex-direction: column; - justify-content: space-evenly; - padding: 20px; - color: #010407; - background: #fff; - border-radius: 10px; - box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05); - - dl { - dt { - margin-top: 10px; - margin-left: 10px; - font-weight: bolder; - font-size: 16px; - font-family: PingFang SC, PingFang SC-PingFang SC; - line-height: 15px; - text-align: left; - } - - dd { - padding: 10px; - - a { - color: #999; - text-decoration: none; - } - } - } - } - - .card:hover { - box-shadow: 0 3px 10px 0 rgb(64 98 225 / 45%); - } - } - } - - .col > span { - display: flex; - flex-direction: column; - padding: 10px 10px; - text-align: center; - } - - .col > span:first-child { - color: #010407; - font-weight: 500; - } - - .col > span:last-child { - font-weight: 900; - font-size: large; - } -</style> diff --git a/admin-website/src/main/web/src/views/profile/detail/components/evaluation-detail.vue b/admin-website/src/main/web/src/views/profile/detail/components/evaluation-detail.vue deleted file mode 100644 index 41ee13c..0000000 --- a/admin-website/src/main/web/src/views/profile/detail/components/evaluation-detail.vue +++ /dev/null @@ -1,71 +0,0 @@ -<template> - <div> - <tiny-layout> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.develop') }} - <span>:</span> - {{ $t('menu.plan.yes') }} - </div> - </tiny-col> - </tiny-row> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.frequency') }} - <span>:</span> - {{ $t('menu.plan.month') }} - </div> - </tiny-col> - </tiny-row> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.goal') }} - <span>:</span> - {{ $t('menu.plan.trainees') }} - </div> - </tiny-col> - </tiny-row> - - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.condition') }} - <span>:</span> - {{ $t('menu.plan.teacher') }} - </div> - </tiny-col> - </tiny-row> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.phase') }} - <span>:</span> - {{ $t('menu.plan.evaluation') }} - </div> - </tiny-col> - </tiny-row> - </tiny-layout> - </div> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - } from '@opentiny/vue'; -</script> - -<style scoped lang="less"> - .margin-bottom { - margin-top: 20px; - margin-bottom: 30px; - } - - .col > span { - padding: 0 10px; - } -</style> diff --git a/admin-website/src/main/web/src/views/profile/detail/components/mentor-detail.vue b/admin-website/src/main/web/src/views/profile/detail/components/mentor-detail.vue deleted file mode 100644 index 4bb24b3..0000000 --- a/admin-website/src/main/web/src/views/profile/detail/components/mentor-detail.vue +++ /dev/null @@ -1,34 +0,0 @@ -<template> - <div> - <tiny-layout> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.pool') }} - <span>:</span> - {{ $t('menu.plan.no') }} - </div> - </tiny-col> - </tiny-row> - </tiny-layout> - </div> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - } from '@opentiny/vue'; -</script> - -<style scoped lang="less"> - .margin-bottom { - margin-top: 20px; - margin-bottom: 30px; - } - - .col > span { - padding: 0 10px; - } -</style> diff --git a/admin-website/src/main/web/src/views/profile/detail/components/plan-detail.vue b/admin-website/src/main/web/src/views/profile/detail/components/plan-detail.vue deleted file mode 100644 index d7001d8..0000000 --- a/admin-website/src/main/web/src/views/profile/detail/components/plan-detail.vue +++ /dev/null @@ -1,56 +0,0 @@ -<template> - <div> - <tiny-layout> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="2"> - <div class="col"> - {{ $t('menu.plan.department') }} - <span>:</span> - {{ $t('menu.plan.resource') }} - </div> - </tiny-col> - <tiny-col :span="2"> - <div class="col"> - {{ $t('menu.plan.job') }} - <span>:</span> - All - </div> - </tiny-col> - </tiny-row> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="2"> - <div class="col"> - {{ $t('menu.plan.person') }} - <span>:</span> - All - </div> - </tiny-col> - <tiny-col :span="2"> - <div class="col"> - {{ $t('menu.plan.attribute') }} - <span>:</span>IT - </div> - </tiny-col> - </tiny-row> - </tiny-layout> - </div> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - } from '@opentiny/vue'; -</script> - -<style scoped lang="less"> - .margin-bottom { - margin-top: 20px; - margin-bottom: 30px; - } - - .col > span { - padding: 0 10px; - } -</style> diff --git a/admin-website/src/main/web/src/views/profile/detail/components/record-detail.vue b/admin-website/src/main/web/src/views/profile/detail/components/record-detail.vue deleted file mode 100644 index 720dca1..0000000 --- a/admin-website/src/main/web/src/views/profile/detail/components/record-detail.vue +++ /dev/null @@ -1,38 +0,0 @@ -<template> - <div> - <tiny-grid :data="tableData" auto-resize> - <tiny-grid-column type="index"></tiny-grid-column> - <tiny-grid-column - field="version" - :title="$t('menu.plan.version')" - ></tiny-grid-column> - <tiny-grid-column - field="operation" - :title="$t('menu.plan.operation')" - ></tiny-grid-column> - <tiny-grid-column - field="updated" - :title="$t('menu.plan.updated')" - ></tiny-grid-column> - <tiny-grid-column - field="time" - :title="$t('menu.plan.time')" - show-overflow - ></tiny-grid-column> - </tiny-grid> - </div> -</template> - -<script lang="ts" setup> - import { defineProps } from 'vue'; - import { - Grid as TinyGrid, - GridColumn as TinyGridColumn, - } from '@opentiny/vue'; - - // 父组件传值 - const props = defineProps({ - // eslint-disable-next-line vue/require-prop-types - tableData: [], - }); -</script> diff --git a/admin-website/src/main/web/src/views/profile/detail/components/target-detail.vue b/admin-website/src/main/web/src/views/profile/detail/components/target-detail.vue deleted file mode 100644 index ceb5b15..0000000 --- a/admin-website/src/main/web/src/views/profile/detail/components/target-detail.vue +++ /dev/null @@ -1,52 +0,0 @@ -<template> - <div> - <tiny-layout> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.develop') }} - <span>:</span> - {{ $t('menu.plan.yes') }} - </div> - </tiny-col> - </tiny-row> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.role') }} - <span>:</span> - {{ $t('menu.plan.mentor') }} - </div> - </tiny-col> - </tiny-row> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.condition') }} - <span>:</span> - {{ $t('menu.plan.approval') }} - </div> - </tiny-col> - </tiny-row> - </tiny-layout> - </div> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - } from '@opentiny/vue'; -</script> - -<style scoped lang="less"> - .margin-bottom { - margin-top: 20px; - margin-bottom: 30px; - } - - .col > span { - padding: 0 10px; - } -</style> diff --git a/admin-website/src/main/web/src/views/profile/detail/components/whole-detail.vue b/admin-website/src/main/web/src/views/profile/detail/components/whole-detail.vue deleted file mode 100644 index 936e854..0000000 --- a/admin-website/src/main/web/src/views/profile/detail/components/whole-detail.vue +++ /dev/null @@ -1,43 +0,0 @@ -<template> - <div> - <tiny-layout> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.develop') }} - <span>:</span> - {{ $t('menu.plan.yes') }} - </div> - </tiny-col> - </tiny-row> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('menu.plan.whole') }} - <span>:</span> - {{ $t('menu.plan.evaluation') }} - </div> - </tiny-col> - </tiny-row> - </tiny-layout> - </div> -</template> - -<script lang="ts" setup> - import { - Layout as TinyLayout, - Row as TinyRow, - Col as TinyCol, - } from '@opentiny/vue'; -</script> - -<style scoped lang="less"> - .margin-bottom { - margin-top: 20px; - margin-bottom: 30px; - } - - .col > span { - padding: 0 10px; - } -</style> diff --git a/admin-website/src/main/web/src/views/profile/detail/index.vue b/admin-website/src/main/web/src/views/profile/detail/index.vue deleted file mode 100644 index 2231f00..0000000 --- a/admin-website/src/main/web/src/views/profile/detail/index.vue +++ /dev/null @@ -1,170 +0,0 @@ -<template> - <div class="detail-page"> - <Breadcrumb :items="['menu.profile', 'menu.profile.detail']" /> - <div id="container"> - <div class="detail-contain"> - <tiny-collapse v-model="state.activeNames"> - <tiny-collapse-item :title="$t('baseForm.form.label.type')" name="1"> - <tiny-row :flex="true" justify="left" class="margin-bottom"> - <tiny-col :span="9"> - <div class="col"> - {{ $t('baseForm.form.label.type') }} - <span>:</span> - <tiny-select - v-model="state.project" - :placeholder="$t('baseForm.form.label.placeholder')" - filterable - > - <tiny-option - v-for="item in state.Project" - :key="item" - :label="$t(item as any)" - :value="item" - ></tiny-option> - </tiny-select> - </div> - </tiny-col> - </tiny-row> - </tiny-collapse-item> - - <tiny-collapse-item :title="$t('baseForm.form.label.people')" name="2"> - <planDetail></planDetail> - </tiny-collapse-item> - - <tiny-collapse-item - :title="$t('baseForm.form.label.Objectives')" - name="3" - > - <targetDetail></targetDetail> - </tiny-collapse-item> - <tiny-collapse-item :title="$t('baseForm.form.label.plan')" name="4"> - <evaluationDetail></evaluationDetail> - </tiny-collapse-item> - <tiny-collapse-item - :title="$t('baseForm.form.label.evaluation')" - name="5" - > - <wholeDetail></wholeDetail> - </tiny-collapse-item> - <tiny-collapse-item - :title="$t('baseForm.form.label.mentortitle')" - name="6" - > - <mentor></mentor> - </tiny-collapse-item> - <tiny-collapse-item :title="$t('baseForm.form.record')" name="7"> - <recordDetail - :table-data="(state.tableData as [] | any)" - ></recordDetail> - </tiny-collapse-item> - </tiny-collapse> - </div> - </div> - </div> -</template> - -<script lang="ts" setup> - import { reactive, onMounted } from 'vue'; - import { - Row as TinyRow, - Col as TinyCol, - Select as TinySelect, - Option as TinyOption, - Collapse as TinyCollapse, - CollapseItem as TinyCollapseItem, - Loading, - } from '@opentiny/vue'; - import { getDetailData } from '@/api/profile'; - import planDetail from './components/plan-detail.vue'; - import targetDetail from './components/target-detail.vue'; - import evaluationDetail from './components/evaluation-detail.vue'; - import wholeDetail from './components/whole-detail.vue'; - import mentor from './components/mentor-detail.vue'; - import recordDetail from './components/record-detail.vue'; - - // 加载效果 - const state = reactive<{ - loading: any; - filterOptions: object; - activeNames: Array<string>; - Project: Array<string>; - tableData: Array<object>; - project: string; - }>({ - loading: null, - filterOptions: {}, - activeNames: ['1', '2', '3', '4', '5', '6', '7'], - Project: [], - tableData: [], - project: '', - }); - - // 请求数据接口方法 - const fetchData = async () => { - state.loading = Loading.service({ - text: 'loading...', - target: document.getElementById('container'), - background: 'rgba(0, 0, 0, 0.7)', - }); - try { - const { data } = await getDetailData(); - state.Project = data.Project; - state.tableData = data.tableData; - } finally { - state.loading.close(); - } - }; - - // 初始化请求数据 - onMounted(() => { - fetchData(); - }); -</script> - -<style scoped lang="less"> - .detail-page { - height: 100%; - } - #container { - display: flex; - flex-direction: column; - justify-content: space-between; - height: calc(100% - 60px); - overflow-x: hidden; - overflow-y: auto; - } - - .detail-contain { - flex: 1 1 auto; - height: 100%; - margin: 8px 10px; - padding: 22px 20px; - overflow: auto; - background: #fff; - border-radius: 10px; - box-shadow: 0 0 8px 8px rgba(169, 174, 184, 0.05); - } - - :deep(.tiny-select) { - width: 400px; - } - - :deep(.tiny-collapse-item) { - margin-bottom: 20px; - } - - .margin-bottom { - margin-top: 20px; - margin-bottom: 30px; - } - - .col > span { - padding: 0 10px; - } - :deep(.tiny-collapse-item__arrow.is-active, .tiny-collapse-item__arrow:hover){ - fill: var(--ti-common-color-text-highlight); - } - :deep(.tiny-collapse-item__header svg){ - fill: var(--ti-common-color-text-highlight); - } -</style> diff --git a/admin-website/src/main/web/src/views/profile/detail/locale/en-US.ts b/admin-website/src/main/web/src/views/profile/detail/locale/en-US.ts deleted file mode 100644 index fd7750f..0000000 --- a/admin-website/src/main/web/src/views/profile/detail/locale/en-US.ts +++ /dev/null @@ -1,29 +0,0 @@ -export default { - 'menu.plan.department': 'Training Department', - 'menu.plan.resource': 'Human Resource Mgmt Dept', - 'menu.plan.job': 'Job Level', - 'menu.plan.person': 'Person Type', - 'menu.plan.attribute': 'Service attribute', - 'menu.plan.develop': 'Whether to develop', - 'menu.plan.yes': 'yes', - 'menu.plan.no': 'no', - 'menu.plan.role': 'Develop Roles', - 'menu.plan.mentor': 'Mentor', - 'menu.plan.condition': 'Effective Condition', - 'menu.plan.approval': 'Immediate supervisor approval', - 'menu.plan.frequency': 'Formulation frequency', - 'menu.plan.month': 'By Month', - 'menu.plan.goal': 'Goal Setting Role', - 'menu.plan.trainees': 'Trainees', - 'menu.plan.teacher': 'Mentor Approval', - 'menu.plan.phase': 'Phase Evaluation', - 'menu.plan.evaluation': - 'Need to be evaluated by mentors and immediate supervisors', - 'menu.plan.whole': 'Overall evaluation', - 'menu.plan.pool': 'Select Mentor Only from Mentor Resource Pool', - 'menu.plan.time': 'Update Time', - 'menu.plan.version': 'Version number', - 'menu.plan.operation': 'Operation', - 'menu.plan.updated': 'Updated by', - 'baseForm.form.label.type': 'Project Type', -}; diff --git a/admin-website/src/main/web/src/views/profile/detail/locale/zh-CN.ts b/admin-website/src/main/web/src/views/profile/detail/locale/zh-CN.ts deleted file mode 100644 index 4143224..0000000 --- a/admin-website/src/main/web/src/views/profile/detail/locale/zh-CN.ts +++ /dev/null @@ -1,28 +0,0 @@ -export default { - 'menu.plan.department': '培养部门', - 'menu.plan.resource': '人力资源管理部', - 'menu.plan.job': '职级', - 'menu.plan.person': '人员类型', - 'menu.plan.attribute': '业务属性', - 'menu.plan.develop': '是否需制定', - 'menu.plan.yes': '是', - 'menu.plan.no': '否', - 'menu.plan.role': '制定角色', - 'menu.plan.mentor': '导师', - 'menu.plan.condition': '生效条件', - 'menu.plan.approval': '直接主管审批', - 'menu.plan.frequency': '制定频次', - 'menu.plan.month': '按月', - 'menu.plan.goal': '目标制定角色', - 'menu.plan.trainees': '学员', - 'menu.plan.teacher': '导师审批', - 'menu.plan.phase': '阶段评价', - 'menu.plan.evaluation': '需导师、直接主管评价', - 'menu.plan.whole': '整体评价', - 'menu.plan.pool': '是否仅从导师资源池选择导师', - 'menu.plan.time': '更新时间', - 'menu.plan.version': '版本号', - 'menu.plan.operation': '操作', - 'menu.plan.updated': '更新人', - 'baseForm.form.label.type': '项目类型', -}; diff --git a/admin-website/src/main/web/src/views/profile/index.vue b/admin-website/src/main/web/src/views/profile/index.vue deleted file mode 100644 index a9d358d..0000000 --- a/admin-website/src/main/web/src/views/profile/index.vue +++ /dev/null @@ -1,7 +0,0 @@ -<template> - <router-view /> -</template> - -<script lang="ts" setup></script> - -<style scoped lang="less"></style> diff --git a/admin-website/src/main/web/src/views/result/error/index.vue b/admin-website/src/main/web/src/views/result/error/index.vue deleted file mode 100644 index 9767964..0000000 --- a/admin-website/src/main/web/src/views/result/error/index.vue +++ /dev/null @@ -1,160 +0,0 @@ -<template> - <div class="container"> - <Breadcrumb :items="['menu.result', 'menu.result.error']" /> - <div class="content"> - <div class="content-main"> - <div v-if="active === 4" class="result-alert"> - <img src="@/assets/images/error.png" alt="error" /> - <div> - <div>{{ $t('menu.result.messageError') }}</div> - <div>{{ $t('error.result.title') }}</div> - </div> - </div> - <div class="result-btn"> - <tiny-button - type="primary" - native-type="submit" - @click="handleSubmit" - >{{ $t('error.result.home') }}</tiny-button - > - <tiny-button @click="handleFormReset"> - {{ $t('menu.btn.cancel') }} - </tiny-button> - </div> - <div class="result-line"> - <div>{{ $t('menu.line.process') }}</div> - <div> - <tiny-time-line - :data="[ - { name: t('stepForm.start.coaching') }, - { name: t('stepForm.immediate.supervisor') }, - { name: t('stepForm.overall.goals') }, - { name: t('stepForm.overall.summary') }, - { name: t('stepForm.overall.end') }, - ]" - :active="active" - type="normal" - ></tiny-time-line> - </div> - </div> - </div> - </div> - </div> -</template> - -<script lang="ts" setup> - import { ref } from 'vue'; - import { useI18n } from 'vue-i18n'; - import { - Button as TinyButton, - TimeLine as TinyTimeLine, - Modal, - } from '@opentiny/vue'; - - const { t } = useI18n(); - const active = ref(4); - - function handleSubmit() { - if (active.value < 4) { - active.value += 1; - Modal.message({ - message: t('menu.result.messageSuccess'), - status: 'success', - }); - } else { - active.value = 4; - Modal.message({ - message: t('menu.result.messageEnd'), - status: 'success', - }); - } - } - - function handleFormReset() { - if (active.value === 4) { - active.value = 0; - } - } -</script> - -<style scoped lang="less"> - .container { - display: flex; - flex-direction: column; - justify-content: space-between; - width: 98%; - height: inherit; - margin: 0 auto; - overflow: hidden; - - :deep(.tiny-steps) { - margin-top: 10px; - } - } - - .content { - display: flex; - flex: 1 1 auto; - flex-direction: column; - justify-content: flex-start; - height: 100%; - overflow: auto; - background: #fff; - border-radius: 10px; - } - - .content-main { - padding: 75px 0; - } - - .result-alert { - display: flex; - flex-direction: column; - align-content: center; - justify-content: center; - color: black; - text-align: center; - - img { - width: 68px; - height: 68px; - margin: 0 auto; - } - - div:first-child { - padding-top: 50px; - font-weight: 900; - font-size: 20px; - } - - div:last-child { - padding-top: 20px; - font-size: 14px; - } - } - - .result-line { - width: 75%; - height: 200px; - margin: 0 auto; - margin-top: 50px; - color: black; - background-color: #f5f6f7; - - div:first-child { - padding: 20px; - } - } - - .result-btn { - display: flex; - justify-content: center; - padding: 50px 0; - - button { - width: 120px; - height: 36px; - border-radius: 4px; - } - } -</style> diff --git a/admin-website/src/main/web/src/views/result/error/locale/en-US.ts b/admin-website/src/main/web/src/views/result/error/locale/en-US.ts deleted file mode 100644 index 2c6a761..0000000 --- a/admin-website/src/main/web/src/views/result/error/locale/en-US.ts +++ /dev/null @@ -1,7 +0,0 @@ -export default { - 'menu.result.error': 'Error', - 'error.result.title': - 'The submission result page displays the processing results of a series of operation tasks', - 'menu.result.messageError': 'Failed to submit the coaching process', - 'error.result.home': 'Back', -}; diff --git a/admin-website/src/main/web/src/views/result/error/locale/zh-CN.ts b/admin-website/src/main/web/src/views/result/error/locale/zh-CN.ts deleted file mode 100644 index 399aa66..0000000 --- a/admin-website/src/main/web/src/views/result/error/locale/zh-CN.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default { - 'menu.result.error': '失败页', - 'error.result.title': '提交结果页用于反馈一系列操作任务的处理结果。', - 'menu.result.messageError': '辅导流程提交失败', - 'error.result.home': '回到首页', -}; diff --git a/admin-website/src/main/web/src/views/result/index.vue b/admin-website/src/main/web/src/views/result/index.vue deleted file mode 100644 index a9d358d..0000000 --- a/admin-website/src/main/web/src/views/result/index.vue +++ /dev/null @@ -1,7 +0,0 @@ -<template> - <router-view /> -</template> - -<script lang="ts" setup></script> - -<style scoped lang="less"></style> diff --git a/admin-website/src/main/web/src/views/result/success/index.vue b/admin-website/src/main/web/src/views/result/success/index.vue deleted file mode 100644 index 40785e9..0000000 --- a/admin-website/src/main/web/src/views/result/success/index.vue +++ /dev/null @@ -1,159 +0,0 @@ -<template> - <div class="container"> - <Breadcrumb :items="['menu.result', 'menu.result.success']" /> - <div class="content"> - <div class="content-main"> - <div v-if="active === 4" class="result-alert"> - <img src="@/assets/images/success.png" alt="success" /> - <div> - <div>{{ $t('menu.result.messageSuccess') }}</div> - <div>{{ $t('success.result.title') }}</div> - </div> - </div> - <div class="result-btn"> - <tiny-button - type="primary" - native-type="submit" - @click="handleSubmit" - >{{ $t('menu.btn.submit') }}</tiny-button - > - <tiny-button @click="handleFormReset"> - {{ $t('menu.btn.cancel') }} - </tiny-button> - </div> - <div class="result-line"> - <div>{{ $t('menu.line.process') }}</div> - <div> - <tiny-time-line - :data="[ - { name: t('stepForm.start.coaching') }, - { name: t('stepForm.immediate.supervisor') }, - { name: t('stepForm.overall.goals') }, - { name: t('stepForm.overall.summary') }, - { name: t('stepForm.overall.end') }, - ]" - :active="active" - type="normal" - ></tiny-time-line> - </div> - </div> - </div> - </div> - </div> -</template> - -<script lang="ts" setup> - import { ref } from 'vue'; - import { useI18n } from 'vue-i18n'; - import { - Button as TinyButton, - TimeLine as TinyTimeLine, - Modal, - } from '@opentiny/vue'; - - const { t } = useI18n(); - const active = ref(4); - - function handleSubmit() { - if (active.value < 4) { - active.value += 1; - Modal.message({ - message: t('menu.result.messageSuccess'), - status: 'success', - }); - } else { - active.value = 4; - Modal.message({ - message: t('menu.result.messageEnd'), - status: 'success', - }); - } - } - - function handleFormReset() { - if (active.value === 4) { - active.value = 0; - } - } -</script> - -<style scoped lang="less"> - .container { - display: flex; - flex-direction: column; - justify-content: space-between; - width: 98%; - height: inherit; - margin: 0 auto; - overflow: hidden; - - :deep(.tiny-steps) { - margin-top: 10px; - } - } - - .content { - display: flex; - flex-direction: column; - justify-content: flex-start; - height: 100%; - overflow: auto; - background: #fff; - border-radius: 10px; - } - - .content-main { - padding: 75px 0; - } - - .result-alert { - display: flex; - flex-direction: column; - align-content: center; - justify-content: center; - color: black; - text-align: center; - - img { - width: 68px; - height: 68px; - margin: 0 auto; - } - - div:first-child { - padding-top: 50px; - font-weight: 900; - font-size: 20px; - } - - div:last-child { - padding-top: 20px; - font-size: 14px; - } - } - - .result-line { - width: 75%; - height: 200px; - margin: 0 auto; - margin-top: 50px; - color: black; - background-color: #f5f6f7; - - div:first-child { - padding: 20px; - } - } - - .result-btn { - display: flex; - justify-content: center; - padding: 50px 0; - - button { - width: 120px; - height: 36px; - border-radius: 4px; - } - } -</style> diff --git a/admin-website/src/main/web/src/views/result/success/locale/en-US.ts b/admin-website/src/main/web/src/views/result/success/locale/en-US.ts deleted file mode 100644 index 192efe1..0000000 --- a/admin-website/src/main/web/src/views/result/success/locale/en-US.ts +++ /dev/null @@ -1,11 +0,0 @@ -export default { - 'menu.result.success': 'Success', - 'success.result.title': - 'The submission result page displays the processing results of a series of operation tasks.', - 'menu.result.messageSuccess': - 'The coaching process is submitted successfully', - 'menu.btn.submit': 'Start', - 'menu.btn.cancel': 'Cancel', - 'menu.line.process': 'Current progress', - 'menu.result.messageEnd': 'The coaching process has been submitted', -}; diff --git a/admin-website/src/main/web/src/views/result/success/locale/zh-CN.ts b/admin-website/src/main/web/src/views/result/success/locale/zh-CN.ts deleted file mode 100644 index cbc4b35..0000000 --- a/admin-website/src/main/web/src/views/result/success/locale/zh-CN.ts +++ /dev/null @@ -1,9 +0,0 @@ -export default { - 'menu.result.success': '成功页', - 'success.result.title': '提交结果页用于反馈一系列操作任务的处理结果。', - 'menu.result.messageSuccess': '辅导流程提交成功!', - 'menu.result.messageEnd': '辅导流程已提交结束!', - 'menu.btn.submit': '启动新的辅导', - 'menu.btn.cancel': '取消', - 'menu.line.process': '当前进度', -};
