update: 修改接口路径,弹窗搬运

This commit is contained in:
项富
2024-09-20 14:30:48 +08:00
parent b871eabb08
commit ed5810611f
12 changed files with 90 additions and 43 deletions
@@ -20,7 +20,7 @@
import PublicTitle from '/@/components/publicTitle.vue';
import { onMounted, ref } from 'vue';
import { caching, useSession } from '/@/hooks/autoRefresh/caching.ts';
import { getWorkDaily } from '/@/views/centralScreen/centralScreen.api.ts';
import { medicalCenterNew } from '/@/views/centralScreen/centralScreen.api.ts';
const { setSession, getSession } = useSession();
const { WORK_DAILY_NEW } = caching;
@@ -28,7 +28,7 @@
async function getTrendsData() {
try {
const { code, result } = await getWorkDaily({});
const { code, result } = await medicalCenterNew({});
if (code != 200) {
return;
}
@@ -50,7 +50,7 @@
.trends-item {
font-size: 16px;
padding: 10px 20px;
padding: 10px 20px 5px;
.trends-title-con {
display: flex;
@@ -77,8 +77,14 @@
}
.trends-item-span {
//flex: 1;
//color: #ededed;
flex: 1;
color: #ededed;
color: #d0c4c4;
font-size: 13px;
justify-content: space-around;
display: flex;
margin-top: 5px;
}
.trends-item-span:first-child {
@@ -6,7 +6,7 @@
</template>
</public-title>
<div class="inner">
<div v-for="item in list" :key="item.label" class="health-item">
<div v-for="(item, index) in list" :key="index" class="health-item">
<span>{{ item.label }}</span>
<span>{{ item.value }}</span>
</div>
@@ -17,7 +17,7 @@
import { onMounted, ref } from 'vue';
import PublicTitle from '/@/components/publicTitle.vue';
import { caching, useSession } from '/@/hooks/autoRefresh/caching.ts';
import { getTeamHealthApi } from '/@/views/centralScreen/centralScreen.api.ts';
import { userHealthCenterNew } from '/@/views/centralScreen/centralScreen.api.ts';
const props = defineProps({
setting: Object,
@@ -68,7 +68,7 @@
async function viewDetail() {
try {
const { code, result } = await getTeamHealthApi({ dataType: props.setting?.dataType });
const { code, result } = await userHealthCenterNew({ dataType: props.setting?.dataType });
if (code != 200) {
return;
}
@@ -91,6 +91,7 @@
});
const formState = computed(() => ({
...formRecord.value,
centerId: '',
dataType: props.setting.dataType,
phoneType: props.phoneType,
showType: '0',
@@ -34,7 +34,7 @@
import { useDetailStore } from '/@/store/modules/detailData.ts';
import { useSession, caching } from '/@/hooks/autoRefresh/caching.ts';
import { useTheme } from '/@/hooks/theme/useTheme.ts';
import { serverApi } from '/@/views/centralScreen/centralScreen.api.ts';
import { statisticsNewApi } from '/@/views/centralScreen/centralScreen.api.ts';
const { themeType } = useTheme();
const { SERVER_DETAIL } = caching;
@@ -66,7 +66,7 @@
async function getList() {
setSpin(true);
try {
const { code, result } = (await serverApi({ condition: selectVal.value, dataType: props.setting.dataType })) || {};
const { code, result } = (await statisticsNewApi({ condition: selectVal.value, centerId: '' })) || {};
setSpin(false);
if (code != 200 || !result) {
return;