项目需求、任务以及模块精简
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.jeesite.modules.biz.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jeesite.common.config.Global;
|
||||
import org.springframework.stereotype.Service;
|
||||
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.dao.MyQuickLoginDao;
|
||||
import com.jeesite.common.service.ServiceException;
|
||||
import com.jeesite.common.config.Global;
|
||||
import com.jeesite.common.validator.ValidatorUtils;
|
||||
import com.jeesite.common.utils.excel.ExcelImport;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
@@ -131,4 +132,4 @@ public class MyQuickLoginService extends CrudService<MyQuickLoginDao, MyQuickLog
|
||||
super.delete(myQuickLogin);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.jeesite.common.config.Global;
|
||||
import com.jeesite.common.collect.ListUtils;
|
||||
import com.jeesite.common.lang.StringUtils;
|
||||
import com.jeesite.common.entity.Page;
|
||||
import com.jeesite.common.lang.DateUtils;
|
||||
import com.jeesite.common.utils.excel.ExcelExport;
|
||||
@@ -38,7 +39,7 @@ public class MyQuickLoginController extends BaseController {
|
||||
public MyQuickLoginController(MyQuickLoginService myQuickLoginService) {
|
||||
this.myQuickLoginService = myQuickLoginService;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取数据
|
||||
*/
|
||||
@@ -46,7 +47,7 @@ public class MyQuickLoginController extends BaseController {
|
||||
public MyQuickLogin get(String quickId, boolean isNewRecord) {
|
||||
return myQuickLoginService.get(quickId, isNewRecord);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*/
|
||||
@@ -56,7 +57,7 @@ public class MyQuickLoginController extends BaseController {
|
||||
model.addAttribute("myQuickLogin", myQuickLogin);
|
||||
return "modules/biz/myQuickLoginList";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询列表数据
|
||||
*/
|
||||
@@ -131,7 +132,7 @@ public class MyQuickLoginController extends BaseController {
|
||||
return renderResult(Global.FALSE, "posfull:"+ex.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*/
|
||||
@@ -148,5 +149,5 @@ public class MyQuickLoginController extends BaseController {
|
||||
public List<MyQuickLogin> listAll(MyQuickLogin myQuickLogin){
|
||||
return myQuickLoginService.findList(myQuickLogin);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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