|
@@ -52,10 +52,10 @@
|
|
|
<a-radio-group v-if="column.key === 'keywordType'" button-style="solid"
|
|
|
@change="onchange($event,record.id)" :value="record.keywordType">
|
|
|
<a-radio-button :value=1>
|
|
|
- 指定词
|
|
|
+ 指定关键词
|
|
|
</a-radio-button>
|
|
|
<a-radio-button :value=2>
|
|
|
- 关键词
|
|
|
+ 长尾关键词
|
|
|
</a-radio-button>
|
|
|
</a-radio-group>
|
|
|
<template v-if="column.key === 'positionUrl'">
|
|
@@ -107,6 +107,7 @@ import SelectSite from "@/components/Adweb/selectSite.vue";
|
|
|
import { downloadFile } from "@/utils/common/renderUtils";
|
|
|
import { useMethods } from "@/hooks/system/useMethods";
|
|
|
import { useMessage } from "@/hooks/web/useMessage";
|
|
|
+import { postAction } from "@/api/manage/manage";
|
|
|
|
|
|
const queryParam = reactive<any>({});
|
|
|
queryParam.siteCode = localStorage.getItem("siteCode")!;
|
|
@@ -244,17 +245,19 @@ function onPriorityChange($event, id) {
|
|
|
|
|
|
//关键词指定
|
|
|
function onchange($event, id) {
|
|
|
-
|
|
|
- // let that = this
|
|
|
- // postAction(url.changeTypeUrl + '?id=' + id + '&type=' + $event.target.value).then(function(res) {
|
|
|
- // if (res.code === 200) {
|
|
|
- // $message.success('关键词类型更改成功!')
|
|
|
- // loadData()
|
|
|
- // } else {
|
|
|
- // $message.error(res.message)
|
|
|
- // return
|
|
|
- // }
|
|
|
- // })
|
|
|
+ let params = {
|
|
|
+ id: id,
|
|
|
+ type: $event.target.value
|
|
|
+ }
|
|
|
+ postAction('/seo/seoKeywords/changeType', params, 1000 * 60 * 2).then(function(res) {
|
|
|
+ if (res.code === 200) {
|
|
|
+ $message.createMessage.success('关键词类型更改成功!')
|
|
|
+ reload()
|
|
|
+ } else {
|
|
|
+ $message.createMessage.error(res.message)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
//切换站点
|