Browse Source

岗位类型修改限制

duy 2 years ago
parent
commit
5469557181

+ 6 - 5
src/views/manager/archivetree.vue

@@ -1507,13 +1507,14 @@ export default {
             }
           }
         }
-      })
+         })
+         if(this.menuKey='edit'){
+          //刷新页面
+           window.location.reload()
+        }
       }
      
-      if(this.menuKey='edit'){
-        //刷新页面
-       window.location.reload()
-      }
+    
        
        
     },

+ 7 - 6
src/views/manager/projectinfo/archivetreeRule.vue

@@ -1404,8 +1404,8 @@ export default {
     },
     saveTree () {//保存按钮
       console.log(this.form.postType,'this.form.postType');
-      if(this.treeParent.postType&&this.treeParent.postType!= this.form.postType){
-        this.$message.warning('岗位类型必须和父级节点岗位类型一')
+      if(this.treeParent.postType&&this.treeParent.postType!== this.form.postType){
+        this.$message.warning('岗位类型必须和父级节点岗位类型一')
       }else{
         this.$refs.form.validate(val => {
         if (val) {
@@ -1504,12 +1504,13 @@ export default {
           }
         }
       })
+        if(this.menuKey='edit'){
+          //刷新页面
+          window.location.reload()
+        }
       }
     
-      if(this.menuKey='edit'){
-        //刷新页面
-       window.location.reload()
-      }
+   
        
     },
     async baocun (da) {