Selaa lähdekoodia

访客车辆记录

魏熙美 6 vuotta sitten
vanhempi
commit
d7c091a205
3 muutettua tiedostoa jossa 17 lisäystä ja 0 poistoa
  1. 6
    0
      src/config/api.js
  2. 2
    0
      src/store/index.js
  3. 9
    0
      src/views/index.js

+ 6
- 0
src/config/api.js Näytä tiedosto

@@ -244,6 +244,12 @@ const apis = {
244 244
       method: 'get',
245 245
       url: `${commPrefix}/sysparam/:id`
246 246
     }
247
+  },
248
+  cart: {
249
+    list: {
250
+      method: 'get',
251
+      url: `${commPrefix}/carRecord`
252
+    }
247 253
   }
248 254
 }
249 255
 

+ 2
- 0
src/store/index.js Näytä tiedosto

@@ -11,6 +11,7 @@ import person from './modules/person'
11 11
 import sysparam from './modules/sysparam'
12 12
 import sysuser from './modules/sysuser'
13 13
 import stats from './modules/stats'
14
+import cart from './modules/cart'
14 15
 
15 16
 Vue.use(Vuex)
16 17
 
@@ -27,6 +28,7 @@ const store = new Vuex.Store({
27 28
     sysparam,
28 29
     sysuser,
29 30
     stats,
31
+    cart
30 32
   }
31 33
 })
32 34
 

+ 9
- 0
src/views/index.js Näytä tiedosto

@@ -108,6 +108,15 @@ const pages = [
108 108
           title: '来访致辞编辑',
109 109
         },
110 110
       },
111
+      {
112
+        path: 'cartRecord',
113
+        name: 'cartRecord',
114
+        component: () => import('./cart/list.vue'),
115
+        meta: {
116
+          menuShow: true,
117
+          title: '访客车辆记录',
118
+        },
119
+      },
111 120
     ]
112 121
   },
113 122
   {