!261 [mod]适配分页返回数据放入data中返回
Merge pull request !261 from YueYe/future/new
This commit is contained in:
@@ -1,13 +1,14 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
import { DemoVO, DemoForm, DemoQuery } from '@/api/demo/demo/types';
|
import { DemoVO, DemoForm, DemoQuery } from '@/api/demo/demo/types';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询测试单列表
|
* 查询测试单列表
|
||||||
* @param query
|
* @param query
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const listDemo = (query?: DemoQuery): AxiosPromise<DemoVO[]> => {
|
export const listDemo = (query?: DemoQuery): AxiosPromise<PageResult<DemoVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/demo/demo/list',
|
url: '/demo/demo/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { LoginInfoQuery, LoginInfoVO } from './types';
|
import { LoginInfoQuery, LoginInfoVO } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
// 查询登录日志列表
|
// 查询登录日志列表
|
||||||
export function list(query: LoginInfoQuery): AxiosPromise<LoginInfoVO[]> {
|
export function list(query: LoginInfoQuery): AxiosPromise<PageResult<LoginInfoVO>> {
|
||||||
return request({
|
return request({
|
||||||
url: '/monitor/loginInfo/list',
|
url: '/monitor/loginInfo/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { OnlineQuery, OnlineVO } from './types';
|
import { OnlineQuery, OnlineVO } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
// 查询在线用户列表
|
// 查询在线用户列表
|
||||||
export function list(query: OnlineQuery): AxiosPromise<OnlineVO[]> {
|
export function list(query: OnlineQuery): AxiosPromise<PageResult<OnlineVO>> {
|
||||||
return request({
|
return request({
|
||||||
url: '/monitor/online/list',
|
url: '/monitor/online/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { OperLogQuery, OperLogVO } from './types';
|
import { OperLogQuery, OperLogVO } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
// 查询操作日志列表
|
// 查询操作日志列表
|
||||||
export function list(query: OperLogQuery): AxiosPromise<OperLogVO[]> {
|
export function list(query: OperLogQuery): AxiosPromise<PageResult<OperLogVO>> {
|
||||||
return request({
|
return request({
|
||||||
url: '/monitor/operlog/list',
|
url: '/monitor/operlog/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
import { ClientVO, ClientForm, ClientQuery } from '@/api/system/client/types';
|
import { ClientVO, ClientForm, ClientQuery } from '@/api/system/client/types';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询客户端管理列表
|
* 查询客户端管理列表
|
||||||
@@ -8,7 +9,7 @@ import { ClientVO, ClientForm, ClientQuery } from '@/api/system/client/types';
|
|||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const listClient = (query?: ClientQuery): AxiosPromise<ClientVO[]> => {
|
export const listClient = (query?: ClientQuery): AxiosPromise<PageResult<ClientVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/client/list',
|
url: '/system/client/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { ConfigForm, ConfigQuery, ConfigVO } from './types';
|
import { ConfigForm, ConfigQuery, ConfigVO } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
// 查询参数列表
|
// 查询参数列表
|
||||||
export function listConfig(query: ConfigQuery): AxiosPromise<ConfigVO[]> {
|
export function listConfig(query: ConfigQuery): AxiosPromise<PageResult<ConfigVO>> {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/config/list',
|
url: '/system/config/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { DictTypeForm, DictTypeVO, DictTypeQuery } from './types';
|
import { DictTypeForm, DictTypeVO, DictTypeQuery } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
// 查询字典类型列表
|
// 查询字典类型列表
|
||||||
export function listType(query: DictTypeQuery): AxiosPromise<DictTypeVO[]> {
|
export function listType(query: DictTypeQuery): AxiosPromise<PageResult<DictTypeVO>> {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/dict/type/list',
|
url: '/system/dict/type/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { NoticeForm, NoticeQuery, NoticeVO } from './types';
|
import { NoticeForm, NoticeQuery, NoticeVO } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
// 查询公告列表
|
// 查询公告列表
|
||||||
export function listNotice(query: NoticeQuery): AxiosPromise<NoticeVO[]> {
|
export function listNotice(query: NoticeQuery): AxiosPromise<PageResult<NoticeVO>> {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/notice/list',
|
url: '/system/notice/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { OssQuery, OssVO } from './types';
|
import { OssQuery, OssVO } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
// 查询OSS对象存储列表
|
// 查询OSS对象存储列表
|
||||||
export function listOss(query: OssQuery): AxiosPromise<OssVO[]> {
|
export function listOss(query: OssQuery): AxiosPromise<PageResult<OssVO>> {
|
||||||
return request({
|
return request({
|
||||||
url: '/resource/oss/list',
|
url: '/resource/oss/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { OssConfigForm, OssConfigQuery, OssConfigVO } from './types';
|
import { OssConfigForm, OssConfigQuery, OssConfigVO } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
// 查询对象存储配置列表
|
// 查询对象存储配置列表
|
||||||
export function listOssConfig(query: OssConfigQuery): AxiosPromise<OssConfigVO[]> {
|
export function listOssConfig(query: OssConfigQuery): AxiosPromise<PageResult<OssConfigVO>> {
|
||||||
return request({
|
return request({
|
||||||
url: '/resource/oss/config/list',
|
url: '/resource/oss/config/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -2,9 +2,10 @@ import request from '@/utils/request';
|
|||||||
import { PostForm, PostQuery, PostVO } from './types';
|
import { PostForm, PostQuery, PostVO } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
import { DeptTreeVO } from '../dept/types';
|
import { DeptTreeVO } from '../dept/types';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
// 查询岗位列表
|
// 查询岗位列表
|
||||||
export function listPost(query: PostQuery): AxiosPromise<PostVO[]> {
|
export function listPost(query: PostQuery): AxiosPromise<PageResult<PostVO>> {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/post/list',
|
url: '/system/post/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -3,8 +3,9 @@ import { UserQuery } from '@/api/system/user/types';
|
|||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
import { RoleQuery, RoleVO, RoleDeptTree } from './types';
|
import { RoleQuery, RoleVO, RoleDeptTree } from './types';
|
||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
export const listRole = (query: RoleQuery): AxiosPromise<RoleVO[]> => {
|
export const listRole = (query: RoleQuery): AxiosPromise<PageResult<RoleVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/role/list',
|
url: '/system/role/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -95,7 +96,7 @@ export const delRole = (roleId: Array<string | number> | string | number) => {
|
|||||||
/**
|
/**
|
||||||
* 查询角色已授权用户列表
|
* 查询角色已授权用户列表
|
||||||
*/
|
*/
|
||||||
export const allocatedUserList = (query: UserQuery): AxiosPromise<UserVO[]> => {
|
export const allocatedUserList = (query: UserQuery): AxiosPromise<PageResult<UserVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/role/authUser/allocatedList',
|
url: '/system/role/authUser/allocatedList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -106,7 +107,7 @@ export const allocatedUserList = (query: UserQuery): AxiosPromise<UserVO[]> => {
|
|||||||
/**
|
/**
|
||||||
* 查询角色未授权用户列表
|
* 查询角色未授权用户列表
|
||||||
*/
|
*/
|
||||||
export const unallocatedUserList = (query: UserQuery): AxiosPromise<UserVO[]> => {
|
export const unallocatedUserList = (query: UserQuery): AxiosPromise<PageResult<UserVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/role/authUser/unallocatedList',
|
url: '/system/role/authUser/unallocatedList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -4,12 +4,13 @@ import request from '@/utils/request';
|
|||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
import { UserForm, UserQuery, UserVO, UserInfoVO } from './types';
|
import { UserForm, UserQuery, UserVO, UserInfoVO } from './types';
|
||||||
import { parseStrEmpty } from '@/utils/ruoyi';
|
import { parseStrEmpty } from '@/utils/ruoyi';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询用户列表
|
* 查询用户列表
|
||||||
* @param query
|
* @param query
|
||||||
*/
|
*/
|
||||||
export const listUser = (query: UserQuery): AxiosPromise<UserVO[]> => {
|
export const listUser = (query: UserQuery): AxiosPromise<PageResult<UserVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/user/list',
|
url: '/system/user/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { DbTableQuery, DbTableVO, TableQuery, TableVO, GenTableVO, DbTableForm } from './types';
|
import { DbTableQuery, DbTableVO, TableQuery, TableVO, GenTableVO, DbTableForm } from './types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
// 查询生成表数据
|
// 查询生成表数据
|
||||||
export const listTable = (query: TableQuery): AxiosPromise<TableVO[]> => {
|
export const listTable = (query: TableQuery): AxiosPromise<PageResult<TableVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/tool/gen/list',
|
url: '/tool/gen/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -11,7 +12,7 @@ export const listTable = (query: TableQuery): AxiosPromise<TableVO[]> => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
// 查询db数据库列表
|
// 查询db数据库列表
|
||||||
export const listDbTable = (query: DbTableQuery): AxiosPromise<DbTableVO[]> => {
|
export const listDbTable = (query: DbTableQuery): AxiosPromise<PageResult<DbTableVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/tool/gen/db/list',
|
url: '/tool/gen/db/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -41,3 +41,11 @@ export interface VerifyCodeResult {
|
|||||||
uuid?: string;
|
uuid?: string;
|
||||||
img?: string;
|
img?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页返回结果
|
||||||
|
*/
|
||||||
|
export interface PageResult<T = any> {
|
||||||
|
total: number;
|
||||||
|
rows: T[];
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { FlowDefinitionQuery, definitionXmlVO, FlowDefinitionForm, FlowDefinitionVo } from '@/api/workflow/definition/types';
|
import { FlowDefinitionQuery, definitionXmlVO, FlowDefinitionForm, FlowDefinitionVo } from '@/api/workflow/definition/types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取流程定义列表
|
* 获取流程定义列表
|
||||||
* @param query 流程实例id
|
* @param query 流程实例id
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export const listDefinition = (query: FlowDefinitionQuery): AxiosPromise<FlowDefinitionVo[]> => {
|
export const listDefinition = (query: FlowDefinitionQuery): AxiosPromise<PageResult<FlowDefinitionVo>> => {
|
||||||
return request({
|
return request({
|
||||||
url: `/workflow/definition/list`,
|
url: `/workflow/definition/list`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -20,7 +21,7 @@ export const listDefinition = (query: FlowDefinitionQuery): AxiosPromise<FlowDef
|
|||||||
* @param query 流程实例id
|
* @param query 流程实例id
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export const unPublishList = (query: FlowDefinitionQuery): AxiosPromise<FlowDefinitionVo[]> => {
|
export const unPublishList = (query: FlowDefinitionQuery): AxiosPromise<PageResult<FlowDefinitionVo>> => {
|
||||||
return request({
|
return request({
|
||||||
url: `/workflow/definition/unPublishList`,
|
url: `/workflow/definition/unPublishList`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { FlowInstanceQuery, FlowInstanceVO } from '@/api/workflow/instance/types';
|
import { FlowInstanceQuery, FlowInstanceVO } from '@/api/workflow/instance/types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询运行中实例列表
|
* 查询运行中实例列表
|
||||||
* @param query
|
* @param query
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const pageByRunning = (query: FlowInstanceQuery): AxiosPromise<FlowInstanceVO[]> => {
|
export const pageByRunning = (query: FlowInstanceQuery): AxiosPromise<PageResult<FlowInstanceVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/instance/pageByRunning',
|
url: '/workflow/instance/pageByRunning',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -20,7 +21,7 @@ export const pageByRunning = (query: FlowInstanceQuery): AxiosPromise<FlowInstan
|
|||||||
* @param query
|
* @param query
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const pageByFinish = (query: FlowInstanceQuery): AxiosPromise<FlowInstanceVO[]> => {
|
export const pageByFinish = (query: FlowInstanceQuery): AxiosPromise<PageResult<FlowInstanceVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/instance/pageByFinish',
|
url: '/workflow/instance/pageByFinish',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -43,7 +44,7 @@ export const flowHisTaskList = (businessId: string | number) => {
|
|||||||
* @param query
|
* @param query
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const pageByCurrent = (query: FlowInstanceQuery): AxiosPromise<FlowInstanceVO[]> => {
|
export const pageByCurrent = (query: FlowInstanceQuery): AxiosPromise<PageResult<FlowInstanceVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/instance/pageByCurrent',
|
url: '/workflow/instance/pageByCurrent',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
import { LeaveVO, LeaveQuery, LeaveForm } from '@/api/workflow/leave/types';
|
import { LeaveVO, LeaveQuery, LeaveForm } from '@/api/workflow/leave/types';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询请假列表
|
* 查询请假列表
|
||||||
@@ -8,7 +9,7 @@ import { LeaveVO, LeaveQuery, LeaveForm } from '@/api/workflow/leave/types';
|
|||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const listLeave = (query?: LeaveQuery): AxiosPromise<LeaveVO[]> => {
|
export const listLeave = (query?: LeaveQuery): AxiosPromise<PageResult<LeaveVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/leave/list',
|
url: '/workflow/leave/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
import { SpelVO, SpelForm, SpelQuery } from '@/api/workflow/spel/types';
|
import { SpelVO, SpelForm, SpelQuery } from '@/api/workflow/spel/types';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询流程spel表达式定义列表
|
* 查询流程spel表达式定义列表
|
||||||
@@ -8,7 +9,7 @@ import { SpelVO, SpelForm, SpelQuery } from '@/api/workflow/spel/types';
|
|||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const listSpel = (query?: SpelQuery): AxiosPromise<SpelVO[]> => {
|
export const listSpel = (query?: SpelQuery): AxiosPromise<PageResult<SpelVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/spel/list',
|
url: '/workflow/spel/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
import { TaskQuery, FlowTaskVO, TaskOperationBo } from '@/api/workflow/task/types';
|
import { TaskQuery, FlowTaskVO, TaskOperationBo } from '@/api/workflow/task/types';
|
||||||
|
import { PageResult } from '@/api/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询待办列表
|
* 查询待办列表
|
||||||
* @param query
|
* @param query
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const pageByTaskWait = (query: TaskQuery): AxiosPromise<FlowTaskVO[]> => {
|
export const pageByTaskWait = (query: TaskQuery): AxiosPromise<PageResult<FlowTaskVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/task/pageByTaskWait',
|
url: '/workflow/task/pageByTaskWait',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -20,7 +21,7 @@ export const pageByTaskWait = (query: TaskQuery): AxiosPromise<FlowTaskVO[]> =>
|
|||||||
* @param query
|
* @param query
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const pageByTaskFinish = (query: TaskQuery): AxiosPromise<FlowTaskVO[]> => {
|
export const pageByTaskFinish = (query: TaskQuery): AxiosPromise<PageResult<FlowTaskVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/task/pageByTaskFinish',
|
url: '/workflow/task/pageByTaskFinish',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -33,7 +34,7 @@ export const pageByTaskFinish = (query: TaskQuery): AxiosPromise<FlowTaskVO[]> =
|
|||||||
* @param query
|
* @param query
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const pageByTaskCopy = (query: TaskQuery): AxiosPromise<FlowTaskVO[]> => {
|
export const pageByTaskCopy = (query: TaskQuery): AxiosPromise<PageResult<FlowTaskVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/task/pageByTaskCopy',
|
url: '/workflow/task/pageByTaskCopy',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -46,7 +47,7 @@ export const pageByTaskCopy = (query: TaskQuery): AxiosPromise<FlowTaskVO[]> =>
|
|||||||
* @param query
|
* @param query
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const pageByAllTaskWait = (query: TaskQuery): AxiosPromise<FlowTaskVO[]> => {
|
export const pageByAllTaskWait = (query: TaskQuery): AxiosPromise<PageResult<FlowTaskVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/task/pageByAllTaskWait',
|
url: '/workflow/task/pageByAllTaskWait',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@@ -59,7 +60,7 @@ export const pageByAllTaskWait = (query: TaskQuery): AxiosPromise<FlowTaskVO[]>
|
|||||||
* @param query
|
* @param query
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
export const pageByAllTaskFinish = (query: TaskQuery): AxiosPromise<FlowTaskVO[]> => {
|
export const pageByAllTaskFinish = (query: TaskQuery): AxiosPromise<PageResult<FlowTaskVO>> => {
|
||||||
return request({
|
return request({
|
||||||
url: '/workflow/task/pageByAllTaskFinish',
|
url: '/workflow/task/pageByAllTaskFinish',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -153,8 +153,8 @@ const computedIds = (data) => {
|
|||||||
const getList = () => {
|
const getList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
api.listRole(proxy?.addDateRange(queryParams.value, dateRange.value)).then((res) => {
|
api.listRole(proxy?.addDateRange(queryParams.value, dateRange.value)).then((res) => {
|
||||||
roleList.value = res.rows;
|
roleList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -218,8 +218,8 @@ const getList = async () => {
|
|||||||
queryParams.value.userIds = prop.userIds;
|
queryParams.value.userIds = prop.userIds;
|
||||||
const res = await api.listUser(proxy?.addDateRange(queryParams.value, dateRange.value));
|
const res = await api.listUser(proxy?.addDateRange(queryParams.value, dateRange.value));
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
userList.value = res.rows;
|
userList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
};
|
};
|
||||||
|
|
||||||
const pageList = async () => {
|
const pageList = async () => {
|
||||||
|
|||||||
@@ -147,8 +147,8 @@ const { queryParams, form, rules } = toRefs(data);
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listDemo(queryParams.value);
|
const res = await listDemo(queryParams.value);
|
||||||
demoList.value = res.rows;
|
demoList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -147,8 +147,8 @@ const queryParams = ref<LoginInfoQuery>({
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await list(proxy?.addDateRange(queryParams.value, dateRange.value));
|
const res = await list(proxy?.addDateRange(queryParams.value, dateRange.value));
|
||||||
loginInfoList.value = res.rows;
|
loginInfoList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
|
|||||||
@@ -105,8 +105,8 @@ const queryParams = ref<OnlineQuery>({
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await initData(queryParams.value);
|
const res = await initData(queryParams.value);
|
||||||
onlineList.value = res.rows;
|
onlineList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
|
|||||||
@@ -198,8 +198,8 @@ const { queryParams, form } = toRefs(data);
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await list(proxy?.addDateRange(queryParams.value, dateRange.value));
|
const res = await list(proxy?.addDateRange(queryParams.value, dateRange.value));
|
||||||
operlogList.value = res.rows;
|
operlogList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
/** 操作日志类型字典翻译 */
|
/** 操作日志类型字典翻译 */
|
||||||
|
|||||||
@@ -210,8 +210,8 @@ const { queryParams, form, rules } = toRefs(data);
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listClient(queryParams.value);
|
const res = await listClient(queryParams.value);
|
||||||
clientList.value = res.rows;
|
clientList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -178,8 +178,8 @@ const { queryParams, form, rules } = toRefs(data);
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listConfig(proxy?.addDateRange(queryParams.value, dateRange.value));
|
const res = await listConfig(proxy?.addDateRange(queryParams.value, dateRange.value));
|
||||||
configList.value = res.rows;
|
configList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
/** 取消按钮 */
|
/** 取消按钮 */
|
||||||
|
|||||||
@@ -393,8 +393,8 @@ const { queryParams: dataQueryParams, form: dataForm, rules: dataRules } = toRef
|
|||||||
const getTypeList = () => {
|
const getTypeList = () => {
|
||||||
typeLoading.value = true;
|
typeLoading.value = true;
|
||||||
listType(typeQueryParams.value).then((res) => {
|
listType(typeQueryParams.value).then((res) => {
|
||||||
typeList.value = res.rows;
|
typeList.value = res.data?.rows;
|
||||||
typeTotal.value = res.total;
|
typeTotal.value = res.data?.total;
|
||||||
typeLoading.value = false;
|
typeLoading.value = false;
|
||||||
ensureCurrentType();
|
ensureCurrentType();
|
||||||
});
|
});
|
||||||
@@ -512,8 +512,8 @@ const getDataList = async () => {
|
|||||||
}
|
}
|
||||||
dataLoading.value = true;
|
dataLoading.value = true;
|
||||||
const res = await listData(dataQueryParams.value);
|
const res = await listData(dataQueryParams.value);
|
||||||
dataList.value = res.rows;
|
dataList.value = res.data?.rows;
|
||||||
dataTotal.value = res.total;
|
dataTotal.value = res.data?.total;
|
||||||
dataLoading.value = false;
|
dataLoading.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -179,8 +179,8 @@ const { queryParams, form, rules } = toRefs(data);
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listNotice(queryParams.value);
|
const res = await listNotice(queryParams.value);
|
||||||
noticeList.value = res.rows;
|
noticeList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
/** 取消按钮 */
|
/** 取消按钮 */
|
||||||
|
|||||||
@@ -260,8 +260,8 @@ const protocol = computed(() => (form.value.isHttps === 'Y' ? 'https://' : 'http
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listOssConfig(queryParams.value);
|
const res = await listOssConfig(queryParams.value);
|
||||||
ossConfigList.value = res.rows;
|
ossConfigList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
/** 取消按钮 */
|
/** 取消按钮 */
|
||||||
|
|||||||
@@ -198,8 +198,8 @@ const getList = async () => {
|
|||||||
const res = await proxy?.getConfigKey('sys.oss.previewListResource');
|
const res = await proxy?.getConfigKey('sys.oss.previewListResource');
|
||||||
previewListResource.value = res?.data === undefined ? true : res.data === 'true';
|
previewListResource.value = res?.data === undefined ? true : res.data === 'true';
|
||||||
const response = await listOss(proxy?.addDateRange(queryParams.value, dateRangeCreateTime.value, 'CreateTime'));
|
const response = await listOss(proxy?.addDateRange(queryParams.value, dateRangeCreateTime.value, 'CreateTime'));
|
||||||
ossList.value = response.rows;
|
ossList.value = response.data?.rows;
|
||||||
total.value = response.total;
|
total.value = response.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
showTable.value = true;
|
showTable.value = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -274,8 +274,8 @@ const handleNodeClick = (data: DeptVO) => {
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listPost(queryParams.value);
|
const res = await listPost(queryParams.value);
|
||||||
postList.value = res.rows;
|
postList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -101,8 +101,8 @@ const queryParams = reactive<UserQuery>({
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await allocatedUserList(queryParams);
|
const res = await allocatedUserList(queryParams);
|
||||||
userList.value = res.rows;
|
userList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
// 返回按钮
|
// 返回按钮
|
||||||
|
|||||||
@@ -280,8 +280,8 @@ const dialog = reactive<DialogOption>({
|
|||||||
const getList = () => {
|
const getList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
listRole(proxy?.addDateRange(queryParams.value, dateRange.value)).then((res) => {
|
listRole(proxy?.addDateRange(queryParams.value, dateRange.value)).then((res) => {
|
||||||
roleList.value = res.rows;
|
roleList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -100,8 +100,8 @@ const handleSelectionChange = (selection: UserVO[]) => {
|
|||||||
/** 查询数据 */
|
/** 查询数据 */
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
const res = await unallocatedUserList(queryParams);
|
const res = await unallocatedUserList(queryParams);
|
||||||
userList.value = res.rows;
|
userList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
};
|
};
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
const handleQuery = () => {
|
const handleQuery = () => {
|
||||||
|
|||||||
@@ -455,8 +455,8 @@ const getList = async () => {
|
|||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await api.listUser(proxy?.addDateRange(queryParams.value, dateRange.value));
|
const res = await api.listUser(proxy?.addDateRange(queryParams.value, dateRange.value));
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
userList.value = res.rows;
|
userList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 查询部门下拉树结构 */
|
/** 查询部门下拉树结构 */
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ const getAuths = async () => {
|
|||||||
};
|
};
|
||||||
const getOnlines = async () => {
|
const getOnlines = async () => {
|
||||||
const res = await getOnline();
|
const res = await getOnline();
|
||||||
state.value.devices = res.rows;
|
state.value.devices = res.data?.rows;
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
@@ -88,8 +88,8 @@ const handleSelectionChange = (selection: DbTableVO[]) => {
|
|||||||
/** 查询表数据 */
|
/** 查询表数据 */
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
const res = await listDbTable(queryParams);
|
const res = await listDbTable(queryParams);
|
||||||
dbTableList.value = res.rows;
|
dbTableList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
};
|
};
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
const handleQuery = () => {
|
const handleQuery = () => {
|
||||||
|
|||||||
@@ -170,8 +170,8 @@ const getDataNameList = async () => {
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listTable(proxy?.addDateRange(queryParams.value, dateRange.value));
|
const res = await listTable(proxy?.addDateRange(queryParams.value, dateRange.value));
|
||||||
tableList.value = res.rows;
|
tableList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
|
|||||||
@@ -145,8 +145,8 @@ const { queryParams } = toRefs(data);
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listLeave(queryParams.value);
|
const res = await listLeave(queryParams.value);
|
||||||
leaveList.value = res.rows;
|
leaveList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -354,16 +354,16 @@ const getPageList = async () => {
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const resp = await listDefinition(queryParams.value);
|
const resp = await listDefinition(queryParams.value);
|
||||||
processDefinitionList.value = resp.rows;
|
processDefinitionList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
//查询未发布的流程定义列表
|
//查询未发布的流程定义列表
|
||||||
const getUnPublishList = async () => {
|
const getUnPublishList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const resp = await unPublishList(queryParams.value);
|
const resp = await unPublishList(queryParams.value);
|
||||||
processDefinitionList.value = resp.rows;
|
processDefinitionList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -343,8 +343,8 @@ const handleSelectionChange = (selection: FlowInstanceVO[]) => {
|
|||||||
const getProcessInstanceRunningList = () => {
|
const getProcessInstanceRunningList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
pageByRunning(queryParams.value).then((resp) => {
|
pageByRunning(queryParams.value).then((resp) => {
|
||||||
processInstanceList.value = resp.rows;
|
processInstanceList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -352,8 +352,8 @@ const getProcessInstanceRunningList = () => {
|
|||||||
const getProcessInstanceFinishList = () => {
|
const getProcessInstanceFinishList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
pageByFinish(queryParams.value).then((resp) => {
|
pageByFinish(queryParams.value).then((resp) => {
|
||||||
processInstanceList.value = resp.rows;
|
processInstanceList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -209,8 +209,8 @@ const { queryParams, form, rules } = toRefs(data);
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listSpel(queryParams.value);
|
const res = await listSpel(queryParams.value);
|
||||||
spelList.value = res.rows;
|
spelList.value = res.data?.rows;
|
||||||
total.value = res.total;
|
total.value = res.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -212,16 +212,16 @@ const changeTab = async (data: TabsPaneContext) => {
|
|||||||
const getWaitingList = () => {
|
const getWaitingList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
pageByAllTaskWait(queryParams.value).then((resp) => {
|
pageByAllTaskWait(queryParams.value).then((resp) => {
|
||||||
taskList.value = resp.rows;
|
taskList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const getFinishList = () => {
|
const getFinishList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
pageByAllTaskFinish(queryParams.value).then((resp) => {
|
pageByAllTaskFinish(queryParams.value).then((resp) => {
|
||||||
taskList.value = resp.rows;
|
taskList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -212,8 +212,8 @@ const handleSelectionChange = (selection: FlowInstanceVO[]) => {
|
|||||||
const getList = () => {
|
const getList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
pageByCurrent(queryParams.value).then((resp) => {
|
pageByCurrent(queryParams.value).then((resp) => {
|
||||||
processInstanceList.value = resp.rows;
|
processInstanceList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -122,8 +122,8 @@ const handleSelectionChange = (selection: any) => {
|
|||||||
const getTaskCopyList = () => {
|
const getTaskCopyList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
pageByTaskCopy(queryParams.value).then((resp) => {
|
pageByTaskCopy(queryParams.value).then((resp) => {
|
||||||
taskList.value = resp.rows;
|
taskList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -156,8 +156,8 @@ const handleSelectionChange = (selection: any) => {
|
|||||||
const getFinishList = () => {
|
const getFinishList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
pageByTaskFinish(queryParams.value).then((resp) => {
|
pageByTaskFinish(queryParams.value).then((resp) => {
|
||||||
taskList.value = resp.rows;
|
taskList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -158,8 +158,8 @@ const handleSelectionChange = (selection: any) => {
|
|||||||
const getWaitingList = () => {
|
const getWaitingList = () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
pageByTaskWait(queryParams.value).then((resp) => {
|
pageByTaskWait(queryParams.value).then((resp) => {
|
||||||
taskList.value = resp.rows;
|
taskList.value = resp.data?.rows;
|
||||||
total.value = resp.total;
|
total.value = resp.data?.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user