Files
xl-root/src/api/system.js

50 lines
1.3 KiB
JavaScript
Raw Normal View History

2025-03-10 19:01:21 +08:00
import request from "../utils/request.js";
2025-04-19 15:28:32 +08:00
import Method from "./Method.js";
2025-03-10 19:01:21 +08:00
const system = {
getData: async (params) => {
return request({
url: '/m1/5995958-5684445-default/getList',
2025-04-19 15:28:32 +08:00
method: Method.POST,
2025-03-10 19:01:21 +08:00
data: params
});
2025-03-14 19:03:13 +08:00
},
getSelect: async () => {
return request({
url: '/m1/5995958-5684445-default/getSelectList',
2025-04-19 15:28:32 +08:00
method: Method.GET,
2025-03-14 19:03:13 +08:00
});
},
2025-04-21 19:57:04 +08:00
getRange: async () => {
return new Promise((resolve) => {
resolve({
data: [
{
id: 1,
name: '≥'
},
{
id: 2,
name: '<'
}
]
});
})
2025-04-23 19:48:47 +08:00
},
uploadFile: async (file) => {
const formData = new FormData();
formData.append('file', file);
return request({
UN_AES: true,
url: '/admin/upload/upload',
method: Method.POST,
data: formData,
headers: {
'Content-Type': 'multipart/form-data; boundary=--------------------------611824495457697861278283'
}
});
2025-04-21 19:57:04 +08:00
}
2025-03-10 19:01:21 +08:00
}
export default system;