huangbin 4 lat temu
rodzic
commit
db3331e579

+ 27 - 0
src/router/index.ts

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

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

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