var vms = Vue.component("Company-amplify-aqjc", { template: `
`, props: { projectid:{ type:Array } }, data() { return { show:false, checkNumber1:0, zgrate1:0, jcwts1:0, checkNumber2:0, zgrate2:0, jcwts2:0, } }, mounted(){ }, methods: { openAmplify(){ this.show = true this.getAQjcData() }, closeAmplify(){ this.show = false }, closeAmplifyAll(e){ if(e.target.className == 'amplify-fixed'){ this.show = false } }, //获取安全检查 getAQjcData() { var list = this.projectid; console.log(list) if(list.length > 0) { var projectList= list.map((item) =>{ return item.id }) var temp = projectList.join(",")+""; axios.post("/api/check/getCheckInfoListCompany?projectList="+temp).then(res => { if(res.data.code == 0) { this.checkNumber1 = res.data.cgjc.total; this.zgrate1 = res.data.cgjc.rate; this.jcwts1 = res.data.cgjc.problemTotal; this.checkNumber2 = res.data.zxjc.total; this.zgrate2 = res.data.zxjc.rate; this.jcwts2 = res.data.zxjc.problemTotal; } }) } else { this.checkNumber1 =0; this.zgrate1 = 0; this.jcwts1 = 0; this.checkNumber2 = 0; this.zgrate2 = 0; this.jcwts2 = 0; } }, }, watch:{ }, })