|
@@ -13,7 +13,7 @@
|
|
|
|
|
|
<div v-loading='pageLoading'>
|
|
<div v-loading='pageLoading'>
|
|
<!-- 订阅设置 -->
|
|
<!-- 订阅设置 -->
|
|
- <free-sub-config :datas="setData" :setStatus="setStatus" @update="getUpdate"></free-sub-config>
|
|
|
|
|
|
+ <free-sub-config :datas="setData" :can-select='setData.canSelectArea' :setStatus="setStatus" @update="getUpdate"></free-sub-config>
|
|
<!-- 关键词设置 -->
|
|
<!-- 关键词设置 -->
|
|
<free-key-config id="setkey" :datas="setData" :setStatus="setStatus" @update="getUpdate"></free-key-config>
|
|
<free-key-config id="setkey" :datas="setData" :setStatus="setStatus" @update="getUpdate"></free-key-config>
|
|
<!-- 关键词列表 -->
|
|
<!-- 关键词列表 -->
|
|
@@ -103,7 +103,8 @@ export default {
|
|
maxCount: 0,
|
|
maxCount: 0,
|
|
// 关键词匹配方式(新)
|
|
// 关键词匹配方式(新)
|
|
matchType: [],
|
|
matchType: [],
|
|
- amount: ''
|
|
|
|
|
|
+ amount: '',
|
|
|
|
+ canSelectArea: true
|
|
},
|
|
},
|
|
// 子账号业务范围
|
|
// 子账号业务范围
|
|
scope: [],
|
|
scope: [],
|
|
@@ -275,6 +276,16 @@ export default {
|
|
regionMap: {}
|
|
regionMap: {}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function getMaxSelectCount () {
|
|
|
|
+ var baseNum = res.basenum
|
|
|
|
+ var provincenum = res.provincenum
|
|
|
|
+ if (provincenum === -1) {
|
|
|
|
+ return provincenum
|
|
|
|
+ } else {
|
|
|
|
+ return provincenum + baseNum
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
if (res.area) {
|
|
if (res.area) {
|
|
for (const areaInfoKey in res.area) {
|
|
for (const areaInfoKey in res.area) {
|
|
areaInfo.list.push(areaInfoKey)
|
|
areaInfo.list.push(areaInfoKey)
|
|
@@ -285,6 +296,10 @@ export default {
|
|
this.setData.areaObj = areaInfo.regionMap
|
|
this.setData.areaObj = areaInfo.regionMap
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ this.setData.areaCount = getMaxSelectCount()
|
|
|
|
+ this.setData.canSelectArea = res?.areanum > 0
|
|
|
|
+
|
|
if (res.infotype && res.infotype.length) {
|
|
if (res.infotype && res.infotype.length) {
|
|
// 免费用户格式不一样,需要转换
|
|
// 免费用户格式不一样,需要转换
|
|
this.setData.infoTypeArr = res.infotype
|
|
this.setData.infoTypeArr = res.infotype
|