eight
2024-09-02 96524c4c213734cebd0b83b1c57330940198f9f3
开诊标记  监控用
已修改2个文件
22 ■■■■ 文件已修改
src/api/ecg/room/index.ts 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/room/RoomStatusSetting.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/ecg/room/index.ts
@@ -61,5 +61,12 @@
  //
  resetRoom: async () => {
    return await request.get({ url: `/clinic/room/reset-room` })
  },
  //
  getOpeningFlag: async () => {
    return await request.get({ url: `/clinic/room/get-opening-flag` })
  }
}
src/views/ecg/room/RoomStatusSetting.vue
@@ -1,6 +1,6 @@
<template>
  <div style="display: flex; flex-direction: column; align-items: center;">
  <div>开诊时间:{{ openingPeriod }} </div>
  <div>开诊时间:{{ openingPeriod }}  开诊标记:{{ openingFlag }}</div>
  <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px">
    <div class=wrap v-for="(value, key) in bedMap" :key="key">
      <RoomStatus :title="key" :bedList="value"  @refresh="getList"/>
@@ -26,10 +26,16 @@
const bedMap = ref() // 列表的数据
const openingPeriod = ref<string>('')
const openingFlag = ref<number>(0)
const getOpeningPeriod = async () => {
  const data = await getConfigKey('ecg.openingtime')
  openingPeriod.value = data
}
const getOpeningFlag = async () => {
  const data = await RoomApi.getOpeningFlag()
  openingFlag.value = data
}
/** 查询列表 */
@@ -53,12 +59,15 @@
const refresh = () => {
  getList()
  getOpeningPeriod()
  getOpeningFlag()
}
/** 初始化 **/
onMounted(() => {
    getList()
    getOpeningPeriod()
  getList()
  getOpeningPeriod()
  getOpeningFlag()
})
</script>