Skip to content

Commit 9dc268e

Browse files
committed
feat: 样式UI细节优化
1 parent c49e8bd commit 9dc268e

File tree

1 file changed

+35
-11
lines changed

1 file changed

+35
-11
lines changed

src/views/bpm/model/index_new.vue

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<ContentWrap>
33
<div class="flex justify-between pl-20px items-center">
4-
<h3>表单管理</h3>
4+
<h3 class="font-extrabold">表单管理</h3>
55
<!-- 搜索工作栏 -->
66
<el-form
77
class="-mb-15px flex"
@@ -31,7 +31,7 @@
3131

3232
<el-form-item>
3333
<el-dropdown placement="bottom-end">
34-
<el-button type="info" plain>
34+
<el-button class="w-30px" plain>
3535
<Icon icon="ep:setting" />
3636
</el-button>
3737
<template #dropdown>
@@ -55,7 +55,7 @@
5555

5656
<!-- 分类卡片组 -->
5757
<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">
5959
<!-- 默认使其全部展开 -->
6060
<el-collapse :modelValue="title">
6161
<el-collapse-item :name="title">
@@ -64,20 +64,32 @@
6464
class="ml-20px flex items-center"
6565
:class="['transition-transform duration-300', isActive ? 'rotate-180' : 'rotate-0']"
6666
>
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>
6878
</div>
6979
</template>
7080
<template #title>
7181
<div class="flex items-center">
7282
<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>
7684
</div>
7785
</template>
7886

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">
8193
<template #default="scope">
8294
<div class="flex items-center">
8395
<el-image :src="scope.row.icon" class="h-32px w-32px mr-10px rounded" />
@@ -240,11 +252,14 @@ import { CategoryApi } from '@/api/bpm/category'
240252
import { BpmModelType } from '@/utils/constants'
241253
import { checkPermi } from '@/utils/permission'
242254
import { useUserStoreWithOut } from '@/store/modules/user'
255+
import { useAppStore } from '@/store/modules/app'
243256
import { groupBy } from 'lodash-es'
244257
245258
defineOptions({ name: 'BpmModel' })
246259
260+
const appStore = useAppStore()
247261
const message = useMessage() // 消息弹窗
262+
const isDark = computed(() => appStore.getIsDark)
248263
const { t } = useI18n() // 国际化
249264
const { push } = useRouter() // 路由
250265
const userStore = useUserStoreWithOut() // 用户信息缓存
@@ -278,7 +293,6 @@ const handleQuery = () => {
278293
getList()
279294
}
280295
281-
282296
/** '更多'操作按钮 */
283297
const handleCommand = (command: string, row: any) => {
284298
switch (command) {
@@ -402,6 +416,16 @@ const isManagerUser = (row: any) => {
402416
return row.managerUserIds && row.managerUserIds.includes(userId)
403417
}
404418
419+
/* 排序 */
420+
const handleSort = () => {
421+
console.log('排序')
422+
}
423+
424+
/* 分组 */
425+
const handleGroup = () => {
426+
console.log('分组')
427+
}
428+
405429
/** 初始化 **/
406430
onMounted(async () => {
407431
await getList()
@@ -416,7 +440,7 @@ onMounted(async () => {
416440
margin-right: 10px;
417441
}
418442
.el-divider--horizontal {
419-
margin-top: 10px;
443+
margin-top: 6px;
420444
}
421445
.el-collapse,
422446
.el-collapse-item__header,

0 commit comments

Comments
 (0)