Skip to content

Commit a033706

Browse files
committed
feat: 流程模型列表页面样式与文字细节调整优化
1 parent ea02192 commit a033706

File tree

2 files changed

+36
-21
lines changed

2 files changed

+36
-21
lines changed

src/views/bpm/model/CategoryDraggableModel.vue

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
>
1010
<Icon icon="ep:arrow-down-bold" color="#999" />
1111
</div>
12-
<div class="ml-auto mr-30px">
12+
<div class="ml-auto mr-45px">
1313
<template v-if="!isSorting">
1414
<el-button link type="info" class="mr-10px" @click.stop="handleSort">
1515
<Icon icon="fa:sort-amount-desc" class="mr-5px" />
@@ -36,7 +36,8 @@
3636
<el-table
3737
:class="title"
3838
ref="tableRef"
39-
:header-cell-style="{ backgroundColor: isDark ? '' : '#edeff0' }"
39+
:header-cell-style="{ backgroundColor: isDark ? '' : '#edeff0', paddingLeft: '10px' }"
40+
:cell-style="{ paddingLeft: '10px' }"
4041
:data="dataList"
4142
>
4243
<el-table-column label="流程名" prop="name" min-width="150">
@@ -48,7 +49,7 @@
4849
class="drag-icon cursor-move text-#8a909c mr-10px"
4950
/>
5051
</el-tooltip>
51-
<el-image :src="scope.row.icon" class="h-32px w-32px mr-10px rounded" />
52+
<el-image :src="scope.row.icon" class="h-38px w-38px mr-10px rounded" />
5253
{{ scope.row.name }}
5354
</div>
5455
</template>
@@ -96,20 +97,22 @@
9697
</el-table-column>
9798
<el-table-column label="最后发布" prop="deploymentTime" min-width="250">
9899
<template #default="scope">
99-
<span v-if="scope.row.processDefinition">
100-
{{ formatDate(scope.row.processDefinition.deploymentTime) }}
101-
</span>
102-
<el-tag v-if="scope.row.processDefinition" class="ml-10px">
103-
v{{ scope.row.processDefinition.version }}
104-
</el-tag>
105-
<el-tag v-else type="warning">未部署</el-tag>
106-
<el-tag
107-
v-if="scope.row.processDefinition?.suspensionState === 2"
108-
type="warning"
109-
class="ml-10px"
110-
>
111-
已停用
112-
</el-tag>
100+
<div class="flex items-center">
101+
<span v-if="scope.row.processDefinition" class="w-150px">
102+
{{ formatDate(scope.row.processDefinition.deploymentTime) }}
103+
</span>
104+
<el-tag v-if="scope.row.processDefinition">
105+
v{{ scope.row.processDefinition.version }}
106+
</el-tag>
107+
<el-tag v-else type="warning">未部署</el-tag>
108+
<el-tag
109+
v-if="scope.row.processDefinition?.suspensionState === 2"
110+
type="warning"
111+
class="ml-10px"
112+
>
113+
已停用
114+
</el-tag>
115+
</div>
113116
</template>
114117
</el-table-column>
115118
<el-table-column label="操作" width="200" fixed="right">
@@ -384,6 +387,9 @@ onMounted(() => {
384387

385388
<style lang="scss" scoped>
386389
:deep() {
390+
.el-card {
391+
border-radius: 8px;
392+
}
387393
.el-form--inline .el-form-item {
388394
margin-right: 10px;
389395
}
@@ -400,5 +406,14 @@ onMounted(() => {
400406
font-size: 20px;
401407
font-weight: 500;
402408
}
409+
.el-collapse-item__content {
410+
padding-bottom: 0;
411+
}
412+
.el-table__cell {
413+
border-bottom: none !important;
414+
}
415+
.el-table__row {
416+
height: 68px;
417+
}
403418
}
404419
</style>

src/views/bpm/model/index_new.vue

Lines changed: 4 additions & 4 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 class="font-extrabold">表单管理</h3>
4+
<h3 class="font-extrabold">流程模型</h3>
55
<!-- 搜索工作栏 -->
66
<el-form
77
class="-mb-15px flex"
@@ -25,7 +25,7 @@
2525
</el-form-item>
2626
<el-form-item>
2727
<el-button type="primary" @click="openForm('create')" v-hasPermi="['bpm:model:create']">
28-
<Icon icon="ep:plus" class="mr-5px" /> 新建流程
28+
<Icon icon="ep:plus" class="mr-5px" /> 新建模型
2929
</el-button>
3030
</el-form-item>
3131

@@ -38,11 +38,11 @@
3838
<el-dropdown-menu>
3939
<el-dropdown-item>
4040
<Icon icon="ep:circle-plus" :size="13" class="mr-5px" />
41-
新建分组
41+
新建分类
4242
</el-dropdown-item>
4343
<el-dropdown-item>
4444
<Icon icon="fa:sort-amount-desc" :size="13" class="mr-5px" />
45-
分组排序
45+
分类排序
4646
</el-dropdown-item>
4747
</el-dropdown-menu>
4848
</template>

0 commit comments

Comments
 (0)