feat(user): 缓存用户ID到本地存储- 在用户信息存储时增加UserId的本地缓存- 调整多个组件中的字段初始化逻辑

- 统一clinic相关模块的row-key为id
- 移除冗余的默认列配置-修正clinicDoctorApply模块的删除逻辑
- 清理未使用的导入和变量定义
- 调整.env.development中的API地址注释状态
This commit is contained in:
2025-11-03 02:41:34 +08:00
parent b45e967da4
commit cd4b332827
26 changed files with 32 additions and 242 deletions

View File

@@ -3,7 +3,7 @@
<a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table
ref="tableRef"
row-key="clinicOrderId"
row-key="id"
:columns="columns"
:datasource="datasource"
:customRow="customRow"
@@ -49,7 +49,7 @@
</template>
<script lang="ts" setup>
import { createVNode, ref, computed } from 'vue';
import { createVNode, ref } from 'vue';
import { message, Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import type { EleProTable } from 'ele-admin-pro';
@@ -567,14 +567,6 @@
}
]);
// 默认显示的核心列最多5个主要字段
const defaultVisibleColumns = [
'orderId',
'title',
'createTime',
'action'
];
/* 搜索 */
const reload = (where?: ClinicOrderParam) => {
selection.value = [];
@@ -595,7 +587,7 @@
/* 删除单个 */
const remove = (row: ClinicOrder) => {
const hide = message.loading('请求中..', 0);
removeClinicOrder(row.clinicOrderId)
removeClinicOrder(row.orderId)
.then((msg) => {
hide();
message.success(msg);
@@ -620,7 +612,7 @@
maskClosable: true,
onOk: () => {
const hide = message.loading('请求中..', 0);
removeBatchClinicOrder(selection.value.map((d) => d.clinicOrderId))
removeBatchClinicOrder(selection.value.map((d) => d.orderId))
.then((msg) => {
hide();
message.success(msg);