|
@@ -401,14 +401,13 @@ export default {
|
|
|
shipDetail.value = res.data.result;
|
|
shipDetail.value = res.data.result;
|
|
|
voyageForm.voyageForm.shipName = res.data.result.shipname;
|
|
voyageForm.voyageForm.shipName = res.data.result.shipname;
|
|
|
voyageForm.voyageForm.shipId = res.data.result.id;
|
|
voyageForm.voyageForm.shipId = res.data.result.id;
|
|
|
|
|
+ shipFileList.value = [];
|
|
|
|
|
+ annualFileList.value = [];
|
|
|
|
|
+ shipNationFileList.value = [];
|
|
|
|
|
+ operatingFileList.value = [];
|
|
|
for (let i of shipDetail.value.shipCertificates) {
|
|
for (let i of shipDetail.value.shipCertificates) {
|
|
|
i.url = i.viewUrl;
|
|
i.url = i.viewUrl;
|
|
|
switch (i.type) {
|
|
switch (i.type) {
|
|
|
- case 2: {
|
|
|
|
|
- shipFileList.value.push(i);
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
case 5: {
|
|
case 5: {
|
|
|
annualFileList.value.push(i);
|
|
annualFileList.value.push(i);
|
|
|
break;
|
|
break;
|
|
@@ -423,6 +422,10 @@ export default {
|
|
|
operatingFileList.value.push(i);
|
|
operatingFileList.value.push(i);
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
+ default: {
|
|
|
|
|
+ shipFileList.value.push(i);
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
@@ -467,7 +470,6 @@ export default {
|
|
|
|
|
|
|
|
function getAnnualFileList(list) {
|
|
function getAnnualFileList(list) {
|
|
|
annualFileList.value = list;
|
|
annualFileList.value = list;
|
|
|
- console.log(list);
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function getShipNationFileList(list) {
|
|
function getShipNationFileList(list) {
|
|
@@ -537,10 +539,6 @@ export default {
|
|
|
let res = await api.updateShip(postData);
|
|
let res = await api.updateShip(postData);
|
|
|
if (res.data.status == 0) {
|
|
if (res.data.status == 0) {
|
|
|
unchangeable.value = true;
|
|
unchangeable.value = true;
|
|
|
- shipFileList.value = [];
|
|
|
|
|
- annualFileList.value = [];
|
|
|
|
|
- shipNationFileList.value = [];
|
|
|
|
|
- operatingFileList.value = [];
|
|
|
|
|
ElNotification({
|
|
ElNotification({
|
|
|
type: "success",
|
|
type: "success",
|
|
|
title: res.data.msg,
|
|
title: res.data.msg,
|