update: 大屏接口
This commit is contained in:
@@ -39,18 +39,16 @@
|
||||
</template>
|
||||
6+
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue';
|
||||
import { onMounted, ref, watch } from 'vue';
|
||||
import { useStatistics } from '/@/components/body-d-left/bodyLeftHooks.ts';
|
||||
import { statisticsNewApi } from '/@/views/indexSun/indexSun.api.ts';
|
||||
import { caching, useSession } from '/@/hooks/autoRefresh/caching.ts';
|
||||
import { useDetailStore } from '/@/store/modules/detailData.ts';
|
||||
import { useUserStore } from '/@/store/modules/user.ts';
|
||||
|
||||
const { getCenterInfo } = useUserStore();
|
||||
const { LEFT_KEY1 } = caching;
|
||||
const props = defineProps({
|
||||
centerId: {
|
||||
type: String,
|
||||
default: () => '',
|
||||
},
|
||||
bKey: {
|
||||
type: Number,
|
||||
default: () => 0,
|
||||
@@ -72,11 +70,13 @@
|
||||
getOneLeftInfo();
|
||||
}
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
getOneLeftInfo();
|
||||
});
|
||||
async function getOneLeftInfo() {
|
||||
const params = {
|
||||
condition: chooseType.value,
|
||||
centerId: props.centerId,
|
||||
centerId: getCenterInfo?.id,
|
||||
};
|
||||
statisticsNewApi(params)
|
||||
.then((res) => {
|
||||
|
||||
@@ -35,16 +35,15 @@
|
||||
import hospitalPng from '/@/assets/indexSun/hospital.png';
|
||||
import { threeLApi } from '/@/views/indexSun/indexSun.api.ts';
|
||||
import nomalPng from '/@/assets/indexSun/nomal.png';
|
||||
import { useUserStore } from '/@/store/modules/user.ts';
|
||||
|
||||
const { getCenterInfo } = useUserStore();
|
||||
const scrollList = ref<any[]>([]);
|
||||
const props = defineProps({
|
||||
bKey: {
|
||||
type: Number,
|
||||
default: () => 0,
|
||||
},
|
||||
centerId: {
|
||||
type: String,
|
||||
default: () => '',
|
||||
},
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
@@ -55,10 +54,9 @@
|
||||
getList();
|
||||
});
|
||||
function getList() {
|
||||
threeLApi({ centerId: props.centerId })
|
||||
threeLApi({ centerId: getCenterInfo?.id })
|
||||
.then((res: any) => {
|
||||
if (res.code == 200) {
|
||||
console.log(res.result);
|
||||
scrollList.value = res.result;
|
||||
}
|
||||
})
|
||||
|
||||
@@ -46,6 +46,9 @@
|
||||
import { ref, onMounted, watch } from 'vue';
|
||||
import nomalPng from '/@/assets/indexSun/nomal.png';
|
||||
import { threeRApi } from '/@/views/indexSun/indexSun.api.ts';
|
||||
import { useUserStore } from '/@/store/modules/user.ts';
|
||||
|
||||
const { getCenterInfo } = useUserStore();
|
||||
const scrollList = ref();
|
||||
const emit = defineEmits(['handleClick']);
|
||||
|
||||
@@ -69,7 +72,7 @@
|
||||
});
|
||||
|
||||
function getList() {
|
||||
threeRApi({ centerId: props.centerId })
|
||||
threeRApi({ centerId: getCenterInfo?.id })
|
||||
.then((res: any) => {
|
||||
if (res.code == 200) {
|
||||
scrollList.value = res.result;
|
||||
|
||||
@@ -43,16 +43,14 @@
|
||||
import * as echarts from 'echarts';
|
||||
import { getClassCharts } from '/@/views/indexSun/indexSun.ts';
|
||||
import { allSecondaryDepartsApi, twoLApi } from '/@/views/indexSun/indexSun.api.ts';
|
||||
import { useUserStore } from '/@/store/modules/user.ts';
|
||||
|
||||
const { getCenterInfo } = useUserStore();
|
||||
const props = defineProps({
|
||||
bKey: {
|
||||
type: Number,
|
||||
default: () => 0,
|
||||
},
|
||||
centerId: {
|
||||
type: String,
|
||||
default: () => '',
|
||||
},
|
||||
});
|
||||
const chooseType = ref('0');
|
||||
const selectValue = ref('');
|
||||
@@ -100,7 +98,7 @@
|
||||
twoLApi({
|
||||
sex: chooseType.value,
|
||||
depart: selectValue.value,
|
||||
centerId: props.centerId,
|
||||
centerId: getCenterInfo?.id,
|
||||
})
|
||||
.then((res: any) => {
|
||||
if (res.code == 200) {
|
||||
|
||||
@@ -128,6 +128,9 @@
|
||||
import BloodPng from '/@/assets/indexSun/bloodClock.png';
|
||||
import { onMounted, ref, watch } from 'vue';
|
||||
import { twoRApi } from '/@/views/indexSun/indexSun.api.ts';
|
||||
import { useUserStore } from '/@/store/modules/user.ts';
|
||||
|
||||
const { getCenterInfo } = useUserStore();
|
||||
const twoRList = ref();
|
||||
const emit = defineEmits(['handleClick']);
|
||||
|
||||
@@ -150,7 +153,7 @@
|
||||
});
|
||||
|
||||
function getList() {
|
||||
twoRApi({ centerId: props.centerId })
|
||||
twoRApi({ centerId: getCenterInfo?.id })
|
||||
.then((res: any) => {
|
||||
if (res.code == 200) {
|
||||
localStorage.removeItem('twoRList');
|
||||
|
||||
Reference in New Issue
Block a user