|
@@ -64,6 +64,7 @@
|
|
|
<el-dialog v-model="showModifyDialog" title="修改联系人" width="500px">
|
|
<el-dialog v-model="showModifyDialog" title="修改联系人" width="500px">
|
|
|
<el-form
|
|
<el-form
|
|
|
class="ml20 mt20"
|
|
class="ml20 mt20"
|
|
|
|
|
+ ref="modifyFormRef"
|
|
|
:model="modifyForm"
|
|
:model="modifyForm"
|
|
|
:rules="formRules"
|
|
:rules="formRules"
|
|
|
label-width="100px"
|
|
label-width="100px"
|
|
@@ -347,9 +348,10 @@ async function modifyShipCertOperation(row) {
|
|
|
}
|
|
}
|
|
|
} catch (error) {}
|
|
} catch (error) {}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+const modifyFormRef = ref(null);
|
|
|
async function submitModifyForm() {
|
|
async function submitModifyForm() {
|
|
|
try {
|
|
try {
|
|
|
|
|
+ await modifyFormRef.value.validate();
|
|
|
await ElMessageBox.confirm("确定要保存修改吗?", "警告", {
|
|
await ElMessageBox.confirm("确定要保存修改吗?", "警告", {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|