Commit cb260aac authored by 涂伟's avatar 涂伟
parents 90e79010 a395b5c7
Pipeline #68615 passed with stages
...@@ -444,11 +444,12 @@ const WorkflowHomePage = () => { ...@@ -444,11 +444,12 @@ const WorkflowHomePage = () => {
</div> </div>
</div> </div>
{ele.PreviewImage ? ( {ele.PreviewImage ? (
<img // <img
src={`${ // src={`${
window.location.origin // window.location.origin
}/PandaOMS/OMS/FileCenter/DownLoadFiles?filePath=${ele.PreviewImage}`} // }/PandaOMS/OMS/FileCenter/DownLoadFiles?filePath=${ele.PreviewImage}`}
/> // />
<img src={`${window.location.origin}/${ele.PreviewImage}`} />
) : ( ) : (
<img <img
className={styles.noDataImg} className={styles.noDataImg}
......
...@@ -506,13 +506,15 @@ const IotConfig = props => { ...@@ -506,13 +506,15 @@ const IotConfig = props => {
测试连接 测试连接
</Button> </Button>
{upgrade && ( {upgrade && (
<Tooltip title="添加物联统一接入平台的子网站,并导入网页菜单数据">
<Button <Button
type="primary" type="primary"
onClick={() => PingIotUpdata()} onClick={() => PingIotUpdata()}
style={{ marginLeft: '25px' }} style={{ marginLeft: '25px' }}
> >
新增物联子站 平台升级
</Button> </Button>
</Tooltip>
)} )}
<span style={{ display: show1 }}> <span style={{ display: show1 }}>
<img <img
......
...@@ -76,7 +76,7 @@ const AddUserModal = props => { ...@@ -76,7 +76,7 @@ const AddUserModal = props => {
const password = addUserForm.getFieldValue('password') || ''; const password = addUserForm.getFieldValue('password') || '';
const phone = addUserForm.getFieldValue('phone') || ''; const phone = addUserForm.getFieldValue('phone') || '';
const email = addUserForm.getFieldValue('email') || ''; const email = addUserForm.getFieldValue('email') || '';
addUserForm.validateFields().then(validate => {
// 正则验证 // 正则验证
if (loginName === '') { if (loginName === '') {
notification.error({ notification.error({
...@@ -156,6 +156,7 @@ const AddUserModal = props => { ...@@ -156,6 +156,7 @@ const AddUserModal = props => {
message.error(err); message.error(err);
}); });
} }
});
}; };
// 密码强度验证 // 密码强度验证
const changeValue = changedFields => { const changeValue = changedFields => {
......
...@@ -50,6 +50,7 @@ const EditUserModal = props => { ...@@ -50,6 +50,7 @@ const EditUserModal = props => {
const oldPassword = passwordForm.getFieldValue('oldPassword'); const oldPassword = passwordForm.getFieldValue('oldPassword');
const newPassword = passwordForm.getFieldValue('newPassword'); const newPassword = passwordForm.getFieldValue('newPassword');
const passwordConfirm = passwordForm.getFieldValue('passwordConfirm'); const passwordConfirm = passwordForm.getFieldValue('passwordConfirm');
editUserForm.validateFields().then(validate => {
// 正则验证 // 正则验证
if (loginName === '') { if (loginName === '') {
notification.error({ notification.error({
...@@ -147,6 +148,7 @@ const EditUserModal = props => { ...@@ -147,6 +148,7 @@ const EditUserModal = props => {
message.error(err); message.error(err);
}); });
} }
});
}; };
const title = ( const title = (
<span> <span>
......
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