yrik 4 anos atrás
pai
commit
ef35c2aec3

+ 0 - 9
ruoyi-ui/src/views/system/editing/index.vue

@@ -529,15 +529,6 @@
               tables,
             },
           })
-        // } else if (this.queryDatatwo.viewType == 'itemTab') {
-        //   this.$router.push({
-        //     path: '../form/index.vue',
-        //     query: {
-        //       id,
-        //       tables,
-        //     },
-        //   })
-        // }
       },
      // 搜索
      handleQueryiu(){

+ 17 - 10
ruoyi-ui/src/views/system/form/index.vue

@@ -471,19 +471,26 @@
          if (valid) {
            addbjectSave(this.forme).then(response => {
              this.msgSuccess("保存成功");
-             if(response.code == 200){
-               this.cielsshow = true;
+             if(this.formy.id == -1){
+               if(response.code == 200){
+                 this.cielsshow = true;
+               }else{
+                 this.cielsshow = false;
+               }
+               let query = Object.assign({'id':response.data,'tables': this.forme.table},{} )
+               this.$router.push({ query})
+               this.queryParamslist.fixedData.condition[this.foremTtae] = response.data
+               this.oieufr = response.data
+               this.objParams.fixedData.id = response.data
+               this.init()
+               this.foremliseju()
              }else{
-               this.cielsshow = false;
+               this.$store.dispatch("tagsView/delView", this.$route);
+               this.$router.go(-1)
              }
+
              // this.$store.dispatch("tagsView/delView", this.$route);
-             let query = Object.assign({'id':response.data,'tables': this.forme.table},{} )
-             this.$router.push({ query})
-             this.queryParamslist.fixedData.condition[this.foremTtae] = response.data
-             this.oieufr = response.data
-             this.objParams.fixedData.id = response.data
-             this.init()
-             this.foremliseju()
+
              // this.$store.dispatch("tagsView/delView", this.$route);
              // this.$router.go(-1)
              // this.getList();