Commit a3fbb117 authored by 皮倩雯's avatar 皮倩雯

数据库初始化优化

parent 6ec08a58
Pipeline #59471 passed with stages
...@@ -143,7 +143,9 @@ const AppendModal = props => { ...@@ -143,7 +143,9 @@ const AppendModal = props => {
}; };
const Submit = () => { const Submit = () => {
callBackSubmit(); if (allValue.length > 0) {
callBackSubmit();
}
}; };
const title = e => { const title = e => {
...@@ -157,6 +159,13 @@ const AppendModal = props => { ...@@ -157,6 +159,13 @@ const AppendModal = props => {
return aa.length; return aa.length;
}; };
const title1 = () => {
if (allValue.length == 0) {
return <span style={{ color: 'red' }}>license下产品已全被初始化,无需再次追加!!!</span>;
}
return <span style={{ color: 'rgb(24 144 255)' }}>是否确认追加!</span>;
};
return ( return (
<Modal <Modal
title="产品追加" title="产品追加"
...@@ -174,7 +183,7 @@ const AppendModal = props => { ...@@ -174,7 +183,7 @@ const AppendModal = props => {
<Button onClick={onCancel}>取消</Button> <Button onClick={onCancel}>取消</Button>
<Popconfirm <Popconfirm
placement="topLeft" placement="topLeft"
title={<span style={{ color: 'rgb(24 144 255)' }}>是否确认追加!</span>} title={title1}
okText="确认" okText="确认"
cancelText="取消" cancelText="取消"
onConfirm={() => { onConfirm={() => {
......
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