Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
73968f49
Commit
73968f49
authored
Mar 18, 2021
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Signed-off-by: cellee <893264950@qq.com>
parent
9c89611f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
22 deletions
+34
-22
PictureOptionsRow.tsx
src/components/PictureOptions/PictureOptionsRow.tsx
+9
-4
service.tsx
src/pages/AccountManagement/Service/service.tsx
+7
-5
serviceDetail.tsx
src/pages/AccountManagement/Service/serviceDetail.tsx
+3
-3
serviceEdit.tsx
src/pages/AccountManagement/Service/serviceEdit.tsx
+2
-2
SystemFeedback.tsx
...pages/AccountManagement/SystemFeedback/SystemFeedback.tsx
+5
-3
Account.tsx
src/pages/AccountManagement/account/Account.tsx
+5
-5
Details.tsx
src/pages/CommunityManagement/CellList/Details.tsx
+3
-0
No files found.
src/components/PictureOptions/PictureOptionsRow.tsx
View file @
73968f49
...
@@ -23,7 +23,7 @@ const PictureOptionsRow = (props: any) => {
...
@@ -23,7 +23,7 @@ const PictureOptionsRow = (props: any) => {
const
[
previewImage
,
setPreviewImage
]
=
useState
(
''
);
const
[
previewImage
,
setPreviewImage
]
=
useState
(
''
);
const
[
limitNum
,
setLimitNum
]
=
useState
(
5
);
const
[
limitNum
,
setLimitNum
]
=
useState
(
5
);
const
handleCancel
=
()
=>
setPreviewVisible
(
false
);
const
handleCancel
=
()
=>
setPreviewVisible
(
false
);
//
const [imgLoad, setimgLoad] = useState(false); //图片上传 load状态
const
[
imgLoad
,
setimgLoad
]
=
useState
(
false
);
//图片上传 load状态
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
limitNums
!=
null
)
{
if
(
limitNums
!=
null
)
{
...
@@ -80,8 +80,8 @@ const PictureOptionsRow = (props: any) => {
...
@@ -80,8 +80,8 @@ const PictureOptionsRow = (props: any) => {
// 加载logo
// 加载logo
const
uploadButton
=
(
const
uploadButton
=
(
<
div
>
<
div
>
{
/* {loadding ? <LoadingOutlined /> : <PlusOutlined />} */
}
{
imgLoad
?
<
LoadingOutlined
/>
:
<
PlusOutlined
/>
}
<
PlusOutlined
/>
{
/* <PlusOutlined /> */
}
<
div
className=
"ant-upload-text"
>
Upload
</
div
>
<
div
className=
"ant-upload-text"
>
Upload
</
div
>
</
div
>
</
div
>
);
);
...
@@ -115,7 +115,8 @@ const PictureOptionsRow = (props: any) => {
...
@@ -115,7 +115,8 @@ const PictureOptionsRow = (props: any) => {
});
});
setFileList
(
tmp
);
setFileList
(
tmp
);
console
.
log
(
tmp
);
setimgLoad
(
false
);
var
result
=
new
Array
();
var
result
=
new
Array
();
tmp
.
map
((
item
:
any
,
index
:
number
)
=>
{
tmp
.
map
((
item
:
any
,
index
:
number
)
=>
{
// 如果没返回就用原来的名称
// 如果没返回就用原来的名称
...
@@ -126,6 +127,10 @@ const PictureOptionsRow = (props: any) => {
...
@@ -126,6 +127,10 @@ const PictureOptionsRow = (props: any) => {
result
.
push
(
name
);
result
.
push
(
name
);
});
});
onChange
&&
onChange
(
result
);
onChange
&&
onChange
(
result
);
}
else
if
(
file
.
status
==
'error'
)
{
setimgLoad
(
false
);
}
else
{
setimgLoad
(
true
);
}
}
};
};
...
...
src/pages/AccountManagement/Service/service.tsx
View file @
73968f49
...
@@ -21,14 +21,14 @@ const service = (props: any) => {
...
@@ -21,14 +21,14 @@ const service = (props: any) => {
width
:
240
,
width
:
240
,
},
},
{
{
title
:
'R
apporteur
'
,
title
:
'R
eported By
'
,
dataIndex
:
'reporterName'
,
dataIndex
:
'reporterName'
,
key
:
'reporterName'
,
key
:
'reporterName'
,
width
:
160
,
width
:
160
,
},
},
{
{
title
:
'
Upload d
escription'
,
title
:
'
D
escription'
,
dataIndex
:
'reportContent'
,
dataIndex
:
'reportContent'
,
key
:
'reportContent'
,
key
:
'reportContent'
,
width
:
400
,
width
:
400
,
...
@@ -66,13 +66,15 @@ const service = (props: any) => {
...
@@ -66,13 +66,15 @@ const service = (props: any) => {
},
},
];
];
const
{
Data
,
dispatch
,
loading
,
Init
}
=
props
;
const
{
Data
,
dispatch
,
loading
,
Init
,
location
}
=
props
;
const
[
locationkey
,
setlocationkey
]
=
useState
(
null
as
any
);
// 是否从其他列表刷新来的
const
[
term
,
setTerm
]
=
useState
(
null
as
any
);
// 拉取数据的条件存储
const
[
term
,
setTerm
]
=
useState
(
null
as
any
);
// 拉取数据的条件存储
// 监听是否有数据
// 监听是否有数据
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
Init
.
CommunityList
!==
null
&&
Data
==
null
)
{
if
(
location
.
key
!==
locationkey
&&
Init
.
CommunityList
!==
null
)
{
setlocationkey
(
location
.
key
);
let
obj
=
{
let
obj
=
{
communityNameList
:
Init
.
CommunityList
,
communityNameList
:
Init
.
CommunityList
,
reporterName
:
null
,
reporterName
:
null
,
...
@@ -81,7 +83,7 @@ const service = (props: any) => {
...
@@ -81,7 +83,7 @@ const service = (props: any) => {
setTerm
({
...
obj
});
setTerm
({
...
obj
});
RA
(
68
,
obj
,
module
,
dispatch
);
RA
(
68
,
obj
,
module
,
dispatch
);
}
}
},
[
Init
,
Data
]);
},
[
location
,
Init
]);
// 清除操作之前的数据
// 清除操作之前的数据
const
emptys
=
(
data
:
any
,
url
:
any
)
=>
{
const
emptys
=
(
data
:
any
,
url
:
any
)
=>
{
...
...
src/pages/AccountManagement/Service/serviceDetail.tsx
View file @
73968f49
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2021-03-02 14:39:40
* @Date: 2021-03-02 14:39:40
* @LastEditTime: 2021-03-1
5 15:25:59
* @LastEditTime: 2021-03-1
6 11:08:58
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx
* @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx
...
@@ -164,7 +164,7 @@ const service = (props: any) => {
...
@@ -164,7 +164,7 @@ const service = (props: any) => {
<
span
>
{
term
?
`${term.communityAddress} , ${term.postCode}`
:
null
}
</
span
>
<
span
>
{
term
?
`${term.communityAddress} , ${term.postCode}`
:
null
}
</
span
>
</
Form
.
Item
>
</
Form
.
Item
>
{
/* 报告人 */
}
{
/* 报告人 */
}
<
Form
.
Item
label=
"R
apporteur
"
>
<
Form
.
Item
label=
"R
eported By
"
>
<
span
>
{
term
?
term
.
reporterName
:
null
}
</
span
>
<
span
>
{
term
?
term
.
reporterName
:
null
}
</
span
>
</
Form
.
Item
>
</
Form
.
Item
>
{
/* 报告人联系方式 */
}
{
/* 报告人联系方式 */
}
...
@@ -195,7 +195,7 @@ const service = (props: any) => {
...
@@ -195,7 +195,7 @@ const service = (props: any) => {
{
/* --------------------------------------------------------------------------------------------- */
}
{
/* --------------------------------------------------------------------------------------------- */
}
{
/* 回复人信息 */
}
{
/* 回复人信息 */
}
{
DataSave
&&
DataSave
.
replyData
.
length
>
0
?
(
{
DataSave
&&
DataSave
.
replyData
.
length
>
0
?
(
<
Form
.
Item
label=
"
Replier
"
>
<
Form
.
Item
label=
"
Amended By
"
>
{
DataSave
.
replyData
[
0
].
replyName
}
{
DataSave
.
replyData
[
0
].
replyName
}
<
span
style=
{
{
display
:
'inline-block'
,
margin
:
'0 10px 0 50px'
}
}
>
<
span
style=
{
{
display
:
'inline-block'
,
margin
:
'0 10px 0 50px'
}
}
>
Contact Details :
{
' '
}
Contact Details :
{
' '
}
...
...
src/pages/AccountManagement/Service/serviceEdit.tsx
View file @
73968f49
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2021-03-02 14:39:40
* @Date: 2021-03-02 14:39:40
* @LastEditTime: 2021-03-1
5 15:21:27
* @LastEditTime: 2021-03-1
6 10:59:31
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx
* @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx
...
@@ -137,7 +137,7 @@ const service = (props: any) => {
...
@@ -137,7 +137,7 @@ const service = (props: any) => {
<
span
>
{
term
?
`${term.communityAddress} , ${term.postCode}`
:
null
}
</
span
>
<
span
>
{
term
?
`${term.communityAddress} , ${term.postCode}`
:
null
}
</
span
>
</
Form
.
Item
>
</
Form
.
Item
>
{
/* 报告人 */
}
{
/* 报告人 */
}
<
Form
.
Item
label=
"R
apporteur
"
>
<
Form
.
Item
label=
"R
eported By
"
>
<
span
>
{
term
?
term
.
reporterName
:
null
}
</
span
>
<
span
>
{
term
?
term
.
reporterName
:
null
}
</
span
>
</
Form
.
Item
>
</
Form
.
Item
>
{
/* 报告人联系方式 */
}
{
/* 报告人联系方式 */
}
...
...
src/pages/AccountManagement/SystemFeedback/SystemFeedback.tsx
View file @
73968f49
...
@@ -9,16 +9,18 @@ import moment from 'moment';
...
@@ -9,16 +9,18 @@ import moment from 'moment';
import
'./index.less'
;
import
'./index.less'
;
const
SystemFeedback
=
(
props
:
any
)
=>
{
const
SystemFeedback
=
(
props
:
any
)
=>
{
const
{
dispatch
,
Data
,
loading
}
=
props
;
const
{
dispatch
,
Data
,
loading
,
location
}
=
props
;
const
module
=
'Bug'
;
const
module
=
'Bug'
;
const
[
locationkey
,
setlocationkey
]
=
useState
(
null
as
any
);
// 是否从其他列表刷新来的
const
[
term
,
setTerm
]
=
useState
({
pageNum
:
1
}
as
any
);
//页码
const
[
term
,
setTerm
]
=
useState
({
pageNum
:
1
}
as
any
);
//页码
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
!
Data
)
{
if
(
location
.
key
!==
locationkey
)
{
setlocationkey
(
location
.
key
);
Refresh
();
Refresh
();
}
}
},
[
Data
]);
},
[
location
]);
const
columns
=
[
const
columns
=
[
{
title
:
'Brand'
,
dataIndex
:
'phoneBrand'
},
{
title
:
'Brand'
,
dataIndex
:
'phoneBrand'
},
...
...
src/pages/AccountManagement/account/Account.tsx
View file @
73968f49
...
@@ -9,19 +9,19 @@ import './Account.less';
...
@@ -9,19 +9,19 @@ import './Account.less';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
const
Account
=
(
props
:
any
)
=>
{
const
Account
=
(
props
:
any
)
=>
{
const
{
user
,
dispatch
,
Data
,
Result
,
loading
}
=
props
;
const
{
user
,
dispatch
,
Data
,
Result
,
loading
,
location
}
=
props
;
const
RA
=
(
index
:
any
,
values
:
any
)
=>
{
const
RA
=
(
index
:
any
,
values
:
any
)
=>
{
dispatch
({
type
:
'Account/RA'
,
playload
:
{
index
:
index
,
body
:
values
}
});
dispatch
({
type
:
'Account/RA'
,
playload
:
{
index
:
index
,
body
:
values
}
});
};
};
const
[
term
,
setTerm
]
=
useState
({}
as
any
);
// 拉取数据的条件存储
const
[
term
,
setTerm
]
=
useState
({}
as
any
);
// 拉取数据的条件存储
const
[
locationkey
,
setlocationkey
]
=
useState
(
null
as
any
);
// 是否从其他列表刷新来的
// 数据
// 数据
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
Data
);
if
(
location
.
key
!==
locationkey
)
{
if
(
Data
==
null
)
{
setlocationkey
(
location
.
key
);
Refresh
();
Refresh
();
}
}
},
[
Data
]);
//监听Data执行一次
},
[
location
]);
//监听Data执行一次
// 监听改变状态提交结果
// 监听改变状态提交结果
useEffect
(()
=>
{
useEffect
(()
=>
{
...
...
src/pages/CommunityManagement/CellList/Details.tsx
View file @
73968f49
...
@@ -36,6 +36,9 @@ const Detail = (props: any) => {
...
@@ -36,6 +36,9 @@ const Detail = (props: any) => {
// 新加坡测 http://120.77.240.215:8611/ 图片名称 h51
// 新加坡测 http://120.77.240.215:8611/ 图片名称 h51
// 正式 http://47.74.233.180:8611/ 图片名称 h52
// 正式 http://47.74.233.180:8611/ 图片名称 h52
// const usage = 'http://192.168.1.28:8611/';
// const codeUrl = require('@/assets/h5.png');
const
usage
=
'http://120.77.240.215:8611/'
;
const
usage
=
'http://120.77.240.215:8611/'
;
const
codeUrl
=
require
(
'@/assets/h51.png'
);
const
codeUrl
=
require
(
'@/assets/h51.png'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment