|
@@ -37,24 +37,35 @@
|
|
|
<div class="content-list-box">
|
|
|
<potential-list @goDetail="goDetail"
|
|
|
@follow="changeFollow"
|
|
|
+ @show="showMonitorDialog"
|
|
|
@remove="changeRemove"
|
|
|
@delete="changeDelete"
|
|
|
:title="getTopInfo.desc || getTopInfo.text" :filters="filters" ref="pushList" :showMore="false"></potential-list>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <common-dialog custom-class="monitor-class" width="380px" :visible="monitorInfo.showD1" title="监控成功">
|
|
|
- <template #footer>
|
|
|
- <button class="action-button confirm" @click="setMonitorConfirm('1')">去开启</button>
|
|
|
- <button class="action-button cancel" @click="setMonitorCancel('1')">暂不开启</button>
|
|
|
- </template>
|
|
|
- 您可前往“工作台-商机-业主监控”查看业主最新招标动态。为保证您能及时获取新增监控信息推送,请前往开启推送提醒。
|
|
|
- </common-dialog>
|
|
|
</forLayOut>
|
|
|
+ <common-dialog custom-class="monitor-class" width="380px" :visible="monitorInfo.showD1" title="监控成功">
|
|
|
+ <template #footer>
|
|
|
+ <button class="action-button confirm" @click="setMonitorConfirm('1')">去开启</button>
|
|
|
+ <button class="action-button cancel" @click="setMonitorCancel('1')">暂不开启</button>
|
|
|
+ </template>
|
|
|
+ 您可前往“工作台-商机-业主监控”查看业主最新招标动态。为保证您能及时获取新增监控信息推送,请前往开启推送提醒。
|
|
|
+ </common-dialog>
|
|
|
+ <common-dialog center custom-class="monitor-class" width="380px" :visible="monitorInfo.showD3" title="监控业主个数已达上限">
|
|
|
+ <template #footer>
|
|
|
+ <button class="action-button confirm" @click="setMonitorConfirm('3')">联系客服</button>
|
|
|
+ <button class="action-button cancel" @click="setMonitorCancel('3')">返回</button>
|
|
|
+ </template>
|
|
|
+ 您最多可监控{{monitorInfo.remainNum + monitorInfo.alreadyNum}}个业主,可联系客服,申请监控更多业主
|
|
|
+ </common-dialog>
|
|
|
+ <CollectInfo ref="collectRef"></CollectInfo>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import CollectInfo from '@/components/collect-info/CollectInfo.vue'
|
|
|
import PotentialList from '@/components/push-list/PotentialList.vue'
|
|
|
+import commonDialog from '@/components/dialog/Dialog.vue'
|
|
|
import AreaSelector from '@/components/selector/AreaSelector.vue'
|
|
|
import IndustrySelector from '@/components/selector/IndustrySelector.vue'
|
|
|
import BuyerclassSelector from '@/components/selector/BuyerclassSelector.vue'
|
|
@@ -72,7 +83,9 @@ export default {
|
|
|
BuyerclassSelector,
|
|
|
BusinessScopeSelector,
|
|
|
forLayOut,
|
|
|
- TabHeader
|
|
|
+ TabHeader,
|
|
|
+ commonDialog,
|
|
|
+ CollectInfo
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -100,17 +113,29 @@ export default {
|
|
|
listKey: new Date().getTime()
|
|
|
},
|
|
|
monitorInfo: {
|
|
|
- showD1: false
|
|
|
+ showD1: false,
|
|
|
+ showD3: false,
|
|
|
+ alreadyNum: 0,
|
|
|
+ remainNum: 0
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ showMonitorDialog (data) {
|
|
|
+ const { remainNum, alreadyNum } = data
|
|
|
+ this.monitorInfo.remainNum = remainNum
|
|
|
+ this.monitorInfo.alreadyNum = alreadyNum
|
|
|
+ },
|
|
|
setMonitorConfirm (data) {
|
|
|
switch (data) {
|
|
|
case '1':
|
|
|
window.open('/swordfish/page_big_pc/push_setting')
|
|
|
this.monitorInfo.showD1 = false
|
|
|
break
|
|
|
+ case '3':
|
|
|
+ this.contactCustomer(this)
|
|
|
+ this.monitorInfo.showD3 = false
|
|
|
+ break
|
|
|
default:
|
|
|
break
|
|
|
}
|
|
@@ -120,6 +145,9 @@ export default {
|
|
|
case '1':
|
|
|
this.monitorInfo.showD1 = false
|
|
|
break
|
|
|
+ case '3':
|
|
|
+ this.monitorInfo.showD3 = false
|
|
|
+ break
|
|
|
default:
|
|
|
break
|
|
|
}
|
|
@@ -135,6 +163,16 @@ export default {
|
|
|
} else {
|
|
|
this.$toast('监控成功,您可前往“工作台-商机-业主监控”查看')
|
|
|
}
|
|
|
+ } else {
|
|
|
+ if (this.monitorInfo.remainNum === 0) {
|
|
|
+ if (this.info.vipStatus > 0) {
|
|
|
+ this.$refs.collectRef.noCallApiFn('pc_buyer_monitor_more', true)
|
|
|
+ } else if (this.info.memberStatus > 0) {
|
|
|
+ this.monitorInfo.showD3 = true
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$toast(res.error_msg)
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
this.$toast(res.error_msg)
|
|
@@ -269,6 +307,7 @@ export default {
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
scope: state => state.user.scope,
|
|
|
+ info: state => state.user.info,
|
|
|
isDeleteAllScope: state => state.user.isDeleteAllScope
|
|
|
}),
|
|
|
getTopInfo () {
|