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
df6899c5
Commit
df6899c5
authored
Jun 23, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12334
parent
a1e67909
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
17 deletions
+22
-17
global.less
src/global.less
+3
-0
index.jsx
src/pages/platform/Custom/index.jsx
+15
-13
Fieldmanage.jsx
src/pages/platform/Specialproperties/Fieldmanage.jsx
+4
-4
No files found.
src/global.less
View file @
df6899c5
...
...
@@ -319,4 +319,7 @@ table {
}
.ant-drawer-open{
transform: none !important;
}
.ant-pro-table-list-toolbar{
overflow: hidden !important;
}
\ No newline at end of file
src/pages/platform/Custom/index.jsx
View file @
df6899c5
...
...
@@ -193,19 +193,10 @@ const Deviceprovide = (props) => {
function
extraAction
(
text
,
record
,
_
,
action
)
{
return
[
getPrem
(
"equipmentCustomer_save"
,
action
,
'修改'
,
async
()
=>
{
await
setcuritem
(
record
);
setTimeout
(()
=>
{
doFetch
({
url
:
"/ngic-auth/sysCustomer/query/detail"
,
params
:
{
id
:
record
.
id
}
}).
then
(
res
=>
{
if
(
res
.
code
==
"0000"
)
{
let
data
=
res
?.
data
?.
data
||
{};
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
data
[
i
];
}
dispatch
({
type
:
"edit"
,
fields
:
{
...
defaultFields
,
...
extrafields
}
})
}
})
},
400
)
await
setcuritem
({
...
record
,
key
:
"edit"
});
}),
getPrem
(
"equipmentCustomer_deleteById"
,
action
,
'删除'
,
null
,
{
title
:
"确认删除该客户?"
,
...
...
@@ -253,6 +244,17 @@ const Deviceprovide = (props) => {
let
res
=
await
tempfields
(
"/ngic-auth/sysCustomerChar/queryCommonList"
,
{
id
:
curitem
.
id
})
setextrafields
(
res
?.
fields
);
setsubdata
(
res
?.
data
);
if
(
curitem
.
key
==
"edit"
)
{
doFetch
({
url
:
"/ngic-auth/sysCustomer/query/detail"
,
params
:
{
id
:
curitem
.
id
}
}).
then
(
res
=>
{
if
(
res
.
code
==
"0000"
)
{
let
data
=
res
?.
data
?.
data
||
{};
for
(
let
i
in
defaultFields
)
{
defaultFields
[
i
].
value
=
data
[
i
];
}
dispatch
({
type
:
"edit"
,
fields
:
{
...
defaultFields
,
...
extrafields
}
})
}
})
}
},
[
curitem
])
...
...
src/pages/platform/Specialproperties/Fieldmanage.jsx
View file @
df6899c5
...
...
@@ -15,10 +15,10 @@ const tabList = [
key
:
"tab1"
,
tab
:
<
span
style=
{
{
fontSize
:
14
}
}
>
公共字段
</
span
>,
},
{
key
:
"tab2"
,
tab
:
<
span
style=
{
{
fontSize
:
14
}
}
>
条件字段
</
span
>,
},
//
{
//
key: "tab2",
//
tab: <span style={{ fontSize: 14 }}>条件字段</span>,
//
},
],
initState
=
{
vs
:
false
,
...
...
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