shenwu 2 лет назад
Родитель
Сommit
f7641a130a
2 измененных файлов с 6 добавлено и 3 удалено
  1. 2 1
      config/routerConfig.ts
  2. 4 2
      src/pages/launchSystemNew/adq/ad/tableConfig.tsx

+ 2 - 1
config/routerConfig.ts

@@ -42,6 +42,7 @@ function btnFun(items: any) {
 //返回子路由
 //返回子路由
 function routeFun(items: any) {
 function routeFun(items: any) {
     return items.children.map((route: any) => {//循环重组
     return items.children.map((route: any) => {//循环重组
+        // console.log(route)
         if (route?.children?.length > 0) {
         if (route?.children?.length > 0) {
             let arr = routeFun(route)
             let arr = routeFun(route)
             return { path: route.path, name: route.meta.title, component: route.component, routes: arr, icon: route.meta.icon, key: route?.menuId }
             return { path: route.path, name: route.meta.title, component: route.component, routes: arr, icon: route.meta.icon, key: route?.menuId }
@@ -50,7 +51,7 @@ function routeFun(items: any) {
             let arr = btnFun(route)
             let arr = btnFun(route)
             return { path: route.path, name: route.meta.title, component: route.component, routes: arr, icon: route.meta.icon, key: route?.menuId }
             return { path: route.path, name: route.meta.title, component: route.component, routes: arr, icon: route.meta.icon, key: route?.menuId }
         }
         }
-        return { path: route.path, name: route.meta.title, component: route.component, icon: items.meta.icon, key: route?.menuId }
+        return { path: route.path, name: route.meta.title, component: route.component, icon: route.icon, key: route?.menuId }
     })
     })
 }
 }
 /**获取线上菜单并重组路由格式和权限*/
 /**获取线上菜单并重组路由格式和权限*/

+ 4 - 2
src/pages/launchSystemNew/adq/ad/tableConfig.tsx

@@ -70,9 +70,10 @@ function tableConfig(
             width: 85,
             width: 85,
             fixed: 'left',
             fixed: 'left',
             ellipsis: true,
             ellipsis: true,
-            render: (a: string) => {
+            render: (a: string,b:any) => {
                 return <a onClick={() => {
                 return <a onClick={() => {
                     tableIdClick({ activeKey: '3', parma: { adgroupId: a } })
                     tableIdClick({ activeKey: '3', parma: { adgroupId: a } })
+                    window.open(`https://ad.qq.com/atlas/${b?.accountId}/admanage/adcreative?adgroupid=${b?.adgroupId}&query={%22configured_status%22:[%22AD_STATUS_EXCLUDE_DELETED%22],%22status%22:[]}`)
                 }}>{a}</a>
                 }}>{a}</a>
             }
             }
         },
         },
@@ -84,9 +85,10 @@ function tableConfig(
             width: 85,
             width: 85,
             fixed: 'left',
             fixed: 'left',
             ellipsis: true,
             ellipsis: true,
-            render: (a: string) => {
+            render: (a: string,b:any) => {
                 return <a onClick={() => {
                 return <a onClick={() => {
                     tableIdClick({ activeKey: '2', parma: { campaignId: a } })
                     tableIdClick({ activeKey: '2', parma: { campaignId: a } })
+                    window.open(`https://ad.qq.com/atlas/${b?.accountId}/admanage/adgroup?campaignid=${b?.campaignId}&query={%22operation_status%22:[%22CALCULATE_STATUS_EXCLUDE_DEL%22],%22system_status%22:[]}`)
                 }}>{a}</a>
                 }}>{a}</a>
             }
             }
         },
         },