|
@@ -16,17 +16,7 @@
|
|
|
</a-button>
|
|
|
<SeoPdfExportModal @register="registerModal" @success="handleSuccess"></SeoPdfExportModal>
|
|
|
<a-form-item label="站点名称" name="siteName">
|
|
|
- <a-select
|
|
|
- label-in-value
|
|
|
- v-model:value="formState.siteName"
|
|
|
- placeholder="请选择站点"
|
|
|
- showSearch
|
|
|
- style="width: 100%"
|
|
|
- :options="siteOptions"
|
|
|
- :filter-option="filterOption"
|
|
|
- @change="handleChange"
|
|
|
- :field-names="{ label: 'name', value: 'code' }"
|
|
|
- ></a-select>
|
|
|
+ <SelectSite @set-site-info="handleChange"></SelectSite>
|
|
|
</a-form-item>
|
|
|
<a-form-item label="客户名称" name="customerName">
|
|
|
<a-input placeholder="请输入客户名称" v-model:value="formState.customerName"
|
|
@@ -71,7 +61,7 @@
|
|
|
</section>
|
|
|
<section class="s1">
|
|
|
<p class="p1" style="font-size: 15px;margin-top: 15px">
|
|
|
- 尊敬的【{{ formState.siteName.label
|
|
|
+ 尊敬的【{{ formState.siteName.name
|
|
|
}}】:</p>
|
|
|
<p class="p1" style="text-indent: 28px">
|
|
|
我非常高兴向您呈上{{ dayjs(formState.range).format("YYYY-MM")
|
|
@@ -391,7 +381,7 @@ const [registerModal, { openModal }] = useModal();
|
|
|
import { useMessage } from "@/hooks/web/useMessage";
|
|
|
import AreaChart from "@/views/adweb/data/chart/areaChart.vue";
|
|
|
import { JUpload } from "@/components/Form/src/jeecg/components/JUpload";
|
|
|
-import { PageEnum } from "@/enums/pageEnum";
|
|
|
+import SelectSite from "@/components/Adweb/selectSite.vue"
|
|
|
import { router } from "@/router";
|
|
|
|
|
|
const fileList = ref([]);
|
|
@@ -498,8 +488,9 @@ const wrapperCol = ref({ span: 18 });
|
|
|
const flag = ref(true);
|
|
|
const siteOptions = ref([]);
|
|
|
|
|
|
-const handleChange = (value: string) => {
|
|
|
- formState.customerName = value.label;
|
|
|
+const handleChange = (value) => {
|
|
|
+ formState.siteName = value
|
|
|
+ formState.customerName = value.name;
|
|
|
};
|
|
|
|
|
|
const filterOption = (input: string, option: any) => {
|
|
@@ -552,7 +543,7 @@ const ipagination = ref({
|
|
|
});
|
|
|
const getInfo = () => {
|
|
|
let queryParam = {
|
|
|
- siteCode: formState.siteName.value,
|
|
|
+ siteCode: formState.siteName.code,
|
|
|
start: dayjs(formState.range).startOf("month").format("YYYY-MM-DD"),
|
|
|
end: dayjs(formState.range).endOf("month").format("YYYY-MM-DD")
|
|
|
};
|
|
@@ -640,7 +631,7 @@ const mostAccessColumns = ref([
|
|
|
const getMostAccessList = async () => {
|
|
|
try {
|
|
|
let queryParam = {
|
|
|
- siteCode: formState.siteName.value,
|
|
|
+ siteCode: formState.siteName.code,
|
|
|
limit: 10,
|
|
|
start: dayjs(formState.range).startOf("month").format("YYYY-MM-DD"),
|
|
|
end: dayjs(formState.range).endOf("month").format("YYYY-MM-DD")
|
|
@@ -659,7 +650,7 @@ const appointKeywordNum = ref(null);
|
|
|
const longTailKeywordNum = ref(null);
|
|
|
const getComprehenInfo = async () => {
|
|
|
let d = {
|
|
|
- siteCode: formState.siteName.value
|
|
|
+ siteCode: formState.siteName.code
|
|
|
};
|
|
|
await getAction("/seo/seoKeywordsRank/comprehensiveInfo", d).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -686,7 +677,7 @@ const rankInfo = ref({
|
|
|
//获取三个list的数据
|
|
|
const getRankInfo = () => {
|
|
|
let d = {
|
|
|
- siteCode: formState.siteName.value
|
|
|
+ siteCode: formState.siteName.code
|
|
|
};
|
|
|
getAction("/seo/seoKeywordsRank/getRankInfo", d).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -695,7 +686,7 @@ const getRankInfo = () => {
|
|
|
}
|
|
|
});
|
|
|
let d2 = {
|
|
|
- siteCode: formState.siteName.value,
|
|
|
+ siteCode: formState.siteName.code,
|
|
|
exportMonth: formState.range.format("YYYY-MM")
|
|
|
};
|
|
|
getAction("seo/seoMonthPdf/getSeoKeywordsRank", d2).then(res => {
|