|
@@ -103,7 +103,8 @@
|
|
|
empower_count: 0, // 购买人数
|
|
|
selectDataIds: [],
|
|
|
filterType: false,
|
|
|
- _scrollTop:''
|
|
|
+ _scrollTop:'',
|
|
|
+ selectAreas:[]
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
@@ -197,16 +198,16 @@
|
|
|
async getData (flag = 'no', num) {
|
|
|
this.filterType = !!num
|
|
|
this.loading = true
|
|
|
- const selectAreas = []
|
|
|
- this.list.forEach((v, i) => {
|
|
|
- this.selectDataIds.forEach((s, index) => {
|
|
|
- if (v._id === s) {
|
|
|
- if (v.area) {
|
|
|
- selectAreas.push(v.area)
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
+ const selectAreas = this.selectAreas
|
|
|
+ // this.list.forEach((v, i) => {
|
|
|
+ // this.selectDataIds.forEach((s, index) => {
|
|
|
+ // if (v._id === s) {
|
|
|
+ // if (v.area) {
|
|
|
+ // selectAreas.push(v.area)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // })
|
|
|
const params = {
|
|
|
region: num ? '' : selectAreas.toString(),
|
|
|
queryType: num || ''
|
|
@@ -262,7 +263,7 @@
|
|
|
// 若大于3s,则把现在的时间赋值个lastTime
|
|
|
this.lastTime = now
|
|
|
const delId = []
|
|
|
- this.selectedList.forEach((v, i) => {
|
|
|
+ this.selectedList.forEach((v, i) => { // 选中人员ID
|
|
|
delId.push(v.id)
|
|
|
})
|
|
|
this.centerDialogVisible = false
|
|
@@ -271,7 +272,7 @@
|
|
|
console.log('刷新?')
|
|
|
|
|
|
} else {
|
|
|
- getMsgDistributor({ messageId: getCaIndexIds.toString(), staffs: data }).then(res => {
|
|
|
+ getMsgDistributor({ messageId: this.selectDataIds.toString(), staffs: data }).then(res => {
|
|
|
if (res.error_code === 0) {
|
|
|
if (res.data === 1) {
|
|
|
this.$message({ message: '分发成功', type: 'success' })
|