2023-12-20 14:54:01 +08:00
|
|
|
<template>
|
2024-04-23 09:42:25 +08:00
|
|
|
<div class="remote-box" id="screenBox">
|
|
|
|
<div class="main-box">
|
|
|
|
<div class="left-box">
|
2024-05-28 21:22:06 +08:00
|
|
|
<h3>{{ currentRemote?.taskName }}</h3>
|
2024-04-23 09:42:25 +08:00
|
|
|
<chart-line ref="chartDom1" class="chart-line" :names="['BIS', 'HR']"
|
2024-05-28 22:09:05 +08:00
|
|
|
@exception-event="vitalExcepEvent"></chart-line>
|
2024-04-23 09:42:25 +08:00
|
|
|
<chart-line ref="chartDom2" class="chart-line" :names="['SBP', 'DBP']"
|
2024-05-28 22:09:05 +08:00
|
|
|
@exception-event="vitalExcepEvent"></chart-line>
|
2024-04-23 09:42:25 +08:00
|
|
|
<chart-line ref="chartDom3" class="chart-line" :names="['SPO2', 'TEMP']"
|
2024-05-28 22:09:05 +08:00
|
|
|
@exception-event="vitalExcepEvent"></chart-line>
|
2024-04-23 09:42:25 +08:00
|
|
|
<chart-ecg ref="chartDom4" class="chart-ecg" :name="['CH1', 'CH2']"
|
2024-05-28 22:09:05 +08:00
|
|
|
@exception-event="vitalExcepEvent"></chart-ecg>
|
2024-04-23 09:42:25 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="center-box">
|
|
|
|
<div class="body-box">
|
|
|
|
<div class="body-img">
|
2024-05-28 22:09:05 +08:00
|
|
|
<img src="@/assets/imgs/main_body.png" style="width: 100%;height: 100%;" />
|
|
|
|
<img class="lung-img" :class="{ 'shake_1': lungAlarm }"
|
|
|
|
:src="lungAlarm ? imgLungAlarm : imgLung">
|
2024-04-23 09:42:25 +08:00
|
|
|
<img class="heart-img" :class="{ 'shake_1': heartAlarm }"
|
2024-05-28 22:09:05 +08:00
|
|
|
:src="heartAlarm ? imgHeartAlarm : imgHeart">
|
2024-04-23 09:42:25 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-28 22:09:05 +08:00
|
|
|
<!-- <div class="btn-box">-->
|
|
|
|
<!-- <el-button class="start-btn" color="#F80000" @click="startAI">-->
|
|
|
|
<!-- 开始-->
|
|
|
|
<!-- </el-button>-->
|
|
|
|
<!-- <div class="right-btn-box">-->
|
|
|
|
<!-- <el-button :class="{ 'active': isAIDose }" size="small" @click="">AI给药</el-button>-->
|
|
|
|
<!-- <el-button :class="{ 'active': !isAIDose }" size="small">人工给药</el-button>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
<!-- </div>-->
|
2024-04-23 09:42:25 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="right-box">
|
|
|
|
<div class="top-btn-box">
|
|
|
|
<div class="top-left-btn-box">
|
2024-05-28 22:09:05 +08:00
|
|
|
<!-- <el-select v-model="database" filterable placeholder="Select" style="width: 100%;"-->
|
|
|
|
<!-- @change="selectDatabase">-->
|
|
|
|
<!-- <el-option v-for="item in databaseOptions" :key="item.value" :label="item.label"-->
|
|
|
|
<!-- :value="item.value"/>-->
|
|
|
|
<!-- </el-select>-->
|
2024-05-29 16:57:18 +08:00
|
|
|
<el-button color="#C77000" style="width: 150px;" @click="viewPatientInfo">患者信息</el-button>
|
|
|
|
<el-button color="#C77000" style="width: 150px;">已连接</el-button>
|
|
|
|
<!-- <el-button color="#C77000" >机器人运行正常</el-button>-->
|
2024-04-23 09:42:25 +08:00
|
|
|
</div>
|
|
|
|
<el-button color="#e0e0e0" @click="backRemote">
|
|
|
|
<el-icon>
|
2024-05-28 22:09:05 +08:00
|
|
|
<Back />
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-icon>
|
|
|
|
返回
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
<div class="monitoring-message">
|
|
|
|
<div class="left-box">
|
|
|
|
<span class="unusual-title">异常信息</span>
|
|
|
|
<ul ref="unusualMsgRef" class="unusual-box">
|
|
|
|
<li v-for="item in unusual" :key="item">{{ item }}</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="right-box">
|
2024-05-28 22:09:05 +08:00
|
|
|
<!-- <div class="video-box" @click="playPause">-->
|
|
|
|
<!-- <div class="icon-box">-->
|
|
|
|
<!-- <el-icon v-if="isVideoPlay">-->
|
|
|
|
<!-- <VideoPause/>-->
|
|
|
|
<!-- </el-icon>-->
|
|
|
|
<!-- <el-icon v-else>-->
|
|
|
|
<!-- <VideoPlay/>-->
|
|
|
|
<!-- </el-icon>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
<!-- <!– poster="@/assets/imgs/video_bck.png" –>-->
|
|
|
|
<!-- <video ref="liveVideo">-->
|
|
|
|
<!-- <source src="@/assets/medical.mp4" type="video/mp4"/>-->
|
|
|
|
<!-- </video>-->
|
|
|
|
<!-- </div>-->
|
2024-04-23 09:42:25 +08:00
|
|
|
<div class="message-box">
|
|
|
|
<ul ref="msgLog" class="message-log">
|
|
|
|
<li v-for="(item, index) in mssageList" :key="'msg-log-' + index"
|
2024-05-28 22:09:05 +08:00
|
|
|
:class="{ 'align-right': item.createName == userName }">
|
2024-04-23 09:42:25 +08:00
|
|
|
<span>{{ item.content }}</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="send-box">
|
2024-05-28 22:09:05 +08:00
|
|
|
<el-input v-model="msgVal" placeholder="请输入消息" />
|
2024-04-23 09:42:25 +08:00
|
|
|
<el-button color="#006080" @click="sendMsg">发送消息</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- table1 -->
|
|
|
|
<div class="table-box">
|
|
|
|
<el-table :data="varTableData" height="100%" style="width: 100%">
|
2024-05-29 16:57:18 +08:00
|
|
|
<el-table-column type="index" label="序号" width="80" align="center"/>
|
2024-04-23 09:42:25 +08:00
|
|
|
<el-table-column prop="name" label="药物名称" align="center"/>
|
|
|
|
<el-table-column prop="speed" label="速度(ml/h)" width="120">
|
2024-05-28 22:12:57 +08:00
|
|
|
<!-- <template #header>
|
2024-04-23 09:42:25 +08:00
|
|
|
<el-dropdown @command="table1SpeedCommand">
|
2024-05-28 22:12:57 +08:00
|
|
|
<span style="color: white;font-size: 14px;line-height: 20px;">
|
|
|
|
{{ table1SpeedVal || '请选择速度' }}
|
|
|
|
</span>
|
2024-04-23 09:42:25 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item command="速度(ug/kg/min)">速度(ug/kg/min)</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="速度(ml/h)">速度(ml/h)</el-dropdown-item>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
2024-05-29 14:18:15 +08:00
|
|
|
</el-dropdown>
|
|
|
|
</template> -->
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-table-column>
|
2024-05-29 15:20:43 +08:00
|
|
|
<el-table-column prop="total" label="累计药量(ml)" width="100"/>
|
2024-05-29 14:18:15 +08:00
|
|
|
<el-table-column prop="state" label="工作状态" width="70" align="center" />
|
2024-05-28 22:12:57 +08:00
|
|
|
<!-- <el-table-column label="特殊情况人为干预" align="center">
|
2024-04-23 09:42:25 +08:00
|
|
|
<template #default="scope">
|
|
|
|
<div class="table-btn-box">
|
|
|
|
<el-button size="small" color="#006080" @click="tableItemPlus(scope)">
|
|
|
|
<el-icon>
|
2024-05-28 22:12:57 +08:00
|
|
|
<Plus/>
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-icon>
|
|
|
|
</el-button>
|
|
|
|
<el-button size="small" color="#006080" :disabled="scope.row.speed <= 0"
|
2024-05-28 22:12:57 +08:00
|
|
|
@click="tableItemMinus(scope)">
|
2024-04-23 09:42:25 +08:00
|
|
|
<el-icon>
|
2024-05-28 22:12:57 +08:00
|
|
|
<Minus/>
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-icon>
|
|
|
|
</el-button>
|
2024-05-28 22:17:08 +08:00
|
|
|
<!--<el-button size="small" color="#006080" @click="tableItemConfirm(scope)"
|
2024-04-23 09:42:25 +08:00
|
|
|
:disabled="tableDataStore[scope.$index].speed === scope.row.speed">确定-->
|
2024-05-29 14:18:15 +08:00
|
|
|
<!--<el-button size="small" color="#006080" @click="tableItemConfirm(scope, varTableData)">确定
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-button>
|
2024-05-17 12:06:29 +08:00
|
|
|
<el-button size="small" color="#006080" @click="tableItemCancel(scope)">取消
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</template>
|
2024-05-28 22:12:57 +08:00
|
|
|
</el-table-column> -->
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-table>
|
|
|
|
</div>
|
|
|
|
<!-- table2 -->
|
|
|
|
<div class="table-box">
|
|
|
|
<el-table :data="fixedTableData" height="100%" style="width: 100%">
|
2024-05-29 17:02:32 +08:00
|
|
|
<el-table-column type="index" label="序号" width="40" align="center" />
|
2024-05-29 14:18:15 +08:00
|
|
|
<el-table-column prop="name" label="药物名称" align="center" />
|
|
|
|
<el-table-column prop="speed" label="速度(ml/h)" width="100" />
|
2024-05-29 15:20:43 +08:00
|
|
|
<el-table-column prop="total" label="累计药量(ml)" width="100"/>
|
2024-05-29 14:18:15 +08:00
|
|
|
<el-table-column prop="state" label="工作状态" width="70" align="center" />
|
2024-05-28 22:12:57 +08:00
|
|
|
<!-- <el-table-column label="特殊情况人为干预" align="center">
|
2024-04-23 09:42:25 +08:00
|
|
|
<template #default="scope">
|
|
|
|
<div class="table-btn-box">
|
|
|
|
<el-button size="small" color="#006080" @click="tableItemPlus(scope)">
|
|
|
|
<el-icon>
|
2024-05-28 22:12:57 +08:00
|
|
|
<Plus/>
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-icon>
|
|
|
|
</el-button>
|
|
|
|
<el-button size="small" color="#006080" :disabled="scope.row.speed <= 0"
|
2024-05-28 22:12:57 +08:00
|
|
|
@click="tableItemMinus(scope)">
|
2024-04-23 09:42:25 +08:00
|
|
|
<el-icon>
|
2024-05-28 22:12:57 +08:00
|
|
|
<Minus/>
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-icon>
|
|
|
|
</el-button>
|
2024-05-28 22:12:57 +08:00
|
|
|
<el-button size="small" color="#006080" @click="tableItemConfirm(scope, fixedTableData)">确定
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-button>
|
2024-05-17 12:06:29 +08:00
|
|
|
<el-button size="small" color="#006080" @click="tableItemCancel(scope)">取消
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</template>
|
2024-05-28 22:12:57 +08:00
|
|
|
</el-table-column> -->
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-dialog v-model="setDatabaseDialog" title="请选择需要查询的病人" width="300px" align-center>
|
|
|
|
<el-select v-model="database" filterable placeholder="Select" style="width: 100%;">
|
2024-05-28 22:09:05 +08:00
|
|
|
<el-option v-for="item in databaseOptions" :key="item.value" :label="item.label" :value="item.value" />
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-select>
|
|
|
|
<template #footer>
|
2023-12-20 14:54:01 +08:00
|
|
|
<span class="dialog-footer">
|
|
|
|
<el-button @click="setDatabaseDialog = false">取消</el-button>
|
|
|
|
<el-button type="primary" @click="setDatabase">确定</el-button>
|
|
|
|
</span>
|
2024-04-23 09:42:25 +08:00
|
|
|
</template>
|
|
|
|
</el-dialog>
|
2024-05-29 16:57:18 +08:00
|
|
|
<el-dialog v-model="isPatientDialog" title="患者信息" width="50%">
|
2024-05-28 22:09:05 +08:00
|
|
|
<PatientsForm ref="patientsFormRef" type="view" @close="isPatientDialog = false" />
|
2024-04-23 09:42:25 +08:00
|
|
|
</el-dialog>
|
|
|
|
</div>
|
2023-12-20 14:54:01 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2024-05-28 22:09:05 +08:00
|
|
|
import { onMounted, onUnmounted, reactive, ref } from 'vue';
|
|
|
|
import { useRouter } from 'vue-router'
|
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
|
import { dateFormater } from '@/utils/date-util';
|
2023-12-20 14:54:01 +08:00
|
|
|
import chartLine from './chart/chart-line.vue';
|
|
|
|
import chartEcg from './chart/chart-ecg.vue';
|
2023-12-27 16:49:37 +08:00
|
|
|
import PatientsForm from '@/views/patients-manage/form/patients-form.vue'
|
2023-12-20 14:54:01 +08:00
|
|
|
import imgLung from '@/assets/imgs/lung.png';
|
|
|
|
import imgHeart from '@/assets/imgs/heart.png';
|
|
|
|
import imgLungAlarm from '@/assets/imgs/lung_alarm.png';
|
|
|
|
import imgHeartAlarm from '@/assets/imgs/heart_alarm.png';
|
2024-05-28 22:09:05 +08:00
|
|
|
import { useRemoteWsStore } from "@/stores/remote-ws-store";
|
|
|
|
import { useUserStore } from "@/stores/user-info-store";
|
|
|
|
import { getPatientInfo, getPatientInfoM } from "@/api/patient";
|
2023-12-20 14:54:01 +08:00
|
|
|
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
|
|
const medicineCustom: any[] = [
|
2024-05-28 22:09:05 +08:00
|
|
|
{ name: '丙泊酚', plus: 0.5, total: 50 },
|
|
|
|
{ name: '舒芬太尼', plus: 1, total: 100 },
|
|
|
|
{ name: '瑞芬太尼', plus: 0.05, total: 5 },
|
|
|
|
{ name: '顺阿曲库胺', plus: 0.02, total: 2 },
|
|
|
|
{ name: '尼卡地平', plus: 1, total: 100 },
|
|
|
|
{ name: '艾司洛尔', plus: 1, total: 100 },
|
|
|
|
{ name: '麻黄素', plus: 1, total: 100 },
|
|
|
|
{ name: '阿托品', plus: 1, total: 100 },
|
|
|
|
{ name: '罗库溴铵', plus: 0.1, total: 10 }
|
2024-04-23 09:42:25 +08:00
|
|
|
]
|
|
|
|
const remoteWsStore = useRemoteWsStore()
|
2024-05-28 23:13:41 +08:00
|
|
|
const currentRemote = ref(remoteWsStore.getRemoteTask()[remoteWsStore.getCurrentTaskIndex()])
|
2024-05-17 12:06:29 +08:00
|
|
|
const userInfo = useUserStore()
|
2023-12-20 14:54:01 +08:00
|
|
|
|
|
|
|
const chartDom1 = ref(),
|
2024-04-23 09:42:25 +08:00
|
|
|
chartDom2 = ref(),
|
|
|
|
chartDom3 = ref(),
|
|
|
|
chartDom4 = ref(),
|
|
|
|
liveVideo = ref(),
|
|
|
|
msgLog = ref(),
|
|
|
|
unusualMsgRef = ref(),
|
|
|
|
patientsFormRef = ref()
|
2024-03-16 12:00:13 +08:00
|
|
|
|
|
|
|
const isPatientDialog = ref(false)
|
2024-04-23 09:42:25 +08:00
|
|
|
const database = ref('')
|
|
|
|
const databaseOptions = ref([] as { value: string, label: string }[])
|
|
|
|
const messageSum = ref(10)
|
2024-05-17 12:06:29 +08:00
|
|
|
const userName = ref(userInfo.userInfo.name)
|
2023-12-20 14:54:01 +08:00
|
|
|
const setDatabaseDialog = ref(false);
|
|
|
|
const featureTable = ref([] as any[]);
|
2024-05-28 22:09:05 +08:00
|
|
|
let chartNowData = reactive({ ID: 0 });
|
2023-12-20 14:54:01 +08:00
|
|
|
const lungAlarm = ref(false); // 肺部警告
|
|
|
|
const heartAlarm = ref(false); // 心脏警告
|
|
|
|
const isAIDose = ref(false); // 是否AI给药
|
|
|
|
const isVideoPlay = ref(false); // 视频是否播放
|
|
|
|
const videoSrc = ref('https://www.runoob.com/try/demo_source/mov_bbb.mp4');
|
|
|
|
const mssageList = ref([] as any);
|
|
|
|
const msgVal = ref('');
|
|
|
|
const unusual = ref([] as any);
|
2024-04-23 09:42:25 +08:00
|
|
|
const fixedTableData = ref([] as any[]);
|
|
|
|
const varTableData = ref([] as any[]);
|
|
|
|
const table1SpeedVal = ref('');
|
|
|
|
let currentAIMedicine: any;
|
|
|
|
let currentDocMedicine: any;
|
|
|
|
const medicineSpeedTemp: any = {};
|
2023-12-20 14:54:01 +08:00
|
|
|
|
|
|
|
onMounted(() => {
|
2024-04-23 09:42:25 +08:00
|
|
|
if (!currentRemote.value.isRemote) {
|
|
|
|
router.replace('/remote-manage/remote-manage');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
msgLogScrollBottom();
|
|
|
|
initScale();
|
|
|
|
subscribeWS();
|
2024-05-28 22:09:05 +08:00
|
|
|
// setTableData();
|
2023-12-20 14:54:01 +08:00
|
|
|
});
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
onUnmounted(() => {
|
2024-05-29 14:18:15 +08:00
|
|
|
const index = remoteWsStore.getCurrentTaskIndex()
|
|
|
|
remoteWsStore.unsubscribeChat(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, index);
|
|
|
|
remoteWsStore.unsubscribeMedicine(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, index);
|
|
|
|
remoteWsStore.unsubscribeVital(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, index);
|
2024-04-23 09:42:25 +08:00
|
|
|
})
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
function subscribeWS() {
|
2024-05-29 14:18:15 +08:00
|
|
|
const index = remoteWsStore.getCurrentTaskIndex()
|
|
|
|
remoteWsStore.subscribeVital(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, index,
|
2024-04-23 09:42:25 +08:00
|
|
|
function (res: any) {
|
|
|
|
const data = JSON.parse(res.data);
|
|
|
|
chartDom1.value.updateChartData(data.vitalSignsList[0]);
|
|
|
|
chartDom2.value.updateChartData(data.vitalSignsList[0]);
|
|
|
|
chartDom3.value.updateChartData(data.vitalSignsList[0]);
|
|
|
|
chartDom4.value.updateChartData(data.vitalSignsList[0]);
|
|
|
|
updateMedicineTable(data.aiMedicineList[0], data.docMedicineList[0]);
|
|
|
|
})
|
|
|
|
|
2024-05-29 14:18:15 +08:00
|
|
|
remoteWsStore.subscribeChat(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, index,
|
2024-04-23 09:42:25 +08:00
|
|
|
function (res: any) {
|
|
|
|
mssageList.value.push(JSON.parse(res.data));
|
|
|
|
})
|
|
|
|
|
2024-05-29 14:18:15 +08:00
|
|
|
remoteWsStore.subscribeMedicine(currentRemote.value.patient, currentRemote.value.patientId, currentRemote.value.date, index,
|
2024-04-23 09:42:25 +08:00
|
|
|
function (res: any) {
|
|
|
|
const data = JSON.parse(res.data);
|
|
|
|
if (data.status != 1) {
|
|
|
|
if (data.medicine) {
|
|
|
|
if (varTableData.value[data.medicine]) varTableData.value[data.medicine] = medicineSpeedTemp[data.medicine];
|
|
|
|
if (fixedTableData.value[data.medicine]) fixedTableData.value[data.medicine] = medicineSpeedTemp[data.medicine];
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ElMessage.error(data.msg)
|
|
|
|
}
|
|
|
|
})
|
2023-12-20 14:54:01 +08:00
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
function initData() {
|
|
|
|
lungAlarm.value = false;
|
|
|
|
heartAlarm.value = false;
|
|
|
|
isAIDose.value = false;
|
|
|
|
unusual.value = [];
|
|
|
|
mssageList.value = [];
|
|
|
|
fixedTableData.value = [];
|
|
|
|
varTableData.value = [];
|
|
|
|
featureTable.value = [];
|
|
|
|
try {
|
|
|
|
msgLogScrollBottom();
|
|
|
|
} catch (error) {
|
|
|
|
}
|
2023-12-20 14:54:01 +08:00
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
function updateMedicineTable(aiMedicine: any, doctorMedicine: any) {
|
|
|
|
if (aiMedicine) {
|
|
|
|
delete aiMedicine._id;
|
|
|
|
delete aiMedicine.Time;
|
|
|
|
if (currentAIMedicine && currentAIMedicine.Time == aiMedicine.Time) {
|
|
|
|
} else {
|
|
|
|
currentAIMedicine = aiMedicine;
|
|
|
|
const keys = Object.keys(aiMedicine);
|
|
|
|
keys.forEach(key => {
|
|
|
|
medicineSpeedTemp[key] = aiMedicine[key];
|
|
|
|
})
|
|
|
|
if (varTableData.value.length > 0) {
|
|
|
|
varTableData.value.forEach((medicine: any) => {
|
|
|
|
medicine.speed = aiMedicine[medicine.name];
|
|
|
|
})
|
|
|
|
fixedTableData.value.forEach((medicine: any) => {
|
|
|
|
medicine.speed = aiMedicine[medicine.name];
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
const varTable: any = [];
|
|
|
|
const fixedTable: any = [];
|
|
|
|
keys.forEach(key => {
|
|
|
|
const medicine = {
|
|
|
|
Phase: 0,
|
|
|
|
name: key,
|
|
|
|
speed: aiMedicine[key],
|
2024-05-29 15:20:43 +08:00
|
|
|
total: aiMedicine[key + "sum"],
|
2024-04-23 09:42:25 +08:00
|
|
|
state: "正常"
|
|
|
|
}
|
|
|
|
if (remoteWsStore.varMedicine.includes(key)) {
|
|
|
|
varTable.push(medicine);
|
2024-05-28 22:17:08 +08:00
|
|
|
} else if (remoteWsStore.fixedMedicine.includes(key)) {
|
2024-04-23 09:42:25 +08:00
|
|
|
fixedTable.push(medicine);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
varTableData.value = varTable;
|
|
|
|
fixedTableData.value = fixedTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (doctorMedicine) {
|
|
|
|
delete doctorMedicine._id;
|
|
|
|
delete doctorMedicine.Time;
|
|
|
|
if (currentDocMedicine && currentDocMedicine.Time == doctorMedicine.Time) {
|
|
|
|
} else {
|
|
|
|
currentDocMedicine = doctorMedicine;
|
|
|
|
const keys = Object.keys(doctorMedicine);
|
|
|
|
keys.forEach(key => {
|
|
|
|
medicineSpeedTemp[key] = doctorMedicine[key];
|
|
|
|
})
|
|
|
|
|
|
|
|
if (varTableData.value.length > 0) {
|
|
|
|
varTableData.value.forEach((medicine: any) => {
|
2024-05-29 15:20:43 +08:00
|
|
|
medicine.speed = Number(doctorMedicine[medicine.name]) + Number(aiMedicine[medicine.name]);
|
|
|
|
medicine.total = Number(doctorMedicine[medicine.name + "sum"]) + Number(aiMedicine[medicine.name + "sum"]);
|
2024-04-23 09:42:25 +08:00
|
|
|
});
|
|
|
|
fixedTableData.value.forEach((medicine: any) => {
|
2024-05-29 15:20:43 +08:00
|
|
|
medicine.speed = Number(doctorMedicine[medicine.name]) + Number(aiMedicine[medicine.name]);
|
|
|
|
medicine.total = Number(doctorMedicine[medicine.name + "sum"]) + Number(aiMedicine[medicine.name + "sum"]);
|
2024-04-23 09:42:25 +08:00
|
|
|
})
|
|
|
|
} else {
|
|
|
|
const varTable: any = [];
|
|
|
|
const fixedTable: any = [];
|
|
|
|
keys.forEach(key => {
|
|
|
|
const medicine = {
|
|
|
|
Phase: 0,
|
|
|
|
name: key,
|
2024-05-29 15:20:43 +08:00
|
|
|
speed: Number(doctorMedicine[key]) + Number(aiMedicine[key]),
|
|
|
|
total: Number(doctorMedicine[key + "sum"]) + Number(aiMedicine[key + "sum"]),
|
2024-04-23 09:42:25 +08:00
|
|
|
state: "正常"
|
|
|
|
}
|
|
|
|
if (remoteWsStore.varMedicine.includes(key)) {
|
|
|
|
varTable.push(medicine);
|
|
|
|
} else {
|
|
|
|
fixedTable.push(medicine);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
varTableData.value = varTable;
|
|
|
|
fixedTableData.value = fixedTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-12-20 14:54:01 +08:00
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
function vitalExcepEvent(data: any) {
|
|
|
|
logUpdate(data)
|
2023-12-20 14:54:01 +08:00
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
function logUpdate(msg: string) {
|
|
|
|
unusual.value.push(dateFormater('HH:mm:ss') + msg);
|
|
|
|
setTimeout(() => {
|
|
|
|
unusualMsgRef.value.scrollTo({
|
|
|
|
top: unusualMsgRef.value.scrollHeight,
|
|
|
|
behavior: 'smooth'
|
|
|
|
});
|
|
|
|
});
|
2023-12-20 14:54:01 +08:00
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-11 11:53:29 +08:00
|
|
|
// table 速度选择
|
|
|
|
function table1SpeedCommand(e: any) {
|
2024-04-23 09:42:25 +08:00
|
|
|
table1SpeedVal.value = e
|
2024-04-11 11:53:29 +08:00
|
|
|
}
|
2024-04-23 09:42:25 +08:00
|
|
|
|
|
|
|
|
2023-12-20 14:54:01 +08:00
|
|
|
function keepFit(designWidth: number, designHeight: number, renderDomId: string) {
|
2024-04-23 09:42:25 +08:00
|
|
|
let width = designWidth || 1920,
|
|
|
|
height = designHeight || 1010;
|
|
|
|
let clientHeight = document.documentElement.clientHeight - 50;
|
|
|
|
let clientWidth = document.documentElement.clientWidth;
|
|
|
|
let scale = 1;
|
|
|
|
scale = (clientHeight / clientWidth) < (height / width) ? clientHeight / height : clientWidth / width;
|
|
|
|
// scale = clientHeight / height;
|
|
|
|
// scale = clientWidth / width;
|
|
|
|
const renderDom = document.getElementById(renderDomId);
|
|
|
|
if (renderDom) {
|
|
|
|
renderDom.style.height = clientHeight / scale + 'px';
|
|
|
|
renderDom.style.width = clientWidth / scale + 'px';
|
|
|
|
renderDom.style.transform = 'scale(' + scale + ')';
|
|
|
|
}
|
2023-12-20 14:54:01 +08:00
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2023-12-20 14:54:01 +08:00
|
|
|
function initScale() {
|
2024-04-23 09:42:25 +08:00
|
|
|
let w = 1920,
|
|
|
|
h = 1010;
|
|
|
|
keepFit(w, h, 'screenBox');
|
|
|
|
window.addEventListener('resize', () => {
|
|
|
|
keepFit(w, h, 'screenBox');
|
|
|
|
});
|
2023-12-20 14:54:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const selectDatabase = (value: any) => {
|
2024-04-23 09:42:25 +08:00
|
|
|
initData();
|
2023-12-20 14:54:01 +08:00
|
|
|
};
|
|
|
|
const setDatabase = () => {
|
2024-04-23 09:42:25 +08:00
|
|
|
initData();
|
|
|
|
setDatabaseDialog.value = false;
|
2023-12-20 14:54:01 +08:00
|
|
|
};
|
2024-04-23 09:42:25 +08:00
|
|
|
|
2023-12-27 16:49:37 +08:00
|
|
|
const viewPatientInfo = () => {
|
2024-04-23 09:42:25 +08:00
|
|
|
isPatientDialog.value = true;
|
2024-05-28 22:09:05 +08:00
|
|
|
// getPatientInfo(currentRemote.value.patient, currentRemote.value.patientId,
|
|
|
|
// currentRemote.value.date).then(res => {
|
|
|
|
// if (res.code == 0) {
|
|
|
|
// patientsFormRef.value.resetData()
|
|
|
|
// patientsFormRef.value.formData = JSON.parse(JSON.stringify(res.data))
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
getPatientInfoM(currentRemote.value.patient, currentRemote.value.patientId,
|
|
|
|
currentRemote.value.date).then(res => {
|
|
|
|
if (res.code == 0) {
|
|
|
|
patientsFormRef.value.resetData()
|
|
|
|
patientsFormRef.value.formData = JSON.parse(JSON.stringify(res.data))
|
|
|
|
}
|
|
|
|
})
|
2023-12-27 16:49:37 +08:00
|
|
|
}
|
2023-12-20 14:54:01 +08:00
|
|
|
const backRemote = () => {
|
2024-04-23 14:59:13 +08:00
|
|
|
router.back();
|
2023-12-20 14:54:01 +08:00
|
|
|
}
|
|
|
|
const playPause = () => {
|
2024-04-23 09:42:25 +08:00
|
|
|
if (liveVideo.value.paused) {
|
|
|
|
liveVideo.value.play(); // 播放视频
|
|
|
|
isVideoPlay.value = true;
|
|
|
|
} else {
|
|
|
|
liveVideo.value.pause(); // 暂停视频
|
|
|
|
isVideoPlay.value = false;
|
|
|
|
}
|
2023-12-20 14:54:01 +08:00
|
|
|
}
|
|
|
|
const sendMsg = () => {
|
2024-04-23 09:42:25 +08:00
|
|
|
if (msgVal.value.trim() == '') return;
|
2024-05-29 14:18:15 +08:00
|
|
|
const index = remoteWsStore.getCurrentTaskIndex()
|
2024-04-23 09:42:25 +08:00
|
|
|
remoteWsStore.sendMsg(currentRemote.value.patient, currentRemote.value.patientId,
|
2024-05-29 14:18:15 +08:00
|
|
|
currentRemote.value.date, msgVal.value, index, function (res: any) {
|
2024-04-23 09:42:25 +08:00
|
|
|
if (res.code == 1) {
|
|
|
|
ElMessage.error(res.msg)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
msgVal.value = '';
|
|
|
|
setTimeout(() => {
|
|
|
|
msgLogScrollBottom()
|
|
|
|
}, 0);
|
|
|
|
}
|
2023-12-20 14:54:01 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
function msgLogScrollBottom() {
|
|
|
|
msgLog.value.scrollTo({
|
|
|
|
top: msgLog.value.scrollHeight,
|
|
|
|
behavior: 'smooth'
|
|
|
|
});
|
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
const tableItemPlus = (e: any) => {
|
2024-05-28 22:09:05 +08:00
|
|
|
const obj = medicineCustom.find(item => item.name === e.row.name) || { plus: 1 };
|
2024-04-23 09:42:25 +08:00
|
|
|
e.row.speed += obj.plus;
|
|
|
|
e.row.speed = Number(e.row.speed.toFixed(2));
|
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
const tableItemMinus = (e: any) => {
|
2024-05-28 22:09:05 +08:00
|
|
|
const obj = medicineCustom.find(item => item.name === e.row.name) || { plus: 1 };
|
2024-04-23 09:42:25 +08:00
|
|
|
if (!isAIDose.value && e.row.speed - obj.plus <= 0) return;
|
|
|
|
e.row.speed -= obj.plus;
|
|
|
|
if (e.row.speed < 0) e.row.speed = 0;
|
|
|
|
else e.row.speed = Number(e.row.speed.toFixed(2));
|
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
const tableItemConfirm = (e: any, tableData: any) => {
|
|
|
|
if (tableData.length < 1) return;
|
|
|
|
const params = {
|
|
|
|
name: currentRemote.value.patient,
|
|
|
|
id: currentRemote.value.patientId,
|
|
|
|
date: currentRemote.value.date,
|
|
|
|
flag: "1",
|
|
|
|
medicine: e.row.name,
|
|
|
|
value: e.row.speed
|
|
|
|
}
|
2024-05-29 14:18:15 +08:00
|
|
|
const index = remoteWsStore.getCurrentTaskIndex()
|
|
|
|
remoteWsStore.sendMedicine(params, index, function () {
|
2024-04-23 09:42:25 +08:00
|
|
|
});
|
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
const tableItemCancel = (e: any) => {
|
|
|
|
e.row.speed = medicineSpeedTemp[e.row.name];
|
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
function startAI() {
|
2024-05-17 12:06:29 +08:00
|
|
|
const params: any = {
|
2024-04-23 09:42:25 +08:00
|
|
|
name: currentRemote.value.patient,
|
|
|
|
id: currentRemote.value.patientId,
|
|
|
|
date: currentRemote.value.date,
|
|
|
|
flag: "0",
|
|
|
|
}
|
2024-05-29 14:18:15 +08:00
|
|
|
const index = remoteWsStore.getCurrentTaskIndex()
|
|
|
|
remoteWsStore.sendMedicine(params, index, function () {
|
2024-04-23 09:42:25 +08:00
|
|
|
});
|
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
</script>
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-23 09:42:25 +08:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
.remote-box {
|
|
|
|
width: 1920px;
|
|
|
|
height: 1010px;
|
|
|
|
background: #f1f3f5;
|
|
|
|
padding: 10px 0 20px 0;
|
|
|
|
transform-origin: top left;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
.el-button {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-box {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: white;
|
|
|
|
padding: 20px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
.left-box {
|
2024-05-29 16:57:18 +08:00
|
|
|
width: 37%;
|
2024-04-23 09:42:25 +08:00
|
|
|
height: 100%;
|
|
|
|
|
2024-05-28 22:09:05 +08:00
|
|
|
&>h3 {
|
2024-04-23 09:42:25 +08:00
|
|
|
font-size: 26px;
|
|
|
|
color: $main-color;
|
|
|
|
line-height: 30px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chart-line {
|
|
|
|
width: 100%;
|
|
|
|
height: calc(25% - 30px);
|
|
|
|
margin-bottom: 20px;
|
|
|
|
background: #e8f5f8;
|
|
|
|
border-top-left-radius: 20px;
|
|
|
|
border-top-right-radius: 20px;
|
|
|
|
// overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chart-ecg {
|
|
|
|
width: 100%;
|
|
|
|
height: calc(25% - 50px);
|
|
|
|
border-left: 1px solid #92b3c1;
|
|
|
|
border-bottom: 1px solid #92b3c1;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
top: 0;
|
|
|
|
left: -5px;
|
|
|
|
border-left: 5px solid transparent;
|
|
|
|
border-right: 5px solid transparent;
|
|
|
|
border-bottom: 15px solid #285e7d;
|
|
|
|
border-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
bottom: -5px;
|
|
|
|
right: 0;
|
|
|
|
border-left: 15px solid #285e7d;
|
|
|
|
border-right: 0;
|
|
|
|
border-bottom: 5px solid transparent;
|
|
|
|
border-top: 5px solid transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.center-box {
|
|
|
|
width: calc(100% - 1500px);
|
|
|
|
min-width: 500px;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
.body-box {
|
|
|
|
width: 100%;
|
|
|
|
height: calc(100% - 110px);
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.body-img {
|
|
|
|
position: relative;
|
|
|
|
// width: 400px;
|
|
|
|
// height: 650px;
|
|
|
|
width: 500px;
|
|
|
|
height: 812.5px;
|
|
|
|
min-height: 650px;
|
|
|
|
|
|
|
|
.lung-img {
|
|
|
|
position: absolute;
|
|
|
|
width: 500px;
|
|
|
|
height: auto;
|
|
|
|
top: 240px;
|
|
|
|
left: 0;
|
|
|
|
transition: all 2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.heart-img {
|
|
|
|
position: absolute;
|
|
|
|
width: 500px;
|
|
|
|
height: auto;
|
|
|
|
top: 420px;
|
|
|
|
left: 0;
|
|
|
|
transition: all 2s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-box {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 110px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2024-05-29 14:21:05 +08:00
|
|
|
//.start-btn {
|
|
|
|
// width: 230px;
|
|
|
|
// height: 40px;
|
|
|
|
// font-size: 20px;
|
|
|
|
// border-radius: 16px;
|
|
|
|
// font-weight: 600;
|
|
|
|
//}
|
|
|
|
|
|
|
|
//.right-btn-box {
|
|
|
|
// position: absolute;
|
|
|
|
// width: 100px;
|
|
|
|
// height: 62px;
|
|
|
|
// top: calc(50% - 31px);
|
|
|
|
// right: 0;
|
|
|
|
// display: flex;
|
|
|
|
// flex-direction: column;
|
|
|
|
// justify-content: space-between;
|
|
|
|
//
|
|
|
|
// .el-button {
|
|
|
|
// width: 100%;
|
|
|
|
// padding: 0;
|
|
|
|
// height: 25px;
|
|
|
|
// line-height: 22px;
|
|
|
|
// border: 1px solid #e0e0e0;
|
|
|
|
// color: #616161;
|
|
|
|
//
|
|
|
|
// &.active {
|
|
|
|
// background: $main-color;
|
|
|
|
// color: white;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// &:last-of-type {
|
|
|
|
// margin: 0;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//}
|
2024-04-23 09:42:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.right-box {
|
2024-05-29 16:57:18 +08:00
|
|
|
width: 36.5%;
|
2024-04-23 09:42:25 +08:00
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.top-btn-box {
|
|
|
|
width: 100%;
|
|
|
|
height: 34px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.top-left-btn-box {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.el-select {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-button {
|
|
|
|
border-radius: 16px;
|
|
|
|
height: 31px;
|
|
|
|
background-color: transparent;
|
|
|
|
color: #c77000;
|
|
|
|
}
|
|
|
|
|
2024-05-28 22:09:05 +08:00
|
|
|
&>.el-button {
|
2024-04-23 09:42:25 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
background-color: #f2f3f5;
|
|
|
|
color: $main-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.monitoring-message {
|
2024-05-29 16:57:18 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 41%;
|
2024-04-23 09:42:25 +08:00
|
|
|
padding-bottom: 10px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
2024-05-28 22:09:05 +08:00
|
|
|
&>.left-box {
|
2024-04-23 09:42:25 +08:00
|
|
|
position: relative;
|
|
|
|
width: 200px;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
.unusual-title {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
line-height: 38px;
|
|
|
|
color: #C77000;
|
|
|
|
font-size: 20px;
|
|
|
|
text-align: center;
|
|
|
|
border: 1px dashed #C1C1C1;
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
2024-03-16 12:00:13 +08:00
|
|
|
|
2024-04-26 18:53:37 +08:00
|
|
|
.unusual-box {
|
|
|
|
width: 100%;
|
|
|
|
height: calc(100% - 45px);
|
|
|
|
// background: #F8F8F8;
|
|
|
|
border-left: 1px dashed #C1C1C1;
|
|
|
|
// border-radius: 4px;
|
|
|
|
margin-top: 5px;
|
|
|
|
padding: 8px 16px;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
li {
|
|
|
|
color: #F80000;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 22px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-28 22:09:05 +08:00
|
|
|
&>.right-box {
|
2024-04-26 18:53:37 +08:00
|
|
|
width: calc(100% - 205px);
|
|
|
|
height: 100%;
|
|
|
|
|
2024-05-28 22:09:05 +08:00
|
|
|
// .video-box {
|
|
|
|
// position: relative;
|
|
|
|
// width: 100%;
|
|
|
|
// height: 270px;
|
|
|
|
// background: $main-color;
|
|
|
|
// /* background: url(@/assets/imgs/video_bck.png);
|
|
|
|
//background-size: 100% 100%; */
|
|
|
|
//
|
|
|
|
// &:hover {
|
|
|
|
// .icon-box {
|
|
|
|
// display: flex;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// .icon-box {
|
|
|
|
// display: none;
|
|
|
|
// position: absolute;
|
|
|
|
// top: 0;
|
|
|
|
// left: 0;
|
|
|
|
// bottom: 0;
|
|
|
|
// right: 0;
|
|
|
|
// font-size: 60px;
|
|
|
|
// color: white;
|
|
|
|
// background: rgba(black, .3);
|
|
|
|
// justify-content: center;
|
|
|
|
// align-items: center;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// video {
|
|
|
|
// width: 100%;
|
|
|
|
// height: 100%;
|
|
|
|
// object-fit: cover;
|
|
|
|
// }
|
|
|
|
// }
|
2024-04-26 18:53:37 +08:00
|
|
|
|
|
|
|
.message-box {
|
|
|
|
width: 100%;
|
|
|
|
// height: 270px;
|
2024-05-28 21:19:12 +08:00
|
|
|
height: 100%;
|
2024-04-26 18:53:37 +08:00
|
|
|
// margin-bottom: 5px;
|
|
|
|
|
|
|
|
.message-log {
|
|
|
|
width: 100%;
|
2024-05-28 21:19:12 +08:00
|
|
|
height: 100%;
|
|
|
|
max-height: calc(100% - 35px);
|
2024-04-26 18:53:37 +08:00
|
|
|
padding: 16px 20px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border: 1px solid #c8c8c8;
|
|
|
|
background: #f8f8f8;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
li {
|
|
|
|
width: 100%;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.6;
|
|
|
|
margin: 5px 0;
|
|
|
|
|
|
|
|
&.align-right {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: inline-block;
|
|
|
|
max-width: 80%;
|
|
|
|
padding: 6px 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: white;
|
|
|
|
letter-spacing: 1px;
|
|
|
|
background: $main-color;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.send-box {
|
|
|
|
width: 100%;
|
|
|
|
height: 40px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: flex-end;
|
|
|
|
|
|
|
|
.el-input {
|
|
|
|
width: calc(100% - 110px);
|
|
|
|
height: 32px;
|
|
|
|
|
|
|
|
:deep(.el-input__wrapper) {
|
|
|
|
background-color: #F2F3F5;
|
|
|
|
border-color: #C1C1C1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-button {
|
|
|
|
padding: 0;
|
|
|
|
width: 100px;
|
|
|
|
line-height: 30px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.table-box {
|
|
|
|
width: 100%;
|
2024-05-29 16:57:18 +08:00
|
|
|
height: 29.5%;
|
2024-04-26 18:53:37 +08:00
|
|
|
margin-bottom: 20px;
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
:deep(.el-table__inner-wrapper) {
|
|
|
|
.el-table__cell {
|
|
|
|
padding: 6px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cell {
|
|
|
|
padding: 0 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-table__header-wrapper {
|
|
|
|
tr {
|
|
|
|
background-color: $main-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
th.el-table__cell {
|
|
|
|
color: white;
|
|
|
|
background-color: $main-color;
|
|
|
|
padding: 8px 0;
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-29 16:57:18 +08:00
|
|
|
//.table-btn-box {
|
|
|
|
// .el-button {
|
|
|
|
// padding: 0 7px;
|
|
|
|
// height: 24px;
|
|
|
|
// line-height: 22px;
|
|
|
|
//
|
|
|
|
// &:not(:first-of-type) {
|
|
|
|
// margin-left: 4px;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//}
|
2024-04-26 18:53:37 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-05-28 22:09:05 +08:00
|
|
|
}
|
|
|
|
</style>
|