Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
pet-business-web
Commits
6b5968c2
Commit
6b5968c2
authored
Aug 22, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug(66555) - 二次确认
parent
2f9706e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
37 deletions
+77
-37
check-item.vue
...rvice-management/medical-record-management/check-item.vue
+38
-18
treatment-item.vue
...ervice-management/treatment-management/treatment-item.vue
+39
-19
No files found.
src/views/service-management/medical-record-management/check-item.vue
View file @
6b5968c2
...
@@ -472,30 +472,50 @@ export default {
...
@@ -472,30 +472,50 @@ export default {
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
console
.
log
(
'成功通过....'
)
console
.
log
(
'成功通过....'
)
const
addList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
settingList
))
this
.
$confirm
(
'系统将立即发布编辑内容,是否确定?'
,
'提示'
,
{
console
.
log
(
'新增或者修改的集合'
,
addList
)
confirmButtonText
:
'确定'
,
// 开始加loading遮罩, 防止操作
cancelButtonText
:
'取消'
,
// this.fullscreenLoading = true
customClass
:
'box-logout'
,
updateItem
(
addList
).
then
(
response
=>
{
cancelButtonClass
:
'resetBtn'
,
console
.
log
(
'新增/修改--'
,
response
)
confirmButtonClass
:
'queryBtn'
,
if
(
response
.
code
===
200
)
{
type
:
'warning'
,
this
.
getList
()
closeOnClickModal
:
false
// 解开遮罩层
}).
then
(()
=>
{
this
.
$message
.
success
(
'操作成功'
)
const
addList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
settingList
))
// this.fullscreenLoading = false
console
.
log
(
'新增或者修改的集合'
,
addList
)
// 提交成功后返回表格
// 开始加loading遮罩, 防止操作
this
.
$router
.
push
({
// this.fullscreenLoading = true
name
:
'CheckManagement'
updateItem
(
addList
).
then
(
response
=>
{
})
console
.
log
(
'新增/修改--'
,
response
)
}
if
(
response
.
code
===
200
)
{
this
.
getList
()
// 解开遮罩层
this
.
$message
.
success
(
'编辑成功'
)
// this.fullscreenLoading = false
// 提交成功后返回表格
this
.
$router
.
push
({
name
:
'CheckManagement'
})
}
})
})
})
}
}
})
})
},
},
// 返回
// 返回
handleGoBack
()
{
handleGoBack
()
{
this
.
$router
.
push
({
this
.
$confirm
(
'是否确认立即返回,返回后系统不再保存已填写内容!'
,
'提示'
,
{
path
:
'/service-management/medical-record-management'
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'box-logout'
,
cancelButtonClass
:
'resetBtn'
,
confirmButtonClass
:
'queryBtn'
,
type
:
'warning'
,
closeOnClickModal
:
false
}).
then
(()
=>
{
this
.
$router
.
push
({
path
:
'/service-management/medical-record-management'
})
})
})
}
}
}
}
...
...
src/views/service-management/treatment-management/treatment-item.vue
View file @
6b5968c2
...
@@ -414,31 +414,51 @@ export default {
...
@@ -414,31 +414,51 @@ export default {
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
console
.
log
(
'成功通过....'
)
this
.
$confirm
(
'系统将立即发布编辑内容,是否确定?'
,
'提示'
,
{
const
addList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
settingList
))
confirmButtonText
:
'确定'
,
console
.
log
(
'新增或者修改的集合'
,
addList
)
cancelButtonText
:
'取消'
,
// 开始加loading遮罩, 防止操作
customClass
:
'box-logout'
,
// this.fullscreenLoading = true
cancelButtonClass
:
'resetBtn'
,
updateItem
(
addList
).
then
(
response
=>
{
confirmButtonClass
:
'queryBtn'
,
console
.
log
(
'新增/修改--'
,
response
)
type
:
'warning'
,
if
(
response
.
code
===
200
)
{
closeOnClickModal
:
false
this
.
getList
()
}).
then
(()
=>
{
// 解开遮罩层
console
.
log
(
'成功通过....'
)
this
.
$message
.
success
(
'操作成功'
)
const
addList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
.
settingList
))
// this.fullscreenLoading = false
console
.
log
(
'新增或者修改的集合'
,
addList
)
// 提交成功后返回表格
// 开始加loading遮罩, 防止操作
this
.
$router
.
push
({
// this.fullscreenLoading = true
name
:
'TreatmentManagement'
updateItem
(
addList
).
then
(
response
=>
{
})
console
.
log
(
'新增/修改--'
,
response
)
}
if
(
response
.
code
===
200
)
{
this
.
getList
()
// 解开遮罩层
this
.
$message
.
success
(
'操作成功'
)
// this.fullscreenLoading = false
// 提交成功后返回表格
this
.
$router
.
push
({
name
:
'TreatmentManagement'
})
}
})
})
})
}
}
})
})
},
},
// 返回
// 返回
handleGoBack
()
{
handleGoBack
()
{
this
.
$router
.
push
({
this
.
$confirm
(
'是否确认立即返回,返回后系统不再保存已填写内容!'
,
'提示'
,
{
name
:
'TreatmentManagement'
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'box-logout'
,
cancelButtonClass
:
'resetBtn'
,
confirmButtonClass
:
'queryBtn'
,
type
:
'warning'
,
closeOnClickModal
:
false
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
'TreatmentManagement'
})
})
})
}
}
}
}
...
...
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