Browse Source

组件调整

zq940222 4 months ago
parent
commit
da78d4eca3

+ 1 - 1
.env.development

@@ -9,7 +9,7 @@ VITE_PUBLIC_PATH = /
 VITE_PROXY = [["/adweb3","http://localhost:8080/adweb3"],["/upload","http://localhost:3300/upload"]]
 
 #后台接口全路径地址(必填)
-VITE_GLOB_DOMAIN_URL=http://localhost:8080
+VITE_GLOB_DOMAIN_URL=http://localhost:8080/adweb3
 
 #后台接口父地址(必填)
 VITE_GLOB_API_URL=/adweb3

+ 1 - 1
.env.production

@@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
 VITE_GLOB_API_URL=/adweb3
 
 #后台接口全路径地址(必填)
-VITE_GLOB_DOMAIN_URL=https://v3.adwebcloud.com
+VITE_GLOB_DOMAIN_URL=https://v3.adwebcloud.com/adweb3
 
 # 接口父路径前缀
 VITE_GLOB_API_URL_PREFIX=

+ 18 - 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",
@@ -108,6 +108,18 @@ export const formSchema: FormSchema[] = [
       ];
     }
   },
+  {
+    label: "站点ID",
+    field: "siteCode",
+    component: "Input",
+    show: false,
+    defaultValue: localStorage.getItem('siteCode'),
+    dynamicRules: ({ model, schema }) => {
+      return [
+        { required: true, message: "没有站点ID!" }
+      ];
+    },
+  },
   // TODO 主键隐藏字段,目前写死为ID
   {
     label: "",

+ 4 - 21
src/views/adweb/keywords/SeoKeywordsList.vue

@@ -9,25 +9,6 @@
             <select-site @set-site-info="changeSite" select-width="100%"/>
           </div>
         </a-col>
-        <!--          <a-col span="8">-->
-        <!--            <span class="t1">套餐:</span>-->
-        <!--              <a-select-->
-        <!--                placeholder="请选择套餐"-->
-        <!--                @change="changeSeoPlans"-->
-        <!--                v-model="queryParam.historyId">-->
-        <!--                <a-select-option-->
-        <!--                  v-for="(data,index) in planList"-->
-        <!--                  :key="index"-->
-        <!--                  :value="data.subscriptionId"-->
-        <!--                >-->
-        <!--                  {{ data.planName }}-->
-        <!--                </a-select-option>-->
-        <!--              </a-select>-->
-        <!--          </a-col>-->
-        <!--          <a-col span="8" v-if=" marketPlanInfo.domain !== null">-->
-        <!--            <span class="t1">域名:</span>-->
-        <!--              {{ marketPlanInfo.domain }}-->
-        <!--          </a-col>-->
       </a-row>
     </div>
     <!-- 查询区域-END -->
@@ -115,7 +96,7 @@
 </template>
 
 <script lang="ts" name="serp-seoKeywords" setup>
-import { ref, reactive, computed, unref } from "vue";
+import { ref, reactive, computed, unref, onBeforeMount } from "vue";
 import { BasicTable, useTable, TableAction } from "/@/components/Table";
 import { useModal } from "/@/components/Modal";
 import { useListPage } from "/@/hooks/system/useListPage";
@@ -123,6 +104,7 @@ import SeoKeywordsModal from "./components/SeoKeywordsModal.vue";
 import { columns, searchFormSchema, superQuerySchema } from "./SeoKeywords.data";
 import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from "./SeoKeywords.api";
 import SelectSite from "@/components/Adweb/selectSite.vue";
+import { downloadFile } from "@/utils/common/renderUtils";
 
 const queryParam = reactive<any>({});
 queryParam.siteCode = localStorage.getItem('siteCode')!;
@@ -148,6 +130,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
       fixed: "right"
     },
     beforeFetch: (params) => {
+      params.siteCode = localStorage.getItem('siteCode')!;
       return Object.assign(params, queryParam);
     }
   },
@@ -280,7 +263,7 @@ function changeSite(selectedSiteInfo: any) {
 
 //下载模板
 function downloadTemplate() {
-  return window.open("/adwebv21/uploadDemo/关键词导入模版表.xlsx", "_self");
+  downloadFile('关键词导入模版表.xlsx')
 }
 </script>