yrik 4 жил өмнө
parent
commit
396148f4c3

+ 4 - 3
ruoyi-ui/src/views/system/form/index.vue

@@ -606,14 +606,15 @@
          //删除
          this.handleDeletetwo(this.deledlid)
        }  else if(index == '新增'){
-         if(this.objParams.fixedData.id !== -1){
-            this.routerFn(-1, this.tabName,this.oieufr,this.forme.table)
-         }else{
+         if(this.objParams.fixedData.id == -1){
+           console.log(this.objParams.fixedData.id,2334)
            if(this.cielsshow == true){
              this.routerFn(-1, this.tabName,this.oieufr,this.forme.table)
            }else{
              this.msgInfo('基本信息暂未保存')
            }
+         }else{
+           this.routerFn(-1, this.tabName,this.oieufr,this.forme.table)
          }
 
        }else if(index == '修改'){

+ 0 - 5
ruoyi-ui/src/views/system/table/index.vue

@@ -182,8 +182,6 @@
           this.antiSubmission()
         } else if (index == '保存') {
           // 修改
-
-
           this.forme.fixedData = this.queryParams
           this.forme.fixedData[this.juegkae] =  this.tablees
           this.submitForm()
@@ -309,12 +307,9 @@
       submitForm: function() {
         this.$refs["queryForm"].validate(valid => {
           if (valid) {
-            // if(this.tablees !== -1){
            console.log(this.forme)
-            // }
             addbjectSave(this.forme).then(response => {
               this.msgSuccess("保存成功");
-              // this.open = false;
               this.$store.dispatch("tagsView/delView", this.$route);
               this.$router.go(-1)
             });