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
11dac910
Commit
11dac910
authored
Jan 06, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console.log
parent
30493582
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
72 additions
and
82 deletions
+72
-82
config.js
config/config.js
+0
-1
app.jsx
src/app.jsx
+0
-3
index.jsx
src/components/InitForm/Diyrule/index.jsx
+0
-3
index.jsx
src/components/InitForm/index.jsx
+8
-8
Permissiontree.jsx
src/components/PermissionTree/Permissiontree.jsx
+0
-2
Detail.jsx
src/components/RepaireDetail/Detail.jsx
+0
-1
index.jsx
src/components/SiderMenu/index.jsx
+0
-1
RepairOrderHandle.jsx
src/pages/repair/platform/RepairOrderHandle.jsx
+1
-2
index.jsx
src/pages/repair/track/index.jsx
+63
-55
index.jsx
src/pages/spare/outstore/index.jsx
+0
-3
index.jsx
src/pages/system/pushsetting/index.jsx
+0
-3
No files found.
config/config.js
View file @
11dac910
...
@@ -87,7 +87,6 @@ export default defineConfig({
...
@@ -87,7 +87,6 @@ export default defineConfig({
},
},
],
],
chainWebpack
:
function
(
config
,
{
webpack
})
{
chainWebpack
:
function
(
config
,
{
webpack
})
{
console
.
log
(
process
.
env
.
NODE_ENV
);
// 线上环境就去除console输出
// 线上环境就去除console输出
process
.
env
.
NODE_ENV
===
'production'
&&
process
.
env
.
NODE_ENV
===
'production'
&&
config
.
optimization
.
minimizer
(
'terser'
).
tap
((
args
)
=>
{
config
.
optimization
.
minimizer
(
'terser'
).
tap
((
args
)
=>
{
...
...
src/app.jsx
View file @
11dac910
...
@@ -26,7 +26,6 @@ function strToHump(str) {
...
@@ -26,7 +26,6 @@ function strToHump(str) {
}
}
export
async
function
getInitialState
()
{
export
async
function
getInitialState
()
{
console
.
log
(
history
);
let
token
=
localStorage
.
getItem
(
'TOKENES'
);
let
token
=
localStorage
.
getItem
(
'TOKENES'
);
const
fetchUserInfo
=
async
()
=>
{
const
fetchUserInfo
=
async
()
=>
{
try
{
try
{
...
@@ -48,11 +47,9 @@ export async function getInitialState() {
...
@@ -48,11 +47,9 @@ export async function getInitialState() {
};
// 如果是登录页面,不执行
};
// 如果是登录页面,不执行
if
(
history
.
location
.
pathname
!==
loginPath
&&
token
)
{
if
(
history
.
location
.
pathname
!==
loginPath
&&
token
)
{
console
.
log
(
3
);
const
currentUserData
=
await
fetchUserInfo
();
const
currentUserData
=
await
fetchUserInfo
();
let
menuData
;
let
menuData
;
if
(
currentUserData
?.
data
?.
username
)
{
if
(
currentUserData
?.
data
?.
username
)
{
console
.
log
(
1
);
menuData
=
await
getmenuData
();
menuData
=
await
getmenuData
();
}
}
return
{
return
{
...
...
src/components/InitForm/Diyrule/index.jsx
View file @
11dac910
...
@@ -18,7 +18,6 @@ import moment from 'moment';
...
@@ -18,7 +18,6 @@ import moment from 'moment';
let
Diyrule
=
(
props
)
=>
{
let
Diyrule
=
(
props
)
=>
{
let
{
onChange
}
=
props
;
let
{
onChange
}
=
props
;
console
.
log
(
props
?.
value
,
111111111
);
let
defval
=
props
?.
value
??
{};
let
defval
=
props
?.
value
??
{};
let
value
=
defval
?.
value
||
[],
let
value
=
defval
?.
value
||
[],
other
=
useMemo
(()
=>
{
other
=
useMemo
(()
=>
{
...
@@ -32,8 +31,6 @@ let Diyrule = (props) => {
...
@@ -32,8 +31,6 @@ let Diyrule = (props) => {
);
);
},
[
defval
?.
other
]);
},
[
defval
?.
other
]);
console
.
log
(
other
,
'other'
);
let
{
data
,
loading
}
=
useRequest
(()
=>
{
let
{
data
,
loading
}
=
useRequest
(()
=>
{
return
doFetch
({
url
:
'/base/bmNoRule/querySelect'
,
params
:
{}
});
return
doFetch
({
url
:
'/base/bmNoRule/querySelect'
,
params
:
{}
});
});
});
...
...
src/components/InitForm/index.jsx
View file @
11dac910
...
@@ -128,11 +128,11 @@ function InitForm(props) {
...
@@ -128,11 +128,11 @@ function InitForm(props) {
obj
[
it
?.
fieldId
]
=
it
?.
fieldRealValue
;
obj
[
it
?.
fieldId
]
=
it
?.
fieldRealValue
;
});
});
console
.
log
({
//
console.log(
{
...
obj
,
//
...obj,
...
defaultFormValue
,
//
...defaultFormValue,
...(
res
?.
data
?.
data
??
{}),
//
...(res?.data?.data ??
{}),
});
//
});
return
{
return
{
...
obj
,
...
obj
,
...
@@ -159,9 +159,9 @@ function InitForm(props) {
...
@@ -159,9 +159,9 @@ function InitForm(props) {
...
relationSupplierList
,
...
relationSupplierList
,
};
};
}
else
{
}
else
{
console
.
log
({
//
console.log(
{
...
defaultFormValue
,
//
...defaultFormValue,
});
//
});
return
{
return
{
...
defaultFormValue
,
...
defaultFormValue
,
};
};
...
...
src/components/PermissionTree/Permissiontree.jsx
View file @
11dac910
...
@@ -79,7 +79,6 @@ const Permissiontree = (props) => {
...
@@ -79,7 +79,6 @@ const Permissiontree = (props) => {
daauthTree
,
daauthTree
,
}
=
state
;
}
=
state
;
console
.
log
(
'tree'
,
props
);
useEffect
(()
=>
{
useEffect
(()
=>
{
resetData
();
resetData
();
},
[]);
},
[]);
...
@@ -119,7 +118,6 @@ const Permissiontree = (props) => {
...
@@ -119,7 +118,6 @@ const Permissiontree = (props) => {
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/components/RepaireDetail/Detail.jsx
View file @
11dac910
...
@@ -10,7 +10,6 @@ export default (props) => {
...
@@ -10,7 +10,6 @@ export default (props) => {
const
[
hidden
,
sethidden
]
=
useState
(
false
);
const
[
hidden
,
sethidden
]
=
useState
(
false
);
const
request
=
useRequest
(
async
()
=>
{
const
request
=
useRequest
(
async
()
=>
{
console
.
log
(
detailpath
,
params
);
let
res
=
await
doFetch
({
url
:
detailpath
,
params
});
let
res
=
await
doFetch
({
url
:
detailpath
,
params
});
if
(
res
?.
data
?.
dataList
?.
length
>
4
)
{
if
(
res
?.
data
?.
dataList
?.
length
>
4
)
{
sethidden
(
true
);
sethidden
(
true
);
...
...
src/components/SiderMenu/index.jsx
View file @
11dac910
...
@@ -218,7 +218,6 @@ function SiderMenu({ logo, collapsed, onCollapse, fixSiderbar, theme, isMobile,
...
@@ -218,7 +218,6 @@ function SiderMenu({ logo, collapsed, onCollapse, fixSiderbar, theme, isMobile,
selectedKeys=
{
[
location
.
pathname
]
}
selectedKeys=
{
[
location
.
pathname
]
}
collapsed=
{
collapsed
.
toString
()
}
collapsed=
{
collapsed
.
toString
()
}
onClick=
{
async
({
item
,
key
,
keyPath
,
domEvent
})
=>
{
onClick=
{
async
({
item
,
key
,
keyPath
,
domEvent
})
=>
{
console
.
log
(
'key'
,
key
,
item
.
key
);
if
(
key
==
'0'
)
{
if
(
key
==
'0'
)
{
changealive
(
!
alive
);
changealive
(
!
alive
);
return
;
return
;
...
...
src/pages/repair/platform/RepairOrderHandle.jsx
View file @
11dac910
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-12-05 11:13:26
* @Date: 2022-12-05 11:13:26
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 202
2-12-30 16:25:12
* @Last Modified time: 202
3-01-06 16:28:51
*/
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
@@ -10,7 +10,6 @@ import InitForm from '@/components/InitForm';
...
@@ -10,7 +10,6 @@ import InitForm from '@/components/InitForm';
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
message
}
from
'antd'
;
import
{
message
}
from
'antd'
;
const
App
=
({
type
,
id
,
actionRef
,
url
,
setdrawer
})
=>
{
const
App
=
({
type
,
id
,
actionRef
,
url
,
setdrawer
})
=>
{
console
.
log
(
type
);
const
columns
=
{
const
columns
=
{
wxjd
:
[
wxjd
:
[
{
{
...
...
src/pages/repair/track/index.jsx
View file @
11dac910
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,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-0
4 16:25:39
* @Last Modified time: 2023-01-0
6 16:09:52
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -323,44 +323,48 @@ function Failure(props) {
...
@@ -323,44 +323,48 @@ function Failure(props) {
label
:
label
:
row
?.
status
==
0
||
row
?.
status
==
1
?
(
row
?.
status
==
0
||
row
?.
status
==
1
?
(
<
PremButton
<
PremButton
onClick=
{
async
()
=>
{
btn=
{
{
let
params
=
{
onClick
:
async
()
=>
{
id
:
row
?.
id
,
let
params
=
{
};
id
:
row
?.
id
,
let
res
=
await
doFetch
({
};
url
:
'/repair/umTrackOrder/orderReceiving'
,
let
res
=
await
doFetch
({
params
,
url
:
'/repair/umTrackOrder/orderReceiving'
,
});
params
,
if
(
res
.
code
===
'0000'
)
{
});
message
.
success
(
'接单成功!'
);
if
(
res
.
code
===
'0000'
)
{
setdrawer
((
s
)
=>
({
message
.
success
(
'接单成功!'
);
...
s
,
setdrawer
((
s
)
=>
({
open
:
false
,
...
s
,
}));
open
:
false
,
actionRef
.
current
.
reload
();
}));
}
actionRef
.
current
.
reload
();
}
},
}
}
}
}
>
>
接单
接单
</
PremButton
>
</
PremButton
>
)
:
(
)
:
(
<
PremButton
<
PremButton
onClick=
{
async
()
=>
{
btn=
{
{
let
params
=
{
onClick
:
async
()
=>
{
id
:
row
?.
id
,
let
params
=
{
};
id
:
row
?.
id
,
let
res
=
await
doFetch
({
};
url
:
'/repair/umTrackOrder/dispatchById'
,
let
res
=
await
doFetch
({
params
,
url
:
'/repair/umTrackOrder/dispatchById'
,
});
params
,
if
(
res
.
code
===
'0000'
)
{
});
message
.
success
(
'派单成功!'
);
if
(
res
.
code
===
'0000'
)
{
setdrawer
((
s
)
=>
({
message
.
success
(
'派单成功!'
);
...
s
,
setdrawer
((
s
)
=>
({
open
:
false
,
...
s
,
}));
open
:
false
,
actionRef
.
current
.
reload
();
}));
}
actionRef
.
current
.
reload
();
}
},
}
}
}
}
>
>
派单
派单
...
@@ -372,17 +376,19 @@ function Failure(props) {
...
@@ -372,17 +376,19 @@ function Failure(props) {
{
{
label
:
(
label
:
(
<
PremButton
<
PremButton
onClick=
{
()
=>
{
btn=
{
{
setdrawer
((
s
)
=>
({
onClick
:
()
=>
{
...
s
,
setdrawer
((
s
)
=>
({
open
:
true
,
...
s
,
type
:
'track'
,
open
:
true
,
item
:
{
...
row
,
trackCycle
:
String
(
row
?.
trackCycle
)
},
type
:
'track'
,
// detailpath: '/repair/umTrackTraceinfo/queryByTrackOrderId',
item
:
{
...
row
,
trackCycle
:
String
(
row
?.
trackCycle
)
},
// params:
{
trackOrderId
:
row
?.
id
},
// detailpath: '/repair/umTrackTraceinfo/queryByTrackOrderId',
val
:
'only'
,
// params:
{
trackOrderId
:
row
?.
id
},
title
:
'追踪信息'
,
val
:
'only'
,
}));
title
:
'追踪信息'
,
}));
},
}
}
}
}
>
>
追踪
追踪
...
@@ -393,17 +399,19 @@ function Failure(props) {
...
@@ -393,17 +399,19 @@ function Failure(props) {
{
{
label
:
(
label
:
(
<
PremButton
<
PremButton
onClick=
{
()
=>
{
btn=
{
{
setdrawer
((
s
)
=>
({
onClick
:
()
=>
{
...
s
,
setdrawer
((
s
)
=>
({
open
:
true
,
...
s
,
val
:
'only'
,
open
:
true
,
title
:
'验证'
,
val
:
'only'
,
item
:
row
,
title
:
'验证'
,
detailpath
:
'/repair/umTrackTraceinfo/queryByTrackOrderId'
,
item
:
row
,
params
:
{
trackOrderId
:
row
?.
id
},
detailpath
:
'/repair/umTrackTraceinfo/queryByTrackOrderId'
,
type
:
'check'
,
params
:
{
trackOrderId
:
row
?.
id
},
}));
type
:
'check'
,
}));
},
}
}
}
}
>
>
验证
验证
...
...
src/pages/spare/outstore/index.jsx
View file @
11dac910
...
@@ -123,7 +123,6 @@ function Outstore(props) {
...
@@ -123,7 +123,6 @@ function Outstore(props) {
return
defpath
;
return
defpath
;
},
[
activeTabKey
]);
},
[
activeTabKey
]);
console
.
log
(
value
);
return
(
return
(
<
div
style=
{
{
position
:
'relative'
}
}
>
<
div
style=
{
{
position
:
'relative'
}
}
>
...
@@ -294,7 +293,6 @@ function Outstore(props) {
...
@@ -294,7 +293,6 @@ function Outstore(props) {
};
};
}
}
});
});
console
.
log
(
newValue
);
let
nvalue
=
value
?
[...
value
]
:
[];
let
nvalue
=
value
?
[...
value
]
:
[];
if
(
value
&&
value
.
some
((
it
)
=>
it
.
id
==
record
?.
id
))
{
if
(
value
&&
value
.
some
((
it
)
=>
it
.
id
==
record
?.
id
))
{
nvalue
=
value
?.
map
((
it
,
i
)
=>
{
nvalue
=
value
?.
map
((
it
,
i
)
=>
{
...
@@ -328,7 +326,6 @@ function Outstore(props) {
...
@@ -328,7 +326,6 @@ function Outstore(props) {
return
its
;
return
its
;
}
}
});
});
console
.
log
(
newValue
);
let
nvalue
=
value
?
[...
value
]
:
[];
let
nvalue
=
value
?
[...
value
]
:
[];
if
(
value
&&
value
.
some
((
it
)
=>
it
.
id
==
record
?.
id
))
{
if
(
value
&&
value
.
some
((
it
)
=>
it
.
id
==
record
?.
id
))
{
nvalue
=
value
?.
map
((
it
,
i
)
=>
{
nvalue
=
value
?.
map
((
it
,
i
)
=>
{
...
...
src/pages/system/pushsetting/index.jsx
View file @
11dac910
...
@@ -122,7 +122,6 @@ function Pushsetting(props) {
...
@@ -122,7 +122,6 @@ function Pushsetting(props) {
<
Space
size=
"middle"
>
<
Space
size=
"middle"
>
<
a
<
a
onClick=
{
()
=>
{
onClick=
{
()
=>
{
console
.
log
(
record
,
_
);
copy
(
record
.
variableCode
);
copy
(
record
.
variableCode
);
message
.
success
(
'已成功复制到剪切板!'
);
message
.
success
(
'已成功复制到剪切板!'
);
}
}
}
}
...
@@ -207,9 +206,7 @@ function Pushsetting(props) {
...
@@ -207,9 +206,7 @@ function Pushsetting(props) {
defaultFormValue=
{
drawer
?.
item
}
defaultFormValue=
{
drawer
?.
item
}
onValuesChange=
{
async
(
a
,
b
)
=>
{
onValuesChange=
{
async
(
a
,
b
)
=>
{
if
(
a
?.
fitField
)
{
if
(
a
?.
fitField
)
{
console
.
log
(
a
,
b
);
const
res
=
doFetch
({
url
:
selectValueType
[
a
?.
fitField
]
});
const
res
=
doFetch
({
url
:
selectValueType
[
a
?.
fitField
]
});
console
.
log
(
formRef
);
}
else
if
(
a
?.
businessMsgSceneId
)
{
}
else
if
(
a
?.
businessMsgSceneId
)
{
setVariablePath
({
setVariablePath
({
businessMsgSceneId
:
a
?.
businessMsgSceneId
,
businessMsgSceneId
:
a
?.
businessMsgSceneId
,
...
...
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