|
@ -3,7 +3,7 @@ |
|
|
* @email: 18603454788@163.com |
|
|
* @email: 18603454788@163.com |
|
|
* @Date: 2021-01-29 14:45:02 |
|
|
* @Date: 2021-01-29 14:45:02 |
|
|
* @LastEditors: wally |
|
|
* @LastEditors: wally |
|
|
* @LastEditTime: 2021-01-29 18:20:26 |
|
|
* @LastEditTime: 2021-02-19 15:50:23 |
|
|
--> |
|
|
--> |
|
|
<template> |
|
|
<template> |
|
|
<!-- <div>数据统计组件</div> --> |
|
|
<!-- <div>数据统计组件</div> --> |
|
@ -12,6 +12,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { countAnalysis } from 'config/api'; |
|
|
export default { |
|
|
export default { |
|
|
name: 'Categorymap', |
|
|
name: 'Categorymap', |
|
|
data() { |
|
|
data() { |
|
@ -20,6 +21,7 @@ export default { |
|
|
width: '', |
|
|
width: '', |
|
|
height: '', |
|
|
height: '', |
|
|
timer: null, |
|
|
timer: null, |
|
|
|
|
|
list: [], |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
@ -192,6 +194,30 @@ export default { |
|
|
}; |
|
|
}; |
|
|
myChart.setOption(option); |
|
|
myChart.setOption(option); |
|
|
}, |
|
|
}, |
|
|
|
|
|
async getData() { |
|
|
|
|
|
try { |
|
|
|
|
|
const params = { |
|
|
|
|
|
param: { |
|
|
|
|
|
conditionList: [], |
|
|
|
|
|
conditionListDate: [], |
|
|
|
|
|
hospitalId: '', |
|
|
|
|
|
hospitalization: '', |
|
|
|
|
|
inpatientId: '', |
|
|
|
|
|
inputStatus: '', |
|
|
|
|
|
testQuestionsId: '', |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
const res = await countAnalysis(params); |
|
|
|
|
|
const { code, msg, data } = res.data; |
|
|
|
|
|
if (code === 200) { |
|
|
|
|
|
this.list = data; |
|
|
|
|
|
} else { |
|
|
|
|
|
console.log(msg); |
|
|
|
|
|
} |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
this.$message.error('获取数据失败'); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|