Browse Source

保存公式参数传参

duy 2 years ago
parent
commit
cdb9f19f1b
2 changed files with 4 additions and 3 deletions
  1. 3 2
      src/api/modules/data-fill/wbs.js
  2. 1 1
      src/views/data-fill/components/ListItem.vue

+ 3 - 2
src/api/modules/data-fill/wbs.js

@@ -267,11 +267,12 @@ export default {
         },msg)
     },
     //保存公式参数
+
     async savePanel(form, msg = true) {
         return httpApi({
             url: '/api/blade-manager/formula/panel-save',
             method: 'post',
-            params: form
-        },msg);
+            data: form
+        }, msg)
     },
 }

+ 1 - 1
src/views/data-fill/components/ListItem.vue

@@ -1048,7 +1048,7 @@ const PanelSaveClick = async (item,index) => {
         const {res,error,code }= await wbsApi.savePanel({
             parentId:formparentId.value ,
             ekey: tableFormItemNode.value['KeyName'],
-            contractId: 1624967193488187394,
+            contractId: contractId.value,
             value:formulaModalinfo.type,
             pKeyId:contractId.value,
             scope:componentDetail?.value['scope']