Parcourir la source

反馈表弹窗编辑

hm il y a 2 mois
Parent
commit
20e9ffb55b

+ 21 - 9
src/api/unified-access/access-feedback.js

@@ -42,6 +42,16 @@ export function getSecondStepTabAccessReadyById (id) {
   })
 }
 
+export function updateSecondStepTabAccessFeedbackById (data) {
+  return request({
+    url: `/web/tab-access-feedback/updateTabAccessFeedbackById`,
+    method: 'put',
+    data:data
+  })
+}
+
+
+
 // 第三步详情查询
 export function getThirdStepTabAccessReadyById (id) {
   return request({
@@ -59,13 +69,14 @@ export function saveStepTabAccessReadyById (data) {
   })
 }
 
-// // 第三步详情查询
-// export function getFourthStepTabAccessReadyById (id) {
-//   return request({
-//     url: `/web/tab-datasource-msg/getDataSunByAccessOnlyId/${id}`,
-//     method: 'post',
-//   })
-// }
+// 第三步 修改
+export function updateThirdStepDataSun (data) {
+  return request({
+    url: `/web/tab-datasource-msg/updateDataSun`,
+    method: 'post',
+    data:data
+  })
+}
 
 
 
@@ -75,7 +86,7 @@ export function addFirstStepTabAccessReady (data) {
   return request({
     url: '/web/tab-access-ready/insertTabAccessReady',
     method: 'post',
-    data: data
+    data:data
   })
 }
 
@@ -85,7 +96,8 @@ export function updateFirstStepTabAccessReadyById (data) {
   return request({
     url: '/web/tab-access-ready/updateTabAccessReadyById',
     method: 'post',
-    data: data
+    // data: data
+    data
   })
 }
 

+ 6 - 4
src/views/unified-access/access-feedback/dialog/FeedbackDialog.vue

@@ -499,17 +499,19 @@ import {
   // 第一步
   addFirstStepTabAccessReady,
   delFirstStepTabAccessReady,
-  updateFirstStepTabAccessReadyById,
   // 第一步详情
   getFirstStepTabAccessReadyById,
+  updateFirstStepTabAccessReadyById,
   // 第二步详情
   getSecondStepTabAccessReadyById,
   // 第二步
   delSecondStepTabAccessReady,
   addSecondStepTabAccessReady,
+  updateSecondStepTabAccessFeedbackById,
 
   // 第三步
   addThirdStepTabAccessReady,
+  updateThirdStepDataSun,
   // 第三步详情
   getThirdStepTabAccessReadyById,
 
@@ -1178,14 +1180,14 @@ export default {
           });
         }
       } else if (this.title === "编辑") {
-        addFirstStepTabAccessReady({ ...this.firstStep }).then(res => {
+        updateFirstStepTabAccessReadyById({ ...this.firstStep }).then(res => {
           if (+res.code === 200) {
             this.secondStep = res.data;
             this.accessOnlyId = res.data[0].accessOnlyId;
             this.activeName++;
           }
         });
-        addSecondStepTabAccessReady([...this.secondStep]).then(res => {
+        updateSecondStepTabAccessFeedbackById([...this.secondStep]).then(res => {
           if (+res.code === 200) {
             if (+this.firstStep.dataOfferType === 6) {
               this.activeName = 4;
@@ -1228,7 +1230,7 @@ export default {
           });
           pForm.etl = this.$refs.sftpRef.rightTableData;
         }
-        addThirdStepTabAccessReady(pForm).then(res => {
+        updateThirdStepDataSun(pForm).then(res => {
           if (+res.code === 200) {
             if (+this.firstStep.dataOfferType === 6) {
               this.activeName = 4;