update: 大屏接口

This commit is contained in:
xf
2025-07-08 17:12:55 +08:00
parent 8a630dd1cd
commit b55bc1857a
5 changed files with 102 additions and 26 deletions
+21 -1
View File
@@ -49,6 +49,7 @@
:useForm="true"
:column="indexColumn"
:firstForm="firstFormOne"
:need-dept="needDept"
:twoROnly="twoROnly"
/>
</template>
@@ -79,7 +80,15 @@
import { useUserStore } from '/@/store/modules/user.ts';
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';
//0:处置 1:处理 2:呼入 3:全部
const phoneType = ref('');
@@ -93,6 +102,7 @@
const centerId = ref();
const apiParams = ref();
const modalApi = ref();
const needDept = ref(false);
const twoROnly = ref();
onMounted(() => {
const centerInfo = getAuthCache('centerInfo');
@@ -108,6 +118,12 @@
indexModalTitle.value = name;
firstFormOne.value = fromLists[0];
indexColumn.value = columns[0];
modalApi.value = oneLApi;
needDept.value = false;
apiParams.value = {
phoneType: key == 'gross' ? 0 : 1,
centerId: centerId.value,
};
twoROnly.value = '';
nextTick(() => {
indexModalRef.value.openDialog();
@@ -120,6 +136,8 @@
indexColumn.value = columns[1];
firstFormOne.value = fromLists[1];
twoROnly.value = '';
modalApi.value = twoLModalApi;
needDept.value = true;
nextTick(() => {
indexModalRef.value.openDialog();
});
@@ -310,6 +328,7 @@
modalApi.value = threeRModalApi;
twoROnly.value = '';
apiParams.value = { queryType: type };
needDept.value = false;
firstFormOne.value = threeRModalFromList;
nextTick(() => {
indexModalRef.value.openDialog();
@@ -319,6 +338,7 @@
const textArr = ['健康打卡减重数据', '健康打卡减血糖数据', '健康打卡血压数据'];
indexModalTitle.value = textArr[data.type - 1];
indexColumn.value = towRcolumns[data.type - 1];
needDept.value = false;
twoROnly.value = data;
const apiArr = [twoRModal1Api, twoRModal2Api, twoRModal3Api];
const params = {