@@ -202,23 +202,30 @@ export default { | |||
this.form.isApply = 2 | |||
}, | |||
save(){ | |||
applyApi | |||
.applyCooperate(Object.assign({}, this.form)) | |||
.then((res) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "success", | |||
message: "提交申请成功", | |||
}); | |||
this.getDataList(); | |||
}) | |||
.catch((e) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "error", | |||
message: "提交申请失败", | |||
if(this.form.note) { | |||
applyApi | |||
.applyCooperate(Object.assign({}, this.form)) | |||
.then((res) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "success", | |||
message: "提交申请成功", | |||
}); | |||
this.getDataList(); | |||
}) | |||
.catch((e) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "error", | |||
message: "提交申请失败", | |||
}); | |||
}); | |||
} else { | |||
this.$message({ | |||
type: "error", | |||
message: "申请理由不能为空", | |||
}); | |||
} | |||
}, | |||
}, | |||
filters: { |
@@ -227,23 +227,30 @@ export default { | |||
this.form.leaderDept = row.leaderDept; | |||
}, | |||
save() { | |||
applyApi | |||
.applyCooperate(Object.assign({}, this.form)) | |||
.then((res) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "success", | |||
message: "提交申请成功", | |||
}); | |||
this.getDataList(); | |||
}) | |||
.catch((e) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "error", | |||
message: "提交申请失败", | |||
if(this.form.note) { | |||
applyApi | |||
.applyCooperate(Object.assign({}, this.form)) | |||
.then((res) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "success", | |||
message: "提交申请成功", | |||
}); | |||
this.getDataList(); | |||
}) | |||
.catch((e) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "error", | |||
message: "提交申请失败", | |||
}); | |||
}); | |||
} else { | |||
this.$message({ | |||
type: "error", | |||
message: "申请理由不能为空", | |||
}); | |||
} | |||
}, | |||
}, | |||
filters: { |
@@ -221,24 +221,30 @@ export default { | |||
}, | |||
save() { | |||
console.log(this.form); | |||
applyApi | |||
.applyCooperate(Object.assign({}, this.form)) | |||
.then((res) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "success", | |||
message: "提交申请成功", | |||
}); | |||
this.getDataList(); | |||
}) | |||
.catch((e) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "error", | |||
message: "提交申请失败", | |||
if(this.form.note) { | |||
applyApi | |||
.applyCooperate(Object.assign({}, this.form)) | |||
.then((res) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "success", | |||
message: "提交申请成功", | |||
}); | |||
this.getDataList(); | |||
}) | |||
.catch((e) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "error", | |||
message: "提交申请失败", | |||
}); | |||
}); | |||
} else { | |||
this.$message({ | |||
type: "error", | |||
message: "申请理由不能为空", | |||
}); | |||
} | |||
}, | |||
}, | |||
filters: { |
@@ -228,24 +228,30 @@ export default { | |||
}, | |||
save() { | |||
console.log(this.form); | |||
applyApi | |||
.applyCooperate(Object.assign({}, this.form)) | |||
.then((res) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "success", | |||
message: "提交申请成功", | |||
}); | |||
this.getDataList(); | |||
}) | |||
.catch((e) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "error", | |||
message: "提交申请失败", | |||
if(this.form.note) { | |||
applyApi | |||
.applyCooperate(Object.assign({}, this.form)) | |||
.then((res) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "success", | |||
message: "提交申请成功", | |||
}); | |||
this.getDataList(); | |||
}) | |||
.catch((e) => { | |||
this.showEdit = false; | |||
this.$message({ | |||
type: "error", | |||
message: "提交申请失败", | |||
}); | |||
}); | |||
} else { | |||
this.$message({ | |||
type: "error", | |||
message: "申请理由不能为空", | |||
}); | |||
} | |||
}, | |||
}, | |||
filters: { |