|
@@ -1,77 +1,77 @@
|
|
|
-import {httpApi} from "../request/httpApi";
|
|
|
-import {useAppStore} from "~src/store";
|
|
|
-const useAppState = useAppStore();
|
|
|
+import { httpApi } from '../request/httpApi'
|
|
|
+import { useAppStore } from '~src/store'
|
|
|
+const useAppState = useAppStore()
|
|
|
|
|
|
//用户配置保存
|
|
|
export const userConfigSave = (form, msg = true) => httpApi({
|
|
|
url: '/api/blade-business/defaultConfig/saveOrUpdate',
|
|
|
method: 'post',
|
|
|
- data: form
|
|
|
-}, msg);
|
|
|
+ data: form,
|
|
|
+}, msg)
|
|
|
|
|
|
//用户配置详情
|
|
|
export const userConfigInfo = (form, msg = true) => httpApi({
|
|
|
url: '/api/blade-business/defaultConfig/detail',
|
|
|
method: 'get',
|
|
|
- params: form
|
|
|
-}, msg);
|
|
|
+ params: form,
|
|
|
+}, msg)
|
|
|
|
|
|
//获取全部项目列表
|
|
|
export const getProjectList = () => httpApi({
|
|
|
url: '/api/blade-control/ex/ma/project/list',
|
|
|
method: 'get',
|
|
|
- params: {}
|
|
|
-}, false);
|
|
|
+ params: {},
|
|
|
+}, false)
|
|
|
|
|
|
//将数字转换为汉语大写,支持小数点
|
|
|
export const getNumberToChinese = (form) => httpApi({
|
|
|
url: '/api/blade-control/ex/ma/getNumberToChinese',
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
- value: form
|
|
|
- }
|
|
|
-}, false);
|
|
|
+ value: form,
|
|
|
+ },
|
|
|
+}, false)
|
|
|
|
|
|
//字典数据查询接口
|
|
|
export const getDictInfo = (code) => httpApi({
|
|
|
url: '/api/blade-control/dictinfo/get-dict-info',
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
- code
|
|
|
- }
|
|
|
-}, false);
|
|
|
+ code,
|
|
|
+ },
|
|
|
+}, false)
|
|
|
//获取部门列表
|
|
|
export const getdepartmentList = (form, msg = true) => httpApi({
|
|
|
- url: '/api/blade-system/dept/list',
|
|
|
+ url: '/api/blade-system/dept/listAllByType',
|
|
|
method: 'get',
|
|
|
- params: form
|
|
|
-}, msg);
|
|
|
+ params: form,
|
|
|
+}, msg)
|
|
|
//获取用户列表
|
|
|
-export const getuserList = (form= {}, msg = true) => httpApi({
|
|
|
+export const getuserList = (form = {}, msg = true) => httpApi({
|
|
|
url: '/api/blade-user/user-list',
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
...form,
|
|
|
- tenantId: useAppState.tenantId
|
|
|
- }
|
|
|
-}, msg);
|
|
|
+ tenantId: useAppState.tenantId,
|
|
|
+ },
|
|
|
+}, msg)
|
|
|
//获取审批人列表
|
|
|
export const getApprovesList = (form, msg = true) => httpApi({
|
|
|
url: '/api/blade-control/ex/ma/getApprovesList',
|
|
|
method: 'get',
|
|
|
- params: form
|
|
|
-}, msg);
|
|
|
+ params: form,
|
|
|
+}, msg)
|
|
|
|
|
|
//获取任务类型
|
|
|
export const getTaskType = (form, msg = true) => httpApi({
|
|
|
url: 'api/blade-control/dictinfo/parent-list?type=2',
|
|
|
method: 'get',
|
|
|
- params: form
|
|
|
-}, msg);
|
|
|
+ params: form,
|
|
|
+}, msg)
|
|
|
|
|
|
|
|
|
//获取更新信息
|
|
|
export const getVersionJson = () => httpApi({
|
|
|
url: 'version.json?time=' + new Date().getTime(),
|
|
|
- method: 'get'
|
|
|
-}, false);
|
|
|
+ method: 'get',
|
|
|
+}, false)
|