Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
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
wuhao
ems3.3
Commits
abffbb3f
Commit
abffbb3f
authored
Jan 30, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11111
parent
a1f5b176
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
117 additions
and
105 deletions
+117
-105
index.jsx
src/pages/repair/platform/index.jsx
+3
-4
index.jsx
src/pages/repair/track/index.jsx
+114
-101
No files found.
src/pages/repair/platform/index.jsx
View file @
abffbb3f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-12-05 10:13:42
* @Date: 2022-12-05 10:13:42
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-
29 16:25:57
* @Last Modified time: 2023-01-
30 11:15:44
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -124,10 +124,9 @@ function Platform(props) {
...
@@ -124,10 +124,9 @@ function Platform(props) {
btn=
{
{
btn=
{
{
size
:
'small'
,
size
:
'small'
,
type
:
'primary'
,
type
:
'primary'
,
onClick
:
async
()
=>
{
onClick
:
async
(
vals
)
=>
{
let
params
=
{
let
params
=
{
...
vals
,
id
:
row
?.
id
,
id
,
};
};
let
res
=
await
doFetch
({
let
res
=
await
doFetch
({
url
:
'/repair/umOtherUnitsOrder/orderReceiving'
,
url
:
'/repair/umOtherUnitsOrder/orderReceiving'
,
...
...
src/pages/repair/track/index.jsx
View file @
abffbb3f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-
29 16:29:20
* @Last Modified time: 2023-01-
30 11:12:49
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -331,12 +331,11 @@ function Failure(props) {
...
@@ -331,12 +331,11 @@ function Failure(props) {
// 更多
// 更多
const
more
=
(
text
,
row
,
_
,
action
)
=>
{
const
more
=
(
text
,
row
,
_
,
action
)
=>
{
const
menu
=
(
let
menulist
=
[];
<
Menu
if
(
row
?.
status
==
'1'
)
{
items=
{
[
menulist
=
[
{
{
label
:
label
:
(
row
?.
status
==
0
||
row
?.
status
==
1
?
(
<
PremButton
<
PremButton
btn=
{
{
btn=
{
{
onClick
:
async
()
=>
{
onClick
:
async
()
=>
{
...
@@ -360,7 +359,15 @@ function Failure(props) {
...
@@ -360,7 +359,15 @@ function Failure(props) {
>
>
接单
接单
</
PremButton
>
</
PremButton
>
)
:
(
),
key
:
'0'
,
// disabled: true,
},
];
}
else
if
(
row
?.
status
==
'2'
)
{
menulist
=
[
{
label
:
(
<
PremButton
<
PremButton
btn=
{
{
btn=
{
{
onClick
:
async
()
=>
{
onClick
:
async
()
=>
{
...
@@ -388,6 +395,9 @@ function Failure(props) {
...
@@ -388,6 +395,9 @@ function Failure(props) {
key
:
'0'
,
key
:
'0'
,
// disabled: true,
// disabled: true,
},
},
];
}
else
if
(
row
?.
status
==
'3'
)
{
menulist
=
[
{
{
label
:
(
label
:
(
<
PremButton
<
PremButton
...
@@ -411,6 +421,9 @@ function Failure(props) {
...
@@ -411,6 +421,9 @@ function Failure(props) {
),
),
key
:
'1'
,
key
:
'1'
,
},
},
];
}
else
if
(
row
?.
status
==
'4'
)
{
menulist
=
[
{
{
label
:
(
label
:
(
<
PremButton
<
PremButton
...
@@ -434,9 +447,9 @@ function Failure(props) {
...
@@ -434,9 +447,9 @@ function Failure(props) {
),
),
key
:
'2'
,
key
:
'2'
,
},
},
]
}
];
/>
}
)
;
const
menu
=
<
Menu
items=
{
menulist
}
/>
;
return
(
return
(
<
Dropdown
<
Dropdown
overlay=
{
menu
}
overlay=
{
menu
}
...
...
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