Commit 545274e8 authored by 盖献康's avatar 盖献康

bug(66039) - 文档管理校验问题

parent 22ffc3d8
...@@ -79,6 +79,8 @@ export default { ...@@ -79,6 +79,8 @@ export default {
// this.$modal.msgError('内容不能为空') // this.$modal.msgError('内容不能为空')
// return // return
// } // }
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.$confirm('系统将立即发布编辑内容,是否确定', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -88,8 +90,6 @@ export default { ...@@ -88,8 +90,6 @@ export default {
type: 'warning', type: 'warning',
closeOnClickModal: false closeOnClickModal: false
}).then(() => { }).then(() => {
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
if (this.isAdd) { if (this.isAdd) {
// 新增 // 新增
addManagement(this.privacyPolicy).then(response => { addManagement(this.privacyPolicy).then(response => {
...@@ -105,8 +105,8 @@ export default { ...@@ -105,8 +105,8 @@ export default {
} }
}) })
} }
}
}) })
}
}) })
}, },
getPrivacyPolicy() { getPrivacyPolicy() {
......
...@@ -79,6 +79,8 @@ export default { ...@@ -79,6 +79,8 @@ export default {
// this.$modal.msgError('内容不能为空') // this.$modal.msgError('内容不能为空')
// return // return
// } // }
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.$confirm('系统将立即发布编辑内容,是否确定', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -88,8 +90,6 @@ export default { ...@@ -88,8 +90,6 @@ export default {
type: 'warning', type: 'warning',
closeOnClickModal: false closeOnClickModal: false
}).then(() => { }).then(() => {
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
if (this.isAdd) { if (this.isAdd) {
// 新增 // 新增
addManagement(this.privacyPolicy).then(response => { addManagement(this.privacyPolicy).then(response => {
...@@ -105,8 +105,8 @@ export default { ...@@ -105,8 +105,8 @@ export default {
} }
}) })
} }
}
}) })
}
}) })
}, },
getPrivacyPolicy() { getPrivacyPolicy() {
......
...@@ -79,6 +79,8 @@ export default { ...@@ -79,6 +79,8 @@ export default {
// this.$modal.msgError('内容不能为空') // this.$modal.msgError('内容不能为空')
// return // return
// } // }
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.$confirm('系统将立即发布编辑内容,是否确定', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -88,8 +90,6 @@ export default { ...@@ -88,8 +90,6 @@ export default {
type: 'warning', type: 'warning',
closeOnClickModal: false closeOnClickModal: false
}).then(() => { }).then(() => {
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
if (this.isAdd) { if (this.isAdd) {
// 新增 // 新增
addManagement(this.privacyPolicy).then(response => { addManagement(this.privacyPolicy).then(response => {
...@@ -105,8 +105,8 @@ export default { ...@@ -105,8 +105,8 @@ export default {
} }
}) })
} }
}
}) })
}
}) })
}, },
getPrivacyPolicy() { getPrivacyPolicy() {
......
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