Преглед на файлове

修改 签约账号管理

huangbin преди 4 години
родител
ревизия
4361332f7b
променени са 3 файла, в които са добавени 11 реда и са изтрити 10 реда
  1. 1 1
      public/config/app.config.json
  2. 4 4
      src/router/index.ts
  3. 6 5
      src/views/account-manager/account-manager-agency/account-manager-agency-sub/index.vue

+ 1 - 1
public/config/app.config.json

@@ -1,3 +1,3 @@
 {
-    "apiUrl": "http://192.168.31.204:8080/cfg?key=test_204"
+    "apiUrl": "http://192.168.31.139:8080/cfg?key=test_139"
 }

+ 4 - 4
src/router/index.ts

@@ -630,17 +630,17 @@ const routes: Array<RouteRecordRaw> = [
                 ]
             },
             {
-                path: '/account-manager-agency',
-                name: 'account-manager-agency',
+                path: '/account_manager_agency',
+                name: 'account_manager_agency',
                 component: Main,
                 meta: {
                     requireAuth: true,
                 },
-                redirect: { name: 'account-manager-agency-sub' },
+                redirect: { name: 'account_manager_agency_sub' },
                 children: [
                     {
                         path: '/account-manager-agency/account-manager-agency-sub',
-                        name: 'account-manager-agency-sub',
+                        name: 'account_manager_agency_sub',
                         component: () => import('@/views/account-manager/account-manager-agency/account-manager-agency-sub/index.vue'),
                         meta: {
                             requireAuth: true,

+ 6 - 5
src/views/account-manager/account-manager-agency/account-manager-agency-sub/index.vue

@@ -93,9 +93,9 @@ import { getColumns } from './setup';
 import Bus from '@/utils/eventBus/index';
 import { sortTime } from '@/utils/time';
 
-const addCode = 'account-manager-agency-sub-add';
-const updateCode = 'account-manager-agency-sub-modiy';
-const deleteCode = 'account-manager-agency-sub-delete';
+const addCode = 'account_manager_agency_sub_add';
+const updateCode = 'account_manager_agency_sub_modiy';
+const deleteCode = 'account_manager_agency_sub_delete';
 
 const useButton = () => {
     // 表格操作按钮列表
@@ -156,14 +156,15 @@ export default defineComponent({
 
         // 切换明细
         function changeTab(index: number, current: TabList) {
+            if (!current) return;
             cacheIndex = index;
             const { code, lable } = current;
             // executetype: number;//申请类型 - 1:出金 2:入金 3: 单边账调整:入金; 4:单边账调整:出金 5:外部母账户调整:入金 6:外部母账户调整:出金 7:外部子账户:入金 8:外部子账户:出金
-            if (code === 'account-manager-agency-sub-apply-in') {
+            if (code === 'account_manager_agency_sub_apply_in') {
                 // 充值申请
                 detailColumns.value = applyInColumns;
                 detailList.value = fn(2);
-            } else if (code === 'account-manager-agency-sub-apply-out') {
+            } else if (code === 'account_manager_agency_sub_apply_out') {
                 // 提现申请
                 detailColumns.value = applyOutCloums;
                 detailList.value = fn(1);