Commit 225bf15b authored by 左玲玲's avatar 左玲玲 😬

1607

parent a06fc420
...@@ -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>
......
...@@ -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>
); );
} }
......
...@@ -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()
}
}}
/> />
}, },
{ {
......
...@@ -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
}, },
]} ]}
......
...@@ -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 = [];
......
...@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment