Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1a95687f
authored
Dec 01, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码评审】工作流:审批列表
parent
f2f93913
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
33 deletions
+23
-33
pnpm-lock.yaml
+0
-0
src/views/bpm/processInstance/index.vue
+23
-33
No files found.
pnpm-lock.yaml
View file @
1a95687f
This diff is collapsed.
Click to expand it.
src/views/bpm/processInstance/index.vue
View file @
1a95687f
...
@@ -44,21 +44,21 @@
...
@@ -44,21 +44,21 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
""
prop=
"status"
:style=
"
{ position: 'absolute', right: '130px' }">
<el-form-item
label=
""
prop=
"status"
:style=
"
{ position: 'absolute', right: '130px' }">
<el-select
<el-select
v-model=
"queryParams.status"
v-model=
"queryParams.status"
placeholder=
"请选择流程状态"
placeholder=
"请选择流程状态"
clearable
clearable
class=
"!w-155px"
class=
"!w-155px"
@
change=
"handleQuery"
@
change=
"handleQuery"
>
>
<el-option
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS)"
:key=
"dict.value"
:key=
"dict.value"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<!-- 高级筛选 -->
<!-- 高级筛选 -->
<!-- TODO @ tuituji:style 可以使用 unocss -->
<!-- TODO @ tuituji:style 可以使用 unocss -->
...
@@ -71,10 +71,9 @@
...
@@ -71,10 +71,9 @@
placement=
"bottom-end"
placement=
"bottom-end"
>
>
<template
#
reference
>
<template
#
reference
>
<el-button
@
click=
"showPopover = !showPopover"
>
<el-button
@
click=
"showPopover = !showPopover"
>
<Icon
icon=
"ep:plus"
class=
"mr-5px"
/>
高级筛选
<Icon
icon=
"ep:plus"
class=
"mr-5px"
/>
高级筛选
</el-button>
</el-button>
</
template
>
</
template
>
<el-form-item
label=
"流程发起人"
class=
"bold-label"
label-position=
"top"
prop=
"category"
>
<el-form-item
label=
"流程发起人"
class=
"bold-label"
label-position=
"top"
prop=
"category"
>
<el-select
<el-select
...
@@ -116,13 +115,13 @@
...
@@ -116,13 +115,13 @@
class=
"!w-240px"
class=
"!w-240px"
/>
/>
</el-form-item>
</el-form-item>
<!-- TODO tuituiji:参考钉钉,1)按照清空、取消、确认排序。2)右对齐。3)确认增加 primary -->
<el-form-item
class=
"bold-label"
label-position=
"top"
>
<el-form-item
class=
"bold-label"
label-position=
"top"
>
<el-button
@
click=
"handleQuery"
>
确认
</el-button>
<el-button
@
click=
"handleQuery"
>
确认
</el-button>
<el-button
@
click=
"showPopover = false"
>
取消
</el-button>
<el-button
@
click=
"showPopover = false"
>
取消
</el-button>
<el-button
@
click=
"resetQuery"
>
清空
</el-button>
<el-button
@
click=
"resetQuery"
>
清空
</el-button>
</el-form-item>
</el-form-item>
</el-popover>
</el-popover>
<!-- TODO @tuituji:这里应该有确认,和取消、清空搜索条件,三个按钮。 RE:done & to check-->
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</ContentWrap>
</ContentWrap>
...
@@ -139,7 +138,7 @@
...
@@ -139,7 +138,7 @@
fixed=
"left"
fixed=
"left"
/>
/>
<!-- TODO @芋艿:摘要 -->
<!-- TODO @芋艿:摘要 -->
<!-- TODO
@tuituji:流程状态。可见需求文档里 Re:没看懂
-->
<!-- TODO
tuituiji:参考钉钉;1)审批中时,展示审批任务;2)非审批中,展示状态
-->
<el-table-column
label=
"流程状态"
prop=
"status"
width=
"120"
>
<el-table-column
label=
"流程状态"
prop=
"status"
width=
"120"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS"
:value=
"scope.row.status"
/>
<dict-tag
:type=
"DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS"
:value=
"scope.row.status"
/>
...
@@ -283,7 +282,7 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
...
@@ -283,7 +282,7 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
}
}
/** 查看详情 */
/** 查看详情 */
const
handleDetail
=
(
row
)
=>
{
const
handleDetail
=
(
row
:
ProcessInstanceVO
)
=>
{
router
.
push
({
router
.
push
({
name
:
'BpmProcessInstanceDetail'
,
name
:
'BpmProcessInstanceDetail'
,
query
:
{
query
:
{
...
@@ -293,7 +292,7 @@ const handleDetail = (row) => {
...
@@ -293,7 +292,7 @@ const handleDetail = (row) => {
}
}
/** 取消按钮操作 */
/** 取消按钮操作 */
const
handleCancel
=
async
(
row
)
=>
{
const
handleCancel
=
async
(
row
:
ProcessInstanceVO
)
=>
{
// 二次确认
// 二次确认
const
{
value
}
=
await
ElMessageBox
.
prompt
(
'请输入取消原因'
,
'取消流程'
,
{
const
{
value
}
=
await
ElMessageBox
.
prompt
(
'请输入取消原因'
,
'取消流程'
,
{
confirmButtonText
:
t
(
'common.ok'
),
confirmButtonText
:
t
(
'common.ok'
),
...
@@ -308,15 +307,6 @@ const handleCancel = async (row) => {
...
@@ -308,15 +307,6 @@ const handleCancel = async (row) => {
await
getList
()
await
getList
()
}
}
// TODO @tuituji:这个 import 是不是没用哈?
// import { ClickOutside as vClickOutside } from 'element-plus'
// TODO @tuituji:onClickAdvancedSearch。方法名叫这个,会更好一些哇?打开高级搜索。
const
popoverRef
=
ref
()
const
onClickOutside
=
()
=>
{
unref
(
popoverRef
).
popperRef
?.
delayHide
?.()
}
/** 激活时 **/
/** 激活时 **/
onActivated
(()
=>
{
onActivated
(()
=>
{
getList
()
getList
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment