EditMoreEquirement.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <script setup lang="ts">
  2. import { h } from 'vue';
  3. import { VxeUI } from 'vxe-pc-ui';
  4. import EditOrganization from '@/components/EditOrganization.vue';
  5. import EditProcesses from '@/components/EditProcesses.vue';
  6. function editOrganization() {
  7. VxeUI.modal.open({
  8. title: '修改所属组织',
  9. content: '请选择所属组织',
  10. width: 800,
  11. height: 750,
  12. escClosable: true,
  13. destroyOnClose: true,
  14. id: 'edit-organization',
  15. remember: true,
  16. storage: true,
  17. slots: {
  18. default() {
  19. return h(EditOrganization, {} as any);
  20. },
  21. },
  22. });
  23. }
  24. function editProcessConfig() {
  25. VxeUI.modal.open({
  26. title: '修改流程配置',
  27. content: '请选择流程配置',
  28. width: 1400,
  29. height: 750,
  30. escClosable: true,
  31. destroyOnClose: true,
  32. id: 'edit-process-config',
  33. remember: true,
  34. storage: true,
  35. slots: {
  36. default() {
  37. return h(EditProcesses, {} as any);
  38. },
  39. },
  40. });
  41. }
  42. </script>
  43. <template>
  44. <div class="form-container">
  45. <div class="button-group">
  46. <vxe-button status="primary" content="修改所属组织" @click="editOrganization"></vxe-button>
  47. <vxe-button status="warning" content="修改流程配置" @click="editProcessConfig"></vxe-button>
  48. </div>
  49. </div>
  50. </template>
  51. <style scoped lang="scss">
  52. .form-container {
  53. padding: 80px 20px;
  54. display: flex;
  55. flex-direction: column;
  56. justify-content: center;
  57. align-items: center;
  58. gap: 100px;
  59. }
  60. .button-group {
  61. display: flex;
  62. flex-direction: column;
  63. gap: 20px;
  64. width: 100%;
  65. max-width: 300px;
  66. margin: 40px 0;
  67. .vxe-button {
  68. height: 44px;
  69. font-size: 16px;
  70. font-weight: 500;
  71. border-radius: 8px;
  72. transition: all 0.3s ease;
  73. width: 100%;
  74. min-width: 200px;
  75. &:first-child {
  76. background-color: #1890ff;
  77. border: 1px solid #1890ff;
  78. color: #fff;
  79. &:hover {
  80. background-color: #40a9ff;
  81. border-color: #40a9ff;
  82. transform: translateY(-1px);
  83. box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
  84. }
  85. }
  86. &:last-child {
  87. background-color: #fa8c16;
  88. border: 1px solid #fa8c16;
  89. color: #fff;
  90. &:hover {
  91. background-color: #ff9c2a;
  92. border-color: #ff9c2a;
  93. transform: translateY(-1px);
  94. box-shadow: 0 4px 12px rgba(250, 140, 22, 0.3);
  95. }
  96. }
  97. }
  98. }
  99. </style>