Commit b1594a32 authored by cellee's avatar cellee

打开提示

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent 840e1386
...@@ -54,6 +54,9 @@ const NoticeIcon: React.FC<NoticeIconProps> & { ...@@ -54,6 +54,9 @@ const NoticeIcon: React.FC<NoticeIconProps> & {
clearText, clearText,
viewMoreText, viewMoreText,
} = props; } = props;
console.log(loading);
if (!children) { if (!children) {
return null; return null;
} }
...@@ -84,7 +87,8 @@ const NoticeIcon: React.FC<NoticeIconProps> & { ...@@ -84,7 +87,8 @@ const NoticeIcon: React.FC<NoticeIconProps> & {
); );
}); });
return ( return (
<Spin spinning={loading} delay={300}> // <Spin spinning={loading} delay={300}>
<Spin delay={300}>
<Tabs className={styles.tabs} onChange={onTabChange}> <Tabs className={styles.tabs} onChange={onTabChange}>
{panes} {panes}
</Tabs> </Tabs>
......
...@@ -78,7 +78,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => { ...@@ -78,7 +78,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
useEffect(() => { useEffect(() => {
console.log(login); console.log(login);
if (dispatch) { if (dispatch) {
console.log('Maple'); // console.log('Maple');
dispatch({ dispatch({
type: 'user/fetchCurrent', type: 'user/fetchCurrent',
playload: { playload: {
......
...@@ -42,6 +42,7 @@ const GlobalModel: GlobalModelType = { ...@@ -42,6 +42,7 @@ const GlobalModel: GlobalModelType = {
effects: { effects: {
*fetchNotices(_, { call, put, select }) { *fetchNotices(_, { call, put, select }) {
const data = yield call(queryNotices); const data = yield call(queryNotices);
console.log(data);
yield put({ yield put({
type: 'saveNotices', type: 'saveNotices',
payload: data, payload: data,
......
...@@ -472,7 +472,7 @@ const Adds = (props: any) => { ...@@ -472,7 +472,7 @@ const Adds = (props: any) => {
name="residentialManagerUserName" name="residentialManagerUserName"
rules={village[6] as any} rules={village[6] as any}
> >
<Input style={{ width: '160px' }} placeholder="Contacts" maxLength={30} /> <Input style={{ width: '160px' }} placeholder="Name" maxLength={30} />
</Form.Item> </Form.Item>
<Form.Item label="Property Fee" name="propertyFee" style={{ marginBottom: '0' }}> <Form.Item label="Property Fee" name="propertyFee" style={{ marginBottom: '0' }}>
......
...@@ -169,6 +169,8 @@ const ContractContent = (props: any) => { ...@@ -169,6 +169,8 @@ const ContractContent = (props: any) => {
data: { imageType: 'tosContract', extends: comtyName }, data: { imageType: 'tosContract', extends: comtyName },
fileList: fileList, fileList: fileList,
onChange: ({ file }: { file: any }) => { onChange: ({ file }: { file: any }) => {
console.log(file);
if (file.status === 'uploading') { if (file.status === 'uploading') {
setimgLoad(true); setimgLoad(true);
} }
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2020-11-19 16:54:53 * @Date: 2020-11-19 16:54:53
* @LastEditTime: 2020-11-27 17:32:30 * @LastEditTime: 2020-11-30 15:00:30
* @LastEditors: your name * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \tostumi\src\utils\tip.ts * @FilePath: \tostumi\src\utils\tip.ts
*/ */
...@@ -69,9 +69,9 @@ export const BookingsTip = [ ...@@ -69,9 +69,9 @@ export const BookingsTip = [
// 账号新增编辑 // 账号新增编辑
export const AccountTip = [ export const AccountTip = [
[{ required: false, type: 'email', message: 'Please enter email address !' }], [{ required: true, type: 'email', message: 'Please enter email address !' }],
[{ required: false, message: 'Required' }], [{ required: true, message: 'Required' }],
[{ required: false, message: 'Please enter the correct contact information !' }], [{ required: true, message: 'Please enter the correct contact information !' }],
[{ required: true, message: 'Required' }], [{ required: true, message: 'Required' }],
[{ required: true, message: 'Required' }], [{ required: true, message: 'Required' }],
[{ required: true, message: 'Required' }], [{ required: true, message: 'Required' }],
......
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