refactor(ui): 优化按钮样式和数据加载逻辑
- 将多个按钮组件从 type="text" 改为 link 属性,提升界面美观性 - 修复 PatientList 组件中姓名显示的文本截断功能 - 在住院记录模板中添加对 patientInfo 变化的监听,自动更新表单数据 - 优化打印机列表获取逻辑,添加连接状态检查和警告信息 - 移除不必要的防抖和重复请求防护逻辑,简化代码实现 - 修复多处组件中对 patientInfo 属性访问的安全性问题 - 优化病历数据加载时机,移除防抖包装直接调用加载函数 - 改进数据设置逻辑,避免覆盖未传入字段的原有值 - 调整组件属性定义,使 patientInfo 参数变为可选并设置默认值 - 优化患者切换时的组件重置和数据加载流程
This commit is contained in:
@@ -206,7 +206,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="100" align="center">
|
||||
<template #default="scope">
|
||||
<el-button type="text" size="small" @click="feeItemsList.splice(scope.$index, 1)">
|
||||
<el-button link size="small" @click="feeItemsList.splice(scope.$index, 1)">
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
@@ -200,7 +200,7 @@
|
||||
<el-table-column label="金额" prop="amount" width="100" align="center" />
|
||||
<el-table-column label="退费审核" width="80" align="center">
|
||||
<template #default="scope">
|
||||
<el-button type="text" style="color: #409eff">退费申请</el-button>
|
||||
<el-button link style="color: #409eff">退费申请</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<!-- <div>
|
||||
<el-button size="small" type="text" @click="exportData">
|
||||
<el-button size="small" link @click="exportData">
|
||||
<el-icon><Download /></el-icon> 导出数据
|
||||
</el-button>
|
||||
</div> -->
|
||||
|
||||
Reference in New Issue
Block a user