Commit 6e0a5f1d authored by Sixiang_Zzb's avatar Sixiang_Zzb

测试问题修复

parent 1c4b6f83
...@@ -38,8 +38,8 @@ const TableShow = (props: any) => { ...@@ -38,8 +38,8 @@ const TableShow = (props: any) => {
const key = objectColumns([ const key = objectColumns([
['User Name', 'owner_family_name'], ['User Name', 'owner_family_name'],
['Contact Details', 'owner_family_phone'], ['Contact Details', 'owner_family_phone', (text: string, record: any) => text || '--'],
['Email', 'owner_family_email'], ['Email', 'owner_family_email', (text: string, record: any) => text || '--'],
[ [
'User Type', 'User Type',
null, null,
...@@ -51,8 +51,8 @@ const TableShow = (props: any) => { ...@@ -51,8 +51,8 @@ const TableShow = (props: any) => {
], ],
[ [
'status', 'status',
null, 'status',
(text: any, record: any) => <Space size="middle">{user_type_status[record.enable]}</Space>, (text: number, record: any) => <Space size="middle">{user_type_status[text]}</Space>,
], ],
[ [
'Actions', 'Actions',
......
...@@ -131,7 +131,7 @@ class TagSelect extends React.Component { ...@@ -131,7 +131,7 @@ class TagSelect extends React.Component {
closable={index !== 0 && index !== 1} closable={index !== 0 && index !== 1}
onClose={(e) => this.handleClose(tag, e)} onClose={(e) => this.handleClose(tag, e)}
visible={true} visible={true}
color={index === 0 || index === 1 ? 'magenta' : ''} color={index === 0 || index === 1 ? 'blue' : ''}
style={index === 1 ? { marginBottom: 40 } : ''} style={index === 1 ? { marginBottom: 40 } : ''}
> >
<span <span
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
if (resp.code == 500 || resp.error_code != '0000') { if (resp.code == 500 || resp.error_code != '0000') {
// message.error("Server Error,try again,error code:500",3) // message.error("Server Error,try again,error code:500",3)
// window.location.href = '/500'; // window.location.href = '/500';
console.log(); message.error(resp.msg);
} }
if (resp.error_code != '0000') { if (resp.error_code != '0000') {
......
...@@ -301,7 +301,7 @@ const UsersDetail = (props: any) => { ...@@ -301,7 +301,7 @@ const UsersDetail = (props: any) => {
titleBack={titleBackCallBack} titleBack={titleBackCallBack}
></TitleBack> ></TitleBack>
<Row> <Row>
<Col span={4}>User Type</Col> <Col span={4}>User Type</Col>
<Col span={4}> <Col span={4}>
{memberData.owner_relationship != null {memberData.owner_relationship != null
? user_status[memberData.owner_relationship - 1][1] ? user_status[memberData.owner_relationship - 1][1]
...@@ -309,13 +309,13 @@ const UsersDetail = (props: any) => { ...@@ -309,13 +309,13 @@ const UsersDetail = (props: any) => {
</Col> </Col>
</Row> </Row>
<Row gutter={16}> <Row gutter={16}>
<Col span={4}>User Name</Col> <Col span={4}>User Name</Col>
<Col span={4}>{memberData.ower_name}</Col> <Col span={4}>{memberData.owner_family_name}</Col>
</Row> </Row>
<Row gutter={16}> <Row gutter={16}>
<Col span={4}>Contact Detail</Col> <Col span={4}>Contact Detail</Col>
<Col span={4}>{memberData.ower_phone}</Col> <Col span={4}>{memberData.owner_family_phone}</Col>
<Col span={4}>{memberData.ower_email}</Col> <Col span={4}>{memberData.owner_family_email}</Col>
</Row> </Row>
<Line></Line> <Line></Line>
......
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import styles from './Guard.less'; import styles from './Guard.less';
import { Input, Menu, Table, Space, Pagination, Tooltip, Button } from 'antd'; import { Modal, Button } from 'antd';
import { ExclamationCircleOutlined } from '@ant-design/icons';
const { confirm } = Modal;
import { Link, useIntl, connect, Dispatch } from 'umi'; import { Link, useIntl, connect, Dispatch } from 'umi';
import Line from '../../../components/Line/Line'; import Line from '../../../components/Line/Line';
...@@ -16,9 +17,19 @@ const Guard = (props: any) => { ...@@ -16,9 +17,19 @@ const Guard = (props: any) => {
// 删除保安 // 删除保安
const handleClickBtn = (id: string) => { const handleClickBtn = (id: string) => {
dispatch({ confirm({
type: 'ServiceProvider/DelGuarder', title: 'Do you Want to delete these items?',
playload: { id }, icon: <ExclamationCircleOutlined />,
content: 'Some descriptions',
onOk() {
dispatch({
type: 'ServiceProvider/DelGuarder',
playload: { id },
});
},
onCancel() {
console.log('Cancel');
},
}); });
}; };
...@@ -30,7 +41,9 @@ const Guard = (props: any) => { ...@@ -30,7 +41,9 @@ const Guard = (props: any) => {
<div className={styles.item0_1}>Status:Normal</div> <div className={styles.item0_1}>Status:Normal</div>
<div className={styles.item0_1}> <div className={styles.item0_1}>
Registration Date: Registration Date:
{/* {timestampToTime(CurDataFollowDetail.createTime.time)} */} {CurDataFollowDetail.createTime !== null
? timestampToTime(CurDataFollowDetail.createTime.time)
: ''}
</div> </div>
<div className={styles.item2}> <div className={styles.item2}>
<BackButton /> <BackButton />
...@@ -47,9 +60,9 @@ const Guard = (props: any) => { ...@@ -47,9 +60,9 @@ const Guard = (props: any) => {
<div className={styles.item1}>Contact Details</div> <div className={styles.item1}>Contact Details</div>
<div className={styles.item1_1}>{CurDataFollowDetail.saferPhone}</div> <div className={styles.item1_1}>{CurDataFollowDetail.saferPhone}</div>
<div className={styles.item1} style={{ marginLeft: 32, width: 40 }}> <div className={styles.clear1}></div>
Email
</div> <div className={styles.item1}>Email</div>
<div className={styles.item1_1}>{CurDataFollowDetail.saferEmail}</div> <div className={styles.item1_1}>{CurDataFollowDetail.saferEmail}</div>
<div className={styles.clear1}></div> <div className={styles.clear1}></div>
......
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