Selaa lähdekoodia

coding:投流

zhangqin 1 kuukausi sitten
vanhempi
commit
a46abb1966

+ 13 - 0
src/router/index.js

@@ -276,6 +276,19 @@ export const constantRoutes = [
     ]
   },
 
+    {
+    path: '/adv/statistics',
+    component: Layout,
+    hidden: true,
+    children: [
+      {
+        path: '',
+        component: (resolve) => require(['@/views/adv/statistics/index'], resolve),
+        name: 'AdvStatistics',
+        meta: { title: '站点统计', activeMenu: '/adv/site' }
+      }
+    ]
+  },
 
 
 ]

+ 4 - 4
src/views/adv/callbackAccount/index.vue

@@ -122,7 +122,7 @@
         </el-form-item>
         
         <!-- advertiserId = 1 的字段 -->
-        <template v-if="form.advertiserId === 1">
+        <template v-if="form.advertiserId === 10001">
           <el-form-item label="ocpcUid" prop="adAccountId">
             <el-input v-model="form.adAccountId" placeholder="请输入ocpcUid" />
           </el-form-item>
@@ -132,7 +132,7 @@
         </template>
         
         <!-- advertiserId = 3 的字段 -->
-        <template v-if="form.advertiserId === 3">
+        <template v-if="form.advertiserId === 10003">
           <el-form-item label="广告账户id" prop="adAccountId">
             <el-input v-model="form.adAccountId" placeholder="请输入广告账户id" />
           </el-form-item>
@@ -145,7 +145,7 @@
         </template>
         
         <!-- advertiserId = 4 的字段 -->
-        <template v-if="form.advertiserId === 4">
+        <template v-if="form.advertiserId === 10004">
           <el-form-item label="ownerId" prop="adAccountId">
             <el-input v-model="form.adAccountId" placeholder="请输入ownerId" />
           </el-form-item>
@@ -158,7 +158,7 @@
         </template>
         
         <!-- advertiserId = 5 的字段 -->
-        <template v-if="form.advertiserId === 5">
+        <template v-if="form.advertiserId === 10005">
           <el-form-item label="账户id" prop="adAccountId">
             <el-input v-model="form.adAccountId" placeholder="请输入账户id" />
           </el-form-item>

+ 5 - 6
src/views/adv/landingPageTemplate/index.vue

@@ -41,7 +41,7 @@
           @click="handleAdd"
         >新增</el-button>
       </el-col>
-      <el-col :span="1.5">
+      <!-- <el-col :span="1.5">
         <el-button
           plain
           type="danger"
@@ -50,7 +50,7 @@
           :disabled="multiple"
           @click="handleDelete"
         >删除</el-button>
-      </el-col>
+      </el-col> -->
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -89,12 +89,12 @@
             icon="el-icon-document-copy"
             @click="handleCopy(scope.row)"
           >复制</el-button>
-          <el-button
+          <!-- <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-          >删除</el-button>
+          >删除</el-button> -->
         </template>
       </el-table-column>
     </el-table>
@@ -157,8 +157,7 @@
 </template>
 
 <script>
-import { pageTemplate, getTemplate, addTemplate, updateTemplate, delTemplate, batchDelTemplate, updateTemplateStatus, copyTemplate } from "@/api/adv/landingPageTemplate";
-import { pageDomain } from "@/api/adv/domain";
+import { pageTemplate, getTemplate, addTemplate, updateTemplate, batchDelTemplate, updateTemplateStatus, copyTemplate } from "@/api/adv/landingPageTemplate";
 import H5Editor from "@/components/H5Editor/index.vue";
 
 export default {

+ 2 - 2
src/views/adv/promotionAccount/index.vue

@@ -121,12 +121,12 @@
               />
             </el-select>
           </el-form-item>
-          <el-form-item label="配置方式" prop="configMode">
+          <!-- <el-form-item label="配置方式" prop="configMode">
             <el-radio-group v-model="form.configMode">
               <el-radio :label="1" :border="true">服务模式</el-radio>
               <el-radio :label="2" :border="true">广告主模式</el-radio>
             </el-radio-group>
-          </el-form-item>
+          </el-form-item> -->
         </div>
 
         <!-- 账号信息 -->

+ 2 - 1
src/views/adv/statistics/index.vue

@@ -285,7 +285,8 @@ export default {
         this.statisticsList = response.data.records || [];
         this.total = response.data.total || 0;
         this.loading = false;
-      }).catch(() => {
+      }).catch((error) => {
+        console.error('查询统计列表失败:', error);
         this.loading = false;
       });
     },