huangbin hace 4 años
padre
commit
7fbd09fb38

+ 27 - 0
src/router/index.ts

@@ -975,6 +975,33 @@ const routes: Array<RouteRecordRaw> = [
                 ]
             },
             {
+                path: '/goods_info_p',
+                name: 'goods_info_p',
+                component: Main,
+                meta: {
+                    requireAuth: true,
+                },
+                redirect: { name: 'goods_info_p_spot' },
+                children: [
+                    {
+                        path: '/goods_info_p/goods_info_p_spot',
+                        name: 'goods_info_p_spot',
+                        component: () => import('@/views/ping_an/goods_info_p/goods_info_p_spot/index.vue'),
+                        meta: {
+                            requireAuth: true,
+                        },
+                    },
+                    {
+                        path: '/goods_info_p/goods_info_p_hedge',
+                        name: 'goods_info_p_hedge',
+                        component: () => import('@/views/ping_an/goods_info_p/goods_info_p_hedge/index.vue'),
+                        meta: {
+                            requireAuth: true,
+                        },
+                    },
+                ]
+            },
+            {
                 path: '/division_management',
                 name: 'division_management',
                 component: Main,

+ 33 - 0
src/views/ping_an/goods_info_p/goods_info_p_hedge/index.vue

@@ -0,0 +1,33 @@
+<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: 'goods_info_p_hedge',
+    components: {},
+    setup() {
+        const param: IfameRouteParam = {
+            code: 'goods_info_p_hedge',
+            btnCodeList: [
+                //  权限按钮 info(详情):add(新增):edit(修改):del(停用启用)
+                { btnCode: 'goods_info_hedge_order', urlCode: 'user' },
+            ],
+            tabIndex: 1,
+        };
+        return { ...handleIfameRouter(param) };
+    },
+});
+</script>
+
+<style lang="less">
+</style
+>;

+ 37 - 0
src/views/ping_an/goods_info_p/goods_info_p_spot/index.vue

@@ -0,0 +1,37 @@
+<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: 'goods_info_p_spot',
+    components: {},
+    setup() {
+        const param: IfameRouteParam = {
+            code: 'goods_info_p_spot',
+            btnCodeList: [
+                //  权限按钮 info(详情):add(新增):edit(修改):del(停用启用)
+                { btnCode: 'goods_info_spot_add', urlCode: 'add' },
+                { btnCode: 'goods_info_spot_disable', urlCode: 'del' },
+                { btnCode: 'goods_info_spot_modify', urlCode: 'edit' },
+                { btnCode: 'goods_info_spot_recover', urlCode: 'active' },
+                { btnCode: 'info', urlCode: 'info' },
+            ],
+            tabIndex: 1,
+        };
+        return { ...handleIfameRouter(param) };
+    },
+});
+</script>
+
+<style lang="less">
+</style
+>;