qinzhipeng_v@didiglobal.com 4 rokov pred
rodič
commit
647e1b6777

+ 2 - 3
src/api/requirement.js

@@ -316,10 +316,9 @@ export function taskShowRelatedDpmTask(id) {
 }
 
 // 同步排期到望月(确认)
-export function taskSyncScheduleToDpm(data, id) {
+export function taskSyncScheduleToDpm(id) {
   return request({
     url: requestIp + `/task/syncScheduleToDpm?id=${id}`,
-    method: 'post',
-    data
+    method: 'get'
   })
 }

+ 2 - 4
src/views/projectManage/components/demand.vue

@@ -285,10 +285,8 @@ export default {
       }
     },
 
-    async taskSyncScheduleToDpm(id, data) {
-      const arr = []
-      data.map(item => arr.push(item.id))
-      const res = await taskSyncScheduleToDpm(arr, id)
+    async taskSyncScheduleToDpm(id) {
+      const res = await taskSyncScheduleToDpm(id)
       if (res.code === 200) {
         this.$refs.Simulation.click()
         this.$message({ message: '同步排期成功', type: 'success', offset: 150 })