update: 升级前端核心依赖并完成适配
- 升级 Vue、Vue Router、Element Plus、Vite、UnoCSS、Sass、vue-tsc、oxlint 等前端核心依赖 - 适配依赖升级后的类型检查、键盘事件和 Sass 命名空间写法 - 登录记住功能仅保存用户名和 rememberMe,不再保存密码 - 移除模板中的 scope.row 类型断言,改由处理函数使用 Partial<VO> 承接
This commit is contained in:
@@ -282,7 +282,11 @@ const data = reactive<PageData<OperLogForm, OperLogQuery>>({
|
||||
});
|
||||
|
||||
const { queryParams, form } = toRefs(data);
|
||||
const { ids, multiple, handleSelectionChange: handleTableSelectionChange } = useTableSelection<OperLogVO>(item => item.operId);
|
||||
const {
|
||||
ids,
|
||||
multiple,
|
||||
handleSelectionChange: handleTableSelectionChange
|
||||
} = useTableSelection<OperLogVO>(item => item.operId);
|
||||
|
||||
/** 查询登录日志 */
|
||||
const getList = async () => {
|
||||
@@ -324,12 +328,12 @@ const handleSelectionChange = (selection: OperLogVO[]) => {
|
||||
|
||||
const operInfoDialogRef = ref<InstanceType<typeof OperInfoDialog>>();
|
||||
/** 详细按钮操作 */
|
||||
const handleView = (row: OperLogVO) => {
|
||||
operInfoDialogRef.value.openDialog(row);
|
||||
const handleView = (row: Partial<OperLogVO>) => {
|
||||
operInfoDialogRef.value.openDialog(row as OperLogForm);
|
||||
};
|
||||
|
||||
/** 删除按钮操作 */
|
||||
const handleDelete = async (row?: OperLogVO) => {
|
||||
const handleDelete = async (row?: Partial<OperLogVO>) => {
|
||||
const operIds = row?.operId || ids.value;
|
||||
await modal.confirm('是否确认删除日志编号为"' + operIds + '"的数据项?');
|
||||
await delOperlog(operIds);
|
||||
|
||||
Reference in New Issue
Block a user