@pubinfo-pr/module-rbac 0.222.4 → 0.224.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/{ResourceRelation-BwagNxld.js → ResourceRelation-CU-QpUhP.js} +1 -1
  2. package/dist/{ResourceRelation-CKZrGW9A.js → ResourceRelation-roz0a8Td.js} +1 -1
  3. package/dist/ResourceRelation.css +1 -1
  4. package/dist/ResourceRelation2.css +1 -1
  5. package/dist/{UserAuthorization-sU8yGviz.js → UserAuthorization-2Fl4IGw7.js} +1 -1
  6. package/dist/UserAuthorization.css +1 -1
  7. package/dist/api/modules/assist/index.d.ts +0 -1
  8. package/dist/api/modules/assist/qunzujiekou.d.ts +28 -0
  9. package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -0
  10. package/dist/api/modules/rbac/jiaosejiekou.d.ts +14 -0
  11. package/dist/api/modules/rbac/yonghujiekou.d.ts +42 -0
  12. package/dist/api/modules/rbac/ziyuanjiekou.d.ts +7 -0
  13. package/dist/api/modules/rbac/zuzhijiekou.d.ts +7 -0
  14. package/dist/{blackWhiteList-CaEw1uGl.js → blackWhiteList-DbG7JH8n.js} +1 -1
  15. package/dist/blackWhiteList.css +1 -1
  16. package/dist/breadcrumb_setting-Dx2Li6xt.js +108 -0
  17. package/dist/{createAndEditDataPermission-BfIc8HNt.js → createAndEditDataPermission-8_KNLzJT.js} +1 -1
  18. package/dist/createAndEditDataPermission.css +1 -1
  19. package/dist/{data-permission-CeSzz7-6.js → data-permission-LpuDLDm0.js} +2 -2
  20. package/dist/data-permission.css +1 -1
  21. package/dist/{drawerOrganization-CwtSFUj0.js → drawerOrganization-CPsQlz-f.js} +59 -24
  22. package/dist/{group-DmvSRTkz.js → group-CaOhkh72.js} +1 -1
  23. package/dist/group.css +1 -1
  24. package/dist/index.css +1 -1
  25. package/dist/index.js +44 -44
  26. package/dist/{layout_setting-DcFrUQtI.js → layout_setting-79srmFgJ.js} +1 -1
  27. package/dist/layout_setting.css +1 -1
  28. package/dist/{login_history-uB4F5Ddd.js → login_history-BiwaLpxA.js} +1 -1
  29. package/dist/login_history.css +1 -1
  30. package/dist/menu_setting-ChueWHs4.js +155 -0
  31. package/dist/{operate_history-eTC0gtt3.js → operate_history-sPd9IHMV.js} +28 -30
  32. package/dist/operate_history.css +1 -0
  33. package/dist/{organization-CEDkYrjK.js → organization-BXGT-lb7.js} +7 -3
  34. package/dist/organization.css +1 -1
  35. package/dist/other_setting-BEV_UK0g.js +213 -0
  36. package/dist/page_animation_setting-Cp5OnFpd.js +108 -0
  37. package/dist/page_animation_setting.css +1 -0
  38. package/dist/{page_w_setting-Bp9cayqE.js → page_w_setting-Q--ct16C.js} +6 -2
  39. package/dist/page_w_setting.css +1 -1
  40. package/dist/{role-WO4NM7Er.js → role-4UgEw3nH.js} +1 -1
  41. package/dist/{setItem-Bjl8zTpQ.js → setItem-Vkcwkj-O.js} +1 -1
  42. package/dist/setItem.css +1 -1
  43. package/dist/tabbar_setting-kbuTvrLB.js +139 -0
  44. package/dist/{theme_setting-Duv0kBY3.js → theme_setting-CEb7UYQO.js} +1 -1
  45. package/dist/theme_setting.css +1 -1
  46. package/dist/toolbar_setting-BG-k2UFc.js +140 -0
  47. package/dist/{user-DeVw-Ynu.js → user-BkUpcQC8.js} +2 -2
  48. package/dist/user.css +1 -1
  49. package/dist/watermark_setting-Cl2EtPAa.js +191 -0
  50. package/dist/watermark_setting.css +1 -1
  51. package/package.json +3 -3
  52. package/src/api/modules/assist/index.ts +0 -1
  53. package/src/api/modules/assist/qunzujiekou.ts +72 -0
  54. package/src/api/modules/assist/typings.d.ts +17 -129
  55. package/src/api/modules/rbac/gangweijiekou.ts +18 -0
  56. package/src/api/modules/rbac/jiaosejiekou.ts +36 -0
  57. package/src/api/modules/rbac/typings.d.ts +133 -1
  58. package/src/api/modules/rbac/yonghujiekou.ts +122 -0
  59. package/src/api/modules/rbac/ziyuanjiekou.ts +21 -0
  60. package/src/api/modules/rbac/zuzhijiekou.ts +18 -0
  61. package/src/components/GroupSelector/index.vue +24 -67
  62. package/src/components/OrgTree/index.vue +1 -1
  63. package/src/components/ResourceSelector/index.vue +15 -45
  64. package/src/views/blackWhiteList/index.vue +3 -9
  65. package/src/views/components/setItem.vue +2 -10
  66. package/src/views/data-permission/index.vue +1 -2
  67. package/src/views/group/index.vue +4 -7
  68. package/src/views/layout_setting/index.vue +20 -99
  69. package/src/views/log_center/login_history.vue +2 -7
  70. package/src/views/log_center/operate_history.vue +11 -4
  71. package/src/views/organization/components/drawerOrganization.vue +43 -0
  72. package/src/views/organization/index.vue +21 -23
  73. package/src/views/page_animation_setting/index.vue +23 -14
  74. package/src/views/page_w_setting/index.vue +6 -19
  75. package/src/views/role/components/ResourceRelation.vue +1 -2
  76. package/src/views/role_group/components/ResourceRelation.vue +1 -2
  77. package/src/views/safe_setting/index.vue +1 -1
  78. package/src/views/theme_setting/index.vue +17 -70
  79. package/src/views/user/components/UserAuthorization.vue +2 -2
  80. package/src/views/watermark_setting/index.vue +1 -4
  81. package/dist/api/modules/assist/gonggaofuwu.d.ts +0 -43
  82. package/dist/breadcrumb_setting-CW3eWnlU.js +0 -108
  83. package/dist/lottie-03f0a035.json +0 -1
  84. package/dist/lottie-0ee63e7f.json +0 -1
  85. package/dist/lottie-10eef4fe.json +0 -1
  86. package/dist/lottie-13f452f1.json +0 -1
  87. package/dist/lottie-14b7b290.json +0 -1
  88. package/dist/lottie-15b8cef1.json +0 -1
  89. package/dist/lottie-15f77960.json +0 -1
  90. package/dist/lottie-1ae9b726.json +0 -1
  91. package/dist/lottie-1b02359f.json +0 -1
  92. package/dist/lottie-1ef286cd.json +0 -1
  93. package/dist/lottie-23cfd18c.json +0 -1
  94. package/dist/lottie-265a0a5d.json +0 -1
  95. package/dist/lottie-28d57c49.json +0 -1
  96. package/dist/lottie-2b54ed10.json +0 -1
  97. package/dist/lottie-2bb6f642.json +0 -1
  98. package/dist/lottie-2cdc07bd.json +0 -1
  99. package/dist/lottie-31c58607.json +0 -1
  100. package/dist/lottie-32884f23.json +0 -1
  101. package/dist/lottie-32fca43a.json +0 -1
  102. package/dist/lottie-3a75445b.json +0 -1
  103. package/dist/lottie-3f27d67c.json +0 -1
  104. package/dist/lottie-4189453f.json +0 -1
  105. package/dist/lottie-4702b37c.json +0 -1
  106. package/dist/lottie-520a5c68.json +0 -1
  107. package/dist/lottie-56bea508.json +0 -1
  108. package/dist/lottie-57c732a3.json +0 -1
  109. package/dist/lottie-5be4a28f.json +0 -1
  110. package/dist/lottie-5e6d7cfa.json +0 -1
  111. package/dist/lottie-64e176c9.json +0 -1
  112. package/dist/lottie-6583dca6.json +0 -1
  113. package/dist/lottie-66c640c6.json +0 -1
  114. package/dist/lottie-68393156.json +0 -1
  115. package/dist/lottie-688465aa.json +0 -1
  116. package/dist/lottie-6bf334f4.json +0 -1
  117. package/dist/lottie-7b4f72ce.json +0 -1
  118. package/dist/lottie-837ec087.json +0 -1
  119. package/dist/lottie-838ac1ba.json +0 -1
  120. package/dist/lottie-8465c2cf.json +0 -1
  121. package/dist/lottie-9e9f04a4.json +0 -1
  122. package/dist/lottie-a13964cb.json +0 -1
  123. package/dist/lottie-ab93a057.json +0 -1
  124. package/dist/lottie-abe308fc.json +0 -1
  125. package/dist/lottie-b24f2cd3.json +0 -1
  126. package/dist/lottie-bf00eaed.json +0 -1
  127. package/dist/lottie-cb22efd7.json +0 -1
  128. package/dist/lottie-cb953f20.json +0 -1
  129. package/dist/lottie-cc209e34.json +0 -1
  130. package/dist/lottie-cfdffceb.json +0 -1
  131. package/dist/lottie-d33c0299.json +0 -1
  132. package/dist/lottie-d430c8ca.json +0 -1
  133. package/dist/lottie-d8cfa560.json +0 -1
  134. package/dist/lottie-da91beb6.json +0 -1
  135. package/dist/lottie-e2bdf85c.json +0 -1
  136. package/dist/lottie-e34ad826.json +0 -1
  137. package/dist/lottie-e80720aa.json +0 -1
  138. package/dist/lottie-e894bc92.json +0 -1
  139. package/dist/lottie-f28020f2.json +0 -1
  140. package/dist/lottie-f71ebbf4.json +0 -1
  141. package/dist/lottie-fb1f4917.json +0 -1
  142. package/dist/lottie-ff2e97c4.json +0 -1
  143. package/dist/menu_setting-C5Pr_E9s.js +0 -155
  144. package/dist/other_setting-DaDLf9QC.js +0 -213
  145. package/dist/page_animation_setting-BzlBS0Sa.js +0 -109
  146. package/dist/tabbar_setting-C_B1WZn1.js +0 -139
  147. package/dist/toolbar_setting-BPROx6V9.js +0 -140
  148. package/dist/watermark_setting-r0rMSViF.js +0 -191
  149. package/src/api/modules/assist/gonggaofuwu.ts +0 -124
