远程页面药物列表

This commit is contained in:
熊猫 2024-04-11 11:53:29 +08:00
parent 628244785b
commit 98f2106aab
4 changed files with 64 additions and 5 deletions

View File

@ -109,6 +109,7 @@ export default defineComponent({
eText: { eText: {
type: String, type: String,
default: '请正确拼合图像', default: '请正确拼合图像',
}, },
isShowTip: { isShowTip: {
type: Boolean, type: Boolean,

View File

@ -323,6 +323,8 @@ const sendCode = () => {
}, 1000); }, 1000);
} }
const login = async (type: string) => { const login = async (type: string) => {
//:
loading.value=true;
const obj = loginParams.value const obj = loginParams.value
if (!currentHospital.value) { if (!currentHospital.value) {
ElMessage.warning('请在右上角选择院区') ElMessage.warning('请在右上角选择院区')

View File

@ -90,6 +90,56 @@
</div> </div>
</div> </div>
</div> </div>
<!-- table1 -->
<div class="table-box">
<el-table :data="tableData" height="100%" style="width: 100%">
<el-table-column prop="num" label="票号" width="40" align="center"/>
<el-table-column prop="name" label="药物名称" align="center"/>
<el-table-column prop="speed" label="速度(ml/h)" width="120">
<template #header>
<el-dropdown @command="table1SpeedCommand">
<span style="color: white;font-size: 14px;line-height: 20px;">
{{ table1SpeedVal || '请选择速度' }}
</span>
<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>
</el-dropdown>
</template>
</el-table-column>
<el-table-column prop="total" label="累计药量(ml)" width="100">
<template #default="scope"></template>
</el-table-column>
<el-table-column prop="state" label="工作状态" width="70" align="center"/>
<el-table-column label="特殊情况人为干预" align="center">
<template #default="scope">
<div class="table-btn-box">
<el-button size="small" color="#006080" @click="tableItemPlus(scope)">
<el-icon>
<Plus/>
</el-icon>
</el-button>
<el-button size="small" color="#006080" :disabled="scope.row.speed <= 0"
@click="tableItemMinus(scope)">
<el-icon>
<Minus/>
</el-icon>
</el-button>
<el-button size="small" color="#006080" @click="tableItemConfirm(scope)"
:disabled="tableDataStore[scope.$index].speed === scope.row.speed">确定
</el-button>
<el-button size="small" color="#006080" @click="tableItemCancel(scope)"
:disabled="tableDataStore[scope.$index].speed === scope.row.speed">取消
</el-button>
</div>
</template>
</el-table-column>
</el-table>
</div>
<!-- table2 -->
<div class="table-box"> <div class="table-box">
<el-table :data="tableData" height="100%" style="width: 100%"> <el-table :data="tableData" height="100%" style="width: 100%">
<el-table-column prop="num" label="票号" width="40" align="center"/> <el-table-column prop="num" label="票号" width="40" align="center"/>
@ -208,6 +258,7 @@ const msgVal = ref('');
const unusual = ref([] as any); const unusual = ref([] as any);
const tableData = ref([] as any[]); const tableData = ref([] as any[]);
const tableDataStore = ref([] as any[]); const tableDataStore = ref([] as any[]);
const table1SpeedVal = ref('')
getDatabases(); getDatabases();
onMounted(() => { onMounted(() => {
@ -469,6 +520,10 @@ function getTableData(e: boolean) {
}); });
} }
// table
function table1SpeedCommand(e: any) {
table1SpeedVal.value = e
}
function keepFit(designWidth: number, designHeight: number, renderDomId: string) { function keepFit(designWidth: number, designHeight: number, renderDomId: string) {
let width = designWidth || 1920, let width = designWidth || 1920,
height = designHeight || 1010; height = designHeight || 1010;
@ -738,7 +793,7 @@ const tableItemCancel = (e: any) => {
.right-btn-box { .right-btn-box {
position: absolute; position: absolute;
width: 70px; width: 100px;
height: 62px; height: 62px;
top: calc(50% - 31px); top: calc(50% - 31px);
right: 0; right: 0;
@ -806,7 +861,7 @@ const tableItemCancel = (e: any) => {
.monitoring-message { .monitoring-message {
width: 670px; width: 670px;
height: 550px; height: 450px;
padding-bottom: 10px; padding-bottom: 10px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -951,7 +1006,8 @@ const tableItemCancel = (e: any) => {
.table-box { .table-box {
width: 100%; width: 100%;
height: calc(100% - 589px); height: calc(50% - 264.5px);
margin-bottom: 20px;
flex-grow: 1; flex-grow: 1;
:deep(.el-table__inner-wrapper) { :deep(.el-table__inner-wrapper) {

View File

@ -24,14 +24,14 @@ export default defineConfig({
proxy: { proxy: {
'/api': { '/api': {
//target: 'http://192.168.137.235:9999', // 目标服务器地址 //target: 'http://192.168.137.235:9999', // 目标服务器地址
target: 'http://localhost:8888', // 目标服务器地址 target: 'http://192.168.1.117:9999', // 目标服务器地址
ws: true, // 是否启用 WebSocket ws: true, // 是否启用 WebSocket
changeOrigin: true, // 是否修改请求头中的 Origin 字段 changeOrigin: true, // 是否修改请求头中的 Origin 字段
rewrite: (path) => path.replace(/^\/api/, ''), rewrite: (path) => path.replace(/^\/api/, ''),
}, },
'/socket.io': { '/socket.io': {
//target: 'ws://192.168.137.235:9999', //target: 'ws://192.168.137.235:9999',
target: 'ws://localhost:8888', target: 'ws://192.168.1.117:9999',
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/socket.io/, ''), rewrite: (path) => path.replace(/^\/socket.io/, ''),