Переглянути джерело

新增现货合同 文件

huangbin 4 роки тому
батько
коміт
3baf9e7e00

+ 4 - 5
src/layout/top.vue

@@ -163,15 +163,14 @@ const handleMenu = () => {
     // 配置是否显示下半部分
     function setShowBottomPart(code: string): boolean {
         // 显示下半部分 这里保存的是市场对应的 code
-        const show = [
-            'outaccount_status', // 仓单贸易
-        ];
+        const show: string[] = [''];
         return show.includes(code);
     }
     function menuClick(value: any) {
         console.log('菜单: ', value);
-        setShowBottomPart(value.key);
-        router.push({ name: value.key });
+        const key = value.key;
+        setShowBottomPart(key);
+        router.push({ name: key });
     }
     // 一级菜单图标
     function fontIcon(code: string): string {

+ 16 - 0
src/router/index.ts

@@ -110,6 +110,22 @@ const routes: Array<RouteRecordRaw> = [
                     requireAuth: true
                 },
             },
+            {
+                path: '/spot_contract',
+                name: 'spot_contract',
+                component: () => import('@/views/information/spot-contract/index.vue'),
+                meta: {
+                    requireAuth: true
+                },
+            },
+            {
+                path: '/warehouse_info',
+                name: 'warehouse_info',
+                component: () => import('@/views/information/warehouse-info/index.vue'),
+                meta: {
+                    requireAuth: true
+                },
+            },
         ],
     },
     {

+ 23 - 0
src/views/information/spot-contract/index.vue

@@ -0,0 +1,23 @@
+<template>
+  <!-- 现货合同 -->
+  <div class="spot-contract">
+    "现货合同"
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+
+export default defineComponent({
+    name: 'spot-contract',
+    components: {},
+    setup() {
+        return {};
+    },
+});
+</script>
+
+<style lang="less">
+.spot-contract {
+}
+</style>;

+ 23 - 0
src/views/information/warehouse-info/index.vue

@@ -0,0 +1,23 @@
+<template>
+  <!-- 仓库信息 -->
+  <div class="warehouse-info">
+    "仓库信息"
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+
+export default defineComponent({
+    name: 'warehouse-info',
+    components: {},
+    setup() {
+        return {};
+    },
+});
+</script>
+
+<style lang="less">
+.warehouse-info {
+}
+</style>;