yuwenfen 4 лет назад
Родитель
Сommit
27694bbeb5

+ 2 - 2
pages/mission-action/components/pdca.vue

@@ -199,9 +199,9 @@
           }
         });
         if(improveScheme){ // 提交
-          requestParams[taskType] = this.pdcaSetting === 'p' ? 14 : 16;
+          requestParams['taskType'] = this.pdcaSetting === 'p' ? 14 : 16;
         }else { // 暂存
-          requestParams[taskType] = this.pdcaSetting === 'p' ? 13 : 15;
+          requestParams['taskType'] = this.pdcaSetting === 'p' ? 13 : 15;
         }
         this.$emit('comRequest', requestParams);
         improveScheme && this.toggleModalVisibile();

+ 3 - 1
pages/mission-details/mission-details.vue

@@ -116,7 +116,7 @@
 					}
 				});
 			},
-			// 点击右侧按钮
+			// 点击按钮
 			clickBtn(currentInfo, btnInfo) {
         if(btnInfo.componentName){ // 有组件名,则跳转页面
           if(btnInfo.componentName === 'pdca'){
@@ -147,6 +147,8 @@
                 ? this.missionDetails
                 : currentInfo
               )[item.valueKey];
+            }else if(item.value){
+              requestParams[item.paramsKey] = item.value;
             }
           })
           this.comTaskCirculation(requestParams);