|
@@ -406,14 +406,14 @@ export default {
|
|
|
data.list = arr;
|
|
data.list = arr;
|
|
|
// 修改的提交;
|
|
// 修改的提交;
|
|
|
if (data.id) {
|
|
if (data.id) {
|
|
|
- await InRequestApi.updateInRequest(data);
|
|
|
|
|
|
|
+ await InRequestApi.updateRequest(data);
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
|
this.$emit("success");
|
|
this.$emit("success");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
// 添加的提交
|
|
// 添加的提交
|
|
|
- await InRequestApi.createInRequest(data);
|
|
|
|
|
|
|
+ await InRequestApi.createRequest(data);
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
|
this.$emit("success");
|
|
this.$emit("success");
|