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
8521482b
Commit
8521482b
authored
Nov 14, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11141614
parent
cede7f9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
app.jsx
src/app.jsx
+2
-2
index.jsx
src/pages/device/account/index.jsx
+6
-6
index.jsx
src/pages/device/type/index.jsx
+6
-7
No files found.
src/app.jsx
View file @
8521482b
...
...
@@ -11,8 +11,8 @@ import { createElement } from 'react';
import
routes
from
'../config/authRoutes'
;
const
{
LinkOutlined
}
=
Ant4Icons
;
const
isDev
=
process
.
env
.
NODE_ENV
===
'development'
;
// const isDev = false
//
const isDev = process.env.NODE_ENV === 'development';
const
isDev
=
true
;
console
.
log
(
isDev
);
const
loginPath
=
'/user/login'
;
...
...
src/pages/device/account/index.jsx
View file @
8521482b
/*
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by:
Li Hanlin
* @Last Modified time: 2022-11-1
0 09:39:56
/*
设备台账
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by:
Li Hanlin
* @Last Modified time: 2022-11-1
4 15:52:12
*/
import
*
as
React
from
'react'
;
...
...
@@ -142,4 +142,4 @@ function Account(props) {
);
}
export
default
Account
;
\ No newline at end of file
export
default
Account
;
src/pages/device/type/index.jsx
View file @
8521482b
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-14 1
4:19:53
* @Last Modified time: 2022-11-14 1
5:40:09
*/
import
*
as
React
from
'react'
;
...
...
@@ -25,7 +25,7 @@ function Type(props) {
save
:
'/asset/equipmentType/save'
,
remove
:
'/asset/equipmentType/deleteById'
,
list
:
'/asset/equipmentType/queryTreeList'
,
detail
:
'/asset/equipment
Supplier/query/detail
'
,
detail
:
'/asset/equipment
Type/queryById
'
,
};
const
detail
=
(
text
,
row
,
_
,
action
)
=>
{
...
...
@@ -60,11 +60,8 @@ function Type(props) {
setDrawer
((
s
)
=>
({
...
s
,
visible
:
true
,
detailpath
:
null
,
item
:
{
title
:
row
.
title
,
remark
:
row
.
remark
,
},
detailpath
:
urlParams
.
detail
,
params
:
{
id
:
row
.
key
},
title
:
'编辑'
,
val
:
'edit'
,
onFinish
:
async
(
vals
)
=>
{
...
...
@@ -73,7 +70,9 @@ function Type(props) {
...
vals
,
id
:
row
.
key
,
parentId
:
row
.
parentKey
,
equipmentTypeName
:
vals
.
title
,
};
delete
params
.
title
;
console
.
log
(
params
);
let
res
=
await
doFetch
({
url
:
urlParams
.
save
,
...
...
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