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
acd13dfd
Commit
acd13dfd
authored
Jan 04, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
202314
parent
fa3919f2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
config.js
config/config.js
+10
-0
index.jsx
src/components/AutoTable/index.jsx
+1
-1
index.jsx
src/pages/repair/failure/index.jsx
+3
-2
index.jsx
src/pages/repair/outsourcing/index.jsx
+2
-1
index.jsx
src/pages/repair/track/index.jsx
+2
-1
No files found.
config/config.js
View file @
acd13dfd
...
...
@@ -86,4 +86,14 @@ export default defineConfig({
projectName
:
'swagger'
,
},
],
chainWebpack
:
function
(
config
,
{
webpack
})
{
console
.
log
(
process
.
env
.
NODE_ENV
);
// 线上环境就去除console输出
process
.
env
.
NODE_ENV
===
'production'
&&
config
.
optimization
.
minimizer
(
'terser'
).
tap
((
args
)
=>
{
args
[
0
].
terserOptions
.
compress
.
drop_console
=
true
;
args
[
0
].
terserOptions
.
compress
.
drop_debugger
=
true
;
return
args
;
});
},
});
src/components/AutoTable/index.jsx
View file @
acd13dfd
...
...
@@ -15,7 +15,7 @@ export default (props) => {
let
{
childposition
}
=
props
;
childposition
=
childposition
??
'left'
;
const
actionbtn
=
{
add
:
<
PremButton
{
...
props
?
.
addconfig
}
>
新增
</
PremButton
>,
add
:
<
PremButton
{
...
props
?
.
addconfig
}
>
{
props
?.
addconfig
?.
name
||
'新增'
}
</
PremButton
>,
export
:
(
<
PremButton
{
...
props
?
.
exportconfig
}
...
...
src/pages/repair/failure/index.jsx
View file @
acd13dfd
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 202
2-12-22 15:18:07
* @Last Modified time: 202
3-01-04 10:29:44
*/
import
*
as
React
from
'react'
;
...
...
@@ -196,6 +196,7 @@ function Failure(props) {
resizeable=
{
false
}
addconfig=
{
{
// access: 'sysDepartment_save',
name
:
'设备报修'
,
btn
:
{
disabled
:
false
,
type
:
'primary'
,
...
...
@@ -204,7 +205,7 @@ function Failure(props) {
...
s
,
open
:
true
,
item
:
{
isShutdown
:
1
},
title
:
'
新增
'
,
title
:
'
设备报修
'
,
val
:
'only'
,
type
:
'add'
,
}));
...
...
src/pages/repair/outsourcing/index.jsx
View file @
acd13dfd
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 202
2-12-13 16:22:18
* @Last Modified time: 202
3-01-04 10:31:19
*/
import
*
as
React
from
'react'
;
...
...
@@ -523,6 +523,7 @@ function Failure(props) {
resizeable=
{
false
}
addconfig=
{
{
// access: 'sysDepartment_save',
name
:
'新建外协工单'
,
btn
:
{
disabled
:
false
,
type
:
'primary'
,
...
...
src/pages/repair/track/index.jsx
View file @
acd13dfd
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 202
2-12-22 17:34:32
* @Last Modified time: 202
3-01-04 10:30:44
*/
import
*
as
React
from
'react'
;
...
...
@@ -629,6 +629,7 @@ function Failure(props) {
resizeable=
{
false
}
addconfig=
{
{
// access: 'sysDepartment_save',
name
:
'新建追踪工单'
,
btn
:
{
disabled
:
false
,
type
:
'primary'
,
...
...
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