|
@@ -65,7 +65,7 @@
|
|
|
<script>
|
|
|
|
|
|
import DwSurveyDcsWrapper from '@/components/common/DwSurveyDcsWrapper'
|
|
|
-import {dwSurveyAnswerList} from '@/api/dw-survey'
|
|
|
+import {dwSurveyAnswerList, dwSurveyAnswerDelete} from '@/api/dw-survey'
|
|
|
import API from '@/api/index'
|
|
|
|
|
|
export default {
|
|
@@ -93,6 +93,19 @@ export default {
|
|
|
},
|
|
|
handleDelete (index, row) {
|
|
|
console.log(index, row)
|
|
|
+ this.$msgbox.confirm('确认删除此条答卷吗?', '删除警告', {type: 'warning', confirmButtonText: '确认删除'}).then(() => {
|
|
|
+ const data = {id: [row.id]}
|
|
|
+ dwSurveyAnswerDelete(data).then((response) => {
|
|
|
+ console.log(response)
|
|
|
+ const httpResult = response.data
|
|
|
+ if (httpResult.resultCode === 200) {
|
|
|
+ this.$message.success('删除成功,即将刷新数据。')
|
|
|
+ this.queryList(1)
|
|
|
+ } else {
|
|
|
+ this.$message.error('删除答卷失败')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(() => {})
|
|
|
},
|
|
|
handleCurrentChange (val) {
|
|
|
this.queryList(val)
|