|
@@ -102,8 +102,8 @@ export default {
|
|
|
display: 'display: none;',
|
|
|
feedBackForm: {
|
|
|
username: '',
|
|
|
- feedbackType: '',
|
|
|
- moduleName: '',
|
|
|
+ feedbackType: 1,
|
|
|
+ moduleName: '流程管控',
|
|
|
content: ''
|
|
|
},
|
|
|
typeOptions: ['反馈问题', '提出建议', '其他'],
|
|
@@ -127,16 +127,31 @@ export default {
|
|
|
this.display = 'display: none;'
|
|
|
},
|
|
|
feedbackSummit() {
|
|
|
+ if (this.feedBackForm.content === '') {
|
|
|
+ this.$message.warning('反馈信息不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.feedBackForm.username = localStorage.getItem('username')
|
|
|
- feedback(this.feedBackForm)
|
|
|
- .then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- this.$message.success('提交反馈成功')
|
|
|
- } else {
|
|
|
- this.$message.error('提交反馈失败')
|
|
|
- }
|
|
|
- this.feedBackClose()
|
|
|
+ this.$confirm('此操作将提交您对' + this.feedBackForm.moduleName + '的反馈信息, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ feedback(this.feedBackForm)
|
|
|
+ .then(res => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.$message.success('提交反馈成功')
|
|
|
+ } else {
|
|
|
+ this.$message.error('提交反馈失败')
|
|
|
+ }
|
|
|
+ this.feedBackClose()
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
})
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|