diff --git a/packages/extra/AppAddressBook/components/List.vue b/packages/extra/AppAddressBook/components/List.vue index bfbf0711..96116c98 100644 --- a/packages/extra/AppAddressBook/components/List.vue +++ b/packages/extra/AppAddressBook/components/List.vue @@ -235,7 +235,7 @@ export default { {prop: 'departmentNames', label: '部门'}, {prop: 'mobile', label: '手机号'}, {slot: 'tags', label: '标签'}, - {prop: 'status', label: '账号状态', align: 'center', formart: v => v === 1 ? '已激活' : '未激活'} + {prop: 'status', label: '账号状态', align: 'center', formart: v => v == 1 ? '已激活' : '未激活'} ], defaultProps: { children: 'children', diff --git a/packages/wxwork/Announce/AppAnnounceStatistics/AppAnnounceStatistics.vue b/packages/wxwork/Announce/AppAnnounceStatistics/AppAnnounceStatistics.vue index 1adc8df9..ab0b97bb 100644 --- a/packages/wxwork/Announce/AppAnnounceStatistics/AppAnnounceStatistics.vue +++ b/packages/wxwork/Announce/AppAnnounceStatistics/AppAnnounceStatistics.vue @@ -269,7 +269,10 @@ } }, getEffect() { - var startTime = this.timeListEffect[0] || '' , endTime = this.timeListEffect[1] || '', departId = this.deptList[0].id || '' + var startTime = this.timeListEffect[0] || '' , endTime = this.timeListEffect[1] || '', departId = '' + if(this.deptList && this.deptList.length) { + departId = this.deptList[0].id + } this.instance.post(`/app/appmasssendingtask/statisticsEffect?type=${this.effectType}&startTime=${startTime}&endTime=${endTime}&departId=${departId}`).then(res => { if (res.code == 0) { this.effectData = res.data