update: 大屏接口
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import * as echarts from 'echarts';
|
||||
import { legend1, legend2, legend3, legend4, legend5 } from '/@/components/xianMap/xianMapHooks.ts';
|
||||
import { normalTypeList, SexType, sexTypeList } from '/@/utils/settings.ts';
|
||||
import { initatorTypee, normalTypeList, SexType, sexTypeList, sexTypeListNew } from '/@/utils/settings.ts';
|
||||
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;
|
||||
@@ -182,38 +182,45 @@ const columns1 = [
|
||||
const columns2 = [
|
||||
{
|
||||
title: '被救助人',
|
||||
dataIndex: 'realName',
|
||||
key: 'realName',
|
||||
dataIndex: 'salvageUserName',
|
||||
key: 'salvageUserName',
|
||||
},
|
||||
{
|
||||
title: '单位',
|
||||
dataIndex: 'realName',
|
||||
key: 'realName',
|
||||
dataIndex: 'salvageUserSecondDepart',
|
||||
key: 'salvageUserSecondDepart',
|
||||
},
|
||||
{
|
||||
title: '部门',
|
||||
dataIndex: 'realName',
|
||||
key: 'realName',
|
||||
dataIndex: 'salvageUserDepart',
|
||||
key: 'salvageUserDepart',
|
||||
},
|
||||
{
|
||||
title: '性别',
|
||||
dataIndex: 'realName',
|
||||
key: 'realName',
|
||||
dataIndex: 'salvageUserSex_dictText',
|
||||
key: 'salvageUserSex_dictText',
|
||||
},
|
||||
{
|
||||
title: '救助方式',
|
||||
dataIndex: 'realName',
|
||||
key: 'realName',
|
||||
dataIndex: 'initiatorType',
|
||||
key: 'initiatorType',
|
||||
customRender: ({ text }) => {
|
||||
if (text === '0') {
|
||||
return '120';
|
||||
} else if (text === '1') {
|
||||
return '应急就医';
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '救助时间',
|
||||
dataIndex: 'realName',
|
||||
key: 'realName',
|
||||
dataIndex: 'createTime',
|
||||
key: 'createTime',
|
||||
},
|
||||
{
|
||||
title: '联系电话',
|
||||
dataIndex: 'realName',
|
||||
key: 'realName',
|
||||
dataIndex: 'salvageUserMobile',
|
||||
key: 'salvageUserMobile',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -238,26 +245,26 @@ const fromList = [
|
||||
const fromList2 = [
|
||||
{
|
||||
label: '救助人',
|
||||
field: 'realName',
|
||||
field: 'salvageUserName',
|
||||
type: 'input',
|
||||
placeholder: '请输入',
|
||||
defaultValue: '',
|
||||
},
|
||||
{
|
||||
label: '性别',
|
||||
field: 'sex',
|
||||
field: 'salvageUserSex',
|
||||
type: 'select',
|
||||
placeholder: '请选择性别',
|
||||
options: sexTypeList,
|
||||
defaultValue: SexType.all,
|
||||
options: sexTypeListNew,
|
||||
defaultValue: '',
|
||||
},
|
||||
{
|
||||
label: '救助方式',
|
||||
field: 'sex',
|
||||
field: 'initiatorType',
|
||||
type: 'select',
|
||||
placeholder: '请选择性别',
|
||||
options: sexTypeList,
|
||||
defaultValue: SexType.all,
|
||||
options: initatorTypee,
|
||||
defaultValue: '',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -473,6 +480,12 @@ export function twoRform(type) {
|
||||
options: normalTypeList,
|
||||
defaultValue: type,
|
||||
},
|
||||
{
|
||||
label: '单位',
|
||||
field: 'departName',
|
||||
type: 'input',
|
||||
placeholder: '请输入单位',
|
||||
},
|
||||
];
|
||||
}
|
||||
export const towRcolumns = [towRcolumn1, towRcolumn2, towRcolumn3];
|
||||
|
||||
Reference in New Issue
Block a user