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
225bf15b
Commit
225bf15b
authored
Sep 15, 2023
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1607
parent
a06fc420
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
84 additions
and
39 deletions
+84
-39
FormItems.jsx
src/components/InitForm/FormItems.jsx
+38
-11
index.jsx
src/components/TreeRender/index.jsx
+24
-22
index.jsx
src/pages/lease/devicedata/index.jsx
+5
-1
Devicestatus.jsx
src/pages/lease/ledger/Devicestatus.jsx
+2
-2
index.jsx
src/pages/lease/supplier/index.jsx
+3
-3
columns.js
src/pages/setting/users/columns.js
+12
-0
No files found.
src/components/InitForm/FormItems.jsx
View file @
225bf15b
...
@@ -1468,7 +1468,44 @@ function FormList(props) {
...
@@ -1468,7 +1468,44 @@ function FormList(props) {
<Col {...col}>
<Col {...col}>
<div className="formlist">
<div className="formlist">
{
{
!isEmpty ?
item?.creatorButtonProps === false ?
!isEmpty ?
<ProFormList
name={item.key ?? item.dataIndex}
label={item.title}
min={item.min ?? 0}
max={item.max ?? 100}
itemContainerRender={(doms) => {
return <ProForm.Group>{doms}</ProForm.Group>;
}}
alwaysShowItemLabel={false}
copyIconProps={item?.copyIconProps ?? false}
deleteIconProps={item?.deleteIconProps ?? true}
creatorButtonProps={item?.creatorButtonProps ?? true}
>
{(f, index, action) => {
return (
<FormRender
fields={fields}
action={action}
curindex={index}
formRef={formRef}
name={item.key ?? item.dataIndex}
/>
);
}}
</ProFormList>
:
<div>
<div>{item.title}</div>
<Empty
image={"./empty.svg"}
imageStyle={{
height: 60,
}}
/>
</div>
:
<ProFormList
<ProFormList
name={item.key ?? item.dataIndex}
name={item.key ?? item.dataIndex}
label={item.title}
label={item.title}
...
@@ -1494,16 +1531,6 @@ function FormList(props) {
...
@@ -1494,16 +1531,6 @@ function FormList(props) {
);
);
}}
}}
</ProFormList>
</ProFormList>
:
<div>
<div>{item.title}</div>
<Empty
image={"./empty.svg"}
imageStyle={{
height: 60,
}}
/>
</div>
}
}
</div>
</div>
...
...
src/components/TreeRender/index.jsx
View file @
225bf15b
...
@@ -448,28 +448,30 @@ function TreeRender({
...
@@ -448,28 +448,30 @@ function TreeRender({
onChange=
{
onChange
}
onChange=
{
onChange
}
/>
/>
<
Tree
<
div
style=
{
{
overflow
:
'auto'
}
}
>
onSelect=
{
(
selectedKeys
,
e
)
=>
{
<
Tree
cselectedKeys
(
selectedKeys
);
onSelect=
{
(
selectedKeys
,
e
)
=>
{
onselected
?.(
selectedKeys
,
e
,
alldata
);
cselectedKeys
(
selectedKeys
);
}
}
onselected
?.(
selectedKeys
,
e
,
alldata
);
autoExpandParent=
{
autoExpandParent
}
}
}
defaultExpandAll=
{
true
}
autoExpandParent=
{
autoExpandParent
}
expandedKeys=
{
expandedKeys
}
defaultExpandAll=
{
true
}
selectedKeys=
{
selectedKeys
}
expandedKeys=
{
expandedKeys
}
onExpand=
{
(
expandedKeys
,
{
expanded
:
bool
,
node
})
=>
{
selectedKeys=
{
selectedKeys
}
onExpand
(
expandedKeys
);
onExpand=
{
(
expandedKeys
,
{
expanded
:
bool
,
node
})
=>
{
setAutoExpandParent
(
false
);
onExpand
(
expandedKeys
);
if
(
!
bool
&&
node
.
key
==
'00000000'
)
{
setAutoExpandParent
(
false
);
setexpandall
(
false
);
if
(
!
bool
&&
node
.
key
==
'00000000'
)
{
}
else
{
setexpandall
(
false
);
setexpandall
(
true
);
}
else
{
}
setexpandall
(
true
);
}
}
}
treeData=
{
loop
(
treeData
??
[])
}
}
}
>
treeData=
{
loop
(
treeData
??
[])
}
{
/* {loop(treeData ? treeData : [])} */
}
>
</
Tree
>
{
/* {loop(treeData ? treeData : [])} */
}
</
Tree
>
</
div
>
</
div
>
</
div
>
);
);
}
}
...
...
src/pages/lease/devicedata/index.jsx
View file @
225bf15b
...
@@ -95,7 +95,11 @@ const Devicedata = () => {
...
@@ -95,7 +95,11 @@ const Devicedata = () => {
extraparams=
{
extraparams
}
extraparams=
{
extraparams
}
pagination=
{
false
}
pagination=
{
false
}
toolBarRender=
{
true
}
toolBarRender=
{
true
}
options=
{
false
}
options=
{
{
reload
:
()
=>
{
tableData
.
run
()
}
}
}
/>
/>
},
},
{
{
...
...
src/pages/lease/ledger/Devicestatus.jsx
View file @
225bf15b
...
@@ -276,8 +276,8 @@ const Devicestatus = ({ drawer }) => {
...
@@ -276,8 +276,8 @@ const Devicestatus = ({ drawer }) => {
},
},
{
{
title
:
'采集状态'
,
title
:
'采集状态'
,
dataIndex
:
'
status
'
,
dataIndex
:
'
name
'
,
key
:
'
status
'
,
key
:
'
name
'
,
search
:
false
search
:
false
},
},
]
}
]
}
...
...
src/pages/lease/supplier/index.jsx
View file @
225bf15b
...
@@ -109,7 +109,7 @@ const Details = ({ drawer }) => {
...
@@ -109,7 +109,7 @@ const Details = ({ drawer }) => {
let
res
=
await
doFetch
({
let
res
=
await
doFetch
({
url
:
'/base/paFormField/queryList'
,
url
:
'/base/paFormField/queryList'
,
params
:
{
params
:
{
formId
:
'
3
'
,
formId
:
'
5
'
,
},
},
});
});
if
(
res
?.
data
?.
dataList
)
{
if
(
res
?.
data
?.
dataList
)
{
...
@@ -302,7 +302,7 @@ function Supplier(props) {
...
@@ -302,7 +302,7 @@ function Supplier(props) {
drawer=
{
drawer
}
drawer=
{
drawer
}
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
columns=
{
columns
}
columns=
{
columns
}
formId=
{
'
3
'
}
formId=
{
'
5
'
}
// urlParams={urlParams}
// urlParams={urlParams}
onFinish=
{
async
(
vals
)
=>
{
onFinish=
{
async
(
vals
)
=>
{
let
equipmentSupplierCharReqList
=
[];
let
equipmentSupplierCharReqList
=
[];
...
@@ -342,7 +342,7 @@ function Supplier(props) {
...
@@ -342,7 +342,7 @@ function Supplier(props) {
drawer=
{
drawer
}
drawer=
{
drawer
}
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
columns=
{
drawer
?.
item
?.
statusChangeable
==
1
?
getcolumns
(
false
)
:
getcolumns
(
true
)
}
columns=
{
drawer
?.
item
?.
statusChangeable
==
1
?
getcolumns
(
false
)
:
getcolumns
(
true
)
}
formId=
{
'
3
'
}
formId=
{
'
5
'
}
urlParams=
{
urlParams
}
urlParams=
{
urlParams
}
onFinish=
{
async
(
vals
)
=>
{
onFinish=
{
async
(
vals
)
=>
{
let
equipmentSupplierCharReqList
=
[];
let
equipmentSupplierCharReqList
=
[];
...
...
src/pages/setting/users/columns.js
View file @
225bf15b
...
@@ -80,6 +80,18 @@ function getcolumns(setDrawer, ifs, formRef, isLease) {
...
@@ -80,6 +80,18 @@ function getcolumns(setDrawer, ifs, formRef, isLease) {
dataIndex
:
'departmentName'
,
dataIndex
:
'departmentName'
,
key
:
'departmentId'
,
key
:
'departmentId'
,
},
},
{
title
:
'用户类型'
,
dataIndex
:
'customerTypeName'
,
key
:
'customerType'
,
hideInDescriptions
:
isLease
==
1
?
false
:
true
},
{
title
:
'所属客户'
,
dataIndex
:
'customerName'
,
key
:
'customerId'
,
hideInDescriptions
:
isLease
==
1
?
false
:
true
},
{
{
title
:
'负责工厂'
,
title
:
'负责工厂'
,
dataIndex
:
'factoryNames'
,
dataIndex
:
'factoryNames'
,
...
...
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