Ver código fonte

现货点价管理

huangbin 4 anos atrás
pai
commit
b4408c9c12

+ 35 - 0
src/router/index.ts

@@ -370,6 +370,41 @@ const routes: Array<RouteRecordRaw> = [
                 ]
             },
             {
+                path: '/spot_price_management_p',
+                name: 'spot_price_management_p',
+                component: Main,
+                meta: {
+                    requireAuth: true,
+                },
+                redirect: { name: 'spot_price_management_today' },
+                children: [
+                    {
+                        path: '/spot_price_management_p/spot_price_management_today',
+                        name: 'spot_price_management_today',
+                        component: () => import('@/src/views/ping_an/spot_price_management/spot_price_management_today/index.vue'),
+                        meta: {
+                            requireAuth: true,
+                        },
+                    },
+                    {
+                        path: '/spot_price_management_p/spot_price_management_all',
+                        name: 'spot_price_management_all',
+                        component: () => import('@/src/views/ping_an/spot_price_management/spot_price_management_all/index.vue'),
+                        meta: {
+                            requireAuth: true,
+                        },
+                    },
+                    {
+                        path: '/spot_price_management_p/spot_price_management_pending',
+                        name: 'spot_price_management_pending',
+                        component: () => import('@/src/views/ping_an/spot_price_management/spot_price_management_pending/index.vue'),
+                        meta: {
+                            requireAuth: true,
+                        },
+                    },
+                ]
+            },
+            {
                 path: '/exposure',
                 name: 'exposure',
                 component: Main,

+ 35 - 0
src/views/ping_an/spot_price_management/spot_price_management_all/index.vue

@@ -0,0 +1,35 @@
+<template>
+  <!-- 现货点价管理 全部现货  -->
+  <div class="iframe-container">
+    <iframe :src="url"
+            style="border: 0;"></iframe>
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+import { IfameRouteParam } from '@/common/setup/iframe/interface';
+import { handleIfameRouter } from '@/common/setup/iframe';
+
+export default defineComponent({
+    name: 'spot_price_management_all',
+    components: {},
+    setup() {
+        const param: IfameRouteParam = {
+            code: 'spot_price_management_all',
+            btnCodeList: [
+                //  权限按钮 info(详情):add(新增):edit(修改):del(停用启用)
+                { btnCode: 'spot_price_management_pending_someprice', urlCode: 'pointprice' },
+                { btnCode: 'spot_price_management_pending_hedging', urlCode: 'heding' },
+                { btnCode: 'info', urlCode: 'info' },
+            ],
+            tabIndex: 2,
+        };
+        return { ...handleIfameRouter(param) };
+    },
+});
+</script>
+
+<style lang="less">
+</style
+>;

+ 35 - 0
src/views/ping_an/spot_price_management/spot_price_management_pending/index.vue

@@ -0,0 +1,35 @@
+<template>
+  <!-- 现货点价管理 待点价 -->
+  <div class="iframe-container">
+    <iframe :src="url"
+            style="border: 0;"></iframe>
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+import { IfameRouteParam } from '@/common/setup/iframe/interface';
+import { handleIfameRouter } from '@/common/setup/iframe';
+
+export default defineComponent({
+    name: 'spot_price_management_pending',
+    components: {},
+    setup() {
+        const param: IfameRouteParam = {
+            code: 'spot_price_management_pending',
+            btnCodeList: [
+                //  权限按钮 info(详情):add(新增):edit(修改):del(停用启用)
+                { btnCode: 'spot_price_management_pending_someprice', urlCode: 'pointprice' },
+                { btnCode: 'spot_price_management_pending_hedging', urlCode: 'heding' },
+                { btnCode: 'info', urlCode: 'info' },
+            ],
+            tabIndex: 1,
+        };
+        return { ...handleIfameRouter(param) };
+    },
+});
+</script>
+
+<style lang="less">
+</style
+>;

+ 30 - 0
src/views/ping_an/spot_price_management/spot_price_management_today/index.vue

@@ -0,0 +1,30 @@
+<template>
+  <!-- 现货点价管理 今日定价及保值 -->
+  <div class="iframe-container">
+    <iframe :src="url"
+            style="border: 0;"></iframe>
+  </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+import { IfameRouteParam } from '@/common/setup/iframe/interface';
+import { handleIfameRouter } from '@/common/setup/iframe';
+
+export default defineComponent({
+    name: 'spot_price_management_today',
+    components: {},
+    setup() {
+        const param: IfameRouteParam = {
+            code: 'spot_price_management_today',
+            btnCodeList: [],
+            tabIndex: 3,
+        };
+        return { ...handleIfameRouter(param) };
+    },
+});
+</script>
+
+<style lang="less">
+</style
+>;