index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="legacy-tip">
  3. <text>正在打开…</text>
  4. </view>
  5. </template>
  6. <script>
  7. // 人事管理聚合页已拆分;当前 HR 模块为员工自助(只管理自己),
  8. // 菜单直达「发起页」,不再经过列表页。本页只保留历史链接的转发能力。
  9. // 兼容 /pages/hr/manage/index?type=onboard|transfer|regular|resign
  10. const ENTRY_PAGES = {
  11. onboard: "/pages/hr/manage/onboard-create",
  12. transfer: "/pages/hr/manage/transfer-create",
  13. regular: "/pages/hr/manage/regular-create",
  14. resign: "/pages/hr/manage/resign-handover",
  15. };
  16. export default {
  17. data() {
  18. return {
  19. target: ENTRY_PAGES.onboard,
  20. };
  21. },
  22. onLoad(options) {
  23. const type = (options && options.type) || "onboard";
  24. this.target = ENTRY_PAGES[type] || ENTRY_PAGES.onboard;
  25. uni.redirectTo({
  26. url: this.target,
  27. fail: () => {
  28. uni.showToast({ title: "页面不存在", icon: "none" });
  29. },
  30. });
  31. },
  32. };
  33. </script>
  34. <style scoped lang="scss">
  35. .legacy-tip {
  36. padding-top: 200rpx;
  37. text-align: center;
  38. color: #9aa1aa;
  39. font-size: 26rpx;
  40. }
  41. </style>