diff --git a/src/assets/svg/Wait/logo.png b/src/assets/svg/Wait/logo.png new file mode 100644 index 0000000..d8ccf8c Binary files /dev/null and b/src/assets/svg/Wait/logo.png differ diff --git a/src/assets/svg/Wait/logo.svg b/src/assets/svg/Wait/logo.svg index dc5e627..cf87b44 100644 --- a/src/assets/svg/Wait/logo.svg +++ b/src/assets/svg/Wait/logo.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/utils/_axios.js b/src/utils/_axios.js index d20e8e2..af3c43d 100755 --- a/src/utils/_axios.js +++ b/src/utils/_axios.js @@ -2,7 +2,7 @@ import axios from 'axios'; let _axios = axios.create({ baseURL: window.globalUrl.baseURL, - timeout: 5000, + timeout: 10000, }); // _axios.interceptors.request.use(function (config) { diff --git a/src/utils/common.js b/src/utils/common.js new file mode 100644 index 0000000..fcbbe50 --- /dev/null +++ b/src/utils/common.js @@ -0,0 +1,144 @@ +// 根据手术状态输出文字 +export const statusToTxt = type => { + if (type == -10) { + return '已取消'; + } + if (type == -5) { + return '已归档'; + } + if (type == -1) { + return '提交排程'; + } + if (type == 0) { + return '术前准备'; + } + if (type == 5) { + return '入手术室'; + } + if (type == 10) { + return '入手术间'; + } + if (type == 15) { + return '麻醉开始'; + } + if (type == 20) { + return '手术开始'; + } + if (type == 25) { + return '手术结束'; + } + if (type == 30) { + return '麻醉结束'; + } + if (type == 35) { + return '出手术间'; + } + if (type == 40) { + return '入复苏室'; + } + if (type == 45) { + return '出复苏室'; + } + if (type == 50) { + return '出手术室'; + } + return '未知'; +}; + +// 根据手术状态输出颜色 +export const textToColor = text => { + let color = '#87ceeb'; + switch (text) { + case '提交排程': + color = '#D17975'; + break; + case '术前准备': + color = '#497FEB'; + break; + case '入手术间': + color = '#6C64CD'; + break; + case '麻醉开始': + color = '#F09B55'; + break; + case '手术开始': + color = '#FF8514'; + break; + case '手术结束': + color = '#01D1C7'; + break; + case '麻醉结束': + color = '#67C23A'; + break; + case '出手术间': + color = '#56DE13'; + break; + case '入复苏室': + color = '#9460FA'; + break; + case '出复苏室': + color = '#559DF1'; + break; + } + return color; +}; + +// 手术状态清单 +export const opStatusList = [ + { + label: '已取消', + value: -10, + }, + { + label: '已归档', + value: -5, + }, + { + label: '提交排程', + value: -1, + }, + { + label: '术前准备', + value: 0, + }, + { + label: '入手术室', + value: 5, + }, + { + label: '入手术间', + value: 10, + }, + { + label: '麻醉开始', + value: 15, + }, + { + label: '手术开始', + value: 20, + }, + { + label: '手术结束', + value: 25, + }, + { + label: '麻醉结束', + value: 30, + }, + { + label: '出手术间', + value: 35, + }, + { + label: '入复苏室', + value: 40, + }, + { + label: '出复苏室', + value: 45, + }, + { + label: '出手术室', + value: 50, + }, +]; diff --git a/src/views/waitList/index.vue b/src/views/waitList/index.vue index 8f4cfdd..7f4d09b 100644 --- a/src/views/waitList/index.vue +++ b/src/views/waitList/index.vue @@ -1,28 +1,58 @@ - - - + + + - - 家属等候大屏 - (9s) + + + 家属等候大屏 + ({{ carouselCountDown }}s) + - 15:31 - 2024-07-09 星期二 + {{ formatTime }} + {{ formatDate }} - - - 手术间 - 患者姓名 - 床号 - 科室 - 状态 + + + + 手术间 + 患者姓名 + 床号 + 科室 + 状态 + + + + + + + + + + {{ subItem['RoomName'] }} + {{ subItem['PatientName'] }} + {{ subItem['BedNo'] }} + {{ subItem['WardName'] }} + + {{ statusToTxt(subItem['ProcStatus']) }} + + + + + + + + + - - + + + + +
家属等候大屏
15:31
2024-07-09 星期二
{{ formatTime }}
{{ formatDate }}