Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
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
ems3.3
Commits
9c552251
Commit
9c552251
authored
Dec 29, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
fe9dd3d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
proxy.js
config/proxy.js
+1
-1
index.jsx
src/components/DrawerPro/index.jsx
+1
-0
index.jsx
src/pages/device/account/index.jsx
+6
-10
No files found.
config/proxy.js
View file @
9c552251
...
@@ -13,7 +13,7 @@ export default {
...
@@ -13,7 +13,7 @@ export default {
dev
:
{
dev
:
{
[
defaultSetting
.
proxypath
]:
{
[
defaultSetting
.
proxypath
]:
{
// 要代理的地址
// 要代理的地址
target
:
'http://192.168.40.64:2800
0
'
,
//jf哥
target
:
'http://192.168.40.64:2800
1
'
,
//jf哥
// target: 'http://192.168.40.203:8000', //dj哥
// target: 'http://192.168.40.203:8000', //dj哥
changeOrigin
:
true
,
changeOrigin
:
true
,
},
},
...
...
src/components/DrawerPro/index.jsx
View file @
9c552251
...
@@ -14,6 +14,7 @@ function DrawerPro(props) {
...
@@ -14,6 +14,7 @@ function DrawerPro(props) {
fields
:
props
.
fields
,
fields
:
props
.
fields
,
detailData
:
props
.
detailData
,
detailData
:
props
.
detailData
,
};
};
return
(
return
(
<
Drawer
<
Drawer
maskClosable=
{
false
}
maskClosable=
{
false
}
...
...
src/pages/device/account/index.jsx
View file @
9c552251
...
@@ -731,7 +731,6 @@ function Model(props) {
...
@@ -731,7 +731,6 @@ function Model(props) {
}
}
},
},
fn2
=
async
()
=>
{
fn2
=
async
()
=>
{
console
.
log
(
'd'
);
const
res
=
await
doFetch
({
const
res
=
await
doFetch
({
url
:
urlParams
.
detail
,
url
:
urlParams
.
detail
,
params
:
{
id
:
drawer
?.
item
?.
id
},
params
:
{
id
:
drawer
?.
item
?.
id
},
...
@@ -1813,7 +1812,6 @@ function Model(props) {
...
@@ -1813,7 +1812,6 @@ function Model(props) {
<>
<>
<
ProDescriptions
<
ProDescriptions
request=
{
async
()
=>
{
request=
{
async
()
=>
{
console
.
log
(
'cc'
);
const
{
data
}
=
await
doFetch
({
const
{
data
}
=
await
doFetch
({
url
:
urlParams
.
detail
,
url
:
urlParams
.
detail
,
params
:
{
id
:
drawer
?.
item
?.
id
},
params
:
{
id
:
drawer
?.
item
?.
id
},
...
@@ -1882,7 +1880,6 @@ function Model(props) {
...
@@ -1882,7 +1880,6 @@ function Model(props) {
]
}
]
}
/>
/>
<
Divider
/>
<
Divider
/>
<
Tabs
<
Tabs
activeKey=
{
activeTab
}
activeKey=
{
activeTab
}
onChange=
{
setactiveTab
}
onChange=
{
setactiveTab
}
...
@@ -1902,8 +1899,7 @@ function Model(props) {
...
@@ -1902,8 +1899,7 @@ function Model(props) {
});
});
if
(
res
.
code
===
'0000'
)
{
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'登记成功!'
);
message
.
success
(
'登记成功!'
);
console
.
log
(
drawer
);
await
setDrawer
((
s
)
=>
({
setDrawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
false
,
visible
:
false
,
item
:
null
,
item
:
null
,
...
@@ -1928,7 +1924,7 @@ function Model(props) {
...
@@ -1928,7 +1924,7 @@ function Model(props) {
});
});
if
(
res
.
code
===
'0000'
)
{
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'登记成功!'
);
message
.
success
(
'登记成功!'
);
setDrawer
((
s
)
=>
({
await
setDrawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
false
,
visible
:
false
,
item
:
null
,
item
:
null
,
...
@@ -1954,7 +1950,7 @@ function Model(props) {
...
@@ -1954,7 +1950,7 @@ function Model(props) {
});
});
if
(
res
.
code
===
'0000'
)
{
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'登记成功!'
);
message
.
success
(
'登记成功!'
);
setDrawer
((
s
)
=>
({
await
setDrawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
false
,
visible
:
false
,
item
:
null
,
item
:
null
,
...
@@ -1980,7 +1976,7 @@ function Model(props) {
...
@@ -1980,7 +1976,7 @@ function Model(props) {
});
});
if
(
res
.
code
===
'0000'
)
{
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'登记成功!'
);
message
.
success
(
'登记成功!'
);
setDrawer
((
s
)
=>
({
await
setDrawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
false
,
visible
:
false
,
item
:
null
,
item
:
null
,
...
@@ -2006,7 +2002,7 @@ function Model(props) {
...
@@ -2006,7 +2002,7 @@ function Model(props) {
});
});
if
(
res
.
code
===
'0000'
)
{
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'登记成功!'
);
message
.
success
(
'登记成功!'
);
setDrawer
((
s
)
=>
({
await
setDrawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
false
,
visible
:
false
,
item
:
null
,
item
:
null
,
...
@@ -2243,7 +2239,7 @@ function Model(props) {
...
@@ -2243,7 +2239,7 @@ function Model(props) {
span
:
8
,
span
:
8
,
}
}
}
}
>
>
{
selectMoreDrawerType
(
drawer
?.
type
)
}
{
drawer
?.
visible
&&
selectMoreDrawerType
(
drawer
?.
type
)
}
</
DrawerPro
>
</
DrawerPro
>
<
DrawerPro
<
DrawerPro
...
...
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