update: 大屏接口
This commit is contained in:
+134
-14
@@ -1,9 +1,17 @@
|
||||
import * as echarts from 'echarts';
|
||||
import { legend1, legend2, legend3, legend4, legend5 } from '/@/components/xianMap/xianMapHooks.ts';
|
||||
import { initatorTypee, normalTypeList, SexType, sexTypeList, sexTypeListNew } from '/@/utils/settings.ts';
|
||||
import { checkTypeList, initatorTypee, isTrueOfFalse, normalTypeList, SexType, sexTypeList, sexTypeListNew } from '/@/utils/settings.ts';
|
||||
import { getDictByCode, getDictByCode2 } from '/@/views/index.api.ts';
|
||||
import { get } from '/@/api/request';
|
||||
export const legend1 = new URL('/@/assets/img/legend1.png', import.meta.url).href;
|
||||
export const legend2 = new URL('/@/assets/img/legend5.png', import.meta.url).href;
|
||||
export const legend3 = new URL('/@/assets/img/legend3.png', import.meta.url).href;
|
||||
|
||||
async function getDict(code) {
|
||||
return await getDictByCode2({ dictCode: code });
|
||||
}
|
||||
export const checkData = await getDict('xj_check_type');
|
||||
|
||||
export function getClassCharts(dx, dy, m) {
|
||||
return {
|
||||
grid: {
|
||||
@@ -129,7 +137,7 @@ export function infoContent(res) {
|
||||
<span class="item-one">单位:</span>
|
||||
<span class="item-two">${res.orgName ? res.orgName : '--'}</span>
|
||||
</div>
|
||||
<div class="modal-item">
|
||||
<div class="modal-item" >
|
||||
<span class="item-one">关爱人数:</span>
|
||||
<span class="item-two">${res.loveNum ? res.loveNum : '--'}</span>
|
||||
</div>
|
||||
@@ -142,7 +150,19 @@ export function infoContent(res) {
|
||||
</div>
|
||||
</div> `;
|
||||
}
|
||||
|
||||
export function infoContent1(res) {
|
||||
return `
|
||||
<div class="modal-box modal-box-normal">
|
||||
<div class="modal-item">
|
||||
<span class="item-one">单位:</span>
|
||||
<span class="item-two">${res.orgName ? res.orgName : '--'}</span>
|
||||
</div>
|
||||
<div class="modal-item">
|
||||
<span class="item-one">地点:</span>
|
||||
<span class="item-two">${res.name ? res.name : '--'}</span>
|
||||
</div>
|
||||
</div> `;
|
||||
}
|
||||
const columns1 = [
|
||||
{
|
||||
title: '姓名',
|
||||
@@ -320,6 +340,13 @@ export const threeRModalFromList = [
|
||||
placeholder: '请输入体检医院',
|
||||
defaultValue: '',
|
||||
},
|
||||
{
|
||||
label: '单位',
|
||||
field: 'departName',
|
||||
type: 'input',
|
||||
placeholder: '请输入单位',
|
||||
defaultValue: '',
|
||||
},
|
||||
];
|
||||
|
||||
const towRcolumn1 = [
|
||||
@@ -360,8 +387,8 @@ const towRcolumn1 = [
|
||||
},
|
||||
{
|
||||
title: 'BMI是否异常',
|
||||
dataIndex: 'bmiException',
|
||||
key: 'bmiException',
|
||||
dataIndex: 'bmiFlag',
|
||||
key: 'bmiFlag',
|
||||
},
|
||||
{
|
||||
title: '腰围(cm)',
|
||||
@@ -370,8 +397,8 @@ const towRcolumn1 = [
|
||||
},
|
||||
{
|
||||
title: '填报日期',
|
||||
dataIndex: 'createTime',
|
||||
key: 'createTime',
|
||||
dataIndex: 'inputDate',
|
||||
key: 'inputDate',
|
||||
},
|
||||
];
|
||||
const towRcolumn2 = [
|
||||
@@ -397,13 +424,13 @@ const towRcolumn2 = [
|
||||
},
|
||||
{
|
||||
title: '血糖值(mmol/L)',
|
||||
dataIndex: 'height',
|
||||
key: 'height',
|
||||
dataIndex: 'bsVal',
|
||||
key: 'bsVal',
|
||||
},
|
||||
{
|
||||
title: '血糖是否异常',
|
||||
dataIndex: 'weight',
|
||||
key: 'weight',
|
||||
dataIndex: 'bmiFlag',
|
||||
key: 'bmiFlag',
|
||||
},
|
||||
{
|
||||
title: '腰围(cm)',
|
||||
@@ -412,8 +439,8 @@ const towRcolumn2 = [
|
||||
},
|
||||
{
|
||||
title: '填报日期',
|
||||
dataIndex: 'createTime',
|
||||
key: 'createTime',
|
||||
dataIndex: 'inputDate',
|
||||
key: 'inputDate',
|
||||
},
|
||||
];
|
||||
const towRcolumn3 = [
|
||||
@@ -476,7 +503,7 @@ export function twoRform(type) {
|
||||
label: '异常标记',
|
||||
field: 'abFlag',
|
||||
type: 'select',
|
||||
placeholder: '请选择性别',
|
||||
placeholder: '请选择',
|
||||
options: normalTypeList,
|
||||
defaultValue: type,
|
||||
},
|
||||
@@ -489,3 +516,96 @@ export function twoRform(type) {
|
||||
];
|
||||
}
|
||||
export const towRcolumns = [towRcolumn1, towRcolumn2, towRcolumn3];
|
||||
|
||||
export const centerMapColumns = [
|
||||
{
|
||||
title: '单位',
|
||||
dataIndex: 'departName',
|
||||
key: 'departName',
|
||||
},
|
||||
{
|
||||
title: '姓名',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
},
|
||||
{
|
||||
title: '检查日期',
|
||||
dataIndex: 'checkInDate',
|
||||
key: 'checkInDate',
|
||||
},
|
||||
{
|
||||
title: '检查类型',
|
||||
dataIndex: 'checkType',
|
||||
key: 'checkType',
|
||||
customRender: ({ text }) => {
|
||||
console.log(text, checkData);
|
||||
const dddd = checkData.filter((item) => item.value == text);
|
||||
return dddd[0].label;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '去年检查值',
|
||||
dataIndex: 'lastVal',
|
||||
key: 'lastYearCheckVal',
|
||||
},
|
||||
{
|
||||
title: '控降目标',
|
||||
dataIndex: 'goalVal',
|
||||
key: 'targetVal',
|
||||
},
|
||||
{
|
||||
title: '本次测量值',
|
||||
dataIndex: 'currentVal',
|
||||
key: 'thisCheckVal',
|
||||
},
|
||||
{
|
||||
title: '控降差值',
|
||||
dataIndex: 'compareVal',
|
||||
key: 'diffVal',
|
||||
},
|
||||
{
|
||||
title: '是否成功控降',
|
||||
dataIndex: 'successFlag',
|
||||
key: 'successFlag',
|
||||
customRender: ({ text }) => {
|
||||
if (text == '1') {
|
||||
return '是';
|
||||
} else {
|
||||
return '否';
|
||||
}
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export const centerMapFromList = [
|
||||
{
|
||||
label: '员工姓名',
|
||||
field: 'name',
|
||||
type: 'input',
|
||||
placeholder: '请输入姓名',
|
||||
defaultValue: '',
|
||||
},
|
||||
{
|
||||
label: '检查类型',
|
||||
field: 'checkType',
|
||||
type: 'select',
|
||||
placeholder: '请输入检查类型',
|
||||
options: checkData,
|
||||
defaultValue: '',
|
||||
},
|
||||
{
|
||||
label: '是否成功控降',
|
||||
field: 'successFlag',
|
||||
type: 'select',
|
||||
placeholder: '请输入是否成功控降',
|
||||
options: isTrueOfFalse,
|
||||
defaultValue: '',
|
||||
},
|
||||
{
|
||||
label: '单位名称',
|
||||
field: 'departName',
|
||||
type: 'input',
|
||||
placeholder: '请输入单位名称',
|
||||
defaultValue: '',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user