update: 大屏接口
This commit is contained in:
+28
-1
@@ -32,7 +32,34 @@ export const sexTypeList = [
|
|||||||
value: SexType.female,
|
value: SexType.female,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
export const sexTypeListNew = [
|
||||||
|
{
|
||||||
|
label: '全部',
|
||||||
|
value: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '男',
|
||||||
|
value: SexType.male,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '女',
|
||||||
|
value: SexType.female,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
export const initatorTypee = [
|
||||||
|
{
|
||||||
|
label: '全部',
|
||||||
|
value: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '120',
|
||||||
|
value: '0',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '应急就医',
|
||||||
|
value: '1',
|
||||||
|
},
|
||||||
|
];
|
||||||
export const normalTypeList = [
|
export const normalTypeList = [
|
||||||
{
|
{
|
||||||
label: '全部',
|
label: '全部',
|
||||||
|
|||||||
+21
-1
@@ -49,6 +49,7 @@
|
|||||||
:useForm="true"
|
:useForm="true"
|
||||||
:column="indexColumn"
|
:column="indexColumn"
|
||||||
:firstForm="firstFormOne"
|
:firstForm="firstFormOne"
|
||||||
|
:need-dept="needDept"
|
||||||
:twoROnly="twoROnly"
|
:twoROnly="twoROnly"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
@@ -79,7 +80,15 @@
|
|||||||
import { useUserStore } from '/@/store/modules/user.ts';
|
import { useUserStore } from '/@/store/modules/user.ts';
|
||||||
|
|
||||||
const { getCenterInfo } = useUserStore();
|
const { getCenterInfo } = useUserStore();
|
||||||
import { threeRModalApi, twoRModal1Api, twoRModal2Api, twoRModal3Api } from '/@/views/indexSun/indexSun.api.ts';
|
import {
|
||||||
|
oneLApi,
|
||||||
|
statisticsNewApi,
|
||||||
|
threeRModalApi,
|
||||||
|
twoLModalApi,
|
||||||
|
twoRModal1Api,
|
||||||
|
twoRModal2Api,
|
||||||
|
twoRModal3Api,
|
||||||
|
} from '/@/views/indexSun/indexSun.api.ts';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
//0:处置 1:处理 2:呼入 3:全部
|
//0:处置 1:处理 2:呼入 3:全部
|
||||||
const phoneType = ref('');
|
const phoneType = ref('');
|
||||||
@@ -93,6 +102,7 @@
|
|||||||
const centerId = ref();
|
const centerId = ref();
|
||||||
const apiParams = ref();
|
const apiParams = ref();
|
||||||
const modalApi = ref();
|
const modalApi = ref();
|
||||||
|
const needDept = ref(false);
|
||||||
const twoROnly = ref();
|
const twoROnly = ref();
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const centerInfo = getAuthCache('centerInfo');
|
const centerInfo = getAuthCache('centerInfo');
|
||||||
@@ -108,6 +118,12 @@
|
|||||||
indexModalTitle.value = name;
|
indexModalTitle.value = name;
|
||||||
firstFormOne.value = fromLists[0];
|
firstFormOne.value = fromLists[0];
|
||||||
indexColumn.value = columns[0];
|
indexColumn.value = columns[0];
|
||||||
|
modalApi.value = oneLApi;
|
||||||
|
needDept.value = false;
|
||||||
|
apiParams.value = {
|
||||||
|
phoneType: key == 'gross' ? 0 : 1,
|
||||||
|
centerId: centerId.value,
|
||||||
|
};
|
||||||
twoROnly.value = '';
|
twoROnly.value = '';
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
indexModalRef.value.openDialog();
|
indexModalRef.value.openDialog();
|
||||||
@@ -120,6 +136,8 @@
|
|||||||
indexColumn.value = columns[1];
|
indexColumn.value = columns[1];
|
||||||
firstFormOne.value = fromLists[1];
|
firstFormOne.value = fromLists[1];
|
||||||
twoROnly.value = '';
|
twoROnly.value = '';
|
||||||
|
modalApi.value = twoLModalApi;
|
||||||
|
needDept.value = true;
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
indexModalRef.value.openDialog();
|
indexModalRef.value.openDialog();
|
||||||
});
|
});
|
||||||
@@ -310,6 +328,7 @@
|
|||||||
modalApi.value = threeRModalApi;
|
modalApi.value = threeRModalApi;
|
||||||
twoROnly.value = '';
|
twoROnly.value = '';
|
||||||
apiParams.value = { queryType: type };
|
apiParams.value = { queryType: type };
|
||||||
|
needDept.value = false;
|
||||||
firstFormOne.value = threeRModalFromList;
|
firstFormOne.value = threeRModalFromList;
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
indexModalRef.value.openDialog();
|
indexModalRef.value.openDialog();
|
||||||
@@ -319,6 +338,7 @@
|
|||||||
const textArr = ['健康打卡减重数据', '健康打卡减血糖数据', '健康打卡血压数据'];
|
const textArr = ['健康打卡减重数据', '健康打卡减血糖数据', '健康打卡血压数据'];
|
||||||
indexModalTitle.value = textArr[data.type - 1];
|
indexModalTitle.value = textArr[data.type - 1];
|
||||||
indexColumn.value = towRcolumns[data.type - 1];
|
indexColumn.value = towRcolumns[data.type - 1];
|
||||||
|
needDept.value = false;
|
||||||
twoROnly.value = data;
|
twoROnly.value = data;
|
||||||
const apiArr = [twoRModal1Api, twoRModal2Api, twoRModal3Api];
|
const apiArr = [twoRModal1Api, twoRModal2Api, twoRModal3Api];
|
||||||
const params = {
|
const params = {
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
:options="item.options"
|
:options="item.options"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="单位">
|
<a-form-item label="单位" v-if="needDept">
|
||||||
<a-select placeholder="选择单位" @change="changeSecond" v-model:value="orgCode1" :options="option1" />
|
<a-select placeholder="选择单位" @change="changeSecond" v-model:value="orgCode1" :options="option1" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="部门">
|
<a-form-item label="部门" v-if="needDept">
|
||||||
<a-select placeholder="选择部门" v-model:value="orgCode2" :options="option2" />
|
<a-select placeholder="选择部门" v-model:value="orgCode2" :options="option2" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<slot name="searchSecond"></slot>
|
<slot name="searchSecond"></slot>
|
||||||
@@ -89,6 +89,9 @@
|
|||||||
apiParams: {
|
apiParams: {
|
||||||
type: Object,
|
type: Object,
|
||||||
},
|
},
|
||||||
|
needDept: {
|
||||||
|
type: Boolean,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
const loading = ref<boolean>(false);
|
const loading = ref<boolean>(false);
|
||||||
const formState = ref();
|
const formState = ref();
|
||||||
@@ -236,6 +239,7 @@
|
|||||||
formState.value = {
|
formState.value = {
|
||||||
...formState.value,
|
...formState.value,
|
||||||
...formRecord.value,
|
...formRecord.value,
|
||||||
|
salvageUserDepart: orgCode2.value ? orgCode2.value : orgCode1.value ? orgCode1.value : '',
|
||||||
};
|
};
|
||||||
// registerTable.value.getRecords();
|
// registerTable.value.getRecords();
|
||||||
}
|
}
|
||||||
@@ -243,14 +247,21 @@
|
|||||||
const { visible, closeDialog, openDialog } = useDialog({ title: dialogTitle.value });
|
const { visible, closeDialog, openDialog } = useDialog({ title: dialogTitle.value });
|
||||||
|
|
||||||
function handleClose() {
|
function handleClose() {
|
||||||
|
orgCode2.value = '';
|
||||||
|
orgCode1.value = '';
|
||||||
|
formState.value = {};
|
||||||
|
console.log(formState.value, formRecord.value, 'asjshj');
|
||||||
formRecord.value = {};
|
formRecord.value = {};
|
||||||
closeDialog();
|
closeDialog();
|
||||||
}
|
}
|
||||||
function handleClickReset() {
|
function handleClickReset() {
|
||||||
|
orgCode2.value = '';
|
||||||
|
orgCode1.value = '';
|
||||||
getField();
|
getField();
|
||||||
formState.value = {
|
formState.value = {
|
||||||
...formState.value,
|
...formState.value,
|
||||||
...formRecord.value,
|
...formRecord.value,
|
||||||
|
salvageUserDepart: '',
|
||||||
};
|
};
|
||||||
console.log(formState.value, formRecord.value);
|
console.log(formState.value, formRecord.value);
|
||||||
}
|
}
|
||||||
@@ -285,6 +296,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
.ant-form-item {
|
.ant-form-item {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
max-width: 200px;
|
||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,9 @@ import { post, get } from '/@/api/request.ts';
|
|||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
statisticsNew = '/health-emergency/emergency/LargeScreenNew/statisticsNew',
|
statisticsNew = '/health-emergency/emergency/LargeScreenNew/statisticsNew',
|
||||||
|
oneL = '/health-emergency/emergency/LargeScreenNew/phoneListNew',
|
||||||
twoL = '/health-emergency/emergency/tblHelpCenter/sicknessTypeStatistic',
|
twoL = '/health-emergency/emergency/tblHelpCenter/sicknessTypeStatistic',
|
||||||
|
twoLModal = '/health-emergency/emergency/order/list',
|
||||||
threeL = '/health-emergency/emergency/LargeScreenNew/medicalPeopleNumStatistics',
|
threeL = '/health-emergency/emergency/LargeScreenNew/medicalPeopleNumStatistics',
|
||||||
oneR = '/health-watch/watch/watchMonitorData/getMonitorList',
|
oneR = '/health-watch/watch/watchMonitorData/getMonitorList',
|
||||||
threeR = '/health-emergency/emergency/LargeScreenNew/medicalAbnormalStatistics',
|
threeR = '/health-emergency/emergency/LargeScreenNew/medicalAbnormalStatistics',
|
||||||
@@ -18,6 +20,8 @@ enum Api {
|
|||||||
|
|
||||||
export const statisticsNewApi = (params) => post(Api.statisticsNew, params);
|
export const statisticsNewApi = (params) => post(Api.statisticsNew, params);
|
||||||
export const twoLApi = (params) => get(Api.twoL, params);
|
export const twoLApi = (params) => get(Api.twoL, params);
|
||||||
|
export const twoLModalApi = (params) => get(Api.twoLModal, params);
|
||||||
|
export const oneLApi = (params) => post(Api.oneL, params);
|
||||||
export const threeLApi = (params) => post(Api.threeL, params);
|
export const threeLApi = (params) => post(Api.threeL, params);
|
||||||
export const oneRApi = (params) => get(Api.oneR, params);
|
export const oneRApi = (params) => get(Api.oneR, params);
|
||||||
export const threeRApi = (params) => post(Api.threeR, params);
|
export const threeRApi = (params) => post(Api.threeR, params);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as echarts from 'echarts';
|
import * as echarts from 'echarts';
|
||||||
import { legend1, legend2, legend3, legend4, legend5 } from '/@/components/xianMap/xianMapHooks.ts';
|
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 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 legend2 = new URL('/@/assets/img/legend5.png', import.meta.url).href;
|
||||||
export const legend3 = new URL('/@/assets/img/legend3.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 = [
|
const columns2 = [
|
||||||
{
|
{
|
||||||
title: '被救助人',
|
title: '被救助人',
|
||||||
dataIndex: 'realName',
|
dataIndex: 'salvageUserName',
|
||||||
key: 'realName',
|
key: 'salvageUserName',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '单位',
|
title: '单位',
|
||||||
dataIndex: 'realName',
|
dataIndex: 'salvageUserSecondDepart',
|
||||||
key: 'realName',
|
key: 'salvageUserSecondDepart',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '部门',
|
title: '部门',
|
||||||
dataIndex: 'realName',
|
dataIndex: 'salvageUserDepart',
|
||||||
key: 'realName',
|
key: 'salvageUserDepart',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '性别',
|
title: '性别',
|
||||||
dataIndex: 'realName',
|
dataIndex: 'salvageUserSex_dictText',
|
||||||
key: 'realName',
|
key: 'salvageUserSex_dictText',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '救助方式',
|
title: '救助方式',
|
||||||
dataIndex: 'realName',
|
dataIndex: 'initiatorType',
|
||||||
key: 'realName',
|
key: 'initiatorType',
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
if (text === '0') {
|
||||||
|
return '120';
|
||||||
|
} else if (text === '1') {
|
||||||
|
return '应急就医';
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '救助时间',
|
title: '救助时间',
|
||||||
dataIndex: 'realName',
|
dataIndex: 'createTime',
|
||||||
key: 'realName',
|
key: 'createTime',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '联系电话',
|
title: '联系电话',
|
||||||
dataIndex: 'realName',
|
dataIndex: 'salvageUserMobile',
|
||||||
key: 'realName',
|
key: 'salvageUserMobile',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -238,26 +245,26 @@ const fromList = [
|
|||||||
const fromList2 = [
|
const fromList2 = [
|
||||||
{
|
{
|
||||||
label: '救助人',
|
label: '救助人',
|
||||||
field: 'realName',
|
field: 'salvageUserName',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
placeholder: '请输入',
|
placeholder: '请输入',
|
||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '性别',
|
label: '性别',
|
||||||
field: 'sex',
|
field: 'salvageUserSex',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
placeholder: '请选择性别',
|
placeholder: '请选择性别',
|
||||||
options: sexTypeList,
|
options: sexTypeListNew,
|
||||||
defaultValue: SexType.all,
|
defaultValue: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '救助方式',
|
label: '救助方式',
|
||||||
field: 'sex',
|
field: 'initiatorType',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
placeholder: '请选择性别',
|
placeholder: '请选择性别',
|
||||||
options: sexTypeList,
|
options: initatorTypee,
|
||||||
defaultValue: SexType.all,
|
defaultValue: '',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -473,6 +480,12 @@ export function twoRform(type) {
|
|||||||
options: normalTypeList,
|
options: normalTypeList,
|
||||||
defaultValue: type,
|
defaultValue: type,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '单位',
|
||||||
|
field: 'departName',
|
||||||
|
type: 'input',
|
||||||
|
placeholder: '请输入单位',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
export const towRcolumns = [towRcolumn1, towRcolumn2, towRcolumn3];
|
export const towRcolumns = [towRcolumn1, towRcolumn2, towRcolumn3];
|
||||||
|
|||||||
Reference in New Issue
Block a user