mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-12 10:05:07 +08:00
refactor: config vxe
This commit is contained in:
@ -1,8 +1,30 @@
|
||||
import request from '@/config/axios'
|
||||
import type { ConfigVO } from './types'
|
||||
|
||||
export type ConfigVO = {
|
||||
id: number
|
||||
group: string
|
||||
name: string
|
||||
key: string
|
||||
value: string
|
||||
type: string
|
||||
visible: boolean
|
||||
remark: string
|
||||
createTime: string
|
||||
}
|
||||
export interface ConfigPageReqVO extends PageParam {
|
||||
name?: string
|
||||
type?: number
|
||||
createTime?: string[]
|
||||
}
|
||||
|
||||
export interface ConfigExportReqVO {
|
||||
name?: string
|
||||
type?: number
|
||||
createTime?: string[]
|
||||
}
|
||||
|
||||
// 查询参数列表
|
||||
export const getConfigPageApi = (params) => {
|
||||
export const getConfigPageApi = (params: ConfigPageReqVO) => {
|
||||
return request.get({ url: '/infra/config/page', params })
|
||||
}
|
||||
|
||||
@ -32,6 +54,6 @@ export const deleteConfigApi = (id: number) => {
|
||||
}
|
||||
|
||||
// 导出参数
|
||||
export const exportConfigApi = (params) => {
|
||||
export const exportConfigApi = (params: ConfigExportReqVO) => {
|
||||
return request.download({ url: '/infra/config/export', params })
|
||||
}
|
||||
|
Reference in New Issue
Block a user