Commit 64b26969 by 王志慧

Merge branch 'v2.4.0' of http://192.168.3.233:8090/saas/scrm-micro-drainage into v2.4.0

2 parents 47c5c539 e5307d0f
...@@ -108,6 +108,7 @@ export default { ...@@ -108,6 +108,7 @@ export default {
this.getCrowdList() this.getCrowdList()
}) })
}, },
// this.$refs.crowdTable.tableHeightValues = '250'
getCrowdList() { getCrowdList() {
var params = { var params = {
req: { req: {
...@@ -119,6 +120,7 @@ export default { ...@@ -119,6 +120,7 @@ export default {
pageNum: this.$refs.crowdTable.page.pageNum pageNum: this.$refs.crowdTable.page.pageNum
} }
} }
this.$apis.channel.queryCrowdtree(params).then(res => { this.$apis.channel.queryCrowdtree(params).then(res => {
this.tableData = res.crowdUnitList this.tableData = res.crowdUnitList
this.tableTotal = res.total this.tableTotal = res.total
......
...@@ -18,7 +18,7 @@ const render = (base, routes) => { ...@@ -18,7 +18,7 @@ const render = (base, routes) => {
mode: 'history' mode: 'history'
}) })
router.afterEach(() => { router.afterEach(() => {
document.querySelector("#app").scrollTop = 0; document.querySelector('#app').scrollTop = 0
}) })
const vm = new Vue({ const vm = new Vue({
router, router,
......
...@@ -426,6 +426,8 @@ export default { ...@@ -426,6 +426,8 @@ export default {
.then(() => { .then(() => {
this.labeling = [] this.labeling = []
this.crowding = [] this.crowding = []
this.contactNum = 0
console.log('清空')
}) })
.catch(() => { .catch(() => {
this.selectType = oldVal this.selectType = oldVal
...@@ -439,6 +441,7 @@ export default { ...@@ -439,6 +441,7 @@ export default {
}) })
.then(() => { .then(() => {
this.clearFile() this.clearFile()
console.log('清空了')
}) })
.catch(() => { .catch(() => {
this.selectType = oldVal this.selectType = oldVal
...@@ -539,6 +542,7 @@ export default { ...@@ -539,6 +542,7 @@ export default {
}, },
handleSaveImport() { handleSaveImport() {
const groupIds = this.crowding.map(item => item.crowdId) const groupIds = this.crowding.map(item => item.crowdId)
if (groupIds.length == 0) return
this.loading = true this.loading = true
let params = { let params = {
exportUrl: this.exportUrl, exportUrl: this.exportUrl,
...@@ -547,7 +551,6 @@ export default { ...@@ -547,7 +551,6 @@ export default {
groupIds groupIds
} }
this.$apis.marketing.exportAdd(params).then(res => { this.$apis.marketing.exportAdd(params).then(res => {
console.log(res)
if (res) { if (res) {
if (this.selectType == 1) { if (this.selectType == 1) {
this.contactNum = res.totalCount this.contactNum = res.totalCount
...@@ -662,6 +665,7 @@ export default { ...@@ -662,6 +665,7 @@ export default {
this.$refs.screenTagForm.init(this.labeling) this.$refs.screenTagForm.init(this.labeling)
}, },
handleCrowd() { handleCrowd() {
console.log(this.crowding)
this.$refs.selectCrowdForm.init(this.crowding) this.$refs.selectCrowdForm.init(this.crowding)
}, },
crowdChecked(item) { crowdChecked(item) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!