巴林闲侠
2 years ago
11 changed files with 1130 additions and 24325 deletions
@ -1 +1 @@ |
|||
window.FS_API_ROOT = 'http://localhost:4600' |
|||
window.FS_API_ROOT = 'http://10.8.30.183:4100' |
@ -1,6 +1,32 @@ |
|||
'use strict'; |
|||
|
|||
import { ApiTable } from '$utils' |
|||
import { Request, basicAction } from '@peace/utils' |
|||
|
|||
export default { |
|||
export function editCrane (params) { |
|||
return dispatch => basicAction({ |
|||
type: 'post', |
|||
data: params, |
|||
dispatch: dispatch, |
|||
actionType: 'EDIT_CRANE', |
|||
url: ApiTable.craneSetting, |
|||
msg: { option: '修改配置信息' }, |
|||
}); |
|||
} |
|||
|
|||
export function getCrane (params) { |
|||
return dispatch => basicAction({ |
|||
type: 'get', |
|||
query: params, |
|||
dispatch: dispatch, |
|||
actionType: 'GET_CRANE', |
|||
url: ApiTable.craneSetting, |
|||
msg: { error: '获取配置信息失败' }, |
|||
reducer: { name: 'crane' } |
|||
}); |
|||
} |
|||
|
|||
export default { |
|||
editCrane, |
|||
getCrane, |
|||
} |
@ -1,2 +1,79 @@ |
|||
2023-03-14 15:50:33.526 - [34mdebug[39m: [FS-LOGGER] Init. |
|||
2023-03-14 15:50:33.759 - [32minfo[39m: [Router] Inject api: attachment/index |
|||
2023-03-28 14:41:25.457 - [34mdebug[39m: [FS-LOGGER] Init. |
|||
2023-03-28 14:41:25.778 - [32minfo[39m: [Router] Inject api: attachment/index |
|||
2023-03-28 14:44:17.446 - [31merror[39m: [FS-ERRHD] |
|||
{ |
|||
message: [32m'Error: connect ECONNREFUSED 127.0.0.1:4600'[39m, |
|||
name: [32m'RequestError'[39m, |
|||
cause: { |
|||
errno: [32m'ECONNREFUSED'[39m, |
|||
code: [32m'ECONNREFUSED'[39m, |
|||
syscall: [32m'connect'[39m, |
|||
address: [32m'127.0.0.1'[39m, |
|||
port: [33m4600[39m |
|||
}, |
|||
error: { [32m'$ref'[39m: [32m'$["cause"]'[39m }, |
|||
options: { |
|||
jar: [33mfalse[39m, |
|||
url: [32m'http://localhost:4600/settings'[39m, |
|||
headers: { |
|||
host: [32m'localhost:4600'[39m, |
|||
connection: [32m'keep-alive'[39m, |
|||
[32m'content-length'[39m: [32m'30'[39m, |
|||
[32m'sec-ch-ua'[39m: [32m'"Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"'[39m, |
|||
[32m'sec-ch-ua-platform'[39m: [32m'"Windows"'[39m, |
|||
[32m'sec-ch-ua-mobile'[39m: [32m'?0'[39m, |
|||
[32m'user-agent'[39m: [32m'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36'[39m, |
|||
[32m'content-type'[39m: [32m'application/json'[39m, |
|||
[32m'cache-control'[39m: [32m'no-cache,no-store,must-revalidate,max-age=-1,private'[39m, |
|||
[32m'x-requested-with'[39m: [32m'XMLHttpRequest'[39m, |
|||
expires: [32m'-1'[39m, |
|||
accept: [32m'*/*'[39m, |
|||
origin: [32m'http://localhost:5400'[39m, |
|||
[32m'sec-fetch-site'[39m: [32m'same-origin'[39m, |
|||
[32m'sec-fetch-mode'[39m: [32m'cors'[39m, |
|||
[32m'sec-fetch-dest'[39m: [32m'empty'[39m, |
|||
referer: [32m'http://localhost:5400/setup'[39m, |
|||
[32m'accept-encoding'[39m: [32m'gzip, deflate, br'[39m, |
|||
[32m'accept-language'[39m: [32m'zh-CN,zh;q=0.9'[39m |
|||
}, |
|||
encoding: [1mnull[22m, |
|||
followRedirect: [33mtrue[39m, |
|||
method: [32m'POST'[39m, |
|||
body: [32m'{"tower_height":22222,"x":111}'[39m, |
|||
simple: [33mfalse[39m, |
|||
resolveWithFullResponse: [33mtrue[39m, |
|||
callback: [36m[Function: RP$callback][39m, |
|||
transform: [90mundefined[39m, |
|||
transform2xxOnly: [33mfalse[39m |
|||
}, |
|||
response: [90mundefined[39m, |
|||
stack: [32m'RequestError: Error: connect ECONNREFUSED 127.0.0.1:4600\n'[39m + |
|||
[32m' at new RequestError (C:\\_WorkCode\\CraneAntiCollision\\console\\node_modules\\request-promise-core\\lib\\errors.js:14:15)\n'[39m + |
|||
[32m' at Request.plumbing.callback (C:\\_WorkCode\\CraneAntiCollision\\console\\node_modules\\request-promise-core\\lib\\plumbing.js:87:29)\n'[39m + |
|||
[32m' at Request.RP$callback [as _callback] (C:\\_WorkCode\\CraneAntiCollision\\console\\node_modules\\request-promise-core\\lib\\plumbing.js:46:31)\n'[39m + |
|||
[32m' at self.callback (C:\\_WorkCode\\CraneAntiCollision\\console\\node_modules\\request\\request.js:185:22)\n'[39m + |
|||
[32m' at Request.emit (events.js:314:20)\n'[39m + |
|||
[32m' at Request.onRequestError (C:\\_WorkCode\\CraneAntiCollision\\console\\node_modules\\request\\request.js:877:8)\n'[39m + |
|||
[32m' at ClientRequest.emit (events.js:314:20)\n'[39m + |
|||
[32m' at Socket.socketErrorListener (_http_client.js:427:9)\n'[39m + |
|||
[32m' at Socket.emit (events.js:314:20)\n'[39m + |
|||
[32m' at emitErrorNT (internal/streams/destroy.js:92:8)\n'[39m + |
|||
[32m' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n'[39m + |
|||
[32m' at processTicksAndRejections (internal/process/task_queues.js:84:21)'[39m |
|||
} |
|||
2023-03-28 14:45:03.014 - [34mdebug[39m: [FS-LOGGER] Init. |
|||
2023-03-28 14:45:03.232 - [32minfo[39m: [Router] Inject api: attachment/index |
|||
2023-03-28 15:21:28.503 - [34mdebug[39m: [FS-LOGGER] Init. |
|||
2023-03-28 15:21:28.747 - [32minfo[39m: [Router] Inject api: attachment/index |
|||
2023-03-28 15:42:42.554 - [34mdebug[39m: [FS-LOGGER] Init. |
|||
2023-03-28 15:42:42.743 - [32minfo[39m: [Router] Inject api: attachment/index |
|||
2023-03-28 16:39:29.707 - [34mdebug[39m: [FS-LOGGER] Init. |
|||
2023-03-28 16:39:29.892 - [32minfo[39m: [Router] Inject api: attachment/index |
|||
2023-03-28 16:50:59.167 - [34mdebug[39m: [FS-LOGGER] Init. |
|||
2023-03-28 16:50:59.377 - [32minfo[39m: [Router] Inject api: attachment/index |
|||
2023-03-28 17:10:51.565 - [34mdebug[39m: [FS-LOGGER] Init. |
|||
2023-03-28 17:10:51.751 - [32minfo[39m: [Router] Inject api: attachment/index |
|||
2023-03-29 11:10:34.765 - [34mdebug[39m: [FS-LOGGER] Init. |
|||
2023-03-29 11:10:35.030 - [32minfo[39m: [Router] Inject api: attachment/index |
|||
|
File diff suppressed because it is too large
Loading…
Reference in new issue