😎代码清理
This commit is contained in:
parent
629ae95659
commit
9845228dbf
@ -24,7 +24,7 @@ public class SysPrintService : IDynamicApiController, ITransient
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[DisplayName("获取打印模板列表")]
|
||||
[DisplayName("获取打印模板列表")]
|
||||
public async Task<SqlSugarPagedList<SysPrint>> Page(PagePrintInput input)
|
||||
{
|
||||
return await _sysPrintRep.AsQueryable()
|
||||
@ -38,7 +38,7 @@ public class SysPrintService : IDynamicApiController, ITransient
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <returns></returns>
|
||||
[DisplayName("获取打印模板")]
|
||||
[DisplayName("获取打印模板")]
|
||||
public async Task<SysPrint> GetPrint(string name)
|
||||
{
|
||||
return await _sysPrintRep.GetFirstAsync(u => u.Name == name);
|
||||
@ -50,7 +50,7 @@ public class SysPrintService : IDynamicApiController, ITransient
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[ApiDescriptionSettings(Name = "Add"), HttpPost]
|
||||
[DisplayName("增加打印模板")]
|
||||
[DisplayName("增加打印模板")]
|
||||
public async Task AddPrint(AddPrintInput input)
|
||||
{
|
||||
var isExist = await _sysPrintRep.IsAnyAsync(u => u.Name == input.Name);
|
||||
@ -65,7 +65,7 @@ public class SysPrintService : IDynamicApiController, ITransient
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[ApiDescriptionSettings(Name = "Update"), HttpPost]
|
||||
[DisplayName("更新打印模板")]
|
||||
[DisplayName("更新打印模板")]
|
||||
public async Task UpdatePrint(UpdatePrintInput input)
|
||||
{
|
||||
var isExist = await _sysPrintRep.IsAnyAsync(u => u.Name == input.Name && u.Id != input.Id);
|
||||
@ -75,7 +75,7 @@ public class SysPrintService : IDynamicApiController, ITransient
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 复制打印模板
|
||||
/// 复制打印模板 🖨️
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
@ -97,7 +97,7 @@ public class SysPrintService : IDynamicApiController, ITransient
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[ApiDescriptionSettings(Name = "Delete"), HttpPost]
|
||||
[DisplayName("删除打印模板")]
|
||||
[DisplayName("删除打印模板")]
|
||||
public async Task DeletePrint(DeletePrintInput input)
|
||||
{
|
||||
await _sysPrintRep.DeleteByIdAsync(input.Id);
|
||||
|
||||
@ -79,7 +79,7 @@ export const SysPrintApiAxiosParamCreator = function (configuration?: Configurat
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 复制打印模板
|
||||
* @summary 复制打印模板 🖨️
|
||||
* @param {DeletePrintInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
@ -343,7 +343,7 @@ export const SysPrintApiFp = function(configuration?: Configuration) {
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 复制打印模板
|
||||
* @summary 复制打印模板 🖨️
|
||||
* @param {DeletePrintInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
@ -432,7 +432,7 @@ export const SysPrintApiFactory = function (configuration?: Configuration, baseP
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 复制打印模板
|
||||
* @summary 复制打印模板 🖨️
|
||||
* @param {DeletePrintInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
@ -503,7 +503,7 @@ export class SysPrintApi extends BaseAPI {
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @summary 复制打印模板
|
||||
* @summary 复制打印模板 🖨️
|
||||
* @param {DeletePrintInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
|
||||
@ -161,7 +161,6 @@ const handleCopy = async (row: any) => {
|
||||
ElMessage.success('复制成功');
|
||||
};
|
||||
|
||||
|
||||
// 删除
|
||||
const handleDelete = (row: any) => {
|
||||
ElMessageBox.confirm(`确定删除打印模板:【${row.name}】?`, '提示', {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user