|
@@ -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) {
|