Commit 2fbb33e6 authored by 皮倩雯's avatar 皮倩雯

fix: 'mobile搭建删除提示错误'

parent 2d7185ba
Pipeline #82816 passed with stages
...@@ -80,12 +80,13 @@ const MobileConfigPage = props => { ...@@ -80,12 +80,13 @@ const MobileConfigPage = props => {
} }
case 'remove': { case 'remove': {
let val = key.split('single')[1] || ''; let val = key.split('single')[1] || '';
let data = singleList.find(i => i.id === key);
Modal.confirm({ Modal.confirm({
title: '确认删除应用?', title: '确认删除应用?',
icon: <ExclamationCircleOutlined />, icon: <ExclamationCircleOutlined />,
content: ( content: (
<span> <span>
删除应用 <span style={{ fontWeight: 800, color: '#1890ff' }}>{key}</span>{' '} 删除应用 <span style={{ fontWeight: 800, color: '#1890ff' }}>{data.text}</span>{' '}
后,将一并删除所属角色与菜单,确认删除? 后,将一并删除所属角色与菜单,确认删除?
</span> </span>
), ),
......
...@@ -89,6 +89,17 @@ const ImportOrExport = props => { ...@@ -89,6 +89,17 @@ const ImportOrExport = props => {
shape="circle" shape="circle"
/> />
</Upload> </Upload>
<Button
type="primary"
onClick={() => handleUpload(2)}
loading={uploading}
style={{
marginLeft: '10px',
display: nodeObj ? 'none' : 'block',
}}
>
增量导入
</Button>
<Popconfirm <Popconfirm
title={ title={
<span> <span>
...@@ -111,17 +122,6 @@ const ImportOrExport = props => { ...@@ -111,17 +122,6 @@ const ImportOrExport = props => {
</Button> </Button>
</Popconfirm> </Popconfirm>
<Button
type="primary"
onClick={() => handleUpload(2)}
loading={uploading}
style={{
marginLeft: '10px',
display: nodeObj ? 'none' : 'block',
}}
>
增量导入
</Button>
<Button <Button
type="primary" type="primary"
onClick={() => handleUpload(2)} onClick={() => handleUpload(2)}
......
...@@ -88,6 +88,17 @@ const ImportOrExport = props => { ...@@ -88,6 +88,17 @@ const ImportOrExport = props => {
shape="circle" shape="circle"
/> />
</Upload> </Upload>
<Button
type="primary"
onClick={() => handleUpload(2)}
loading={uploading}
style={{
marginLeft: '10px',
display: nodeObj ? 'none' : 'block',
}}
>
增量导入
</Button>
<Popconfirm <Popconfirm
title={ title={
<span> <span>
...@@ -110,17 +121,6 @@ const ImportOrExport = props => { ...@@ -110,17 +121,6 @@ const ImportOrExport = props => {
</Button> </Button>
</Popconfirm> </Popconfirm>
<Button
type="primary"
onClick={() => handleUpload(2)}
loading={uploading}
style={{
marginLeft: '10px',
display: nodeObj ? 'none' : 'block',
}}
>
增量导入
</Button>
<Button <Button
type="primary" type="primary"
onClick={() => handleUpload(2)} onClick={() => handleUpload(2)}
......
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