1. 表格配置优化
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
This commit is contained in:
@@ -59,14 +59,14 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteAdmin({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
|
||||
const resetPasswordApi = (id: number) => {
|
||||
resetPassword(id).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -75,7 +75,7 @@ const generateAccountApi = async (row: any) => {
|
||||
const result = await generateLoginAccount(row.id);
|
||||
if (result.login_account) {
|
||||
message.success('生成账号成功');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
}
|
||||
} catch (error: any) {
|
||||
message.error(error.message || '生成账号失败');
|
||||
|
||||
@@ -26,7 +26,7 @@ const [Modal, modalApi] = useVbenModal({
|
||||
message.success('排序更新成功');
|
||||
const gridApi = modalApi.getData()?.gridApi;
|
||||
if (gridApi) {
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
}
|
||||
modalApi.close();
|
||||
})
|
||||
|
||||
@@ -72,7 +72,7 @@ const deleteZonesApi = (row: any) => {
|
||||
}
|
||||
deleteHomeZones({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -61,7 +61,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteMenu({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteNotice({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -32,7 +32,7 @@ export const gridOptions: VxeGridProps<RowType> = {
|
||||
columns: [
|
||||
{ type: 'checkbox', width: 60 }, // 复选框列
|
||||
{ field: 'id', align: 'left', title: 'ID', width: 100 }, // ID列
|
||||
{ field: 'name', align: 'left', title: '药店名称' }, // 药店名称列(已从"诊所名称"改为"药店名称")
|
||||
{ field: 'name', align: 'left', title: '药店名称', width: 140 }, // 药店名称列(已从"诊所名称"改为"药店名称")
|
||||
{
|
||||
// 在线复诊配置列(合并委托诊所和负责人)
|
||||
field: 'online_consultation_config',
|
||||
@@ -79,21 +79,23 @@ export const gridOptions: VxeGridProps<RowType> = {
|
||||
width: 140,
|
||||
slots: { default: 'mes_id_cell' },
|
||||
},
|
||||
{ field: 'position', title: '详细地址' }, // 详细地址列
|
||||
{ field: 'new_admin.nick_name', title: '业务员' }, // 业务员列
|
||||
{ field: 'mobile', title: '联系人、电话', slots: { default: 'mobile' } }, // 联系人电话列
|
||||
{ field: 'position', title: '详细地址', width: 140 }, // 详细地址列
|
||||
{ field: 'new_admin.nick_name', title: '业务员', width: 140 }, // 业务员列
|
||||
{ field: 'mobile', title: '联系人、电话', slots: { default: 'mobile' }, width: 140 }, // 联系人电话列
|
||||
{
|
||||
// 营业时间列
|
||||
field: 'start_time',
|
||||
title: '营业时间',
|
||||
width: 140,
|
||||
slots: { default: 'start-time' },
|
||||
},
|
||||
{ field: 'created_at', title: '注册时间' }, // 注册时间列
|
||||
{ field: 'created_at', title: '注册时间', width: 140 }, // 注册时间列
|
||||
{
|
||||
// 操作列
|
||||
type: 'html',
|
||||
title: '操作',
|
||||
align: 'right',
|
||||
width: 200,
|
||||
fixed: 'right',
|
||||
slots: { default: 'action' },
|
||||
},
|
||||
],
|
||||
|
||||
@@ -153,7 +153,7 @@ const deleteApi = (row: any) => {
|
||||
deleteStore({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
// 刷新表格
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -165,7 +165,7 @@ function openPcWindows(id) {
|
||||
openPcWindowsApiByStore(id).then(() => {
|
||||
message.success('操作成功!');
|
||||
// 刷新表格
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ function openQrCode(id) {
|
||||
openQrCodeApi(id).then(() => {
|
||||
message.success('操作成功!');
|
||||
// 刷新表格
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ const deleteQualificationsApi = (row: any) => {
|
||||
}
|
||||
deletePlatformQualifications({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
qualificationsGridApi.reload();
|
||||
qualificationsgridApi.query();
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -59,7 +59,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deletePlatformQualifications({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -59,7 +59,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deletePlatform({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -59,7 +59,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteProcess({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
const expandAll = () => {
|
||||
|
||||
@@ -59,7 +59,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteRegion({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
const expandAll = () => {
|
||||
|
||||
@@ -60,7 +60,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteRoleQuickNav({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -86,7 +86,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteRole({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -24,7 +24,7 @@ export const gridOptions: VxeGridProps<RowType> = {
|
||||
columns: [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{ field: 'id', align: 'left', title: 'ID', width: 100 },
|
||||
{ field: 'name', align: 'left', title: '诊所名称' },
|
||||
{ field: 'name', align: 'left', title: '诊所名称', width: 140 },
|
||||
{
|
||||
field: 'clinic_type',
|
||||
align: 'left',
|
||||
@@ -68,28 +68,30 @@ export const gridOptions: VxeGridProps<RowType> = {
|
||||
width: 140,
|
||||
slots: { default: 'erp_id_cell' },
|
||||
},
|
||||
{
|
||||
field: 'mes_id',
|
||||
align: 'left',
|
||||
title: 'MES ID',
|
||||
width: 140,
|
||||
slots: { default: 'mes_id_cell' },
|
||||
},
|
||||
// {
|
||||
// field: 'mes_id',
|
||||
// align: 'left',
|
||||
// title: 'MES ID',
|
||||
// width: 140,
|
||||
// slots: { default: 'mes_id_cell' },
|
||||
// },
|
||||
// { field: 'shouzimu', title: '诊所首字母' },
|
||||
{ field: 'position', title: '详细地址' },
|
||||
{ field: 'new_admin.nick_name', title: '业务员', slots: { default: 'sales_admin' } },
|
||||
{ field: 'store_admin.phone', title: '管理员手机', slots: { default: 'store_admin_phone' } },
|
||||
{ field: 'mobile', title: '联系人、电话', slots: { default: 'mobile' } },
|
||||
{ field: 'position', title: '详细地址', width: 140 },
|
||||
{ field: 'new_admin.nick_name', title: '业务员', slots: { default: 'sales_admin' }, width: 140 },
|
||||
{ field: 'store_admin.phone', title: '管理员手机', slots: { default: 'store_admin_phone' }, width: 140 },
|
||||
{ field: 'mobile', title: '联系人、电话', slots: { default: 'mobile' }, width: 140 },
|
||||
{
|
||||
field: 'start_time',
|
||||
title: '营业时间',
|
||||
slots: { default: 'start-time' },
|
||||
width: 140,
|
||||
},
|
||||
{ field: 'created_at', title: '注册时间' },
|
||||
{ field: 'created_at', title: '注册时间', width: 140 },
|
||||
{
|
||||
type: 'html',
|
||||
title: '操作',
|
||||
align: 'right',
|
||||
fixed: 'right',
|
||||
width: 200,
|
||||
slots: { default: 'action' },
|
||||
},
|
||||
],
|
||||
|
||||
@@ -150,7 +150,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteStore({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
/**
|
||||
@@ -159,7 +159,7 @@ const deleteApi = (row: any) => {
|
||||
function openPcWindows(id) {
|
||||
openPcWindowsApiByStore(id).then(() => {
|
||||
message.success('操作成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
}
|
||||
/**
|
||||
@@ -168,7 +168,7 @@ function openPcWindows(id) {
|
||||
function openQrCode(id) {
|
||||
openQrCodeApi(id).then(() => {
|
||||
message.success('操作成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -503,14 +503,14 @@ const handleSwitchClinicType = (row: any) => {
|
||||
ifShow: isPlatformAdmin,
|
||||
onClick: showDrugPriceModal.bind(null, row),
|
||||
},
|
||||
{
|
||||
label: '推广员分成',
|
||||
type: 'link',
|
||||
icon: 'ant-design:account-book-outlined',
|
||||
size: 'small',
|
||||
auth: ['Super Admin', 'Admin'],
|
||||
onClick: () => openSalespersonCommission(row),
|
||||
},
|
||||
// {
|
||||
// label: '推广员分成',
|
||||
// type: 'link',
|
||||
// icon: 'ant-design:account-book-outlined',
|
||||
// size: 'small',
|
||||
// auth: ['Super Admin', 'Admin'],
|
||||
// onClick: () => openSalespersonCommission(row),
|
||||
// },
|
||||
]"
|
||||
/>
|
||||
</template>
|
||||
|
||||
@@ -59,7 +59,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteSupplier({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -64,7 +64,7 @@ const deleteApi = (row: any) => {
|
||||
}
|
||||
deleteTransferQuestion({ ids }).then(() => {
|
||||
message.success('删除成功!');
|
||||
gridApi.reload();
|
||||
gridApi.query();
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user