eight
2024-10-24 6c9bf8dda14a8257a920fd21c9127c13dd92214e
src/views/ecg/room/index.vue
@@ -70,7 +70,9 @@
      <el-table-column label="诊室IP" align="center" prop="ip" />
      <el-table-column label="检查类型" align="center" prop="checkTypes" width="180px">
        <template #default="scope">
          {{scope.row.checkTypes}}
          <div v-for="(checkType, subIndex) in scope.row.checkTypes" :key="subIndex">
            {{checkTypeStore.getCheckTypeName(checkType)}}
          </div>
        </template>
      </el-table-column>
      <el-table-column
@@ -114,10 +116,11 @@
</template>
<script setup lang="ts">
import {dateFormatter, dateFormatter2} from '@/utils/formatTime'
import {dateFormatter2} from '@/utils/formatTime'
import download from '@/utils/download'
import { RoomApi, RoomVO } from '@/api/ecg/room'
import RoomForm from './RoomForm.vue'
import {useCheckTypeStore} from "@/store/modules/checkType";
/** 诊室和诊疗床 列表 */
defineOptions({ name: 'Room' })
@@ -125,6 +128,8 @@
const message = useMessage() // 消息弹窗
const { t } = useI18n() // 国际化
const checkTypeStore = useCheckTypeStore();
const loading = ref(true) // 列表的加载中
const list = ref<RoomVO[]>([]) // 列表的数据
const total = ref(0) // 列表的总页数