项目需求、任务以及模块精简

This commit is contained in:
2026-04-04 21:27:28 +08:00
parent 953bdf6bbb
commit 97564b82da
4 changed files with 26 additions and 27 deletions

View File

@@ -1,6 +1,8 @@
package com.jeesite.modules.biz.service; package com.jeesite.modules.biz.service;
import java.util.List; import java.util.List;
import com.jeesite.common.config.Global;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@@ -9,7 +11,6 @@ import com.jeesite.common.service.CrudService;
import com.jeesite.modules.biz.entity.MyQuickLogin; import com.jeesite.modules.biz.entity.MyQuickLogin;
import com.jeesite.modules.biz.dao.MyQuickLoginDao; import com.jeesite.modules.biz.dao.MyQuickLoginDao;
import com.jeesite.common.service.ServiceException; import com.jeesite.common.service.ServiceException;
import com.jeesite.common.config.Global;
import com.jeesite.common.validator.ValidatorUtils; import com.jeesite.common.validator.ValidatorUtils;
import com.jeesite.common.utils.excel.ExcelImport; import com.jeesite.common.utils.excel.ExcelImport;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@@ -131,4 +132,4 @@ public class MyQuickLoginService extends CrudService<MyQuickLoginDao, MyQuickLog
super.delete(myQuickLogin); super.delete(myQuickLogin);
} }
} }

View File

@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import com.jeesite.common.config.Global; import com.jeesite.common.config.Global;
import com.jeesite.common.collect.ListUtils; import com.jeesite.common.collect.ListUtils;
import com.jeesite.common.lang.StringUtils;
import com.jeesite.common.entity.Page; import com.jeesite.common.entity.Page;
import com.jeesite.common.lang.DateUtils; import com.jeesite.common.lang.DateUtils;
import com.jeesite.common.utils.excel.ExcelExport; import com.jeesite.common.utils.excel.ExcelExport;
@@ -38,7 +39,7 @@ public class MyQuickLoginController extends BaseController {
public MyQuickLoginController(MyQuickLoginService myQuickLoginService) { public MyQuickLoginController(MyQuickLoginService myQuickLoginService) {
this.myQuickLoginService = myQuickLoginService; this.myQuickLoginService = myQuickLoginService;
} }
/** /**
* 获取数据 * 获取数据
*/ */
@@ -46,7 +47,7 @@ public class MyQuickLoginController extends BaseController {
public MyQuickLogin get(String quickId, boolean isNewRecord) { public MyQuickLogin get(String quickId, boolean isNewRecord) {
return myQuickLoginService.get(quickId, isNewRecord); return myQuickLoginService.get(quickId, isNewRecord);
} }
/** /**
* 查询列表 * 查询列表
*/ */
@@ -56,7 +57,7 @@ public class MyQuickLoginController extends BaseController {
model.addAttribute("myQuickLogin", myQuickLogin); model.addAttribute("myQuickLogin", myQuickLogin);
return "modules/biz/myQuickLoginList"; return "modules/biz/myQuickLoginList";
} }
/** /**
* 查询列表数据 * 查询列表数据
*/ */
@@ -131,7 +132,7 @@ public class MyQuickLoginController extends BaseController {
return renderResult(Global.FALSE, "posfull:"+ex.getMessage()); return renderResult(Global.FALSE, "posfull:"+ex.getMessage());
} }
} }
/** /**
* 删除数据 * 删除数据
*/ */
@@ -148,5 +149,5 @@ public class MyQuickLoginController extends BaseController {
public List<MyQuickLogin> listAll(MyQuickLogin myQuickLogin){ public List<MyQuickLogin> listAll(MyQuickLogin myQuickLogin){
return myQuickLoginService.findList(myQuickLogin); return myQuickLoginService.findList(myQuickLogin);
} }
} }

View File

@@ -6,11 +6,8 @@
import { defHttp } from '@jeesite/core/utils/http/axios'; import { defHttp } from '@jeesite/core/utils/http/axios';
import { useGlobSetting } from '@jeesite/core/hooks/setting'; import { useGlobSetting } from '@jeesite/core/hooks/setting';
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel'; 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> { export interface MyQuickLogin extends BasicModel<MyQuickLogin> {
createTime?: string; // 记录时间 createTime?: string; // 记录时间
@@ -26,7 +23,7 @@ export interface MyQuickLogin extends BasicModel<MyQuickLogin> {
export const myQuickLoginList = (params?: MyQuickLogin | any) => export const myQuickLoginList = (params?: MyQuickLogin | any) =>
defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/list', params }); defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/list', params });
export const myQuickLoginListAll = (params?: MyQuickLogin | any) => export const myQuickLoginListAll = (params?: MyQuickLogin | any) =>
defHttp.get<MyQuickLogin[]>({ url: adminPath + '/biz/myQuickLogin/listAll', params }); 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) => export const myQuickLoginSave = (params?: any, data?: MyQuickLogin | any) =>
defHttp.postJson<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/save', params, data }); 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) => export const myQuickLoginDelete = (params?: MyQuickLogin | any) =>
defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/delete', params }); defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/delete', params });

View File

@@ -23,6 +23,16 @@
{{ text }} {{ text }}
</a> </a>
</template> </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> </BasicTable>
<InputForm @register="registerDrawer" @success="handleSuccess" /> <InputForm @register="registerDrawer" @success="handleSuccess" />
</div> </div>
@@ -35,6 +45,7 @@
import { downloadByUrl } from '@jeesite/core/utils/file/download'; import { downloadByUrl } from '@jeesite/core/utils/file/download';
import { router } from '@jeesite/core/router'; import { router } from '@jeesite/core/router';
import { Icon } from '@jeesite/core/components/Icon'; import { Icon } from '@jeesite/core/components/Icon';
import { Image } from 'ant-design-vue';
import { BasicTable, BasicColumn, useTable } from '@jeesite/core/components/Table'; import { BasicTable, BasicColumn, useTable } from '@jeesite/core/components/Table';
import { MyQuickLogin, myQuickLoginList } from '@jeesite/biz/api/biz/myQuickLogin'; import { MyQuickLogin, myQuickLoginList } from '@jeesite/biz/api/biz/myQuickLogin';
import { myQuickLoginDelete, myQuickLoginListData } from '@jeesite/biz/api/biz/myQuickLogin'; import { myQuickLoginDelete, myQuickLoginListData } from '@jeesite/biz/api/biz/myQuickLogin';
@@ -125,8 +136,9 @@
dataIndex: 'systemIcon', dataIndex: 'systemIcon',
key: 'a.system_icon', key: 'a.system_icon',
sorter: true, sorter: true,
width: 130, width: 100,
align: 'left', align: 'center',
slot: 'systemIcon',
}, },
{ {
title: t('图标背景色'), title: t('图标背景色'),