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

1607

parent a06fc420
...@@ -1468,6 +1468,7 @@ function FormList(props) { ...@@ -1468,6 +1468,7 @@ function FormList(props) {
<Col {...col}> <Col {...col}>
<div className="formlist"> <div className="formlist">
{ {
item?.creatorButtonProps === false ?
!isEmpty ? !isEmpty ?
<ProFormList <ProFormList
name={item.key ?? item.dataIndex} name={item.key ?? item.dataIndex}
...@@ -1504,6 +1505,32 @@ function FormList(props) { ...@@ -1504,6 +1505,32 @@ function FormList(props) {
}} }}
/> />
</div> </div>
:
<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>
......
...@@ -448,6 +448,7 @@ function TreeRender({ ...@@ -448,6 +448,7 @@ function TreeRender({
onChange={onChange} onChange={onChange}
/> />
<div style={{ overflow: 'auto' }}>
<Tree <Tree
onSelect={(selectedKeys, e) => { onSelect={(selectedKeys, e) => {
cselectedKeys(selectedKeys); cselectedKeys(selectedKeys);
...@@ -471,6 +472,7 @@ function TreeRender({ ...@@ -471,6 +472,7 @@ function TreeRender({
{/* {loop(treeData ? treeData : [])} */} {/* {loop(treeData ? treeData : [])} */}
</Tree> </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