Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-09-08 15:47:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3bb5875051dbb162310cd68a18c13bfec24313dc
3bb58750
1 parent
23b511aa
feat(api): 添加获取周期列表的接口
添加周期列表查询接口,包含表单周期状态和周期详情数据
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
src/api/cycle.js
src/api/cycle.js
0 → 100644
View file @
3bb5875
/*
* @Date: 2025-01-16 17:35:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-01-16 17:35:00
* @FilePath: /data-table/src/api/cycle.js
* @Description: 周期接口
*/
import
{
fn
,
fetch
}
from
'@/api/fn'
;
const
Api
=
{
CYCLE_LIST
:
'/srv/?f=custom_form&a=cycle_list'
,
};
/**
* @description: 查询周期列表
* @param: client_id 主体客户id
* @param: form_code 表单唯一标识
* @returns: is_cycle 该表单是否设置了周期
* @returns: cycle_list 周期列表数组,包含id、title、start_date、end_date、reg_begin_time、reg_end_time
*/
export
const
getCycleListAPI
=
(
params
)
=>
fn
(
fetch
.
get
(
Api
.
CYCLE_LIST
,
params
));
Please
register
or
login
to post a comment