Commit 36e12bc7 authored by 陈前坚's avatar 陈前坚
parents 4608a0e7 55245eeb
Pipeline #22493 skipped with stages
...@@ -27,6 +27,53 @@ const ColConen = () => { ...@@ -27,6 +27,53 @@ const ColConen = () => {
}; };
const arr = [ const arr = [
{
key: '5',
label: 'v6.0.20210115 ',
content: (
<div className={styles.hr}>
<div className={styles.topBox}>
<div className={styles.topl}>v6.0.20210115</div>
<div className={styles.topr}>2021-01-15</div>
</div>
<hr />
<h3>用户管理</h3>
<ul>
<li>【优化】 优化了table展示图标</li>
<li>【修复】 修复了批量删除失效的问题</li>
</ul>
<h3>角色管理</h3>
<ul>
<li>【优化】 优化了选中列表时的展示内容</li>
</ul>
<h3>站点管理</h3>
<ul>
<li>【新增】 新增已选列表框,展示选中的人员</li>
</ul>
<h3>GIS平台</h3>
<ul>
<li>【修复】 修复了维护管理不能提交保存</li>
</ul>
<h3>产品配置</h3>
<ul>
<li>【新增】 新配置路由成为独立模块</li>
<li>【优化】 优化了配置提交规则</li>
</ul>
<h3>Web配置</h3>
<ul>
<li>【优化】 优化了页面刷新问题</li>
</ul>
<h3>网关配置</h3>
<ul>
<li>【新增】 动态使用网关接口</li>
</ul>
<h3>运维痕迹</h3>
<ul>
<li>【优化】 优化运维痕迹操作信息展示</li>
</ul>
</div>
),
},
{ {
key: '4', key: '4',
label: 'v6.0.20210108 ', label: 'v6.0.20210108 ',
......
...@@ -13,7 +13,7 @@ const Colophon = props => { ...@@ -13,7 +13,7 @@ const Colophon = props => {
}; };
return ( return (
<div className={styles.desc} onClick={handleClick}> <div className={styles.desc} onClick={handleClick}>
<div>版本v6.0.20210108</div> <div>版本v6.0.20210115</div>
<div onClick={e => e.stopPropagation()}> <div onClick={e => e.stopPropagation()}>
<Modal <Modal
width={1200} width={1200}
......
...@@ -169,30 +169,30 @@ const MobileConfigPage = props => { ...@@ -169,30 +169,30 @@ const MobileConfigPage = props => {
const ContentTab = () => ( const ContentTab = () => (
<ProCard> <ProCard>
<Spin tip="loading..." spinning={loading}> {/* <Spin tip="loading..." spinning={loading}> */}
<Tabs activeKey={activeKey} type="card" onChange={handleChange}> <Tabs activeKey={activeKey} type="card" onChange={handleChange}>
{showConfig && ( {showConfig && (
<TabPane tab={tabArr[0].title} key={tabArr[0].key}> <TabPane tab={tabArr[0].title} key={tabArr[0].key}>
{activeKey === tabArr[0].key && tabArr[0].component} {activeKey === tabArr[0].key && tabArr[0].component}
</TabPane> </TabPane>
)} )}
{showConfig && subType !== 'add' && ( {showConfig && subType !== 'add' && (
<TabPane tab={tabArr[1].title} key={tabArr[1].key}> <TabPane tab={tabArr[1].title} key={tabArr[1].key}>
{activeKey === tabArr[1].key && tabArr[1].component} {activeKey === tabArr[1].key && tabArr[1].component}
</TabPane> </TabPane>
)} )}
{/* {showConfig && subType !== 'add' && ( {/* {showConfig && subType !== 'add' && (
<TabPane tab={tabArr[2].title} key={tabArr[2].key}> <TabPane tab={tabArr[2].title} key={tabArr[2].key}>
{activeKey === tabArr[2].key && tabArr[2].component} {activeKey === tabArr[2].key && tabArr[2].component}
</TabPane> </TabPane>
)} */} )} */}
{showConfig && subType !== 'add' && ( {showConfig && subType !== 'add' && (
<TabPane tab={tabArr[3].title} key={tabArr[3].key}> <TabPane tab={tabArr[3].title} key={tabArr[3].key}>
{activeKey === tabArr[3].key && tabArr[3].component} {activeKey === tabArr[3].key && tabArr[3].component}
</TabPane> </TabPane>
)} )}
</Tabs> </Tabs>
</Spin> {/* </Spin> */}
</ProCard> </ProCard>
); );
const cts = (tabPaneItem, id) => ( const cts = (tabPaneItem, id) => (
...@@ -239,14 +239,16 @@ const MobileConfigPage = props => { ...@@ -239,14 +239,16 @@ const MobileConfigPage = props => {
]; ];
return ( return (
<PageContainer> <PageContainer>
<Tabs <Spin spinning={loading} tip="loading...">
activeKey={parentKey} <Tabs
onChange={handleParChange} activeKey={parentKey}
type="editable-card" onChange={handleParChange}
onEdit={handleEdit} type="editable-card"
> onEdit={handleEdit}
{singleList.map(item => cts(item, parentKey))} >
</Tabs> {singleList.map(item => cts(item, parentKey))}
</Tabs>
</Spin>
<Drawer <Drawer
title="新增应用" title="新增应用"
destroyOnClose destroyOnClose
......
...@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, Popconfirm, Spin } from 'antd'; ...@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, Popconfirm, Spin } from 'antd';
import { modifyProduct } from '@/services/webConfig/api'; import { modifyProduct } from '@/services/webConfig/api';
const { Item } = Form; const { Item } = Form;
const { Option } = Select; const { Option } = Select;
const { TextArea } = Input;
const EditForm = props => { const EditForm = props => {
const { productObj, editCallback, handleDel } = props; const { productObj, editCallback, handleDel } = props;
const [config, setConfig] = useState(''); // 网站配置信息 const [config, setConfig] = useState(''); // 网站配置信息
...@@ -111,7 +112,10 @@ const EditForm = props => { ...@@ -111,7 +112,10 @@ const EditForm = props => {
}, },
]} ]}
> >
<Input placeholder="请输入默认配置" allowClear /> <TextArea
placeholder="请输入默认配置"
autoSize={{ minRows: 3, maxRows: 5 }}
/>
</Item> </Item>
<div style={{ display: 'flex', marginLeft: '35%' }}> <div style={{ display: 'flex', marginLeft: '35%' }}>
<Item <Item
......
...@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, notification, Spin } from 'antd'; ...@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, notification, Spin } from 'antd';
import { modifyProduct } from '@/services/webConfig/api'; import { modifyProduct } from '@/services/webConfig/api';
const { Item } = Form; const { Item } = Form;
const { Option } = Select; const { Option } = Select;
const { TextArea } = Input;
const AddForm = props => { const AddForm = props => {
const { addCallback } = props; const { addCallback } = props;
const [config, setConfig] = useState(''); // 网站配置信息 const [config, setConfig] = useState(''); // 网站配置信息
...@@ -124,7 +125,11 @@ const AddForm = props => { ...@@ -124,7 +125,11 @@ const AddForm = props => {
}, },
]} ]}
> >
<Input placeholder="请输入默认配置" allowClear /> <TextArea
placeholder="请输入默认配置"
allowClear
autoSize={{ minRows: 3, maxRows: 5 }}
/>
</Item> </Item>
<Item wrapperCol={{ span: 7, offset: 7 }}> <Item wrapperCol={{ span: 7, offset: 7 }}>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">
......
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