bug
This commit is contained in:
@@ -401,19 +401,22 @@ export default {
|
|||||||
return this.$u.toast("请输入发送内容")
|
return this.$u.toast("请输入发送内容")
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.enableExamine) {
|
if(this.enableExamine) { // 是否需要审批,0:否、1:是
|
||||||
if(!this.form.examines.length) {
|
if(!this.form.examines.length) {
|
||||||
return this.$u.toast("请选择审批人")
|
return this.$u.toast("请选择审批人")
|
||||||
} else {
|
} else {
|
||||||
this.form.enableExamine = this.form.enableExamine
|
this.form.examineList = this.form.examineList
|
||||||
}
|
}
|
||||||
this.forms.enableExamine = this.form.enableExamine
|
this.form.enableExamine = 1
|
||||||
|
this.forms.enableExamine = 1
|
||||||
} else {
|
} else {
|
||||||
this.forms.enableExamine
|
this.form.enableExamine = 0
|
||||||
this.form.
|
this.forms.enableExamine = 0
|
||||||
|
this.form.examineList = []
|
||||||
|
this.form.examineList = []
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.isTimedTask) {
|
if(this.isTimedTask) { // 发送类型,0:立即发送、1:定时发送
|
||||||
this.form.sendType = 1
|
this.form.sendType = 1
|
||||||
this.forms.sendType = 1
|
this.forms.sendType = 1
|
||||||
if(!this.form.choiceTime.length) {
|
if(!this.form.choiceTime.length) {
|
||||||
@@ -453,10 +456,10 @@ export default {
|
|||||||
fromDepartmentId: 0,
|
fromDepartmentId: 0,
|
||||||
mode: "multi",
|
mode: "multi",
|
||||||
type: ["user"],
|
type: ["user"],
|
||||||
selectedUserIds: this.userList?.map(e => e.id)
|
selectedUserIds: this.form.examineList?.map(e => e.id)
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
if(res?.userList) {
|
if(res?.userList) {
|
||||||
this.userList = res.userList
|
this.form.examineList = res.userList
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
).catch((err) => {
|
).catch((err) => {
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export default {
|
|||||||
const removeTags = this.ResidentTagsRemove.join(',')
|
const removeTags = this.ResidentTagsRemove.join(',')
|
||||||
this.$http.post(`/app/whchatmomentstask/getCustomerGroups?sendScope=${this.sendScope}&addFromTime=${this.startTime}&addEndTime=${this.endTime}&gender=${this.sex}&filteTags=${tags}&excludeFilterTags=${removeTags}`,
|
this.$http.post(`/app/whchatmomentstask/getCustomerGroups?sendScope=${this.sendScope}&addFromTime=${this.startTime}&addEndTime=${this.endTime}&gender=${this.sex}&filteTags=${tags}&excludeFilterTags=${removeTags}`,
|
||||||
{
|
{
|
||||||
filterCriteria: this.girdListIds.join(',') || this.deptListIds.join(',')
|
filterCriteria: this.girdListIds.join(',') || this.deptListIds.join(','),
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
// this.groupList = res.data
|
// this.groupList = res.data
|
||||||
@@ -112,10 +112,15 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// const array1 = [{name:'zs',num: 1},{name:'zls',num: 5},{name:'azs',num: 4}]
|
||||||
|
// const sum = array1.reduce((pre, cur) => pre + cur.num, 0)
|
||||||
|
// console.log(sum)
|
||||||
|
|
||||||
// 群发朋友圈
|
// 群发朋友圈
|
||||||
getCircleOfFriends() {
|
getCircleOfFriends() {
|
||||||
this.$http.post(`/app/whchatmomentstask/getExecutors?sendScope=${this.sendScope}`,
|
this.$http.post(`/app/whchatmomentstask/getExecutors?sendScope=${this.sendScope}`,
|
||||||
{
|
{
|
||||||
filterCriteria: this.girdListIds.join(',') || this.deptListIds.join(',')
|
filterCriteria: this.girdListIds.join(',') || this.deptListIds.join(',')
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
@@ -149,7 +154,6 @@ export default {
|
|||||||
}
|
}
|
||||||
// 时间
|
// 时间
|
||||||
this.startTime = uni.getStorageSync('startTime')
|
this.startTime = uni.getStorageSync('startTime')
|
||||||
// console.log(this.startTime, '哈哈哈哈');
|
|
||||||
this.endTime = uni.getStorageSync('endTime')
|
this.endTime = uni.getStorageSync('endTime')
|
||||||
// else if(this.sendType == 'CircleOfFriends') {
|
// else if(this.sendType == 'CircleOfFriends') {
|
||||||
// this.circleTags = uni.getStorageSync('circleTags') // 朋友圈包含
|
// this.circleTags = uni.getStorageSync('circleTags') // 朋友圈包含
|
||||||
|
|||||||
Reference in New Issue
Block a user