|
|
@@ -352,11 +352,13 @@ const modifyFormRef = ref(null);
|
|
|
async function submitModifyForm() {
|
|
|
try {
|
|
|
await modifyFormRef.value.validate();
|
|
|
- await ElMessageBox.confirm("确定要保存修改吗?", "警告", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- });
|
|
|
+ if (isEditMode.value) {
|
|
|
+ await ElMessageBox.confirm("确定要保存修改吗?", "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ }
|
|
|
const { data } = await api.modifyShipCertOperation({
|
|
|
...modifyForm.value,
|
|
|
certOperationId: modifyForm.value.id,
|