|
|
@@ -95,14 +95,6 @@ const store = createStore({
|
|
|
changeTab(state, text) {
|
|
|
state.currentTabText = text;
|
|
|
},
|
|
|
- setCargoOwner(state, info) {
|
|
|
- console.log(info);
|
|
|
- return;
|
|
|
- state.cargoOwnerInfo = info;
|
|
|
- },
|
|
|
- setShipInfo(state, info) {
|
|
|
- state.shipInfo = info;
|
|
|
- },
|
|
|
setNumbers(state, numbers) {
|
|
|
state.numbers = numbers;
|
|
|
},
|
|
|
@@ -127,6 +119,14 @@ const store = createStore({
|
|
|
state.shipInfo.data[2].text = shipDetail.shipBreadth;
|
|
|
state.capacity = capacityDetail;
|
|
|
},
|
|
|
+ setTradeShipDetail(state, data) {
|
|
|
+ state.shipInfo.shipName = data.shipName;
|
|
|
+ state.shipInfo.shipOwnerName = data.shipownerName;
|
|
|
+ state.shipInfo.shipOwnerId = data.shipownerIdcard;
|
|
|
+ state.shipInfo.data[0].text = data.shipMmsi;
|
|
|
+ state.shipInfo.data[1].text = data.shipLength;
|
|
|
+ state.shipInfo.data[2].text = data.shipBreadth;
|
|
|
+ },
|
|
|
},
|
|
|
actions: {
|
|
|
Login({ commit }, userInfo) {
|
|
|
@@ -152,7 +152,6 @@ const store = createStore({
|
|
|
let t = state.currentTabText == "运输安全管理中心";
|
|
|
if (t) {
|
|
|
api.getShipStatusCount().then((e) => {
|
|
|
- console.log(e);
|
|
|
let { result } = e.data;
|
|
|
state.numbers = [
|
|
|
{
|
|
|
@@ -187,6 +186,11 @@ const store = createStore({
|
|
|
commit("setManageShipDetail", e.data.result);
|
|
|
});
|
|
|
},
|
|
|
+ GetTradeShipDetail({ commit }, shipId) {
|
|
|
+ api.getTradeShipDetail({ shipId }).then((e) => {
|
|
|
+ commit("setTradeShipDetail", e.data.result);
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
});
|
|
|
|