统计前端页面优化
This commit is contained in:
parent
ffb0f451b8
commit
b457a97f1c
@ -9,6 +9,7 @@
|
||||
range-separator="To"
|
||||
start-placeholder="开始时间"
|
||||
end-placeholder="结束时间"
|
||||
:shortcuts="shortcuts"
|
||||
size="big"
|
||||
/>
|
||||
</el-form-item>
|
||||
@ -18,7 +19,7 @@
|
||||
</el-row>
|
||||
</ContentWrap>
|
||||
<ContentWrap>
|
||||
<el-table :data="data1" show-summary >
|
||||
<el-table :data="data1" show-summary max-height="650">
|
||||
<el-table-column label="卫生院" align="center" prop="orgname" width="200"/>
|
||||
<el-table-column type="expand" label="展开行政村" align="center" width="200">
|
||||
<template #default="scope">
|
||||
@ -63,7 +64,7 @@ const data = ref([
|
||||
{orgname: '安徽', districtname:'F村',oldmanflag:4 ,htnflag :3 ,diaflag:1, smiflag:1 ,pulflag:1 ,sum: 10},
|
||||
{orgname: '安徽', districtname:'G村',oldmanflag:4 ,htnflag :3 ,diaflag:1, smiflag:1 ,pulflag:1 ,sum: 10},
|
||||
]) // 表格数据
|
||||
const data1=ref([
|
||||
/*const data1=ref([
|
||||
{
|
||||
orgname:'北京',oldmanflag:3,htnflag :5 ,diaflag:2, smiflag:5 ,pulflag:6 ,sum : 21,
|
||||
list:[
|
||||
@ -78,12 +79,36 @@ const data1=ref([
|
||||
{ districtname:'D村',oldmanflag:2 ,htnflag :3 ,diaflag:1, smiflag:4 ,pulflag:5 ,sum : 15}
|
||||
],
|
||||
},
|
||||
])
|
||||
const selector = ref([
|
||||
'北京',
|
||||
'天津',
|
||||
'安徽'
|
||||
])
|
||||
])*/
|
||||
const data1 = ref([])
|
||||
const shortcuts = [
|
||||
{
|
||||
text: '最近一周',
|
||||
value: () => {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
start.setDate(start.getDate() - 7)
|
||||
return [start, end]
|
||||
},
|
||||
},
|
||||
{
|
||||
text: '最近一个月',
|
||||
value: () => {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
start.setMonth(start.getMonth() - 1)
|
||||
return [start, end]
|
||||
},
|
||||
},
|
||||
{
|
||||
text: '今日',
|
||||
value: () => {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
return [start, end]
|
||||
},
|
||||
},
|
||||
]
|
||||
/**
|
||||
* 获取统计数据
|
||||
*/
|
||||
@ -94,10 +119,8 @@ const getList = async ()=>{
|
||||
dayjs(time.value[1]).format('YYYY-MM-DD')
|
||||
]
|
||||
}
|
||||
console.log('Request params:', params);
|
||||
let resp = await PatientApi.getData(params)
|
||||
console.log(resp)
|
||||
data1.value = dataProcessing(data.value)
|
||||
data1.value = dataProcessing(resp)
|
||||
}
|
||||
/**
|
||||
* 统计数据处理
|
||||
|
Loading…
Reference in New Issue
Block a user