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
604b8867
authored
Apr 19, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复流程表单:表单保存后返回列表页面且重新加载列表数据
parent
3d579b3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
src/views/bpm/form/editor/index.vue
+10
-1
src/views/bpm/form/index.vue
+11
-2
No files found.
src/views/bpm/form/editor/index.vue
View file @
604b8867
...
...
@@ -44,10 +44,13 @@ import { CommonStatusEnum } from '@/utils/constants'
import
*
as
FormApi
from
'@/api/bpm/form'
import
FcDesigner
from
'@form-create/designer'
import
{
encodeConf
,
encodeFields
,
setConfAndFields
}
from
'@/utils/formCreate'
import
{
useTagsViewStore
}
from
'@/store/modules/tagsView'
const
{
t
}
=
useI18n
()
// 国际化
const
message
=
useMessage
()
// 消息
const
{
query
}
=
useRoute
()
// 路由
const
{
push
,
currentRoute
}
=
useRouter
()
// 路由
const
{
query
}
=
useRoute
()
// 路由信息
const
{
delView
}
=
useTagsViewStore
()
// 视图操作
const
designer
=
ref
()
// 表单设计器
const
dialogVisible
=
ref
(
false
)
// 弹窗是否展示
...
...
@@ -88,10 +91,16 @@ const submitForm = async () => {
message
.
success
(
t
(
'common.updateSuccess'
))
}
dialogVisible
.
value
=
false
close
()
}
finally
{
formLoading
.
value
=
false
}
}
/** 关闭按钮 */
const
close
=
()
=>
{
delView
(
unref
(
currentRoute
))
push
(
'/bpm/manager/form'
)
}
/** 初始化 **/
onMounted
(
async
()
=>
{
...
...
src/views/bpm/form/index.vue
View file @
604b8867
...
...
@@ -98,7 +98,7 @@ import { setConfAndFields2 } from '@/utils/formCreate'
const
message
=
useMessage
()
// 消息弹窗
const
{
t
}
=
useI18n
()
// 国际化
const
{
push
}
=
useRouter
()
// 路由
const
{
currentRoute
,
push
}
=
useRouter
()
// 路由
const
loading
=
ref
(
true
)
// 列表的加载中
const
total
=
ref
(
0
)
// 列表的总页数
...
...
@@ -174,7 +174,16 @@ const openDetail = async (rowId: number) => {
// 弹窗打开
detailVisible
.
value
=
true
}
/**表单保存返回后重新加载列表 */
watch
(
()
=>
currentRoute
.
value
,
()
=>
{
getList
()
},
{
immediate
:
true
}
)
/** 初始化 **/
onMounted
(()
=>
{
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