Commit e1d252d3 authored by Maofei94's avatar Maofei94

perf: 产品配置修改

parent 06d4ffdd
Pipeline #23369 passed with stages
in 21 minutes 46 seconds
...@@ -186,6 +186,7 @@ const SiteManage = () => { ...@@ -186,6 +186,7 @@ const SiteManage = () => {
const transTree = val => { const transTree = val => {
let arr = val; let arr = val;
let newArr = []; let newArr = [];
// 提取child里面的数组
let arr2 = arr.filter(item => { let arr2 = arr.filter(item => {
if (item.child && item.child.length > 0) { if (item.child && item.child.length > 0) {
item.child.forEach(itemC => { item.child.forEach(itemC => {
...@@ -230,7 +231,6 @@ const SiteManage = () => { ...@@ -230,7 +231,6 @@ const SiteManage = () => {
i.group = itemRole.visibleTitle; i.group = itemRole.visibleTitle;
i.icon = <UserOutlined />; i.icon = <UserOutlined />;
if (roleID && roleID === i.roleID) { if (roleID && roleID === i.roleID) {
console.log(roleID, typeof roleID, 'roleID');
setItemObj(i); setItemObj(i);
// setCurrentSelectId(roleID); // setCurrentSelectId(roleID);
} }
...@@ -243,7 +243,6 @@ const SiteManage = () => { ...@@ -243,7 +243,6 @@ const SiteManage = () => {
itemRole.subSystemValue = item.visibleValue; itemRole.subSystemValue = item.visibleValue;
itemRole.icon = <UserOutlined />; itemRole.icon = <UserOutlined />;
if (roleID && roleID === itemRole.roleID) { if (roleID && roleID === itemRole.roleID) {
console.log(roleID, typeof roleID, 'roleID');
setItemObj(itemRole); setItemObj(itemRole);
// setCurrentSelectId(roleID); // setCurrentSelectId(roleID);
} }
......
...@@ -21,8 +21,8 @@ const EditForm = props => { ...@@ -21,8 +21,8 @@ const EditForm = props => {
key: 'production', key: 'production',
}, },
{ {
value: '发中', value: '发中',
label: '发中', label: '发中',
key: 'development', key: 'development',
}, },
]; ];
...@@ -38,7 +38,6 @@ const EditForm = props => { ...@@ -38,7 +38,6 @@ const EditForm = props => {
ID: productObj.ID, ID: productObj.ID,
}; };
editCallback(params); editCallback(params);
console.log(value, 'value');
}; };
return ( return (
<Spin spinning={loading} tip="loading..."> <Spin spinning={loading} tip="loading...">
...@@ -69,7 +68,7 @@ const EditForm = props => { ...@@ -69,7 +68,7 @@ const EditForm = props => {
// }, // },
// ]} // ]}
> >
<Input placeholder="请输入产品名称" allowClear /> <Input placeholder="请输入产品名称" allowClear disabled />
</Item> </Item>
<Item <Item
label="产品说明:" label="产品说明:"
...@@ -82,7 +81,7 @@ const EditForm = props => { ...@@ -82,7 +81,7 @@ const EditForm = props => {
// }, // },
// ]} // ]}
> >
<Input placeholder="请输入产品说明" /> <Input placeholder="请输入产品说明" disabled />
</Item> </Item>
<Item <Item
label="发布状态:" label="发布状态:"
...@@ -115,7 +114,7 @@ const EditForm = props => { ...@@ -115,7 +114,7 @@ const EditForm = props => {
> >
{/* <Input addonBefore="//" placeholder="请输入访问路由" allowClear /> */} {/* <Input addonBefore="//" placeholder="请输入访问路由" allowClear /> */}
<Input <Input
placeholder="请输入访问路由,示例//localhost:3001/civmanage" placeholder="请输入访问路由,ip加端口号,示例//localhost:3001/"
allowClear allowClear
/> />
</Item> </Item>
...@@ -130,7 +129,7 @@ const EditForm = props => { ...@@ -130,7 +129,7 @@ const EditForm = props => {
]} ]}
> >
<TextArea <TextArea
placeholder="请输入默认配置" placeholder='请输入json对象,示例{"name":"张三","age":"18"}'
autoSize={{ minRows: 3, maxRows: 5 }} autoSize={{ minRows: 3, maxRows: 5 }}
/> />
</Item> </Item>
......
...@@ -67,7 +67,7 @@ const AddForm = props => { ...@@ -67,7 +67,7 @@ const AddForm = props => {
productList.length > 0 && productList.length > 0 &&
productList.map(item => ( productList.map(item => (
<Option value={item.PackageName} key={item.PackageName}> <Option value={item.PackageName} key={item.PackageName}>
{item.PackageName} {item.ProductName}
</Option> </Option>
))} ))}
</Select> </Select>
......
...@@ -79,7 +79,7 @@ const EditForm = props => { ...@@ -79,7 +79,7 @@ const EditForm = props => {
productList.length > 0 && productList.length > 0 &&
productList.map(item => ( productList.map(item => (
<Option value={item.PackageName} key={item.PackageName}> <Option value={item.PackageName} key={item.PackageName}>
{item.PackageName || ''} {item.ProductName || ''}
</Option> </Option>
))} ))}
</Select> </Select>
......
...@@ -181,7 +181,7 @@ const ProductConfig = props => { ...@@ -181,7 +181,7 @@ const ProductConfig = props => {
/> />
</div> </div>
<span className={classnames({ [styles.itemspan]: true })}> <span className={classnames({ [styles.itemspan]: true })}>
{item.PackageName} {item.ProductName}
</span> </span>
</List.Item> </List.Item>
)); ));
...@@ -221,7 +221,7 @@ const ProductConfig = props => { ...@@ -221,7 +221,7 @@ const ProductConfig = props => {
description="当前未选中产品类型" description="当前未选中产品类型"
/> />
)} )}
<Drawer {/* <Drawer
title="新增产品" title="新增产品"
destroyOnClose destroyOnClose
maskClosable={false} maskClosable={false}
...@@ -232,7 +232,7 @@ const ProductConfig = props => { ...@@ -232,7 +232,7 @@ const ProductConfig = props => {
visible={addVisible} visible={addVisible}
> >
<AddForm addCallback={addCallback} /> <AddForm addCallback={addCallback} />
</Drawer> </Drawer> */}
</Card> </Card>
</div> </div>
</Spin> </Spin>
......
...@@ -125,4 +125,4 @@ export const modifyProduct = params => ...@@ -125,4 +125,4 @@ export const modifyProduct = params =>
// 删除产品列表 // 删除产品列表
export const delProductList = params => export const delProductList = params =>
post(`${PUBLISH_SERVICE}/UserCenter/DelProduct`, params); get(`${PUBLISH_SERVICE}/UserCenter/DelProduct`, params);
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