Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
wms
Commits
f1164823
Commit
f1164823
authored
Jul 15, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
d353e947
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
proxy.js
config/proxy.js
+1
-1
index.jsx
src/pages/platform/Custom/index.jsx
+5
-6
No files found.
config/proxy.js
View file @
f1164823
...
...
@@ -11,7 +11,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/"
:
{
// 要代理的地址
target
:
"http://192.168.40.1
14:2
8040/"
,
//39:18040 23/wms/ //60 翔 //18
target
:
"http://192.168.40.1
8:1
8040/"
,
//39:18040 23/wms/ //60 翔 //18
changeOrigin
:
true
,
pathRewrite
:
{
"^/wms"
:
""
,
...
...
src/pages/platform/Custom/index.jsx
View file @
f1164823
...
...
@@ -97,7 +97,7 @@ const Deviceprovide = (props) => {
return
<
div
style=
{
{
padding
:
'3px 0'
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
}
}
>
<
Tooltip
title=
{
row
.
customerName
}
>
<
a
onClick=
{
()
=>
{
doFetch
({
url
:
"/ngic-auth/sysCustomer/query/detail"
,
params
:{
id
:
row
.
id
}
}).
then
(
res
=>
{
doFetch
({
url
:
"/ngic-auth/sysCustomer/query/detail"
,
params
:
{
id
:
row
.
id
}
}).
then
(
res
=>
{
let
data
=
res
?.
data
?.
data
||
{};
dispatch
({
type
:
"cdetails"
,
dataSource
:
data
})
})
...
...
@@ -242,15 +242,14 @@ const Deviceprovide = (props) => {
extrafields
[
i
].
value
=
[]
}
}
dispatch
({
type
:
"add"
,
fields
:
{
...
defaultFields
,
...
extrafields
}
})
}
}
>
新增
</
Button
>
]);
useAsyncEffect
(
async
()
=>
{
let
res
=
await
tempfields
(
"/ngic-auth/sysCustomerChar/queryCommonList"
,
{
id
:
curitem
.
id
})
setextrafields
(
res
?.
fields
);
setsubdata
(
res
?.
data
);
let
result
=
await
tempfields
(
"/ngic-auth/sysCustomerChar/queryCommonList"
,
{
id
:
curitem
.
id
})
await
setsubdata
(
result
?.
data
);
if
(
curitem
.
key
==
"edit"
)
{
doFetch
({
url
:
"/ngic-auth/sysCustomer/query/detail"
,
params
:
{
id
:
curitem
.
id
}
}).
then
(
res
=>
{
if
(
res
.
code
==
"0000"
)
{
...
...
@@ -258,7 +257,7 @@ const Deviceprovide = (props) => {
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
data
[
i
];
}
dispatch
({
type
:
"edit"
,
fields
:
{
...
defaultFields
,
...
extra
fields
}
})
dispatch
({
type
:
"edit"
,
fields
:
{
...
defaultFields
,
...
result
?.
fields
}
})
}
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment