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