受众的调整,改成接口测试

This commit is contained in:
daihh
2022-11-28 23:03:05 +08:00
parent b69cf56f89
commit 8db7130faa
3 changed files with 21 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ const getUserCrowds = function() {
return ajax.postJson(baseURL,'/audience/userAudiences',{}); return ajax.postJson(baseURL,'/audience/userAudiences',{});
} }
/** /**
* 获取hrbp数据 * 获取hrbp数据
*/ */

View File

@@ -620,7 +620,8 @@ export default {
name:item.audienceName, name:item.audienceName,
disabled:false disabled:false
}) })
}) });
this.userGroupList=crowdList;
} }
}) })
}, },

View File

@@ -667,6 +667,7 @@ import {examType,numberToLetter} from '@/utils/tools.js';
import usergroupApi from "@/api/modules/usergroup"; import usergroupApi from "@/api/modules/usergroup";
import pushRecordApi from "@/api/modules/pushRecord"; import pushRecordApi from "@/api/modules/pushRecord";
import {toScoreTow} from '@/utils/tools.js' import {toScoreTow} from '@/utils/tools.js'
import apiUserBasic from '@/api/boe/userbasic.js';
export default { export default {
name: 'articleItems', name: 'articleItems',
computed: { computed: {
@@ -836,6 +837,23 @@ export default {
this.pushData.count = res.result.count; this.pushData.count = res.result.count;
} }
}); });
//从接口中获取受众数据,22/11/28
// apiUserBasic.getUserCrowds().then(res=>{
// if(res.status==200){
// let list=[];
// res.result.forEach(crowd=>{
// list.push({
// id:crowd.id,
// kid:crowd.kid,
// name:crowd.audienceName,
// audienceType:crowd.audienceType,
// type:crowd.type
// })
// });
// this.pushData.data=list
// }
// })
}, },
getFindPage(){// 考试推送记录 getFindPage(){// 考试推送记录
pushRecordApi.pushList(this.pushData.row.id).then(res=>{ pushRecordApi.pushList(this.pushData.row.id).then(res=>{