@@ -104,162 +104,83 @@ function clickHandle(item: Settings.menu['menuMode']) {
104
104
 
105
105
  <style scoped>
106
106
  .item {
107
- display: flex;
108
- flex-direction: column;
109
- cursor: pointer;
110
- border-width: 1px;
111
- border-color: var(--g-tabbar-tab-hover-bg);
112
- padding-top: 26px;
113
- border-radius: 0.5rem; /* 8px */
114
- border-style: solid;
107
+ --at-apply: flex flex-col cursor-pointer border border-[color:var(--g-tabbar-tab-hover-bg)] pt-[26px] rounded-lg border-solid;
115
108
  place-items: center center;
116
109
  background: linear-gradient(180deg, var(--g-bg) 0%, var(--g-bg) 100%);
117
110
  }
118
111
 
119
112
  .item .mode {
120
- position: relative;
121
- width: 4rem; /* 64px */
122
- height: 3rem; /* 48px */
123
- transition-property: color, background-color, border-color,
124
- text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
125
- backdrop-filter;
126
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
127
- transition-duration: 150ms;
113
+ --at-apply: relative w-16 h-12 transition;
128
114
  }
129
115
 
130
116
  .item .mode::before,
131
117
  .item .mode::after,
132
118
  .item .mode .mode-container {
133
- position: absolute;
134
- pointer-events: none;
135
- border-width: 0.15rem; /* 2.4px */
119
+ --at-apply: absolute pointer-events-none border-[0.15rem];
136
120
  }
137
121
 
138
122
  .item .mode::before {
139
- content: "";
140
- background-color: rgb(var(--ui-primary)) /* rgb(var(--ui-primary)) */;
123
+ --at-apply: content-empty bg-ui-primary;
141
124
  }
142
125
 
143
126
  .item .mode::after {
144
- content: "";
145
- background-color: rgb(var(--ui-primary) / 0.6) /* rgb(var(--ui-primary)) */;
127
+ --at-apply: content-empty bg-ui-primary/60;
146
128
  }
147
129
 
148
130
  .item .mode .mode-container {
149
- background-color: rgb(var(--ui-primary) / 0.2) /* rgb(var(--ui-primary)) */;
150
- border-style: dashed;
151
- border-color: rgb(var(--ui-primary));
131
+ --at-apply: bg-ui-primary/20 border-dashed border-ui-primary;
152
132
  }
153
133
 
154
134
  .item .mode .mode-container::before {
155
- content: "";
156
- position: absolute;
157
- width: 100%;
158
- height: 100%;
135
+ --at-apply: content-empty absolute w-full h-full;
159
136
  }
160
137
 
161
138
  .item .mode-side::before {
162
- top: 0.5rem; /* 8px */
163
- bottom: 0.5rem; /* 8px */
164
- left: 0.5rem; /* 8px */
165
- width: 0.5rem; /* 8px */
166
- border-top-left-radius: 0.25rem; /* 4px */
167
- border-bottom-left-radius: 0.25rem; /* 4px */
139
+ --at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
168
140
  }
169
141
 
170
142
  .item .mode-side::after {
171
- top: 0.5rem; /* 8px */
172
- bottom: 0.5rem; /* 8px */
173
- left: 1.125rem; /* 18px */
174
- width: 0.75rem; /* 12px */
143
+ --at-apply: top-2 bottom-2 left-4.5 w-3;
175
144
  }
176
145
 
177
146
  .item .mode-side .mode-container {
178
- top: 0.5rem; /* 8px */
179
- right: 0.5rem; /* 8px */
180
- bottom: 0.5rem; /* 8px */
181
- left: 2rem; /* 32px */
182
- border-top-right-radius: 0.25rem; /* 4px */
183
- border-bottom-right-radius: 0.25rem; /* 4px */
147
+ --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-8 rounded-tr-1 rounded-br-1;
184
148
  }
185
149
 
186
150
  .item .mode-head::before {
187
- top: 0.5rem; /* 8px */
188
- left: 0.5rem; /* 8px */
189
- right: 0.5rem; /* 8px */
190
- height: 0.5rem; /* 8px */
191
- border-top-left-radius: 0.25rem; /* 4px */
192
- border-top-right-radius: 0.25rem; /* 4px */
151
+ --at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
193
152
  }
194
153
 
195
154
  .item .mode-head::after {
196
- top: 1.125rem; /* 18px */
197
- left: 0.5rem; /* 8px */
198
- bottom: 0.5rem; /* 8px */
199
- width: 0.75rem; /* 12px */
200
- border-bottom-left-radius: 0.25rem; /* 4px */
155
+ --at-apply: top-4.5 left-2 bottom-2 w-3 rounded-bl-1;
201
156
  }
202
157
 
203
158
  .item .mode-head .mode-container {
204
- top: 1.125rem; /* 18px */
205
- right: 0.5rem; /* 8px */
206
- bottom: 0.5rem; /* 8px */
207
- left: 1.375rem; /* 22px */
208
- border-bottom-right-radius: 0.25rem; /* 4px */
159
+ --at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-5.5 rounded-br-1;
209
160
  }
210
161
 
211
162
  .item .mode-single::after {
212
- top: 0.5rem; /* 8px */
213
- left: 0.5rem; /* 8px */
214
- bottom: 0.5rem; /* 8px */
215
- width: 0.75rem; /* 12px */
216
- border-top-left-radius: 0.25rem; /* 4px */
217
- border-bottom-left-radius: 0.25rem; /* 4px */
163
+ --at-apply: top-2 left-2 bottom-2 w-3 rounded-tl-1 rounded-bl-1;
218
164
  }
219
165
 
220
166
  .item .mode-single .mode-container {
221
- top: 0.5rem; /* 8px */
222
- right: 0.5rem; /* 8px */
223
- bottom: 0.5rem; /* 8px */
224
- left: 1.375rem; /* 22px */
225
- border-top-right-radius: 0.25rem; /* 4px */
226
- border-bottom-right-radius: 0.25rem; /* 4px */
167
+ --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-5.5 rounded-tr-1 rounded-br-1;
227
168
  }
228
169
 
229
170
  .item .mode-only-side::before {
230
- top: 0.5rem; /* 8px */
231
- bottom: 0.5rem; /* 8px */
232
- left: 0.5rem; /* 8px */
233
- width: 0.5rem; /* 8px */
234
- border-top-left-radius: 0.25rem; /* 4px */
235
- border-bottom-left-radius: 0.25rem; /* 4px */
171
+ --at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
236
172
  }
237
173
 
238
174
  .item .mode-only-side .mode-container {
239
- top: 0.5rem; /* 8px */
240
- right: 0.5rem; /* 8px */
241
- bottom: 0.5rem; /* 8px */
242
- left: 1.125rem; /* 18px */
243
- border-top-right-radius: 0.25rem; /* 4px */
244
- border-bottom-right-radius: 0.25rem; /* 4px */
175
+ --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-4.5 rounded-tr-1 rounded-br-1;
245
176
  }
246
177
 
247
178
  .item .mode-only-head::before {
248
- top: 0.5rem; /* 8px */
249
- left: 0.5rem; /* 8px */
250
- right: 0.5rem; /* 8px */
251
- height: 0.5rem; /* 8px */
252
- border-top-left-radius: 0.25rem; /* 4px */
253
- border-top-right-radius: 0.25rem; /* 4px */
179
+ --at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
254
180
  }
255
181
 
256
182
  .item .mode-only-head .mode-container {
257
- top: 1.125rem; /* 18px */
258
- right: 0.5rem; /* 8px */
259
- bottom: 0.5rem; /* 8px */
260
- left: 0.5rem; /* 8px */
261
- border-bottom-left-radius: 0.25rem; /* 4px */
262
- border-bottom-right-radius: 0.25rem; /* 4px */
183
+ --at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-2 rounded-bl-1 rounded-br-1;
263
184
  }
264
185
 
265
186
  .item .jb {
@@ -267,7 +188,7 @@ function clickHandle(item: Settings.menu['menuMode']) {
267
188
  }
268
189
 
269
190
  .item .jb .layout-demo {
270
- width: 70%;
191
+ --at-apply: w-70%;
271
192
  }
272
193
 
273
194
  .item-side .layout-demo {
@@ -225,15 +225,10 @@ function showDetailDrawer(record: API.PubLoginLogDto) {
225
225
 
226
226
  <style scoped>
227
227
  .status-mark {
228
- display: inline-block;
229
- width: 0.5rem; /* 8px */
230
- height: 0.5rem; /* 8px */
231
- background-color: #aeaeae;
232
- margin-right: 0.25rem; /* 4px */
233
- border-radius: 50%;
228
+ --at-apply: inline-block w-2 h-2 bg-[#aeaeae] mr-1 rounded-[50%];
234
229
  }
235
230
 
236
231
  .status-mark.active {
237
- background: #01d689;
232
+ --at-apply: [background:#01d689];
238
233
  }
239
234
  </style>
@@ -192,10 +192,7 @@ function showDetailDrawer(record: API.PubOperateLogDto) {
192
192
  <template #bodyCell="{ column, record }">
193
193
  <template v-if="column.dataIndex === 'success'">
194
194
  <div class="flex items-center">
195
- <i
196
- :data-active="record.success"
197
- class="inline-block w-2 h-2 bg-[#aeaeae] mr-1 rounded-[50%] data-[active]:[background:#01d689]"
198
- />
195
+ <i class="status-mark" :class="[{ active: record.success }]" />
199
196
  <span class="ml-4px">{{ record.success ? '正常' : '异常' }}</span>
200
197
  </div>
201
198
  </template>
@@ -219,3 +216,13 @@ function showDetailDrawer(record: API.PubOperateLogDto) {
219
216
  />
220
217
  </div>
221
218
  </template>
219
+
220
+ <style scoped>
221
+ .status-mark {
222
+ --at-apply: inline-block w-2 h-2 bg-[#aeaeae] mr-1 rounded-[50%];
223
+ }
224
+
225
+ .status-mark.active {
226
+ background: #01d689;
227
+ }
228
+ </style>
@@ -5,6 +5,7 @@ import { useToggle } from '@vueuse/core';
5
5
  import { message } from 'ant-design-vue';
6
6
  import { getDictItemList } from '@/api/modules/configData';
7
7
  import { getRbacOrgInfo, postRbacOrgAddOrg, postRbacOrgUpdateOrg } from '@/api/modules/rbac';
8
+ import { selectUser } from '@/components/OrgUserSelector';
8
9
  import { ACTION } from '../enum';
9
10
 
10
11
  defineOptions({
@@ -41,13 +42,25 @@ getDictItemList({ dictCode: 'orgType' }).then((res: API.ResponseDataListDictItem
41
42
  });
42
43
  });
43
44
  const form = ref<Partial<API.PubOrg & { parentName: string }>>({ parentId: '', enable: true });
45
+ const selectedUsers = ref<
46
+ {
47
+ orgId?: string
48
+ userId?: string
49
+ userName?: string
50
+ }[]>([]);
44
51
  async function onOpen(key: ACTION, record?: API.PubOrg) {
45
52
  setOpen(true);
46
53
  state.title = key;
54
+ selectedUsers.value = [];
47
55
  if (key === ACTION.EDIT) {
48
56
  const res = await getRbacOrgInfo({ id: record?.id as string });
49
57
  if (res.success) {
50
58
  form.value = res.data ?? {};
59
+ selectedUsers.value = [{
60
+ orgId: res.data?.leaderUserOrgId ?? '',
61
+ userId: res.data?.leaderUserId ?? '',
62
+ userName: res.data?.leaderUserName ?? '',
63
+ }];
51
64
  }
52
65
  }
53
66
  else if (key === ACTION.ADDNEXT) {
@@ -67,12 +80,34 @@ async function onOpen(key: ACTION, record?: API.PubOrg) {
67
80
  }
68
81
  }
69
82
 
83
+ function chooseLeader() {
84
+ selectUser({
85
+ modelValue: selectedUsers.value, // 回显时选中的数据
86
+ multiple: false,
87
+ onSubmit(selected = []) {
88
+ // console.log(selected); // 点击确认后返回选中的数据
89
+ selectedUsers.value = selected.map((user) => {
90
+ return {
91
+ orgId: user.orgId as string,
92
+ userId: user.userId as string,
93
+ userName: user.userName as string,
94
+ };
95
+ });
96
+ },
97
+ });
98
+ }
99
+
70
100
  const [loading, setLoading] = useToggle(false);
71
101
  function onSubmit() {
72
102
  const request = state.title === ACTION.EDIT ? postRbacOrgUpdateOrg : postRbacOrgAddOrg;
73
103
  formRef.value?.validate().then(() => {
74
104
  setLoading(true);
75
105
  const params: any = { ...form.value };
106
+ if (selectedUsers.value.length > 0) {
107
+ params.leaderUserId = selectedUsers.value[0].userId;
108
+ params.leaderUserName = selectedUsers.value[0].userName;
109
+ params.leaderUserOrgId = selectedUsers.value[0].orgId;
110
+ }
76
111
  request(params)
77
112
  .then((res: API.ResponseDataPubOrg) => {
78
113
  if (res.success) {
@@ -137,6 +172,14 @@ defineExpose({
137
172
  <a-form-item label="排序">
138
173
  <a-input-number v-model:value="form.sort" />
139
174
  </a-form-item>
175
+ <a-form-item label="组织负责人">
176
+ <div flex items-center>
177
+ <span v-if="selectedUsers.length > 0" mr-6px>{{ selectedUsers[0]?.userName }}</span>
178
+ <a-button type="primary" @click="chooseLeader">
179
+ 选择负责人
180
+ </a-button>
181
+ </div>
182
+ </a-form-item>
140
183
  <a-form-item label="统一社会信用代码" name="creditCode">
141
184
  <a-input v-model:value="form.creditCode" />
142
185
  </a-form-item>
@@ -326,15 +326,10 @@ function onAction(key: string, record?: ChilData): void {
326
326
  </script>
327
327
 
328
328
  <template>
329
- <div class="w-full h-full p-10px">
330
- <div
331
- class="org_page [list-style:none] relative box-border w-full h-full text-sm
332
- leading-[1.5714] text-[rgb(0_0_0_/_88%)]
333
- shadow-[0_1px_2px_0_rgba(0,0,0,0.03),0_1px_6px_-1px_rgba(0,0,0,0.02),0_2px_4px_0_rgba(0,0,0,0.02)]
334
- m-0 p-0 rounded-lg bg-[#fff] dark:bg-[#141414]"
335
- >
336
- <div class="flex items-center justify-between pl-6 pr-4 py-4">
337
- <div class="flex items-center">
329
+ <div w-full h-full p-10px>
330
+ <div class="org_page bg-[#fff] dark:bg-[#141414]">
331
+ <div class="search_panel">
332
+ <div class="left">
338
333
  <label class="dark:text-[#f7f7f7]">组织名称:</label>
339
334
  <a-select
340
335
  v-model:value="searchId"
@@ -361,7 +356,7 @@ function onAction(key: string, record?: ChilData): void {
361
356
  </template>
362
357
  </a-select>
363
358
  </div>
364
- <div class="items-center">
359
+ <div class="right">
365
360
  <a-button @click="reset">
366
361
  重置
367
362
  </a-button>
@@ -453,24 +448,32 @@ function onAction(key: string, record?: ChilData): void {
453
448
 
454
449
  <style scoped>
455
450
  .org_page {
451
+ --at-apply: [list-style:none] relative box-border w-full h-full text-sm leading-[1.5714] text-[rgb(0_0_0_/_88%)] shadow-[0_1px_2px_0_rgba(0,0,0,0.03),0_1px_6px_-1px_rgba(0,0,0,0.02),0_2px_4px_0_rgba(0,0,0,0.02)] m-0 p-0 rounded-lg;
456
452
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
457
453
  }
458
454
 
455
+ .search_panel {
456
+ --at-apply: flex items-center justify-between pl-6 pr-4 py-4;
457
+ }
458
+
459
+ .search_panel .left {
460
+ --at-apply: flex items-center;
461
+ }
462
+ .search_panel .right {
463
+ --at-apply: flex items-center;
464
+ }
459
465
  :deep(.ant-divider-horizontal) {
460
- margin: 0;
466
+ --at-apply: m-0;
461
467
  }
462
468
  </style>
463
469
 
464
470
  <style scoped>
465
471
  :deep(.vxe-table--body-wrapper) {
466
- overflow-x: hidden;
472
+ --at-apply: overflow-x-hidden;
467
473
  }
468
474
 
469
475
  :deep(.vxe-tree--btn-wrapper) {
470
- border-width: 1px;
471
- border-radius: 0.375rem; /* 6px */
472
- border-style: solid;
473
- border-color: #f0f0f0;
476
+ --at-apply: w-[15px] h-[15px] border rounded-md border-solid border-[#f0f0f0];
474
477
  width: 15px !important;
475
478
  height: 15px !important;
476
479
  }
@@ -484,16 +487,11 @@ function onAction(key: string, record?: ChilData): void {
484
487
  }
485
488
 
486
489
  :deep(.vxe-header--column .vxe-resizable) {
487
- width: 1px;
488
- height: 1.6em;
489
- right: 0;
490
- bottom: 0.875rem; /* 14px */
490
+ --at-apply: w-px h-[1.6em] right-0 bottom-3.5;
491
491
  background-color: var(--vxe-table-border-color);
492
492
  }
493
493
 
494
494
  :deep([class*="vxe-icon-"]) {
495
- font-size: 0.75rem; /* 12px */
496
- line-height: 1rem; /* 16px */
497
- transform: scaleX(0.8) scaleY(0.8);
495
+ --at-apply: text-xs scale-[0.8];
498
496
  }
499
497
  </style>
@@ -119,7 +119,11 @@ function setStyle(jsonStr: string) {
119
119
  </script>
120
120
 
121
121
  <template>
122
- <div class="w-full h-full p-10px">
122
+ <div
123
+ w-full
124
+ h-full
125
+ p-10px
126
+ >
123
127
  <div class="w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]">
124
128
  <div class="bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center dark:bg-[#32353B]">
125
129
  <PubinfoIcon name="icon_menu" class="text-base mr-[6px]" :size="22" />
@@ -146,15 +150,8 @@ function setStyle(jsonStr: string) {
146
150
  <div
147
151
  v-for="(mode, index) in transitionModeList"
148
152
  :key="mode.active"
149
- class="flex flex-col cursor-pointer bg-[color:var(--g-bg)]
150
- border border-[color:var(--g-tabbar-tab-hover-bg)] [place-items:center_center]
151
- pt-[26px] rounded-lg border-solid dark:bg-[#3a3e43]!
152
- data-[status=active]:border-[rgb(var(--ui-primary))]
153
- data-[status=active]:shadow-[0_2.6px_13px_0_#59626940]
154
- data-[status=active]:rounded-lg
155
- data-[status=active]:border-[2.6px]
156
- data-[status=active]:border-solid"
157
- :data-status="[transitionMode === mode.active ? 'active' : '', `item-${mode.active}`]"
153
+ class="item dark:bg-[#3a3e43]! "
154
+ :class="[transitionMode === mode.active ? 'active' : '', `item-${mode.active}`]"
158
155
  aspect="[9/6]"
159
156
  @click="clickHandle(mode.active)"
160
157
  @mouseenter="play(index)"
@@ -163,10 +160,7 @@ function setStyle(jsonStr: string) {
163
160
  <div class="text-[#4E5969] text-[14px] dark:text-[#C9CDD4]">
164
161
  {{ mode.descripe }}
165
162
  </div>
166
- <div
167
- class="flex-1 mt-[20px] w-[75%] rounded-[8px] py-[10px] flex justify-center"
168
- style="background: linear-gradient(180deg, var(--g-container-bg) 0%, #fff0 100%);"
169
- >
163
+ <div class="flex-1 mt-[20px] w-[75%] rounded-[8px] jb py-[10px] flex justify-center">
170
164
  <AnimationItem
171
165
  :key="index"
172
166
  :ref="(el: any) => (itemRefs[index] = el as InstanceType<typeof AnimationItem>)"
@@ -181,3 +175,18 @@ function setStyle(jsonStr: string) {
181
175
  </div>
182
176
  </div>
183
177
  </template>
178
+
179
+ <style scoped>
180
+ .item {
181
+ --at-apply: flex flex-col cursor-pointer bg-[color:var(--g-bg)] border border-[color:var(--g-tabbar-tab-hover-bg)] pt-[26px] rounded-lg border-solid;
182
+ place-items: center center;
183
+ }
184
+
185
+ .item .jb {
186
+ background: linear-gradient(180deg, var(--g-container-bg) 0%, #fff0 100%);
187
+ }
188
+
189
+ .item.active {
190
+ --at-apply: border-[rgb(var(--ui-primary))] shadow-[0_2.6px_13px_0_#59626940] rounded-lg border-[2.6px] border-solid;
191
+ }
192
+ </style>
@@ -60,7 +60,9 @@ function clickHandle(item: Settings.layout['widthMode']) {
60
60
 
61
61
  <template>
62
62
  <div
63
- class="w-full h-full p-10px"
63
+ w-full
64
+ h-full
65
+ p-10px
64
66
  >
65
67
  <div class="w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]">
66
68
  <div class="bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center dark:bg-[#32353B]">
@@ -96,16 +98,7 @@ function clickHandle(item: Settings.layout['widthMode']) {
96
98
 
97
99
  <style scoped>
98
100
  .item {
99
- display: flex;
100
- flex-direction: column;
101
- justify-content: center;
102
- align-items: center;
103
- cursor: pointer;
104
- border-width: 1px;
105
- border-color: var(--g-tabbar-tab-hover-bg);
106
- padding-top: 26px;
107
- border-radius: 0.5rem; /* 8px */
108
- border-style: solid;
101
+ --at-apply: flex flex-col justify-center items-center cursor-pointer border border-[color:var(--g-tabbar-tab-hover-bg)] pt-[26px] rounded-lg border-solid;
109
102
  background: linear-gradient(180deg, var(--g-bg) 0%, var(--g-bg) 100%);
110
103
  }
111
104
 
@@ -114,7 +107,7 @@ function clickHandle(item: Settings.layout['widthMode']) {
114
107
  }
115
108
 
116
109
  .item .jb .layout-demo {
117
- width: 70%;
110
+ --at-apply: w-7/10;
118
111
  }
119
112
 
120
113
  .item-adaption .mode {
@@ -158,13 +151,7 @@ function clickHandle(item: Settings.layout['widthMode']) {
158
151
  }
159
152
 
160
153
  .item.active {
161
- border-color: rgb(var(--ui-primary));
162
- --un-shadow: 0 2.6px 13px 0 var(--un-shadow-color, rgba(89, 98, 105, 0.25));
163
- box-shadow: var(--un-ring-offset-shadow), var(--un-ring-shadow),
164
- var(--un-shadow);
165
- border-radius: 0.5rem; /* 8px */
166
- border-width: 2.6px;
167
- border-style: solid;
154
+ --at-apply: border-[rgb(var(--ui-primary))] shadow-[0_2.6px_13px_0_rgba(89,98,105,0.25)] rounded-lg border-[2.6px] border-solid;
168
155
  }
169
156
 
170
157
  [data-theme="dark"] .item,
@@ -107,7 +107,6 @@ defineExpose({
107
107
 
108
108
  <style scoped>
109
109
  :deep(.ant-drawer-body) {
110
- padding-left: 0;
111
- padding-right: 0;
110
+ --at-apply: px-0;
112
111
  }
113
112
  </style>
@@ -85,7 +85,6 @@ defineExpose({
85
85
 
86
86
  <style scoped>
87
87
  :deep(.ant-drawer-body) {
88
- padding-left: 0;
89
- padding-right: 0;
88
+ --at-apply: px-0;
90
89
  }
91
90
  </style>
@@ -230,6 +230,6 @@ async function onSubmit() {
230
230
  <style>
231
231
  .safe-rule-form .ant-input,
232
232
  .safe-rule-form .ant-select {
233
- width: 90%;
233
+ --at-apply: w-9/10;
234
234
  }
235
235
  </style>