duy 2 місяців тому
батько
коміт
e34d487769

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

@@ -1361,12 +1361,14 @@ export default {
         this.displayHierarchyList = res.data
       }
     },
-    saveTree () {//保存按钮
-      console.log(this.form.postType,'post');
-      console.log(this.treeParent,'treeParent');
+   async saveTree () {//保存按钮
       if(this.treeParent.postType&&this.treeParent.postType!= this.form.postType){
         this.$message.warning('岗位类型必须和父级节点岗位类型一直')
       }else{
+        const isValid = await this.$refs.form.validate()
+        if(!isValid){
+          return false
+        }
         this.$refs.form.validate(val => {
           if (val) {
             if (this.form.nodeType == 2) {

+ 1 - 0
src/views/manager/contractinfo/detail.vue

@@ -1035,6 +1035,7 @@ export default {
           { label: '30mm', value: '30' },
           { label: '40mm', value: '40' },
           { label: '50mm', value: '50' },
+          { label: '60mm', value: '60' },
       ]
     }
   },

+ 5 - 1
src/views/manager/projectinfo/archivetreeRule.vue

@@ -1143,11 +1143,15 @@ export default {
         this.displayHierarchyList = res.data
       }
     },
-    saveTree () {//保存按钮
+ async   saveTree () {//保存按钮
       console.log(this.form.postType,'this.form.postType');
       if(this.treeParent.postType&&this.treeParent.postType!== this.form.postType){
         this.$message.warning('岗位类型必须和父级节点岗位类型一致')
       }else{
+        const isValid = await this.$refs.form.validate()
+        if(!isValid){
+          return false
+        }
         this.$refs.form.validate(val => {
           if (val) {
             if (this.form.nodeType == 2) {