项目需求、任务以及模块精简
This commit is contained in:
@@ -6,11 +6,8 @@
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export interface MyQuickLogin extends BasicModel<MyQuickLogin> {
|
||||
createTime?: string; // 记录时间
|
||||
@@ -26,7 +23,7 @@ export interface MyQuickLogin extends BasicModel<MyQuickLogin> {
|
||||
|
||||
export const myQuickLoginList = (params?: MyQuickLogin | any) =>
|
||||
defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/list', params });
|
||||
|
||||
|
||||
export const myQuickLoginListAll = (params?: MyQuickLogin | any) =>
|
||||
defHttp.get<MyQuickLogin[]>({ url: adminPath + '/biz/myQuickLogin/listAll', params });
|
||||
|
||||
@@ -39,17 +36,5 @@ export const myQuickLoginForm = (params?: MyQuickLogin | any) =>
|
||||
export const myQuickLoginSave = (params?: any, data?: MyQuickLogin | any) =>
|
||||
defHttp.postJson<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/save', params, data });
|
||||
|
||||
export const myQuickLoginImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myQuickLogin/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myQuickLoginDelete = (params?: MyQuickLogin | any) =>
|
||||
defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/delete', params });
|
||||
defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/delete', params });
|
||||
@@ -23,6 +23,16 @@
|
||||
{{ text }}
|
||||
</a>
|
||||
</template>
|
||||
<template #systemIcon="{ record }">
|
||||
<Image
|
||||
v-if="record.systemIcon"
|
||||
:src="record.systemIcon"
|
||||
:width="32"
|
||||
:height="32"
|
||||
style="object-fit: contain;"
|
||||
/>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<InputForm @register="registerDrawer" @success="handleSuccess" />
|
||||
</div>
|
||||
@@ -35,6 +45,7 @@
|
||||
import { downloadByUrl } from '@jeesite/core/utils/file/download';
|
||||
import { router } from '@jeesite/core/router';
|
||||
import { Icon } from '@jeesite/core/components/Icon';
|
||||
import { Image } from 'ant-design-vue';
|
||||
import { BasicTable, BasicColumn, useTable } from '@jeesite/core/components/Table';
|
||||
import { MyQuickLogin, myQuickLoginList } from '@jeesite/biz/api/biz/myQuickLogin';
|
||||
import { myQuickLoginDelete, myQuickLoginListData } from '@jeesite/biz/api/biz/myQuickLogin';
|
||||
@@ -125,8 +136,9 @@
|
||||
dataIndex: 'systemIcon',
|
||||
key: 'a.system_icon',
|
||||
sorter: true,
|
||||
width: 130,
|
||||
align: 'left',
|
||||
width: 100,
|
||||
align: 'center',
|
||||
slot: 'systemIcon',
|
||||
},
|
||||
{
|
||||
title: t('图标背景色'),
|
||||
|
||||
Reference in New Issue
Block a user