Commit bfc8b987 by 杨明

fixed

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