mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
受众的调整,改成接口测试
This commit is contained in:
@@ -36,6 +36,7 @@ const getUserCrowds = function() {
|
||||
return ajax.postJson(baseURL,'/audience/userAudiences',{});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取hrbp数据
|
||||
*/
|
||||
|
||||
@@ -620,7 +620,8 @@ export default {
|
||||
name:item.audienceName,
|
||||
disabled:false
|
||||
})
|
||||
})
|
||||
});
|
||||
this.userGroupList=crowdList;
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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=>{
|
||||
|
||||
Reference in New Issue
Block a user