var vms = Vue.component("Company-amplify-glryqk", {
template: `
子分公司人员数量
子分公司登录率
{{mangeUser.companyLoginRate}} %

子分公司登录人数
{{mangeUser.companyLoginUserNum}}
项目人员数量
项目登录率
{{mangeUser.projectLoginRate}} %

项目登录人数
{{mangeUser.projectLoginUserNum}}
`,
props: {
businessdata:{
type:Object
}
},
data() {
return {
show:false,
//管理人员情况
mangeUser:{
companyUserNum:0,
companyLoginRate:0,
companyLoginUserNum:0,
projectLoginRate:0,
projectLoginUserNum:0
},
}
},
mounted(){
},
methods: {
openAmplify(){
this.show = true
this.getMangeUserLoginRate()
},
closeAmplify(){
this.show = false
},
closeAmplifyAll(e){
if(e.target.className == 'amplify-fixed'){
this.show = false
}
},
//管理人员情况
getMangeUserLoginRate(){
axios.post(this.businessdata.requestUrl+"getMangeUserLoginRate?deptId="+this.businessdata.deptId+"&projectId="+this.businessdata.projectIdStr, {
}).then(res => {
this.mangeUser = res.data.data;
}).catch(err => {
})
},
},
watch:{
},
})