This commit is contained in:
zk
2024-10-10 13:17:07 +08:00
parent 3df70a2b3f
commit 4394844890
4 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
# 王昊地址
#VITE_GLOB_API_URL=http://192.168.1.27
VITE_GLOB_API_URL=http://192.168.1.27
#开发环境
VITE_GLOB_API_URL=http://cqyt.dev.yg.dt.io
#VITE_GLOB_API_URL=http://cqyt.dev.yg.dt.io
#VITE_GLOB_API_URL=https://api.cqygjk.com
#健康监测工具报警-websocket
#VITE_GLOB_API_YIN_JI=ws://cqyt.dev.yg.dt.io/health-watch/websocket/watchMonitor
+2 -2
View File
@@ -35,8 +35,8 @@ export const userHealthCenterNew = (params: any) => {
* @param params
*/
export const getPhysicalData = (params: any) => {
let { centerId, ...other } = params;
return post(Api.getDetail, other);
// let { centerId, ...other } = params;
return post(Api.getDetail, params);
};
/**
* @description 呼入电话、受理电话
@@ -93,7 +93,6 @@
const userStore = useUserStore();
const formState = computed(() => ({
...formRecord.value,
centerId: '',
dataType: props.setting.dataType,
phoneType: props.phoneType,
showType: '0',
@@ -62,8 +62,14 @@
try {
let orgCodeList = userStore.getCenterInfo?.serviceScope || '';
let centerId = userStore.getCenterInfo?.id || '';
console.log('centerId', centerId);
const { code, result } =
(await getPhysicalData({ dataType: props.setting.dataType, condition: selectVal.value, orgCodeList, centerId })) || {};
(await getPhysicalData({
dataType: props.setting.dataType,
condition: selectVal.value,
orgCodeList,
centerId,
})) || {};
setSpin(!spinning.value);
if (code != 200) {
return;