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
b751d25a
Commit
b751d25a
authored
May 26, 2021
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Signed-off-by: cellee <893264950@qq.com>
parent
6044e9a5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
17 deletions
+25
-17
service.less
src/pages/AccountManagement/Service/service.less
+1
-1
serviceAdds.tsx
src/pages/AccountManagement/Service/serviceAdds.tsx
+3
-3
serviceDetail.tsx
src/pages/AccountManagement/Service/serviceDetail.tsx
+18
-10
serviceEdit.tsx
src/pages/AccountManagement/Service/serviceEdit.tsx
+3
-3
No files found.
src/pages/AccountManagement/Service/service.less
View file @
b751d25a
...
...
@@ -44,5 +44,5 @@ hr {
.flex {
display: flex;
align-items: center;
justify-content:
end
;
justify-content:
initial
;
}
src/pages/AccountManagement/Service/serviceAdds.tsx
View file @
b751d25a
/*
* @Author: your name
* @Date: 2021-03-02 14:39:40
* @LastEditTime: 2021-05-2
0 16:32:22
* @LastEditTime: 2021-05-2
4 14:29:56
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx
...
...
@@ -178,7 +178,7 @@ const service = (props: any) => {
imageType
:
'tosReportImage'
,
identification
:
''
,
}
}
limitNums=
{
10
}
limitNums=
{
5
}
imgs=
{
ImageSrc
}
over=
{
loading
}
/>
...
...
@@ -220,7 +220,7 @@ const service = (props: any) => {
imageType
:
'tosReportImage'
,
identification
:
''
,
}
}
limitNums=
{
10
}
limitNums=
{
5
}
imgs=
{
ImageSrc
}
over=
{
loading
}
/>
...
...
src/pages/AccountManagement/Service/serviceDetail.tsx
View file @
b751d25a
/*
* @Author: your name
* @Date: 2021-03-02 14:39:40
* @LastEditTime: 2021-05-2
1 17:24:18
* @LastEditTime: 2021-05-2
5 10:28:07
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx
...
...
@@ -39,7 +39,7 @@ const service = (props: any) => {
// 监听是否有数据
useEffect
(()
=>
{
if
(
match
.
params
.
id
)
{
RA
(
69
,
{
id
:
match
.
params
.
id
},
module
,
dispatch
);
RA
(
69
,
{
id
:
match
.
params
.
id
,
pageNum
:
1
},
module
,
dispatch
);
}
},
[
match
]);
...
...
@@ -75,7 +75,14 @@ const service = (props: any) => {
const
onFinish
=
(
values
:
any
)
=>
{
values
.
reportId
=
reportList
[
listIdx
].
reportId
;
console
.
log
(
values
);
// 去掉http和阿里云oss后缀
values
.
imageNames
=
values
.
imageNames
.
map
((
item
:
any
,
idx
:
any
)
=>
{
if
(
item
.
indexOf
(
'http'
)
!==
-
1
)
{
let
a
=
[
item
.
lastIndexOf
(
'/'
)
+
1
,
item
.
indexOf
(
'?'
)];
item
=
item
.
substring
(
a
[
0
],
a
[
1
]);
}
return
item
;
});
let
obj
=
{
imageContentDtos
:
[
values
],
...
...
@@ -111,7 +118,7 @@ const service = (props: any) => {
setReportList
([...
arr
]);
}
else
if
(
Result
.
state
==
2
)
{
dispatch
({
type
:
module
+
'/Results'
});
RA
(
69
,
{
id
:
match
.
params
.
id
},
module
,
dispatch
);
RA
(
69
,
{
id
:
match
.
params
.
id
,
pageNum
:
1
},
module
,
dispatch
);
}
}
},
[
Result
]);
...
...
@@ -161,9 +168,10 @@ const service = (props: any) => {
}
// 再开始分页
let
a
=
JSON
.
parse
(
JSON
.
stringify
(
term
.
list
));
let
b
=
a
.
splice
((
page
-
1
)
*
10
,
10
);
setReportList
([...
b
]);
RA
(
69
,
{
id
:
match
.
params
.
id
,
pageNum
:
page
},
module
,
dispatch
);
// let a = JSON.parse(JSON.stringify(term.list));
// let b = a.splice((page - 1) * 10, 10);
// setReportList([...b]);
};
return
(
...
...
@@ -214,7 +222,7 @@ const service = (props: any) => {
<
Form
.
Item
label=
"Description:"
name=
"content"
rules=
{
[{
required
:
true
}]
}
>
<
TextArea
rows=
{
4
}
style=
{
{
maxWidth
:
600
,
width
:
'100%'
}
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"Remarks:"
name=
"reportRemark"
rules=
{
[{
required
:
true
}]
}
>
<
Form
.
Item
label=
"Remarks:"
name=
"reportRemark"
>
<
TextArea
rows=
{
4
}
style=
{
{
maxWidth
:
600
,
width
:
'100%'
}
}
/>
</
Form
.
Item
>
...
...
@@ -306,8 +314,8 @@ const service = (props: any) => {
<
div
style=
{
{
textAlign
:
'right'
}
}
>
<
Pagination
defaultCurrent=
{
1
}
defaultPageSize=
{
10
}
total=
{
term
&&
term
.
list
?
term
.
list
.
length
:
10
}
defaultPageSize=
{
term
&&
term
.
page
?
term
.
page
.
curPageSize
:
5
}
total=
{
term
&&
term
.
page
?
term
.
page
.
totalRow
:
5
}
onChange=
{
onChange
}
/>
</
div
>
...
...
src/pages/AccountManagement/Service/serviceEdit.tsx
View file @
b751d25a
/*
* @Author: your name
* @Date: 2021-03-02 14:39:40
* @LastEditTime: 2021-05-2
1 18:07:39
* @LastEditTime: 2021-05-2
4 14:30:11
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx
...
...
@@ -182,7 +182,7 @@ const service = (props: any) => {
imageType
:
'tosReportImage'
,
identification
:
''
,
}
}
limitNums=
{
10
}
limitNums=
{
5
}
imgs=
{
ImageSrc
}
over=
{
loading
}
/>
...
...
@@ -224,7 +224,7 @@ const service = (props: any) => {
imageType
:
'tosReportImage'
,
identification
:
''
,
}
}
limitNums=
{
10
}
limitNums=
{
5
}
imgs=
{
ImageSrc
}
over=
{
loading
}
/>
...
...
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