This commit is contained in:
yanran200730
2022-08-22 16:00:16 +08:00
2 changed files with 5 additions and 2 deletions

View File

@@ -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',

View File

@@ -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