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
1d84b278
Commit
1d84b278
authored
Dec 19, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1219
parent
290f4fdc
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
68 additions
and
47 deletions
+68
-47
proxy.js
config/proxy.js
+1
-1
AvatarDropdown.jsx
src/components/RightContent/AvatarDropdown.jsx
+0
-5
global.less
src/global.less
+26
-13
index.jsx
src/pages/device/account/index.jsx
+12
-12
columns.js
src/pages/device/supplier/columns.js
+5
-1
index.jsx
src/pages/device/supplier/index.jsx
+4
-9
columns.js
src/pages/setting/production/columns.js
+6
-6
columns.js
src/pages/setting/section/columns.js
+6
-0
columns.js
src/pages/setting/users/columns.js
+8
-0
No files found.
config/proxy.js
View file @
1d84b278
...
@@ -13,7 +13,7 @@ export default {
...
@@ -13,7 +13,7 @@ export default {
dev
:
{
dev
:
{
[
defaultSetting
.
proxypath
]:
{
[
defaultSetting
.
proxypath
]:
{
// 要代理的地址
// 要代理的地址
target
:
'http://192.168.40.64:2800
0
'
,
//jf哥
target
:
'http://192.168.40.64:2800
1
'
,
//jf哥
// target: 'http://192.168.40.203:8000', //dj哥
// target: 'http://192.168.40.203:8000', //dj哥
changeOrigin
:
true
,
changeOrigin
:
true
,
},
},
...
...
src/components/RightContent/AvatarDropdown.jsx
View file @
1d84b278
...
@@ -151,11 +151,6 @@ const AvatarDropdown = ({ menu }) => {
...
@@ -151,11 +151,6 @@ const AvatarDropdown = ({ menu }) => {
const
menuHeaderDropdown
=
(
const
menuHeaderDropdown
=
(
<
Menu
className=
{
styles
.
menu
}
selectedKeys=
{
[]
}
onClick=
{
onMenuClick
}
>
<
Menu
className=
{
styles
.
menu
}
selectedKeys=
{
[]
}
onClick=
{
onMenuClick
}
>
<
Menu
.
Item
key=
"changepwd"
>
<
LockOutlined
/>
修改密码
</
Menu
.
Item
>
<
Menu
.
Divider
/>
<
Menu
.
Item
key=
"logout"
>
<
Menu
.
Item
key=
"logout"
>
<
LogoutOutlined
/>
<
LogoutOutlined
/>
退出登录
退出登录
...
...
src/global.less
View file @
1d84b278
...
@@ -58,13 +58,14 @@ ol {
...
@@ -58,13 +58,14 @@ ol {
width: 100%;
width: 100%;
overflow-x: auto;
overflow-x: auto;
&-thead > tr,
&-thead>tr,
&-tbody > tr {
&-tbody>tr {
> th,
> td {
>th,
>td {
white-space: pre;
white-space: pre;
>
span {
>span {
display: block;
display: block;
}
}
}
}
...
@@ -313,7 +314,7 @@ ol {
...
@@ -313,7 +314,7 @@ ol {
}
}
.lightblue {
.lightblue {
>
td:first-child {
>td:first-child {
position: relative;
position: relative;
&::before {
&::before {
...
@@ -335,14 +336,14 @@ ol {
...
@@ -335,14 +336,14 @@ ol {
width: 100%;
width: 100%;
padding-left: 0 !important;
padding-left: 0 !important;
>
span:first-child {
>span:first-child {
flex: 1;
flex: 1;
>
span:first-child {
>span:first-child {
display: none !important;
display: none !important;
}
}
>
.ant-spin-nested-loading {
>.ant-spin-nested-loading {
width: 100%;
width: 100%;
}
}
}
}
...
@@ -396,7 +397,7 @@ ol {
...
@@ -396,7 +397,7 @@ ol {
}
}
.runtime-keep-alive-layout {
.runtime-keep-alive-layout {
>
div {
>div {
height: 100% !important;
height: 100% !important;
}
}
}
}
...
@@ -444,7 +445,7 @@ ol {
...
@@ -444,7 +445,7 @@ ol {
min-height: 100% !important;
min-height: 100% !important;
overflow: hidden !important;
overflow: hidden !important;
>
div {
>div {
height: 100%;
height: 100%;
min-height: calc(100vh - 96px);
min-height: calc(100vh - 96px);
}
}
...
@@ -456,12 +457,12 @@ ol {
...
@@ -456,12 +457,12 @@ ol {
// 横向滚动条
// 横向滚动条
.scrollHoriz {
.scrollHoriz {
>
div {
>div {
display: flex !important;
display: flex !important;
flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
align-items: center !important;
align-items: center !important;
>
div {
>div {
flex-shrink: 0 !important;
flex-shrink: 0 !important;
}
}
}
}
...
@@ -473,3 +474,15 @@ ol {
...
@@ -473,3 +474,15 @@ ol {
padding-left: 16px;
padding-left: 16px;
}
}
}
}
.ant-layout {
aside {
z-index: 9999;
}
}
.runtime-keep-alive-layout {
aside {
z-index: 998;
}
}
\ No newline at end of file
src/pages/device/account/index.jsx
View file @
1d84b278
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-19 1
0:45:52
* @Last Modified time: 2022-12-19 1
5:56:45
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -76,11 +76,11 @@ function Model(props) {
...
@@ -76,11 +76,11 @@ function Model(props) {
},
},
{
{
title
:
'上传文件'
,
title
:
'上传文件'
,
key
:
'urlIds
'
,
key
:
'urlIds'
,
valueType
:
'uploadDragger'
,
valueType
:
'uploadDragger'
,
// colProps: { span: 24 },
// colProps: { span: 24 },
fieldProps
:
{
fieldProps
:
{
limi
t
:
5
,
maxCoun
t
:
5
,
},
},
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
...
@@ -124,7 +124,7 @@ function Model(props) {
...
@@ -124,7 +124,7 @@ function Model(props) {
},
},
{
{
title
:
''
,
title
:
''
,
key
:
'urlIds
'
,
key
:
'urlIds'
,
valueType
:
'uploadDragger'
,
valueType
:
'uploadDragger'
,
// colProps: { span: 24 },
// colProps: { span: 24 },
formItemProps
:
{
formItemProps
:
{
...
@@ -136,7 +136,7 @@ function Model(props) {
...
@@ -136,7 +136,7 @@ function Model(props) {
],
],
},
},
fieldProps
:
{
fieldProps
:
{
limi
t
:
5
,
maxCoun
t
:
5
,
},
},
render
:
(
text
,
row
)
=>
{
render
:
(
text
,
row
)
=>
{
return
row
?.
urlIds
.
map
((
it
)
=>
{
return
row
?.
urlIds
.
map
((
it
)
=>
{
...
@@ -690,6 +690,8 @@ function Model(props) {
...
@@ -690,6 +690,8 @@ function Model(props) {
const
[
request
,
setrequest
]
=
useState
();
const
[
request
,
setrequest
]
=
useState
();
useEffect
(()
=>
{
useEffect
(()
=>
{
const
fn
=
async
()
=>
{
const
fn
=
async
()
=>
{
console
.
log
(
'd'
);
let
res
=
await
doFetch
({
let
res
=
await
doFetch
({
url
:
'/base/paFormField/queryList'
,
url
:
'/base/paFormField/queryList'
,
params
:
{
params
:
{
...
@@ -710,6 +712,7 @@ function Model(props) {
...
@@ -710,6 +712,7 @@ function Model(props) {
}
}
},
},
fn2
=
async
()
=>
{
fn2
=
async
()
=>
{
console
.
log
(
'd'
);
const
res
=
await
doFetch
({
const
res
=
await
doFetch
({
url
:
urlParams
.
detail
,
url
:
urlParams
.
detail
,
params
:
{
id
:
drawer
?.
item
?.
id
},
params
:
{
id
:
drawer
?.
item
?.
id
},
...
@@ -1467,11 +1470,11 @@ function Model(props) {
...
@@ -1467,11 +1470,11 @@ function Model(props) {
},
},
{
{
title
:
'上传文件(上限为5个)'
,
title
:
'上传文件(上限为5个)'
,
key
:
'urlIds
'
,
key
:
'urlIds'
,
valueType
:
'UploadDragger'
,
valueType
:
'UploadDragger'
,
// colProps: { span: 24 },
// colProps: { span: 24 },
fieldProps
:
{
fieldProps
:
{
limi
t
:
5
,
maxCoun
t
:
5
,
name
:
'file'
,
name
:
'file'
,
},
},
formItemProps
:
{
formItemProps
:
{
...
@@ -1501,7 +1504,7 @@ function Model(props) {
...
@@ -1501,7 +1504,7 @@ function Model(props) {
},
},
{
{
title
:
'上传文件(上限为5个)'
,
title
:
'上传文件(上限为5个)'
,
key
:
'urlIds
'
,
key
:
'urlIds'
,
valueType
:
'UploadDragger'
,
valueType
:
'UploadDragger'
,
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
...
@@ -1513,7 +1516,7 @@ function Model(props) {
...
@@ -1513,7 +1516,7 @@ function Model(props) {
},
},
fieldProps
:
{
fieldProps
:
{
name
:
'file'
,
name
:
'file'
,
limi
t
:
5
,
maxCoun
t
:
5
,
},
},
},
},
],
],
...
@@ -2208,15 +2211,12 @@ function Model(props) {
...
@@ -2208,15 +2211,12 @@ function Model(props) {
</
Layout
>
</
Layout
>
<
DrawerPro
<
DrawerPro
fields=
{
columns
}
fields=
{
columns
}
// detailpath="/ngic-auth/sysUser/query/detail"
// params={{ id: drawer?.item?.id }}
formRef=
{
formRef
}
formRef=
{
formRef
}
placement=
"right"
placement=
"right"
onClose=
{
()
=>
{
onClose=
{
()
=>
{
setDrawer
((
s
)
=>
({
setDrawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
false
,
visible
:
false
,
detailpath
:
''
,
}));
}));
}
}
}
}
{
...
drawer
}
{
...
drawer
}
...
...
src/pages/device/supplier/columns.js
View file @
1d84b278
...
@@ -2,7 +2,7 @@ import { doFetch } from '@/utils/doFetch';
...
@@ -2,7 +2,7 @@ import { doFetch } from '@/utils/doFetch';
import
{
Switch
}
from
'antd'
;
import
{
Switch
}
from
'antd'
;
import
fieldsDetail
from
'@/utils/fieldsDetail'
;
import
fieldsDetail
from
'@/utils/fieldsDetail'
;
function
getcolumns
(
setdrawer
)
{
function
getcolumns
(
ifs
)
{
return
[
return
[
{
{
title
:
'供应商编号'
,
title
:
'供应商编号'
,
...
@@ -103,12 +103,16 @@ function getcolumns(setdrawer) {
...
@@ -103,12 +103,16 @@ function getcolumns(setdrawer) {
value
:
2
,
value
:
2
,
},
},
],
],
fieldProps
:
{
disabled
:
ifs
,
},
render
:
(
text
,
row
)
=>
{
render
:
(
text
,
row
)
=>
{
return
(
return
(
<
Switch
<
Switch
checkedChildren
=
"启用"
checkedChildren
=
"启用"
unCheckedChildren
=
"禁用"
unCheckedChildren
=
"禁用"
defaultChecked
=
{
row
.
status
==
1
}
defaultChecked
=
{
row
.
status
==
1
}
disabled
=
{
row
?.
statusChangeable
==
1
?
false
:
true
}
onChange
=
{(
flag
)
=>
{
onChange
=
{(
flag
)
=>
{
// //console.log(e);
// //console.log(e);
if
(
flag
)
{
if
(
flag
)
{
...
...
src/pages/device/supplier/index.jsx
View file @
1d84b278
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-19 1
1:14:0
4
* @Last Modified time: 2022-12-19 1
4:18:4
4
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -116,6 +116,7 @@ function Supplier(props) {
...
@@ -116,6 +116,7 @@ function Supplier(props) {
</
PremButton
>
</
PremButton
>
);
);
};
};
const
Details
=
()
=>
{
const
Details
=
()
=>
{
const
columns
=
[
const
columns
=
[
{
{
...
@@ -206,7 +207,6 @@ function Supplier(props) {
...
@@ -206,7 +207,6 @@ function Supplier(props) {
key
:
el
.
id
,
key
:
el
.
id
,
});
});
});
});
console
.
log
(
'1214'
,
column
);
setnewfieldscolumns
(
column
);
setnewfieldscolumns
(
column
);
}
}
},
},
...
@@ -215,15 +215,11 @@ function Supplier(props) {
...
@@ -215,15 +215,11 @@ function Supplier(props) {
url
:
urlParams
.
detail
,
url
:
urlParams
.
detail
,
params
:
{
id
:
drawer
?.
item
?.
id
},
params
:
{
id
:
drawer
?.
item
?.
id
},
});
});
//console.log(res?.data?.data);
let
obj
=
{};
let
obj
=
{};
res
?.
data
?.
data
[
'equipmentSupplierCharList'
]?.
forEach
((
it
)
=>
{
res
?.
data
?.
data
[
'equipmentSupplierCharList'
]?.
forEach
((
it
)
=>
{
obj
[
it
?.
fieldId
]
=
it
?.
fieldRealValue
;
obj
[
it
?.
fieldId
]
=
it
?.
fieldRealValue
;
});
});
console
.
log
(
'drawerpro:'
,
{
...(
res
?.
data
?.
data
??
{}),
...
obj
,
});
setrequest
(
setrequest
(
{
{
...(
res
?.
data
?.
data
??
{}),
...(
res
?.
data
?.
data
??
{}),
...
@@ -377,11 +373,10 @@ function Supplier(props) {
...
@@ -377,11 +373,10 @@ function Supplier(props) {
case
'edit'
:
case
'edit'
:
return
(
return
(
<
ExtendField
<
ExtendField
// defaultFormValue={drawer?.item}
setDrawer=
{
setDrawer
}
setDrawer=
{
setDrawer
}
drawer=
{
drawer
}
drawer=
{
drawer
}
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
columns=
{
columns
}
columns=
{
drawer
?.
item
?.
statusChangeable
==
1
?
getcolumns
(
false
)
:
getcolumns
(
true
)
}
formId=
{
'3'
}
formId=
{
'3'
}
urlParams=
{
urlParams
}
urlParams=
{
urlParams
}
onFinish=
{
async
(
vals
)
=>
{
onFinish=
{
async
(
vals
)
=>
{
...
...
src/pages/setting/production/columns.js
View file @
1d84b278
...
@@ -11,12 +11,11 @@ function getcolumns(ifs) {
...
@@ -11,12 +11,11 @@ function getcolumns(ifs) {
{
{
title
:
'所属工厂'
,
title
:
'所属工厂'
,
dataIndex
:
'factoryName'
,
dataIndex
:
'factoryName'
,
key
:
'factoryId'
,
search
:
false
,
width
:
180
,
fieldProps
:
{
fieldProps
:
{
disabled
:
ifs
,
showSearch
:
true
,
},
},
key
:
'factoryId'
,
width
:
180
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysFactory/getAllFactorySelection'
,
params
:
{}
},
options
:
{
path
:
'/auth/sysFactory/getAllFactorySelection'
,
params
:
{}
},
...
@@ -24,10 +23,9 @@ function getcolumns(ifs) {
...
@@ -24,10 +23,9 @@ function getcolumns(ifs) {
{
{
title
:
'所属车间'
,
title
:
'所属车间'
,
dataIndex
:
'shopName'
,
dataIndex
:
'shopName'
,
search
:
false
,
key
:
'shopId'
,
key
:
'shopId'
,
fieldProps
:
{
fieldProps
:
{
disabled
:
ifs
,
showSearch
:
true
,
},
},
width
:
180
,
width
:
180
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
...
@@ -45,6 +43,7 @@ function getcolumns(ifs) {
...
@@ -45,6 +43,7 @@ function getcolumns(ifs) {
key
:
'factoryId'
,
key
:
'factoryId'
,
width
:
180
,
width
:
180
,
hideInTable
:
true
,
hideInTable
:
true
,
search
:
false
,
hideInForm
:
true
,
hideInForm
:
true
,
fieldProps
:
{
fieldProps
:
{
disabled
:
ifs
,
disabled
:
ifs
,
...
@@ -58,6 +57,7 @@ function getcolumns(ifs) {
...
@@ -58,6 +57,7 @@ function getcolumns(ifs) {
dataIndex
:
'shopName'
,
dataIndex
:
'shopName'
,
key
:
'shopId'
,
key
:
'shopId'
,
hideInTable
:
true
,
hideInTable
:
true
,
search
:
false
,
hideInForm
:
true
,
hideInForm
:
true
,
fieldProps
:
{
fieldProps
:
{
disabled
:
ifs
,
disabled
:
ifs
,
...
...
src/pages/setting/section/columns.js
View file @
1d84b278
...
@@ -43,6 +43,9 @@ function getcolumns(ifs) {
...
@@ -43,6 +43,9 @@ function getcolumns(ifs) {
dataIndex
:
'factoryName'
,
dataIndex
:
'factoryName'
,
width
:
180
,
width
:
180
,
key
:
'factoryId'
,
key
:
'factoryId'
,
fieldProps
:
{
showSearch
:
true
,
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
valueType
:
'select'
,
hideInTable
:
true
,
hideInTable
:
true
,
...
@@ -56,6 +59,9 @@ function getcolumns(ifs) {
...
@@ -56,6 +59,9 @@ function getcolumns(ifs) {
key
:
'shopId'
,
key
:
'shopId'
,
hideInTable
:
true
,
hideInTable
:
true
,
hideInForm
:
true
,
hideInForm
:
true
,
fieldProps
:
{
showSearch
:
true
,
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
valueType
:
'select'
,
options
:
{
options
:
{
...
...
src/pages/setting/users/columns.js
View file @
1d84b278
...
@@ -147,6 +147,10 @@ function getcolumns(setDrawer, ifs, formRef) {
...
@@ -147,6 +147,10 @@ function getcolumns(setDrawer, ifs, formRef) {
width
:
120
,
width
:
120
,
key
:
'organizationId'
,
key
:
'organizationId'
,
valueType
:
'select'
,
valueType
:
'select'
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
options
:
{
path
:
'/auth/sysDepartment/query/organization/selectbox'
,
params
:
{}
},
options
:
{
path
:
'/auth/sysDepartment/query/organization/selectbox'
,
params
:
{}
},
},
},
...
@@ -156,6 +160,10 @@ function getcolumns(setDrawer, ifs, formRef) {
...
@@ -156,6 +160,10 @@ function getcolumns(setDrawer, ifs, formRef) {
align
:
'center'
,
align
:
'center'
,
valueType
:
'treeSelect'
,
valueType
:
'treeSelect'
,
dataIndex
:
'departmentName'
,
dataIndex
:
'departmentName'
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
key
:
'departmentId'
,
key
:
'departmentId'
,
options
:
{
options
:
{
...
...
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