echarts图表的查询点击随机生成数据
search() {
let flag = false
let temp = commData.hospitalList.filter(item=>item.entName.indexOf(this.myForm.name)!=-1)
if(temp.length>0) {
flag = true
} else {
temp = commData.pharmacyList.filter(item=>item.entName.indexOf(this.myForm.name)!=-1)
if(temp.length>0) {
flag = true
}
}
if(flag) {
this.initTableData()
} else {
this.$message.warning('警告信息')
}
},