huangbin 4 tahun lalu
induk
melakukan
1f981c22b7

+ 19 - 0
src/router/index.ts

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

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