Browse Source

规范修改

duy 1 month ago
parent
commit
abd7b06a9f
1 changed files with 12 additions and 3 deletions
  1. 12 3
      src/views/codeRule/ruleManage.vue

+ 12 - 3
src/views/codeRule/ruleManage.vue

@@ -628,6 +628,7 @@ import { getStore, setStore } from "@/util/store";
          },
          addRule(){
           this.titleInput = '';
+          this.manageLoad=false
           this.addDialogVisible = true;
          },
          addSaveFileClick() {
@@ -637,12 +638,20 @@ import { getStore, setStore } from "@/util/store";
             this.addSaveFileLoad = false;
             return;
           }
-           add(
-            {
+
+           const formData = new FormData();
+          // 添加基本信息
+          let objData={
               name: this.titleInput,
               type:1,
               privateId: this.treeId,
-            }
+          }
+         
+          formData.append('data', new Blob([JSON.stringify(objData)], {
+              type: 'application/json'
+            }));
+           add(
+            formData
             ).then((res) => {
             if(res.data.code==200){
                 this.$message.success(res.data.msg)