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