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

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

@@ -667,6 +667,7 @@ import {examType,numberToLetter} from '@/utils/tools.js';
import usergroupApi from "@/api/modules/usergroup";
import pushRecordApi from "@/api/modules/pushRecord";
import {toScoreTow} from '@/utils/tools.js'
import apiUserBasic from '@/api/boe/userbasic.js';
export default {
name: 'articleItems',
computed: {
@@ -836,6 +837,23 @@ export default {
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(){// 考试推送记录
pushRecordApi.pushList(this.pushData.row.id).then(res=>{