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
4c587ab9
Commit
4c587ab9
authored
Jan 11, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adder
parent
0b3c170b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
135 additions
and
18 deletions
+135
-18
AvatarDropdown.jsx
src/components/RightContent/AvatarDropdown.jsx
+8
-6
columns.js
src/pages/device/account/columns.js
+51
-0
index.jsx
src/pages/device/account/index.jsx
+53
-2
columns.js
src/pages/device/supplier/columns.js
+19
-0
columns.js
src/pages/setting/production/columns.js
+3
-6
columns.js
src/pages/setting/section/columns.js
+1
-4
No files found.
src/components/RightContent/AvatarDropdown.jsx
View file @
4c587ab9
...
...
@@ -32,9 +32,8 @@ const loginOut = async () => {
const
AvatarDropdown
=
({
menu
})
=>
{
const
getUserApp
=
useRequest
(
async
()
=>
{
let
res
=
await
doFetch
({
url
:
'/auth/sysUser/userApp/selection'
,
params
:
{}
});
return
res
?.
data
?.
dataList
||
{};
return
res
?.
data
||
{};
});
console
.
log
(
getUserApp
);
const
{
initialState
,
setInitialState
}
=
useModel
(
'@@initialState'
);
const
[
visible
,
cv
]
=
useState
(
false
),
[
formRef
]
=
Form
.
useForm
(),
...
...
@@ -126,6 +125,9 @@ const AvatarDropdown = ({ menu }) => {
if
(
!
currentUser
||
!
currentUser
.
username
)
{
return
loadings
;
}
console
.
log
(
getUserApp
?.
data
?.
dataList
?.
filter
((
it
)
=>
it
?.
appId
==
getUserApp
?.
data
?.
appId
)[
0
]?.
value
,
);
let
saveData
=
(
values
)
=>
{
let
newfields
=
JSON
.
parse
(
JSON
.
stringify
(
values
));
...
...
@@ -152,7 +154,6 @@ const AvatarDropdown = ({ menu }) => {
};
run
({
url
:
'/ngic-auth/sysUser/changePassword'
,
params
:
{
...
postData
}
});
};
const
menuHeaderDropdown
=
(
<
Menu
className=
{
styles
.
menu
}
selectedKeys=
{
[]
}
onClick=
{
onMenuClick
}
>
<
Menu
.
Item
key=
"logout"
>
...
...
@@ -167,7 +168,6 @@ const AvatarDropdown = ({ menu }) => {
window
.
location
.
href
=
value
;
}
};
return
(
<
div
style=
{
{
...
...
@@ -199,8 +199,10 @@ const AvatarDropdown = ({ menu }) => {
</
Modal
>
<
Select
style=
{
{
width
:
150
,
marginRight
:
8
}
}
defaultValue=
"http://ems.nangaoyun.com:8089"
options=
{
getUserApp
.
data
}
value=
{
getUserApp
?.
data
?.
dataList
?.
filter
((
it
)
=>
it
?.
appId
==
getUserApp
?.
data
?.
appId
)[
0
]?.
value
}
options=
{
getUserApp
?.
data
?.
dataList
}
onChange=
{
handleChange
}
/>
<
HeaderDropdown
overlay=
{
menuHeaderDropdown
}
>
...
...
src/pages/device/account/columns.js
View file @
4c587ab9
...
...
@@ -107,8 +107,25 @@ function getcolumns(setdrawer) {
},
},
key
:
'shopId'
,
search
:
false
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
},
{
title
:
'车间名称'
,
dataIndex
:
'shopName'
,
width
:
120
,
valueType
:
'select'
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
},
options
:
{
path
:
'/auth/sysShop/getAllShopSelection'
,
},
key
:
'shopId'
,
hideInForm
:
true
,
hideInTable
:
true
,
},
{
title
:
'工段名称'
,
width
:
120
,
...
...
@@ -126,6 +143,23 @@ function getcolumns(setdrawer) {
shopId
:
''
,
},
},
search
:
false
,
},
{
title
:
'工段名称'
,
width
:
120
,
dataIndex
:
'sectionName'
,
key
:
'sectionId'
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
},
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysSection/getAllSectionSelection'
,
},
hideInForm
:
true
,
hideInTable
:
true
,
},
{
title
:
'产线名称'
,
...
...
@@ -144,6 +178,23 @@ function getcolumns(setdrawer) {
shopId
:
''
,
},
},
search
:
false
,
},
{
title
:
'产线名称'
,
width
:
120
,
dataIndex
:
'productLineName'
,
valueType
:
'select'
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
},
key
:
'productLineId'
,
options
:
{
path
:
'/auth/sysProductionLine/getAllProductLineSelection'
,
},
hideInForm
:
true
,
hideInTable
:
true
,
},
{
title
:
'供应商'
,
...
...
src/pages/device/account/index.jsx
View file @
4c587ab9
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified time: 202
2-12-20 11:27:0
1
* @Last Modified time: 202
3-01-11 16:49:4
1
*/
import
*
as
React
from
'react'
;
...
...
@@ -1228,7 +1228,6 @@ function Model(props) {
dataIndex
:
'factoryName'
,
key
:
'factoryId'
,
width
:
120
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
...
...
@@ -1253,9 +1252,26 @@ function Model(props) {
factoryId
:
''
,
},
},
search
:
false
,
key
:
'shopId'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
},
{
title
:
'车间名称'
,
dataIndex
:
'shopName'
,
width
:
120
,
valueType
:
'select'
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
},
options
:
{
path
:
'/auth/sysShop/getAllShopSelection'
,
},
key
:
'shopId'
,
hideInForm
:
true
,
hideInTable
:
true
,
},
{
title
:
'工段名称'
,
width
:
120
,
...
...
@@ -1273,6 +1289,24 @@ function Model(props) {
shopId
:
''
,
},
},
search
:
false
,
},
{
title
:
'工段名称'
,
width
:
120
,
dataIndex
:
'sectionName'
,
key
:
'sectionId'
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
},
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysSection/getAllSectionSelection'
,
},
hideInForm
:
true
,
hideInTable
:
true
,
},
{
title
:
'产线名称'
,
...
...
@@ -1291,6 +1325,23 @@ function Model(props) {
shopId
:
''
,
},
},
search
:
false
,
},
{
title
:
'产线名称'
,
width
:
120
,
dataIndex
:
'productLineName'
,
valueType
:
'select'
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
},
key
:
'productLineId'
,
options
:
{
path
:
'/auth/sysProductionLine/getAllProductLineSelection'
,
},
hideInForm
:
true
,
hideInTable
:
true
,
},
];
return
(
...
...
src/pages/device/supplier/columns.js
View file @
4c587ab9
...
...
@@ -80,11 +80,30 @@ function getcolumns(ifs) {
],
},
},
{
title
:
'状态'
,
dataIndex
:
'status'
,
valueType
:
'radio'
,
key
:
'status'
,
options
:
[
{
label
:
'启用'
,
value
:
1
,
},
{
label
:
'禁用'
,
value
:
2
,
},
],
hideInTable
:
true
,
hideInForm
:
true
,
},
{
title
:
'状态'
,
dataIndex
:
'status'
,
key
:
'status'
,
valueType
:
'radio'
,
search
:
false
,
formItemProps
:
{
rules
:
[
{
...
...
src/pages/setting/production/columns.js
View file @
4c587ab9
...
...
@@ -24,6 +24,7 @@ function getcolumns(ifs) {
title
:
'所属车间'
,
dataIndex
:
'shopName'
,
key
:
'shopId'
,
hideInForm
:
true
,
fieldProps
:
{
showSearch
:
true
,
},
...
...
@@ -31,10 +32,7 @@ function getcolumns(ifs) {
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysShop/getShopSelectionByFactory'
,
linkParams
:
{
factoryId
:
''
,
//key 后面如果存在value 则该value会在调用接口时format
},
path
:
'/auth/sysShop/getAllShopSelection'
,
},
},
{
...
...
@@ -58,7 +56,6 @@ function getcolumns(ifs) {
key
:
'shopId'
,
hideInTable
:
true
,
search
:
false
,
hideInForm
:
true
,
fieldProps
:
{
disabled
:
ifs
,
},
...
...
@@ -66,7 +63,7 @@ function getcolumns(ifs) {
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysShop/get
ShopSelectionByFactory
'
,
path
:
'/auth/sysShop/get
AllShopSelection
'
,
linkParams
:
{
factoryId
:
''
,
//key 后面如果存在value 则该value会在调用接口时format
},
...
...
src/pages/setting/section/columns.js
View file @
4c587ab9
...
...
@@ -65,10 +65,7 @@ function getcolumns(ifs) {
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysShop/getShopSelectionByFactory'
,
linkParams
:
{
factoryId
:
''
,
//key 后面如果存在value 则该value会在调用接口时format
},
path
:
'/auth/sysShop/getAllShopSelection'
,
},
},
];
...
...
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