update
1.修改大屏问题
This commit is contained in:
@@ -23,6 +23,7 @@ enum Api {
|
||||
healthArchives = '/health-emergency/emergency/LargeScreenNew/healthArchives',
|
||||
contactList = '/health-system/sys/api/emergencyContact/contactList',
|
||||
careUser = '/health-emergency/emergency/LargeScreenNew/careUser',
|
||||
queryAnYanToken = '/health-emergency/emergency/LargeScreenNew/queryAnYanToken',
|
||||
}
|
||||
|
||||
export const statisticsNewApi = (params: any) => post(Api.statisticsNew, params);
|
||||
@@ -39,6 +40,7 @@ export const todayEmergencyListApi = (params: any) => post(Api.todayEmergencyLis
|
||||
export const healthArchivesApi = (params: any) => get(Api.healthArchives, params);
|
||||
export const contactListApi = (params: any) => get(Api.contactList, params);
|
||||
export const careUserApi = (params: any) => get(Api.careUser, params);
|
||||
export const queryAnYanTokenApi = () => get(Api.queryAnYanToken, {});
|
||||
|
||||
export const threeRModalApi = (params: any) => post(Api.threeRModal, params);
|
||||
export const twoRModal1Api = (params: any) => post(Api.twoRModal1, params);
|
||||
|
||||
@@ -838,6 +838,7 @@ export const oneRNewColumns = [
|
||||
title: '性别',
|
||||
dataIndex: 'sex',
|
||||
key: 'sex',
|
||||
width: 80,
|
||||
customRender: ({ text }) => {
|
||||
if (text == '1') {
|
||||
return '女';
|
||||
@@ -850,11 +851,13 @@ export const oneRNewColumns = [
|
||||
title: '年龄',
|
||||
dataIndex: 'age',
|
||||
key: 'age',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: '应急方式',
|
||||
dataIndex: 'emergencyType',
|
||||
key: 'emergencyType',
|
||||
width: 90,
|
||||
customRender: ({ text }) => {
|
||||
switch (text) {
|
||||
case '0':
|
||||
@@ -879,12 +882,14 @@ export const oneRNewColumns = [
|
||||
title: '详细地址',
|
||||
dataIndex: 'd',
|
||||
key: 'd',
|
||||
width: 90,
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'cz',
|
||||
key: 'cz',
|
||||
width: 80,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -93,7 +93,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
const myChart = ref();
|
||||
function getData() {
|
||||
twoLApi({
|
||||
sex: chooseType.value,
|
||||
@@ -110,23 +109,24 @@
|
||||
});
|
||||
}
|
||||
|
||||
function initChart(value) {
|
||||
myChart.value = echarts.init(newChart.value!);
|
||||
function initChart(value: any) {
|
||||
let myChart = echarts.init(newChart.value);
|
||||
const dx =
|
||||
value.map((item) => {
|
||||
value.map((item: any) => {
|
||||
return item.name;
|
||||
}) || [];
|
||||
const dy =
|
||||
value.map((item) => {
|
||||
value.map((item: any) => {
|
||||
return item.count;
|
||||
}) || [];
|
||||
|
||||
const max = value.sort((a, b) => b.count - a.count).length > 0 ? value.sort((a, b) => b.count - a.count)[0].count : [];
|
||||
const max: any =
|
||||
value.sort((a: any, b: any) => b.count - a.count).length > 0 ? value.sort((a: any, b: any) => b.count - a.count)[0].count : [];
|
||||
const m = max % 25 === 0 ? max : (parseInt(max / 25) + 1) * 25;
|
||||
let option = getClassCharts(dx, dy, m);
|
||||
myChart.value.setOption(option);
|
||||
myChart.setOption(option);
|
||||
window.addEventListener('resize', () => {
|
||||
myChart.value.resize();
|
||||
myChart && myChart.resize();
|
||||
});
|
||||
}
|
||||
const emit = defineEmits(['handleView']);
|
||||
|
||||
@@ -7,13 +7,13 @@ export const list = [
|
||||
},
|
||||
{
|
||||
label: '关爱联络员',
|
||||
field: '',
|
||||
field: 'careLiaisonName',
|
||||
span: 12,
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '单位',
|
||||
field: 'workNoUnit',
|
||||
field: 'workUnit',
|
||||
span: 24,
|
||||
options: null,
|
||||
},
|
||||
@@ -84,13 +84,13 @@ export const list = [
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '血压控制目标(收缩压)',
|
||||
label: '目标',
|
||||
field: 'systolicPressureTarget',
|
||||
span: 8,
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '目前收缩压监测值',
|
||||
label: '目前',
|
||||
field: 'systolicPressureCurrent',
|
||||
span: 8,
|
||||
options: null,
|
||||
@@ -102,13 +102,13 @@ export const list = [
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '血压控制目标(舒张压)',
|
||||
label: '目标',
|
||||
field: 'diastolicPressureTarget',
|
||||
span: 8,
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '目前舒张压监测值',
|
||||
label: '目前',
|
||||
field: 'diastolicPressureCurrent',
|
||||
span: 8,
|
||||
options: null,
|
||||
@@ -135,13 +135,13 @@ export const list = [
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '血糖控制目标',
|
||||
label: '目标',
|
||||
field: 'bloodSugarTarget',
|
||||
span: 8,
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '目前血糖监测值',
|
||||
label: '目前',
|
||||
field: 'bloodSugarCurrent',
|
||||
span: 8,
|
||||
options: null,
|
||||
@@ -153,13 +153,13 @@ export const list = [
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: 'LDL控制目标',
|
||||
label: '目标',
|
||||
field: 'ldlTarget',
|
||||
span: 8,
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '目前LDL监测值',
|
||||
label: '目前',
|
||||
field: 'ldlCurrent',
|
||||
span: 8,
|
||||
options: null,
|
||||
@@ -171,13 +171,13 @@ export const list = [
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: 'TC控制目标',
|
||||
label: '目标',
|
||||
field: 'tcTarget',
|
||||
span: 8,
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '目前TC监测值',
|
||||
label: '目前',
|
||||
field: 'tcCurrent',
|
||||
span: 8,
|
||||
options: null,
|
||||
@@ -189,13 +189,13 @@ export const list = [
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: 'TG控制目标',
|
||||
label: '目标',
|
||||
field: 'tgTarget',
|
||||
span: 8,
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '目前TG监测值',
|
||||
label: '目前',
|
||||
field: 'tgCurrent',
|
||||
span: 8,
|
||||
options: null,
|
||||
@@ -207,13 +207,13 @@ export const list = [
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '血尿酸控制目标',
|
||||
label: '目标',
|
||||
field: 'uricAcidTarget',
|
||||
span: 8,
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '目前血尿酸监测值',
|
||||
label: '目前',
|
||||
field: 'uricAcidCurrent',
|
||||
span: 8,
|
||||
options: null,
|
||||
@@ -225,13 +225,13 @@ export const list = [
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '同型半胱氨酸控制目标',
|
||||
label: '目标',
|
||||
field: 'homocysteineTarget',
|
||||
span: 8,
|
||||
options: null,
|
||||
},
|
||||
{
|
||||
label: '目前同型半胱氨酸监测值',
|
||||
label: '目前',
|
||||
field: 'homocysteineCurrent',
|
||||
span: 8,
|
||||
options: null,
|
||||
|
||||
Reference in New Issue
Block a user