zq940222 4 godzin temu
rodzic
commit
58bd34a9d6

+ 6 - 6
src/views/adweb/keywords/SeoKeywords.data.ts

@@ -13,12 +13,12 @@ export const columns: BasicColumn[] = [
     sorter: true,
     width: 300,
   },
-  // {
-  //   title: "关键词所在URL",
-  //   align: "center",
-  //   dataIndex: "positionUrl",
-  //   width: 500,
-  // },
+  {
+    title: "关键词所在URL",
+    align: "center",
+    dataIndex: "positionUrl",
+    width: 500,
+  },
   {
     title: "关键词类型",
     align: "center",

+ 8 - 8
src/views/adweb/keywords/SeoKeywordsList.vue

@@ -6,7 +6,7 @@
         <a-col :span="8">
           <div class="choose-site">
             <span class="t1">站点:</span>
-            <select-site @set-site-info="changeSite" select-width="100%"/>
+            <select-site @set-site-info="changeSite" selectWidth="300px"/>
           </div>
         </a-col>
       </a-row>
@@ -18,8 +18,8 @@
       <template #tableTitle>
         <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增
         </a-button>
-        <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出
-        </a-button>
+<!--        <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出-->
+<!--        </a-button>-->
         <j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">
           导入
         </j-upload-button>
@@ -58,11 +58,11 @@
             关键词
           </a-radio-button>
         </a-radio-group>
-      </template>
-      <template #positionUrl="{ text }">
-        <a v-if="text !== null && text !== undefined" :href=text
-           target="_blank">{{ text.replace("https://", "").replace("http://", "") }}</a>
-        <a v-else>-</a>
+        <template v-if="column.key === 'positionUrl'">
+          <a v-if="text !== null && text !== undefined" :href=text
+             target="_blank">{{ text.replace("https://", "").replace("http://", "") }}</a>
+          <a v-else>-</a>
+        </template>
       </template>
 
       <template #priority="{ text }">