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
84cba1fd
Commit
84cba1fd
authored
Dec 05, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12051000
parent
b4746e93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
4 deletions
+101
-4
Addform.jsx
src/pages/repair/failure/Addform.jsx
+98
-1
columns.js
src/pages/repair/failure/columns.js
+2
-2
index.jsx
src/pages/repair/failure/index.jsx
+1
-1
No files found.
src/pages/repair/failure/Addform.jsx
View file @
84cba1fd
import
{
useState
,
useEffect
}
from
'react'
;
import
InitForm
from
'@/components/InitForm'
;
const
App
=
()
=>
{
const
columns
=
[
{
title
:
'选择设备'
,
dataIndex
:
'equipmentId'
,
key
:
'equipmentId'
,
valueType
:
'select'
,
options
:
{
path
:
'/asset/equipment/selection/user/shop'
,
params
:
{}
},
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
{
title
:
'是否停机'
,
dataIndex
:
'isShutdown'
,
key
:
'isShutdown'
,
valueType
:
'radio'
,
options
:
[
{
value
:
1
,
label
:
'是'
,
},
{
value
:
2
,
label
:
'否'
,
},
],
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
{
title
:
'故障类型'
,
dataIndex
:
'faultSettingId'
,
key
:
'faultSettingId'
,
valueType
:
'select'
,
options
:
{
path
:
'/repair/umFaultSetting/selected/queryList'
,
linkParams
:
{
equipmentId
:
''
,
},
},
},
{
title
:
'故障名称'
,
dataIndex
:
'faultDetailId'
,
key
:
'faultDetailId'
,
valueType
:
'select'
,
options
:
{
path
:
'/repair/umFaultSettingDetail/selected/queryList'
,
linkParams
:
{
faultSettingId
:
''
,
},
},
},
{
title
:
'故障描述'
,
dataIndex
:
'faultDescription'
,
key
:
'faultDescription'
,
valueType
:
'textarea'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
},
{
title
:
'故障图片'
,
dataIndex
:
'picList'
,
key
:
'picList'
,
valueType
:
'uploadImage'
,
fieldProps
:
{
limit
:
5
,
},
formItemProps
:
{
rules
:
[
{
required
:
false
,
message
:
'此项为必填项'
,
},
],
},
},
];
return
(
<>
<
div
>
新增
</
div
>
<
InitForm
fields=
{
columns
}
/
>
</>
);
};
...
...
src/pages/repair/failure/columns.js
View file @
84cba1fd
...
...
@@ -66,7 +66,7 @@ function getcolumns(setdrawer) {
add
:
''
,
edit
:
''
,
list
:
'/repair/umFailureRepair/queryNoFinishList'
,
delete
:
''
,
delete
:
'
/repair/umFailureRepair/deleteById
'
,
detail
:
''
,
},
},
...
...
@@ -139,7 +139,7 @@ function getcolumns(setdrawer) {
add
:
''
,
edit
:
''
,
list
:
'/repair/umFailureRepair/queryFinishList'
,
delete
:
''
,
delete
:
'
/repair/umFailureRepair/deleteById
'
,
detail
:
''
,
},
},
...
...
src/pages/repair/failure/index.jsx
View file @
84cba1fd
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-0
2 19:19:52
* @Last Modified time: 2022-12-0
5 09:10:05
*/
import
*
as
React
from
'react'
;
...
...
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