linwenxin 4 miesięcy temu
rodzic
commit
c8b7b24bae

+ 4 - 4
src/api/appraisalStatement.js

@@ -43,19 +43,19 @@ export function appraiseApplyApplyConfirm(data) {
 }
 
 // 评价申诉-驳回不可再申诉
-export function appraiseApplyBatchUpdateEnd(params) {
+export function appraiseApplyBatchUpdateEnd(data) {
   return request({
     url: `/appraise/apply/batch/update/end`,
     method: 'post',
-    params
+    data
   })
 }
 
 // 评价申诉-驳回可重申诉
-export function appraiseApplyBatchUpdateReset(params) {
+export function appraiseApplyBatchUpdateReset(data) {
   return request({
     url: `/appraise/apply/batch/update/reset`,
     method: 'post',
-    params
+    data
   })
 }

+ 2 - 2
src/views/workOrder/appraiseAppeal/appraisalStatement/index.vue

@@ -135,7 +135,7 @@ export default {
                   this.$message.warning('请勾选工单')
                   return
                 }
-                appraiseApplyBatchUpdateEnd({ ids: this.recordSelected.map(item => item.id).join(',') }).then(res => {
+                appraiseApplyBatchUpdateEnd(this.recordSelected.map(item => item.id)).then(res => {
                   this.$message({ type: 'success', message: '成功!' })
                   this.$refs.pageRef.refreshList()
                 })
@@ -149,7 +149,7 @@ export default {
                   this.$message.warning('请勾选工单')
                   return
                 }
-                appraiseApplyBatchUpdateReset({ ids: this.recordSelected.map(item => item.id).join(',') }).then(res => {
+                appraiseApplyBatchUpdateReset(this.recordSelected.map(item => item.id)).then(res => {
                   this.$message({ type: 'success', message: '成功!' })
                   this.$refs.pageRef.refreshList()
                 })