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
c042b64d
Commit
c042b64d
authored
Feb 10, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
7c22521b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
19 deletions
+14
-19
index.jsx
src/pages/repair/failure/index.jsx
+2
-12
columns.js
src/pages/setting/users/columns.js
+1
-1
index.jsx
src/pages/setting/users/index.jsx
+7
-3
index.jsx
src/pages/spare/outstore/index.jsx
+1
-1
index.jsx
src/pages/spare/setting/index.jsx
+2
-1
index.jsx
src/pages/spare/supplier/index.jsx
+1
-1
No files found.
src/pages/repair/failure/index.jsx
View file @
c042b64d
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-
08 13:22:34
* @Last Modified time: 2023-02-
10 17:58:21
*/
import
*
as
React
from
'react'
;
...
...
@@ -79,17 +79,7 @@ function Failure(props) {
</
PremButton
>
);
}
else
{
return
(
<
PremButton
btn=
{
{
size
:
'small'
,
type
:
'danger'
,
disabled
:
true
,
}
}
>
删除
</
PremButton
>
);
return
<></>;
}
};
...
...
src/pages/setting/users/columns.js
View file @
c042b64d
...
...
@@ -12,7 +12,7 @@ function getcolumns(setDrawer, ifs, formRef) {
title
:
'用户名-姓名'
,
dataIndex
:
'username'
,
width
:
120
,
key
:
'username'
,
key
:
'username
fullname
'
,
hideInTable
:
true
,
search
:
false
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
...
...
src/pages/setting/users/index.jsx
View file @
c042b64d
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 202
2-12-19 10:32:30
* @Last Modified time: 202
3-02-10 17:54:56
*/
import
*
as
React
from
'react'
;
...
...
@@ -68,7 +68,7 @@ function User(props) {
setDrawer
((
s
)
=>
({
...
s
,
visible
:
true
,
item
:
row
,
item
:
{
...
row
,
usernamefullname
:
`${row?.username}-${row?.fullName}`
}
,
type
:
'edit'
,
title
:
'编辑'
,
val
:
'only'
,
...
...
@@ -176,10 +176,11 @@ function User(props) {
}
let
params
=
{
...
vals
,
username
:
vals
?.
username
.
slice
(
0
,
vals
?.
user
name
?.
indexOf
(
'-'
)),
username
:
vals
?.
username
fullname
.
slice
(
0
,
vals
?.
usernamefull
name
?.
indexOf
(
'-'
)),
id
:
drawer
?.
title
==
'编辑'
?
drawer
?.
item
?.
id
:
''
,
userCharReqList
,
};
delete
params
.
usernamefullname
;
delete
params
.
shopId
;
//console.log(params, '!!!!');
let
res
=
await
doFetch
({
...
...
@@ -212,6 +213,7 @@ function User(props) {
case
'edit'
:
return
(
<
ExtendField
defaultFormValue=
{
drawer
.
item
}
setDrawer=
{
setDrawer
}
drawer=
{
drawer
}
actionRef=
{
actionRef
}
...
...
@@ -231,10 +233,12 @@ function User(props) {
}
let
params
=
{
...
vals
,
username
:
vals
?.
usernamefullname
.
slice
(
0
,
vals
?.
usernamefullname
?.
indexOf
(
'-'
)),
id
:
drawer
?.
title
==
'编辑'
?
drawer
?.
item
?.
id
:
''
,
userCharReqList
,
};
delete
params
.
shopId
;
delete
params
.
usernamefullname
;
//console.log(params, '!!!!');
let
res
=
await
doFetch
({
url
:
urlParams
.
save
,
...
...
src/pages/spare/outstore/index.jsx
View file @
c042b64d
...
...
@@ -142,7 +142,7 @@ function Outstore(props) {
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
item
:
null
,
item
:
{
outType
:
'2'
}
,
title
:
'新增'
,
val
:
'add'
,
}));
...
...
src/pages/spare/setting/index.jsx
View file @
c042b64d
...
...
@@ -121,6 +121,7 @@ function Setting(props) {
actionRef=
{
actionRef
}
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
childposition=
"left"
resizeable=
{
false
}
addconfig=
{
{
// access: 'sysDepartment_save',
...
...
@@ -130,7 +131,7 @@ function Setting(props) {
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
item
:
null
,
item
:
{
isLife
:
1
}
,
title
:
'新增'
,
val
:
'add'
,
}));
...
...
src/pages/spare/supplier/index.jsx
View file @
c042b64d
...
...
@@ -158,7 +158,7 @@ function Supplier(props) {
setdrawer
((
s
)
=>
({
...
s
,
open
:
true
,
item
:
null
,
item
:
{
status
:
1
}
,
title
:
'新增'
,
val
:
'add'
,
}));
...
...
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