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
d5684962
Commit
d5684962
authored
Dec 30, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1230
parent
77adc3e3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
15 deletions
+59
-15
proxy.js
config/proxy.js
+1
-1
index.jsx
src/components/DrawerPro/index.jsx
+1
-0
Permissiontree.jsx
src/components/PermissionTree/Permissiontree.jsx
+5
-4
columns.js
src/pages/repair/fault/columns.js
+1
-1
index.jsx
src/pages/repair/fault/index.jsx
+4
-4
index.jsx
src/pages/repair/platform/index.jsx
+43
-2
index.jsx
src/pages/setting/role/index.jsx
+4
-3
No files found.
config/proxy.js
View file @
d5684962
...
@@ -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/DrawerPro/index.jsx
View file @
d5684962
...
@@ -8,6 +8,7 @@ function DrawerPro(props) {
...
@@ -8,6 +8,7 @@ function DrawerPro(props) {
let
pushSettingFlag
=
props
.
pushSettingFlag
;
let
pushSettingFlag
=
props
.
pushSettingFlag
;
let
newProps
=
{
...
props
};
let
newProps
=
{
...
props
};
delete
newProps
.
children
;
delete
newProps
.
children
;
delete
newProps
.
style
;
const
detailprops
=
{
const
detailprops
=
{
...
newProps
,
...
newProps
,
detailpath
:
props
.
detailpath
,
detailpath
:
props
.
detailpath
,
...
...
src/components/PermissionTree/Permissiontree.jsx
View file @
d5684962
...
@@ -79,6 +79,10 @@ const Permissiontree = (props) => {
...
@@ -79,6 +79,10 @@ const Permissiontree = (props) => {
daauthTree
,
daauthTree
,
}
=
state
;
}
=
state
;
console
.
log
(
'tree'
,
props
);
useEffect
(()
=>
{
resetData
();
},
[]);
const
loop
=
(
data
)
=>
{
const
loop
=
(
data
)
=>
{
return
data
.
map
((
item
)
=>
{
return
data
.
map
((
item
)
=>
{
if
(
item
.
children
)
{
if
(
item
.
children
)
{
...
@@ -110,15 +114,12 @@ const Permissiontree = (props) => {
...
@@ -110,15 +114,12 @@ const Permissiontree = (props) => {
},
},
});
});
useEffect
(()
=>
{
resetData
();
},
[]);
function
resetData
()
{
function
resetData
()
{
if
(
!
id
)
{
if
(
!
id
)
{
return
;
return
;
}
}
if
(
treeType
==
'auth'
)
{
if
(
treeType
==
'auth'
)
{
console
.
log
(
1
);
roleTree
({
roleId
:
id
}).
then
((
res
)
=>
{
roleTree
({
roleId
:
id
}).
then
((
res
)
=>
{
if
(
res
.
code
==
'0000'
)
{
if
(
res
.
code
==
'0000'
)
{
let
data
=
res
?.
data
||
{};
let
data
=
res
?.
data
||
{};
...
...
src/pages/repair/fault/columns.js
View file @
d5684962
...
@@ -14,7 +14,7 @@ function getcolumns(setdrawer) {
...
@@ -14,7 +14,7 @@ function getcolumns(setdrawer) {
},
},
},
},
{
{
title
:
'故障代码'
,
title
:
'故障
类型
代码'
,
dataIndex
:
'faultCode'
,
dataIndex
:
'faultCode'
,
key
:
'faultCode'
,
key
:
'faultCode'
,
},
},
...
...
src/pages/repair/fault/index.jsx
View file @
d5684962
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-12-07 11:19:30
* @Date: 2022-12-07 11:19:30
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-
09 16:47:36
* @Last Modified time: 2022-12-
30 13:56:38
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -225,7 +225,7 @@ function Fault(props) {
...
@@ -225,7 +225,7 @@ function Fault(props) {
},
},
},
},
{
{
title
:
'故障代码'
,
title
:
'故障
名称
代码'
,
dataIndex
:
'faultDetailCode'
,
dataIndex
:
'faultDetailCode'
,
key
:
'faultDetailCode'
,
key
:
'faultDetailCode'
,
},
},
...
@@ -274,7 +274,7 @@ function Fault(props) {
...
@@ -274,7 +274,7 @@ function Fault(props) {
},
},
},
},
{
{
title
:
'故障代码'
,
title
:
'故障
类型
代码'
,
dataIndex
:
'faultCode'
,
dataIndex
:
'faultCode'
,
key
:
'faultCode'
,
key
:
'faultCode'
,
},
},
...
@@ -291,6 +291,7 @@ function Fault(props) {
...
@@ -291,6 +291,7 @@ function Fault(props) {
path=
"/repair/umFaultSettingDetail/queryList"
path=
"/repair/umFaultSettingDetail/queryList"
extraparams=
{
{
faultSettingId
:
drawer
?.
item
.
id
}
}
extraparams=
{
{
faultSettingId
:
drawer
?.
item
.
id
}
}
pageextra=
{
'add'
}
pageextra=
{
'add'
}
resizeable=
{
false
}
addconfig=
{
{
addconfig=
{
{
// access: 'sysDepartment_save',
// access: 'sysDepartment_save',
btn
:
{
btn
:
{
...
@@ -330,7 +331,6 @@ function Fault(props) {
...
@@ -330,7 +331,6 @@ function Fault(props) {
fields=
{
columns
}
fields=
{
columns
}
actionRef=
{
gzmcref
}
actionRef=
{
gzmcref
}
style=
{
{
transform
:
'translateX(180px)'
}
}
style=
{
{
transform
:
'translateX(180px)'
}
}
width=
{
'100%'
}
defaultFormValue=
{
drawergz
?.
item
}
defaultFormValue=
{
drawergz
?.
item
}
onClose=
{
()
=>
{
onClose=
{
()
=>
{
setdrawergz
((
s
)
=>
({
setdrawergz
((
s
)
=>
({
...
...
src/pages/repair/platform/index.jsx
View file @
d5684962
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,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: 2022-12-
22 17:16:38
* @Last Modified time: 2022-12-
30 13:18:22
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -372,7 +372,48 @@ function Platform(props) {
...
@@ -372,7 +372,48 @@ function Platform(props) {
detailpath=
"/repair/umTrackOperation/queryOperationList"
detailpath=
"/repair/umTrackOperation/queryOperationList"
params=
{
{
trackOrderId
:
drawer
?.
item
?.
id
}
}
params=
{
{
trackOrderId
:
drawer
?.
item
?.
id
}
}
baseRow=
{
drawer
?.
item
}
baseRow=
{
drawer
?.
item
}
basecolumns=
{
basecolumns
}
basecolumns=
{
[
{
title
:
'创建人'
,
dataIndex
:
'createUserName'
,
key
:
'createUserName'
,
},
{
title
:
'创建时间'
,
dataIndex
:
'createTime'
,
key
:
'createTime'
,
},
{
title
:
'工单状态'
,
dataIndex
:
'statusName'
,
key
:
'statusName'
,
},
{
title
:
'来源工单'
,
dataIndex
:
'dataSourcesNo'
,
key
:
'dataSourcesNo'
,
},
{
title
:
'来源类型'
,
dataIndex
:
'dataSourcesName'
,
key
:
'dataSourcesName'
,
},
{
title
:
'最新追踪人员'
,
dataIndex
:
'newRepairUserName'
,
key
:
'newRepairUserName'
,
},
{
title
:
'下次追踪日期'
,
dataIndex
:
'nextTrackDate'
,
key
:
'nextTrackDate'
,
},
{
title
:
'关单时间'
,
dataIndex
:
'repairCloseTime'
,
key
:
'repairCloseTime'
,
},
]
}
type=
"zzgd"
type=
"zzgd"
/>
/>
);
);
...
...
src/pages/setting/role/index.jsx
View file @
d5684962
...
@@ -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-
15 13:52:1
9
* @Last Modified time: 2022-12-
30 14:10:2
9
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -131,7 +131,7 @@ function Role(props) {
...
@@ -131,7 +131,7 @@ function Role(props) {
btn=
{
{
btn=
{
{
size
:
'small'
,
size
:
'small'
,
onClick
:
()
=>
{
onClick
:
()
=>
{
// const
{
data
}
=
doFetch
({
// const
{
data
}
=
doFetch
({
// url: '/sysRolePermission/queryAll',
// url: '/sysRolePermission/queryAll',
// params:
{
roleId
:
row
.
id
},
// params:
{
roleId
:
row
.
id
},
//
});
//
});
...
@@ -144,7 +144,7 @@ function Role(props) {
...
@@ -144,7 +144,7 @@ function Role(props) {
onFinish
:
async
(
vals
)
=>
{
onFinish
:
async
(
vals
)
=>
{
//console.log(vals);
//console.log(vals);
let
res
=
await
doFetch
({
let
res
=
await
doFetch
({
url
:
'/auth/sysRolePermission/
queryAll
'
,
url
:
'/auth/sysRolePermission/
save
'
,
params
:
{
...
vals
},
params
:
{
...
vals
},
});
});
//console.log(res);
//console.log(res);
...
@@ -317,6 +317,7 @@ function Role(props) {
...
@@ -317,6 +317,7 @@ function Role(props) {
}));
}));
}
}
}
}
open=
{
drawer
.
authorityOpen
}
open=
{
drawer
.
authorityOpen
}
destroyOnClose
>
>
<
PermissionTree
<
PermissionTree
id=
{
drawer
?.
item
?.
id
}
id=
{
drawer
?.
item
?.
id
}
...
...
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