Commit 6b5968c2 authored by 盖献康's avatar 盖献康

bug(66555) - 二次确认

parent 2f9706e4
...@@ -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'
})
}) })
} }
} }
......
...@@ -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'
})
}) })
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment