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