|
@@ -206,8 +206,11 @@
|
|
|
// 验证表单是否填写
|
|
// 验证表单是否填写
|
|
|
this.$refs.basicInfo.validate((valid) => {
|
|
this.$refs.basicInfo.validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
- this.getUpEmployee()
|
|
|
|
|
- this.saveData()
|
|
|
|
|
|
|
+ if(this.formId){
|
|
|
|
|
+ this.getUpEmployee()
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.saveData()
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
this.activeName = 'basic-info'
|
|
this.activeName = 'basic-info'
|
|
|
ActionUtils.saveErrorMessage()
|
|
ActionUtils.saveErrorMessage()
|
|
@@ -228,7 +231,14 @@
|
|
|
}
|
|
}
|
|
|
console.log(params)
|
|
console.log(params)
|
|
|
upEmployee(params).then(res => {
|
|
upEmployee(params).then(res => {
|
|
|
- console.log('测试',res)
|
|
|
|
|
|
|
+ if(res.state == 200){
|
|
|
|
|
+ const data = res.data
|
|
|
|
|
+ if(data == "Y"){
|
|
|
|
|
+ this.saveData()
|
|
|
|
|
+ }else{
|
|
|
|
|
+ ActionUtils.warning(res.message)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
saveData() {
|
|
saveData() {
|
|
@@ -250,7 +260,6 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
if (this.formId) {
|
|
if (this.formId) {
|
|
|
- console.log(vo)
|
|
|
|
|
update(vo).then(response => {
|
|
update(vo).then(response => {
|
|
|
this.dialogLoading = false
|
|
this.dialogLoading = false
|
|
|
this.$emit('dialog-callback', this)
|
|
this.$emit('dialog-callback', this)
|