|
@@ -815,10 +815,12 @@ const handleCertSuccess = ({ response: data }) => {
|
|
|
// 证书删除处理
|
|
// 证书删除处理
|
|
|
const handleCertRemove = async ({ file, fileIndex }) => {
|
|
const handleCertRemove = async ({ file, fileIndex }) => {
|
|
|
if (file.id) {
|
|
if (file.id) {
|
|
|
- let { data } = await api.deleteShipCert({
|
|
|
|
|
- shipCertId: file.id,
|
|
|
|
|
|
|
+ let { data } = await api.deleteShipOwnerCert({
|
|
|
|
|
+ docId: file.id,
|
|
|
});
|
|
});
|
|
|
- if (data.status !== 0) {
|
|
|
|
|
|
|
+ if (data.status === 0) {
|
|
|
|
|
+ ElMessage.success("删除成功");
|
|
|
|
|
+ } else {
|
|
|
ElMessage.error(data.msg || "删除失败");
|
|
ElMessage.error(data.msg || "删除失败");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|