usedCarManagement.js
2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-09-18 15:01:57
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-09-20 16:34:53
* @FilePath: \dj-car-life-system\src\api\usedCarManagement.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/**二手车 */
// import Request from "@/newRequest/index.esm"
// console.log("request", Request)
// const request = new Request({
// baseURL: "http://192.168.3.145:9898/gsc-vcp-web-facade",
// appId: "dj_zhixin",
// appSecret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
// sentry: {
// enable: false,
// dsn: "https://be4fb79a912b4c34a5d1c539a1618978@sentry.glsx.com.cn/1"
// },
// security: {
// enable: false,
// address:
// "https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=glsx-common" // 自定义地址
// },
// httpOptions: {
// // HTTP选项配置
// customer: {
// response: {
// code_key: "status", // 状态码字段名,支持字符串或数组
// code_success_value: "200", // 成功状态码值
// data_key: "data", // 数据字段名
// errId: "errId", // 错误ID字段名
// errId_logout_value: "" // 登出状态码值
// }
// }
// }
// })
// export function getListApi(data) {
// return request.request({
// url: "/test/page/test",
// method: "POST",
// data: {
// id: 6,
// objs: ["hehe", "haah"],
// dogs: [
// { name: "haogou", age: 1 },
// { name: "拉布拉多", age: 2 }
// ],
// dog: { name: "haogou", age: 1 }
// }
// })
// }
// export function getListApi(data) {
// return new Promise(async (resolve) => {
// let result = await request.request({
// url: "/test/page/test",
// method: "POST",
// data: {
// id: 6,
// objs: ["hehe", "haah"],
// dogs: [
// { name: "haogou", age: 1 },
// { name: "拉布拉多", age: 2 }
// ],
// dog: { name: "haogou", age: 1 }
// }
// })
// console.log(result, "result")
// if (result.status == 200) {
// resolve(result.data)
// }
// })
// }