1
1
<template >
2
2
<ContentWrap >
3
3
<div class =" flex justify-between pl-20px items-center" >
4
- <h3 >表单管理</h3 >
4
+ <h3 class = " font-extrabold " >表单管理</h3 >
5
5
<!-- 搜索工作栏 -->
6
6
<el-form
7
7
class =" -mb-15px flex"
31
31
32
32
<el-form-item >
33
33
<el-dropdown placement =" bottom-end" >
34
- <el-button type = " info " plain >
34
+ <el-button class = " w-30px " plain >
35
35
<Icon icon =" ep:setting" />
36
36
</el-button >
37
37
<template #dropdown >
55
55
56
56
<!-- 分类卡片组 -->
57
57
<div class =" px-15px" >
58
- <ContentWrap v-for =" (list, title) in categoryGroup" :key =" title" >
58
+ <ContentWrap :body-style = " { padding: 0 } " v-for =" (list, title) in categoryGroup" :key =" title" >
59
59
<!-- 默认使其全部展开 -->
60
60
<el-collapse :modelValue =" title" >
61
61
<el-collapse-item :name =" title" >
64
64
class =" ml-20px flex items-center"
65
65
:class =" ['transition-transform duration-300', isActive ? 'rotate-180' : 'rotate-0']"
66
66
>
67
- <Icon icon =" ep:arrow-down" />
67
+ <Icon icon =" ep:arrow-down-bold" color =" #999" />
68
+ </div >
69
+ <div class =" ml-auto mr-30px" >
70
+ <el-button link type =" info" class =" mr-10px" @click.stop =" handleSort" >
71
+ <Icon icon =" fa:sort-amount-desc" class =" mr-5px" />
72
+ 排序
73
+ </el-button >
74
+ <el-button link type =" info" @click.stop =" handleGroup" >
75
+ <Icon icon =" ep:setting" class =" mr-5px" />
76
+ 分组
77
+ </el-button >
68
78
</div >
69
79
</template >
70
80
<template #title >
71
81
<div class =" flex items-center" >
72
82
<h3 class =" ml-20px mr-8px text-18px" >{{ title }}</h3 >
73
- <div class =" text-[var(--el-text-color-placeholder)] text-16px" >
74
- ({{ list?.length || 0 }})
75
- </div >
83
+ <div class =" color-gray-600 text-16px" > ({{ list?.length || 0 }}) </div >
76
84
</div >
77
85
</template >
78
86
79
- <el-table v-loading =" loading" :data =" list" >
80
- <el-table-column label =" 流程名" prop =" name" min-width =" 200" >
87
+ <el-table
88
+ :header-cell-style =" { backgroundColor: isDark ? '' : '#edeff0' }"
89
+ v-loading =" loading"
90
+ :data =" list"
91
+ >
92
+ <el-table-column label =" 流程名" prop =" name" min-width =" 150" >
81
93
<template #default =" scope " >
82
94
<div class =" flex items-center" >
83
95
<el-image :src =" scope.row.icon" class =" h-32px w-32px mr-10px rounded" />
@@ -240,11 +252,14 @@ import { CategoryApi } from '@/api/bpm/category'
240
252
import { BpmModelType } from ' @/utils/constants'
241
253
import { checkPermi } from ' @/utils/permission'
242
254
import { useUserStoreWithOut } from ' @/store/modules/user'
255
+ import { useAppStore } from ' @/store/modules/app'
243
256
import { groupBy } from ' lodash-es'
244
257
245
258
defineOptions ({ name: ' BpmModel' })
246
259
260
+ const appStore = useAppStore ()
247
261
const message = useMessage () // 消息弹窗
262
+ const isDark = computed (() => appStore .getIsDark )
248
263
const { t } = useI18n () // 国际化
249
264
const { push } = useRouter () // 路由
250
265
const userStore = useUserStoreWithOut () // 用户信息缓存
@@ -278,7 +293,6 @@ const handleQuery = () => {
278
293
getList ()
279
294
}
280
295
281
-
282
296
/** '更多'操作按钮 */
283
297
const handleCommand = (command : string , row : any ) => {
284
298
switch (command ) {
@@ -402,6 +416,16 @@ const isManagerUser = (row: any) => {
402
416
return row .managerUserIds && row .managerUserIds .includes (userId )
403
417
}
404
418
419
+ /* 排序 */
420
+ const handleSort = () => {
421
+ console .log (' 排序' )
422
+ }
423
+
424
+ /* 分组 */
425
+ const handleGroup = () => {
426
+ console .log (' 分组' )
427
+ }
428
+
405
429
/** 初始化 **/
406
430
onMounted (async () => {
407
431
await getList ()
@@ -416,7 +440,7 @@ onMounted(async () => {
416
440
margin-right : 10px ;
417
441
}
418
442
.el-divider--horizontal {
419
- margin-top : 10 px ;
443
+ margin-top : 6 px ;
420
444
}
421
445
.el-collapse ,
422
446
.el-collapse-item__header ,
0 commit comments