Browse Source

更新 基础数据

wzh 4 years ago
parent
commit
749d1c0d9a
1 changed files with 25 additions and 2 deletions
  1. 25 2
      src/store/index.js

+ 25 - 2
src/store/index.js

@@ -89,12 +89,30 @@ const store = createStore({
     numbers: [],
     imgs: [
       {
-        url: "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/data-platform/ship2.jpg",
+        viewUrl:
+          "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/data-platform/ship2.jpg",
       },
       {
-        url: "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/data-platform/ship1.jpg",
+        viewUrl:
+          "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/data-platform/ship1.jpg",
       },
     ],
+    levelData: [
+      { name: "项目1", score: 80, level: "高" },
+      { name: "项目2", score: 80, level: "高" },
+      { name: "项目3", score: 80, level: "高" },
+      { name: "项目4", score: 80, level: "高" },
+      { name: "项目5", score: 80, level: "高" },
+      { name: "项目6", score: 80, level: "高" },
+      { name: "项目7", score: 80, level: "高" },
+      { name: "项目8", score: 80, level: "高" },
+      { name: "项目9", score: 80, level: "高" },
+    ],
+    voyages: [
+      { dischargePort: "沙市", loadPort: "张家港" },
+      { dischargePort: "沙市", loadPort: "张家港" },
+    ],
+    shipsCache: [],
   },
   mutations: {
     changeLogin(state, b) {
@@ -134,10 +152,15 @@ const store = createStore({
       state.shipInfo.data[0].text = data.shipMmsi;
       state.shipInfo.data[1].text = data.shipLength;
       state.shipInfo.data[2].text = data.shipBreadth;
+      state.voyages = data.historyVoyages;
+      state.imgs = data.certificates;
     },
     setImgs(state, imgs) {
       state.imgs = imgs;
     },
+    setShipsCache(state, ships) {
+      state.shipsCache = ships;
+    },
   },
   actions: {
     Login({ commit }, userInfo) {