Commit bfc8b987 by 杨明

fixed

1 parent 60292c23
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-16 10:20:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-22 11:10:48
* @LastEditTime: 2023-05-22 15:10:15
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\ChatGPT.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -18,7 +18,7 @@
</div>
<div class="gpt-header" v-else>
<div class="import-panel">
<el-button type="primary" size="small" icon="el-icon-download">导入企微魔方</el-button>
<el-button type="primary" size="small" icon="el-icon-download" @click="jumpUrl">导入企微魔方</el-button>
</div>
<div class="import-illustrate">
当前门店基盘客户为空,请通过企微魔方导入门店基盘客户数据。
......@@ -103,6 +103,9 @@ export default {
this.contentHtml = html
this.phrasesShow = false
},
jumpUrl() {
this.$history.push('/drainage/square/index')
},
//发送消息
sendMsg() {
console.log(this.calendarDataAll)
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-20 17:50:00
* @LastEditTime: 2023-05-22 15:51:01
* @FilePath: \scrm-micro-home\src\views\home\components\marketing\MarketingLeft.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -16,7 +16,7 @@
<!-- 营销方案 -->
<div class="scheme-wrap">
<div class="scrm-ml6 scrm-c3 scrm-f14 weight-6">营销方案:</div>
<div class="scheme-list">
<div class="scheme-list" v-infinite-scroll="scrollLoad">
<template v-for="(item, index) in schemeListData">
<div class="scheme-line scrm-c3 scrm-f14 flex" :class="{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false">
<div class="scheme-text one-line-ellipsis">{{ item.activityName }}</div>
......@@ -63,8 +63,10 @@ export default {
},
data() {
return {
activityInfo:{},
activityInfo: {},
schemeListData: [],
schemeList: [],
total: 0,
dialogVisible: false,
themeList: [
{
......@@ -80,13 +82,13 @@ export default {
hovering: false
}
],
currentPage: 1,
merchantInfo: this.$globalState.session
}
},
computed: {
...mapState({
calendarData: state => state.marketing.calendarData,
schemeList: state => state.marketing.schemeList
calendarData: state => state.marketing.calendarData
})
},
watch: {
......@@ -99,10 +101,23 @@ export default {
},
mounted() {
this.getSchemeList()
this.setSchemeListData({ merchantId: this.$globalState.session.merchantId, pageSize: 5, currentPage: 1 }) //44211227 this.$globalState.session.merchantId
this.setSchemeListData() //44211227 this.$globalState.session.merchantId
},
methods: {
...mapActions('marketing', ['setActivityInfo', 'setSchemeListData']),
...mapActions('marketing', ['setActivityInfo']),
setSchemeListData() {
this.$apis.activity.listByPage({ merchantId: this.$globalState.session.merchantId, pageSize: 5, currentPage: this.currentPage }).then(res => {
if (res) {
this.schemeList = this.schemeList.concat(res.list || [])
this.total = res.total
}
})
},
scrollLoad() {
if (this.schemeList.length == this.total) return
this.currentPage++
this.setSchemeListData()
},
getView(val) {
this.$apis.activity.findActivityInfo({ activityId: val.id }).then(res => {
console.log(res)
......@@ -172,7 +187,7 @@ export default {
margin: 8px 0;
display: flex;
flex-direction: column;
height: 200px;
height: 190px;
overflow-y: scroll;
overflow-x: hidden;
.scheme-line {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!